From 31d7abadfee7da27924f7130e470ea701b39bc3e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 24 Jan 2003 01:09:40 +0000 Subject: Perform more C warning fixup on all C source files and headers. --- winsup/testsuite/libltp/include/test.h | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'winsup/testsuite/libltp/include/test.h') diff --git a/winsup/testsuite/libltp/include/test.h b/winsup/testsuite/libltp/include/test.h index c4978dc4d..9bad911c4 100644 --- a/winsup/testsuite/libltp/include/test.h +++ b/winsup/testsuite/libltp/include/test.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. - * + *. * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. @@ -35,9 +35,26 @@ #ifndef __TEST_H__ #define __TEST_H__ +#define execve execve_foo +#define execv execv_foo +#define execvp execvp_foo #include #include #include +#include +#include +#undef execvp +#undef execv +#undef execve + +int execve(const char *, const char * const [], char * const *); +int execv(const char *, const char * const []); +int execvp(const char *, const char * const []); + +/* CGF: Avoid compilation warnings for undefined functions */ +extern int setregid (gid_t, gid_t); +int setreuid (uid_t, uid_t); +int gethostid (void); #define TPASS 0 /* Test passed flag */ #define TFAIL 1 /* Test failed flag */ @@ -190,7 +207,7 @@ extern void tst_clear_error(); * The following prototypes are needed to remove compile errors * on IRIX systems when compiled with -n32 and -64. */ -extern void tst_res(int ttype, char *fname, const char *arg_fmt, ...); +extern void tst_res(int ttype, const char *fname, const char *arg_fmt, ...); extern void tst_resm(int ttype, const char *arg_fmt, ...); extern void tst_brk(int ttype, char *fname, void (*func)(), const char *arg_fmt, ...); -- cgit v1.2.3