Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-24 04:09:40 +0300
committerChristopher Faylor <me@cgf.cx>2003-01-24 04:09:40 +0300
commit31d7abadfee7da27924f7130e470ea701b39bc3e (patch)
tree71dff30bdf30a42e0ad50a3b2eef3b00e8c95d56 /winsup/testsuite/libltp/include
parent1905b7393cf9555bfbebd2f6b345877609760dff (diff)
Perform more C warning fixup on all C source files and headers.
Diffstat (limited to 'winsup/testsuite/libltp/include')
-rw-r--r--winsup/testsuite/libltp/include/search_path.h2
-rw-r--r--winsup/testsuite/libltp/include/test.h21
-rw-r--r--winsup/testsuite/libltp/include/usctest.h2
3 files changed, 21 insertions, 4 deletions
diff --git a/winsup/testsuite/libltp/include/search_path.h b/winsup/testsuite/libltp/include/search_path.h
index 131311b44..58b7a36d2 100644
--- a/winsup/testsuite/libltp/include/search_path.h
+++ b/winsup/testsuite/libltp/include/search_path.h
@@ -33,4 +33,4 @@
/* $Id$ */
-int search_path(char *cmd, char *res_path, int access_mode, int fullpath);
+int search_path(const char *cmd, const char *res_path, int access_mode, int fullpath);
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 <stdio.h>
#include <signal.h>
#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#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, ...);
diff --git a/winsup/testsuite/libltp/include/usctest.h b/winsup/testsuite/libltp/include/usctest.h
index 232e67a98..ef2d032d7 100644
--- a/winsup/testsuite/libltp/include/usctest.h
+++ b/winsup/testsuite/libltp/include/usctest.h
@@ -115,7 +115,7 @@
* to indicate valid options and return option arguments
***********************************************************************/
typedef struct {
- char *option; /* Valid option string (one option only) like "a:" */
+ const char *option; /* Valid option string (one option only) like "a:" */
int *flag; /* pointer to location to set true if option given */
char **arg; /* pointer to location to place argument, if needed */
} option_t;