From: Robert W. <ro...@us...> - 2004-06-28 18:12:58
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1932 Modified Files: Makefile modify_ldt01.c modify_ldt02.c Log Message: Added additional code to allow this test to build easier. Index: modify_ldt01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt/modify_ldt01.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** modify_ldt01.c 11 Jun 2004 19:29:13 -0000 1.11 --- modify_ldt01.c 28 Jun 2004 18:12:36 -0000 1.12 *************** *** 61,64 **** --- 61,80 ---- #ifdef MODIFY_LDT_SPECIALCASE #define modify_ldt_ldt_s user_desc + #else + #if undefined(modify_ldt_ldt_s) + struct modify_ldt_ldt_s + { + unsigned int entry_number; + unsigned long int base_addr; + unsigned int limit; + unsigned int seg_32bit:1; + unsigned int contents:2; + unsigned int read_exec_only:1; + unsigned int limit_in_pages:1; + unsigned int seg_not_present:1; + unsigned int useable:1; + unsigned int empty:25; + }; + #endif #endif *************** *** 78,81 **** --- 94,98 ---- extern int modify_ldt(int, void*, unsigned long); + int main(int ac, char **av) { Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile 1 Jan 2004 00:16:01 -0000 1.6 --- Makefile 28 Jun 2004 18:12:36 -0000 1.7 *************** *** 24,30 **** NEEDSPECIAL:=$(shell cat /usr/include/asm/ldt.h | grep user_desc; echo $?) ifeq ($(strip $(NEEDSPECIAL)),) ! export CFLAGS+=-I../../../../include -g -Wall else ! export CFLAGS+=-I../../../../include -g -Wall -DMODIFY_LDT_SPECIALCASE endif --- 24,30 ---- NEEDSPECIAL:=$(shell cat /usr/include/asm/ldt.h | grep user_desc; echo $?) ifeq ($(strip $(NEEDSPECIAL)),) ! CFLAGS+=-I../../../../include -g -Wall else ! CFLAGS+=-I../../../../include -g -Wall -DMODIFY_LDT_SPECIALCASE endif Index: modify_ldt02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt/modify_ldt02.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** modify_ldt02.c 1 Jan 2004 00:16:01 -0000 1.9 --- modify_ldt02.c 28 Jun 2004 18:12:36 -0000 1.10 *************** *** 56,59 **** --- 56,75 ---- #ifdef MODIFY_LDT_SPECIALCASE #define modify_ldt_ldt_s user_desc + #else + #if undefined(modify_ldt_ldt_s) + struct modify_ldt_ldt_s + { + unsigned int entry_number; + unsigned long int base_addr; + unsigned int limit; + unsigned int seg_32bit:1; + unsigned int contents:2; + unsigned int read_exec_only:1; + unsigned int limit_in_pages:1; + unsigned int seg_not_present:1; + unsigned int useable:1; + unsigned int empty:25; + }; + #endif #endif |