mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibC: Make sysbeep return int instead of void
Since the beep syscall may fail it is strange that the error is discarded by the LibC wrapper.
This commit is contained in:
parent
18013f3c06
commit
1f7c196788
2 changed files with 4 additions and 3 deletions
|
@ -700,9 +700,10 @@ int gettid()
|
|||
return cached_tid;
|
||||
}
|
||||
|
||||
void sysbeep()
|
||||
int sysbeep()
|
||||
{
|
||||
syscall(SC_beep);
|
||||
int rc = syscall(SC_beep);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int fsync(int fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue