From: Robert W. <ro...@us...> - 2004-05-20 22:03:55
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/syscall In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18189 Modified Files: syscall01.c Log Message: Applied patch from Alastair McKinstry to allow the LTP to compile on Alpha using Debian. This is needed because SYS_getpid, SYS_getuid, and SYS_getgid are not defined. Index: syscall01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/syscall/syscall01.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** syscall01.c 8 Jul 2003 18:40:00 -0000 1.2 --- syscall01.c 20 May 2004 22:03:41 -0000 1.3 *************** *** 87,90 **** --- 87,91 ---- blenter(); + #if defined(SYS_getpid) for (i=0; i < ITER; i++) { v1 = getpid(); *************** *** 97,105 **** } } ! blexit(); /*--------------------------------------------------------------*/ blenter(); for (i=0; i < ITER; i++) { v1 = getuid(); --- 98,111 ---- } } ! #else ! fprintf(temp,"\tgetpid syscall failed.\n"); ! fprintf(temp,"\tSYS_getpid not defined\n"); ! local_flag = FAILED; ! #endif blexit(); /*--------------------------------------------------------------*/ blenter(); + #if defined(SYS_getuid) for (i=0; i < ITER; i++) { v1 = getuid(); *************** *** 112,120 **** } } ! blexit(); /*--------------------------------------------------------------*/ blenter(); for (i=0; i < ITER; i++) { v1 = getgid(); --- 118,131 ---- } } ! #else ! fprintf(temp,"\tgetuid syscall failed.\n"); ! fprintf(temp,"\tSYS_getuid not defined\n"); ! local_flag = FAILED; ! #endif blexit(); /*--------------------------------------------------------------*/ blenter(); + #if defined(SYS_getgid) for (i=0; i < ITER; i++) { v1 = getgid(); *************** *** 127,130 **** --- 138,146 ---- } } + #else + fprintf(temp,"\tgetgid syscall failed.\n"); + fprintf(temp,"\tSYS_getgid not defined\n"); + local_flag = FAILED; + #endif blexit(); |