$OpenBSD: patch-src-sys_unix_c,v 1.2 2005/12/25 09:13:57 sturm Exp $ --- src/sys_unix.c.orig Wed Nov 7 23:54:32 2001 +++ src/sys_unix.c Sun Dec 25 10:08:58 2005 @@ -128,7 +128,7 @@ void *SYS_MemoryMap( int iSize, int iFid /* Here are some common error types: switch( errno ) { case EINVAL: - printf("EINVAL\n"); + printf("EINVAL"); case EBADF: printf("EBADF"); break; @@ -169,7 +169,11 @@ int SYS_Wait( int iPid, int iWait ) { return waitpid( -1, 0, WNOHANG ); } -int SYS_Stat( int iFd ) { +int SYS_Stat( char *pcFile, struct stat *psStatus ) { + return stat( pcFile, psStatus ); +} + +int SYS_Fstat( int iFd ) { struct stat sStatus; return fstat( iFd, &sStatus ); } @@ -205,5 +209,15 @@ int SYS_GetSeed() { int SYS_Exit( int iRetVal ) { _exit( iRetVal ); +} + +int SYS_Rmdir( char *pcFile ) +{ + return rmdir(pcFile); +} + +int SYS_Unlink( char *pcFile ) +{ + return unlink(pcFile); }