Example doesn't return error code
- Dominant language
- D
- Stars
- 10
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Running the example code with a none existence file descriptor returns 18446744073709551607
You can check with using the following code
```
import syscalld : syscall, WRITE;
size_t write(size_t fd, string buf)
{
return syscall(WRITE, fd, cast(size_t) buf.ptr, cast(size_t) buf.length);
}
void main()
{
import std.stdio;
size_t stdout = 1;
writeln(write(1900000000000, "Hello\n"));
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the example with the nonexistent file descriptor shown in the issue and inspect the syscall interface used by write. Determine why the result is 18446744073709551607 and define the expected error-code behavior before adding a regression check.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100