1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +00:00

Kernel+LibC: Tidy up sys$ttyname() and sys$ptsname()

- Remove goofy _r suffix from syscall names.
- Don't take a signed buffer size.
- Use Userspace<T>.
- Make TTY::tty_name() return a String instead of a StringView.
This commit is contained in:
Andreas Kling 2020-08-04 16:27:52 +02:00
parent cb1fcd3eaf
commit 58feebeed2
9 changed files with 15 additions and 19 deletions

View file

@ -279,7 +279,7 @@ ssize_t write(int fd, const void* buf, size_t count)
int ttyname_r(int fd, char* buffer, size_t size)
{
int rc = syscall(SC_ttyname_r, fd, buffer, size);
int rc = syscall(SC_ttyname, fd, buffer, size);
__RETURN_WITH_ERRNO(rc, rc, -1);
}