Beispiel #1
0
_WCRTLINK mode_t umask( mode_t __cmask )
{
    syscall_res res = sys_call1( SYS_umask, (u_long)__cmask );
    __syscall_return( mode_t, res );
}
Beispiel #2
0
_WCRTLINK clock_t times( struct tms *__buf )
{
    u_long  res = sys_call1( SYS_times, (u_long)__buf );
    __syscall_return( clock_t, res );
}
Beispiel #3
0
_WCRTLINK ssize_t writev( int __fd, const struct iovec *__v, int __vcnt )
{
    syscall_res res = sys_call3( SYS_writev, (u_long)__fd, (u_long)__v, (u_long)__vcnt );
    __syscall_return( ssize_t, res );
}
Beispiel #4
0
_WCRTLINK pid_t waitpid( pid_t __pid, __WAIT_STATUS __stat_loc, int __options )
{
    u_long res = sys_call3( SYS_waitpid, __pid, (u_long)__stat_loc,
                           (u_long)__options );
    __syscall_return( pid_t, res );
}
Beispiel #5
0
_WCRTLINK pid_t waitpid( pid_t __pid, int *__stat_loc, int __options )
{
    syscall_res res = sys_call4( SYS_wait4, __pid, (u_long)__stat_loc, (u_long)__options, (u_long)NULL );
    __syscall_return( pid_t, res );
}
Beispiel #6
0
off_t __lseek( int __fildes, off_t __offset, int __whence )
{
    syscall_res res = sys_call3( SYS_lseek, __fildes, __offset, __whence );
    __syscall_return( off_t, res );
}
Beispiel #7
0
_WCRTLINK ssize_t write( int __fildes, const void *__buf, size_t __len )
{
    syscall_res res = sys_call3( SYS_write, __fildes, (u_long)__buf, __len );
    __syscall_return( ssize_t, res );
}