mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibC: Oops, I forgot to commit sys/uio.{cpp,h} yesterday.
This commit is contained in:
parent
99aead4857
commit
c1b025b5a6
2 changed files with 28 additions and 0 deletions
13
LibC/sys/uio.cpp
Normal file
13
LibC/sys/uio.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <sys/uio.h>
|
||||
#include <errno.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
ssize_t writev(int fd, const struct iovec* iov, int iov_count)
|
||||
{
|
||||
int rc = syscall(SC_writev, fd, iov, iov_count);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue