From: Subrata <sub...@us...> - 2008-08-22 21:10:04
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/getcpu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13815/ltp/testcases/kernel/syscalls/getcpu Added Files: Makefile getcpu01.c Log Message: Addition of getcpu() syscall to LTP. I have fixed the problem noticed earlier. Hope it will be fine this time. More over I wanted to mention that I have dropped getcpu2.c as it was found to be less relevant for getcpu() testing. Andi had made some suggestions to improve the test, I am submitting this before making all those changes. If possible I will sit and work on Andi's suggestion. Signed-Off-By: Sharyathi Nagesh <sha...@in...>. --- NEW FILE: Makefile --- # # Copyright (c) International Business Machines Corp., 2001 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See # the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # CFLAGS += -I../../../../include -Wall LDLIBS += -L../../../../lib -lltp SRCS = $(wildcard *.c) TARGETS = $(patsubst %.c,%,$(SRCS)) ifeq ($(shell uname -r | grep -c "^2\.6\.*"), 1) all: $(TARGETS) install: @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done else all install: @echo "Warning: Kernel doesn't support this test case" endif clean: rm -f $(TARGETS) --- NEW FILE: getcpu01.c --- (This appears to be a binary file; contents omitted.) |