コード例 #1
0
ファイル: sigpend.c プロジェクト: ArmstrongJ/open-watcom-v2
_WCRTLINK int sigpending( sigset_t *__set )
{
    syscall_res res;

    res = sys_call1( SYS_rt_sigpending, (u_long)__set );

    __syscall_return( int, res );
}
コード例 #2
0
ファイル: sys_brk.c プロジェクト: ArmstrongJ/open-watcom-v2
long sys_brk( u_long brk )
{
    u_long      newbrk;

    newbrk = __syscall_val( u_long, sys_call1( SYS_brk, brk ) );
    if( newbrk >= brk )
        return( newbrk );
    return( -1 );
}
コード例 #3
0
ファイル: mmap.c プロジェクト: ArmstrongJ/open-watcom-v2
_WCRTLINK void *mmap(void *__address, size_t __len, int __prot, 
                     int __flags, int __fd, off_t __offset)
{
syscall_res res;
struct mmap_arg_struct arg;
    
    arg.address = (u_long)__address;
    arg.len =     (u_long)__len;
    arg.prot =    (u_long)__prot; 
    arg.flags =   (u_long)__flags;
    arg.fd =      (u_long)__fd;
    arg.offset =  (u_long)__offset;

    /* We're using "old" mmap since syscall6 is a problem */
    res = sys_call1( SYS_mmap, (u_long)&arg);

    __syscall_return( void *, res );
}
コード例 #4
0
ファイル: fsync.c プロジェクト: ABratovic/open-watcom-v2
_WCRTLINK int fsync( int __fildes )
{
    u_long res = sys_call1( SYS_fsync, __fildes );
    __syscall_return( int, res );
}
コード例 #5
0
ファイル: times.c プロジェクト: ABratovic/open-watcom-v2
_WCRTLINK clock_t times( struct tms *__buf )
{
    u_long  res = sys_call1( SYS_times, (u_long)__buf );
    __syscall_return( clock_t, res );
}
コード例 #6
0
ファイル: umask.c プロジェクト: ArmstrongJ/open-watcom-v2
_WCRTLINK mode_t umask( mode_t __cmask )
{
    syscall_res res = sys_call1( SYS_umask, (u_long)__cmask );
    __syscall_return( mode_t, res );
}
コード例 #7
0
ファイル: pipe.c プロジェクト: ABratovic/open-watcom-v2
_WCRTLINK int pipe( int __fildes[2] )
{
    u_long res = sys_call1( SYS_pipe, (u_long)__fildes );
    __syscall_return( int, res );
}
コード例 #8
0
ファイル: unlink.c プロジェクト: Ukusbobra/open-watcom-v2
_WCRTLINK int unlink( const char *filename )
{
    u_long res = sys_call1( SYS_unlink, (u_long)filename );
    __syscall_return( int, res );
}
コード例 #9
0
ファイル: uname.c プロジェクト: Ukusbobra/open-watcom-v2
_WCRTLINK int uname( struct utsname *__name )
{
    u_long  res = sys_call1( SYS_uname, (u_long)__name );
    __syscall_return( int, res );
}
コード例 #10
0
ファイル: dup.c プロジェクト: ABratovic/open-watcom-v2
_WCRTLINK int dup( int __oldfd )
{
    u_long  res = sys_call1( SYS_dup, (u_long)__oldfd );
    __syscall_return( int, res );
}