Files
Arquivotheca.Solaris-2.5/lib/libbc/libc/sys/common/fsync.c
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

17 lines
199 B
C
Executable File

#include <syscall.h>
int fsync(fd)
int fd;
{
int ret, fds;
if ((ret = _syscall(SYS_fsync, fd)) == -1)
return(-1);
if ((fds = fd_get(fd)) != -1)
_syscall(SYS_fsync, fds);
return(ret);
}