[Libsysio-commit] HEAD: libsysio/tests test_chown.c test_copy.c test_fcntl_lock.c test_getcwd.c tes
Brought to you by:
lward
Update of /cvsroot/libsysio/libsysio/tests In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv17947 Modified Files: test_chown.c test_copy.c test_fcntl_lock.c test_getcwd.c test_link.c test_list.c test_mkdir.c test_path.c test_regions.c test_rename.c test_stats.c test_symlink.c test_unlink.c Log Message: Include <getopt.h> now. If _BSD_SOURCE was defined, that was removed. Index: test_chown.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_chown.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -b -B -p -r1.1 -r1.2 --- test_chown.c 14 Mar 2007 21:03:12 -0000 1.1 +++ test_chown.c 28 Mar 2007 21:27:12 -0000 1.2 @@ -48,6 +48,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_copy.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_copy.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -b -B -p -r1.13 -r1.14 --- test_copy.c 28 Oct 2005 16:42:26 -0000 1.13 +++ test_copy.c 28 Mar 2007 21:27:12 -0000 1.14 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -52,6 +50,7 @@ #include <fcntl.h> #include <sys/uio.h> #include <sys/queue.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_fcntl_lock.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_fcntl_lock.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -b -B -p -r1.1 -r1.2 --- test_fcntl_lock.c 28 Oct 2005 17:59:31 -0000 1.1 +++ test_fcntl_lock.c 28 Mar 2007 21:27:12 -0000 1.2 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -51,6 +49,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_getcwd.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_getcwd.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- test_getcwd.c 28 Oct 2005 16:42:26 -0000 1.7 +++ test_getcwd.c 28 Mar 2007 21:27:12 -0000 1.8 @@ -52,6 +52,7 @@ #include <sys/uio.h> #include <sys/queue.h> #include <dirent.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_link.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_link.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -w -b -B -p -r1.5 -r1.6 --- test_link.c 28 Oct 2005 16:42:26 -0000 1.5 +++ test_link.c 28 Mar 2007 21:27:12 -0000 1.6 @@ -53,6 +53,7 @@ #endif #include <sys/uio.h> #include <sys/queue.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_list.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_list.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -w -b -B -p -r1.12 -r1.13 --- test_list.c 28 Oct 2005 16:42:26 -0000 1.12 +++ test_list.c 28 Mar 2007 21:27:12 -0000 1.13 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -54,6 +52,7 @@ #include <dirent.h> #include <sys/uio.h> #include <sys/queue.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_mkdir.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_mkdir.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -b -B -p -r1.1 -r1.2 --- test_mkdir.c 3 May 2006 22:31:04 -0000 1.1 +++ test_mkdir.c 28 Mar 2007 21:27:12 -0000 1.2 @@ -50,6 +50,7 @@ #if 0 #include <dirent.h> #endif +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_path.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -b -B -p -r1.13 -r1.14 --- test_path.c 3 Jan 2006 13:33:06 -0000 1.13 +++ test_path.c 28 Mar 2007 21:27:12 -0000 1.14 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -51,6 +49,7 @@ #include <sys/stat.h> #include <unistd.h> #include <sys/uio.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_regions.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_regions.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- test_regions.c 28 Oct 2005 16:42:26 -0000 1.7 +++ test_regions.c 28 Mar 2007 21:27:12 -0000 1.8 @@ -41,19 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - -#if (_LARGEFILE64_SOURCE && \ - ((defined(__STDC_VERSION__) && __STDC_VERSION__ == 199901L))) -#define GO64 -#else -#warning Cannot prompt the 64-bit interface -#endif - -#if defined(GO64) && defined(__GLIBC__) -#define _ISOC99_SOURCE 1 -#endif - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -64,6 +51,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/uio.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" @@ -80,9 +68,7 @@ * Destination will not be overwritten if it already exist. */ -#if (_LARGEFILE64_SOURCE && \ - ((defined(__STDC_VERSION__) && __STDC_VERSION__ == 199901L) || \ - (defined(_ISOC99_SOURCE) && _ISOC99_SOURCE))) +#if defined(_LARGEFILE64_SOURCE) && _LARGEFILE64_SOURCE #define GO64 #else #warning Cannot prompt the 64-bit interface Index: test_rename.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_rename.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -b -B -p -r1.7 -r1.8 --- test_rename.c 28 Oct 2005 16:42:26 -0000 1.7 +++ test_rename.c 28 Mar 2007 21:27:12 -0000 1.8 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -51,6 +49,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <sys/uio.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_stats.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_stats.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -w -b -B -p -r1.9 -r1.10 --- test_stats.c 28 Oct 2005 16:42:26 -0000 1.9 +++ test_stats.c 28 Mar 2007 21:27:12 -0000 1.10 @@ -41,8 +41,6 @@ * le...@sa... */ -#define _BSD_SOURCE - #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -54,6 +52,7 @@ #include <sys/statvfs.h> #endif #include <sys/uio.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_symlink.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_symlink.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -b -B -p -r1.1 -r1.2 --- test_symlink.c 28 Apr 2006 14:59:42 -0000 1.1 +++ test_symlink.c 28 Mar 2007 21:27:12 -0000 1.2 @@ -53,6 +53,7 @@ #endif #include <sys/uio.h> #include <sys/queue.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" Index: test_unlink.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_unlink.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -w -b -B -p -r1.6 -r1.7 --- test_unlink.c 28 Oct 2005 16:42:26 -0000 1.6 +++ test_unlink.c 28 Mar 2007 21:27:12 -0000 1.7 @@ -51,6 +51,7 @@ #include <dirent.h> #endif #include <sys/uio.h> +#include <getopt.h> #if defined(SYSIO_LABEL_NAMES) #include "sysio.h" |