diff options
author | Egor Duda <deo@logos-m.ru> | 2000-09-06 18:21:53 +0400 |
---|---|---|
committer | Egor Duda <deo@logos-m.ru> | 2000-09-06 18:21:53 +0400 |
commit | 664b2d68eba3e95d9936c8d21ec20681a10fa312 (patch) | |
tree | e6271d97288d679418f83a7ad9861de54f0a4dcf | |
parent | 94cb46cdf0ab32ab3ef40266b4e92c72e7c0f7b3 (diff) |
Add 'const' qualifiers where needed to avoid compiler warnings.
* libltp/lib/tst_sig.c (tst_sig): Don't attempt to cleanup on
fatal errors.
* libltp/lib/parse_opts.c (parse_opts): Initialize allocated
string to prevent heap corruption.
98 files changed, 131 insertions, 113 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog index 219b5bccb..2966ef4e4 100644 --- a/winsup/testsuite/ChangeLog +++ b/winsup/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2000-09-06 Egor Duda <deo@logos-m.ru> + + Add 'const' qualifiers where needed to avoid compiler warnings. + * libltp/lib/tst_sig.c (tst_sig): Don't attempt to cleanup on + fatal errors. + * libltp/lib/parse_opts.c (parse_opts): Initialize allocated + string to prevent heap corruption. + 2000-09-04 Egor Duda <deo@logos-m.ru> * Makefile.in: Always add libltp headers directory to headers diff --git a/winsup/testsuite/libltp/include/test.h b/winsup/testsuite/libltp/include/test.h index 6f955172e..acfdfdf1b 100644 --- a/winsup/testsuite/libltp/include/test.h +++ b/winsup/testsuite/libltp/include/test.h @@ -190,14 +190,14 @@ 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, char *arg_fmt, ...); -extern void tst_resm(int ttype, char *arg_fmt, ...); +extern void tst_res(int ttype, 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)(), - char *arg_fmt, ...); + const char *arg_fmt, ...); extern void tst_brkloop(int ttype, char *fname, void (*func)(), - char *arg_fmt, ...); -extern void tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...); -extern void tst_brkloopm(int ttype, void (*func)(), char *arg_fmt, ...); + const char *arg_fmt, ...); +extern void tst_brkm(int ttype, void (*func)(), const char *arg_fmt, ...); +extern void tst_brkloopm(int ttype, void (*func)(), const char *arg_fmt, ...); extern int tst_environ(); extern void tst_exit(); diff --git a/winsup/testsuite/libltp/include/usctest.h b/winsup/testsuite/libltp/include/usctest.h index afdd45f6b..232e67a98 100644 --- a/winsup/testsuite/libltp/include/usctest.h +++ b/winsup/testsuite/libltp/include/usctest.h @@ -142,7 +142,7 @@ extern float STD_LOOP_DURATION, /* wall clock time to iterate */ /********************************************************************** * Prototype for parse_opts routine **********************************************************************/ -extern char *parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)()); +extern const char *parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)()); /* diff --git a/winsup/testsuite/libltp/lib/dataascii.c b/winsup/testsuite/libltp/lib/dataascii.c index 4b18e38b6..5bc201852 100644 --- a/winsup/testsuite/libltp/lib/dataascii.c +++ b/winsup/testsuite/libltp/lib/dataascii.c @@ -54,7 +54,7 @@ int offset; int ind; /* index into CHARS array */ char *chr; int chars_size; - char *charlist; + const char *charlist; chr=buffer; total=offset+bsize; @@ -90,7 +90,7 @@ char **errmsg; int ind; /* index into CHARS array */ char *chr; int chars_size; - char *charlist; + const char *charlist; chr=buffer; total=offset+bsize; diff --git a/winsup/testsuite/libltp/lib/open_flags.c b/winsup/testsuite/libltp/lib/open_flags.c index eed39ee33..3105955d4 100644 --- a/winsup/testsuite/libltp/lib/open_flags.c +++ b/winsup/testsuite/libltp/lib/open_flags.c @@ -109,7 +109,7 @@ static char Open_symbols[512]; /* space for openflags2symbols return value */ struct open_flag_t { - char *symbol; + const char *symbol; int flag; }; diff --git a/winsup/testsuite/libltp/lib/parse_opts.c b/winsup/testsuite/libltp/lib/parse_opts.c index 2758ebfb7..c40181395 100644 --- a/winsup/testsuite/libltp/lib/parse_opts.c +++ b/winsup/testsuite/libltp/lib/parse_opts.c @@ -144,8 +144,8 @@ static char *STD_start_break=0; /* original sbrk size */ static int Debug=0; struct std_option_t { - char *optstr; - char *help; + const char *optstr; + const char *help; char *flag; char **arg; } std_options[] = { @@ -197,7 +197,7 @@ static void usc_recressive_func(); /********************************************************************** * parse_opts: **********************************************************************/ -char * +const char * parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)()) { int found; /* flag to indicate that an option specified was */ @@ -236,6 +236,8 @@ parse_opts(int ac, char **av, option_t *user_optarr, void (*uhf)()) if (!optionstr) return "parse_opts: ERROR - Could not allocate memory for optionstr"; + optionstr[0] = '\0'; + for (i = 0; std_options[i].optstr; ++i) strcat(optionstr, std_options[i].optstr); if (user_optarr) diff --git a/winsup/testsuite/libltp/lib/tst_res.c b/winsup/testsuite/libltp/lib/tst_res.c index 394bc0403..7f0a003f3 100644 --- a/winsup/testsuite/libltp/lib/tst_res.c +++ b/winsup/testsuite/libltp/lib/tst_res.c @@ -153,7 +153,7 @@ */ static void check_env(); static void tst_condense(int tnum, int ttype, char *tmesg); -static void tst_print(char *tcid, int tnum, int trange, int ttype, char *tmesg); +static void tst_print(char *tcid, int tnum, int trange, int ttype, const char *tmesg); static void cat_file(char *filename); @@ -216,7 +216,7 @@ char *TESTDIR = NULL; * eventually get here to print the results. */ void -tst_res(int ttype, char *fname, char *arg_fmt, ...) +tst_res(int ttype, char *fname, const char *arg_fmt, ...) { int i; char tmesg[USERMESG]; /* expanded message */ @@ -407,7 +407,7 @@ tst_flush() * stream. */ static void -tst_print(char *tcid, int tnum, int trange, int ttype, char *tmesg) +tst_print(char *tcid, int tnum, int trange, int ttype, const char *tmesg) { char type[5]; @@ -581,7 +581,7 @@ tst_environ() * tests cases. */ void -tst_brk(int ttype, char *fname, void (*func)(), char *arg_fmt, ...) +tst_brk(int ttype, char *fname, void (*func)(), const char *arg_fmt, ...) { char tmesg[USERMESG]; /* expanded message */ @@ -652,7 +652,7 @@ tst_brk(int ttype, char *fname, void (*func)(), char *arg_fmt, ...) * remaining test cases within test case loop. */ void -tst_brkloop(int ttype, char *fname, void (*func)(), char *arg_fmt, ...) +tst_brkloop(int ttype, char *fname, void (*func)(), const char *arg_fmt, ...) { char tmesg[USERMESG]; /* expanded message */ @@ -727,7 +727,7 @@ tst_brkloop(int ttype, char *fname, void (*func)(), char *arg_fmt, ...) * tst_resm() - Interface to tst_res(), with no filename. */ void -tst_resm(int ttype, char *arg_fmt, ...) +tst_resm(int ttype, const char *arg_fmt, ...) { char tmesg[USERMESG]; /* expanded message */ @@ -752,7 +752,7 @@ tst_resm(int ttype, char *arg_fmt, ...) * tst_brkm() - Interface to tst_brk(), with no filename. */ void -tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...) +tst_brkm(int ttype, void (*func)(), const char *arg_fmt, ...) { char tmesg[USERMESG]; /* expanded message */ @@ -777,7 +777,7 @@ tst_brkm(int ttype, void (*func)(), char *arg_fmt, ...) * tst_brkloopm() - Interface to tst_brkloop(), with no filename. */ void -tst_brkloopm(int ttype, void (*func)(), char *arg_fmt, ...) +tst_brkloopm(int ttype, void (*func)(), const char *arg_fmt, ...) { char tmesg[USERMESG]; /* expanded message */ diff --git a/winsup/testsuite/libltp/lib/tst_sig.c b/winsup/testsuite/libltp/lib/tst_sig.c index c0d5bbf46..cccc2c7ee 100644 --- a/winsup/testsuite/libltp/lib/tst_sig.c +++ b/winsup/testsuite/libltp/lib/tst_sig.c @@ -150,7 +150,15 @@ tst_sig(int fork_flag, void (*handler)(), void (*cleanup)()) #ifdef SIGPTRESCHED case SIGPTRESCHED: #endif /* SIGPTRESCHED */ - +#ifdef __CYGWIN__ + case SIGSEGV: + case SIGILL: + case SIGTRAP: + case SIGABRT: + case SIGEMT: + case SIGFPE: + case SIGBUS: +#endif break; case SIGCLD: diff --git a/winsup/testsuite/winsup.api/ltp/access01.c b/winsup/testsuite/winsup.api/ltp/access01.c index e108d8194..aaf50cf32 100644 --- a/winsup/testsuite/winsup.api/ltp/access01.c +++ b/winsup/testsuite/winsup.api/ltp/access01.c @@ -157,7 +157,7 @@ int Ntc = sizeof(Test_cases) / sizeof(struct test_case_t); int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int tc; TST_TOTAL=Ntc; diff --git a/winsup/testsuite/winsup.api/ltp/access03.c b/winsup/testsuite/winsup.api/ltp/access03.c index d2c2c29f0..dc7dc5ee4 100644 --- a/winsup/testsuite/winsup.api/ltp/access03.c +++ b/winsup/testsuite/winsup.api/ltp/access03.c @@ -122,7 +122,7 @@ int exp_enos[]={EFAULT, 0}; /* List must end with 0 */ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ diff --git a/winsup/testsuite/winsup.api/ltp/alarm01.c b/winsup/testsuite/winsup.api/ltp/alarm01.c index bfae190c6..ac754e326 100644 --- a/winsup/testsuite/winsup.api/ltp/alarm01.c +++ b/winsup/testsuite/winsup.api/ltp/alarm01.c @@ -129,7 +129,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/alarm02.c b/winsup/testsuite/winsup.api/ltp/alarm02.c index 65e3c2b86..7c608da66 100644 --- a/winsup/testsuite/winsup.api/ltp/alarm02.c +++ b/winsup/testsuite/winsup.api/ltp/alarm02.c @@ -119,7 +119,7 @@ main(int ac, char **av) /* Parameters for usc code */ int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /* Parameters for alarm test */ char *buf[] = { "-1", "ULONG_MAX", "ULONG_MAX+1"}; diff --git a/winsup/testsuite/winsup.api/ltp/alarm03.c b/winsup/testsuite/winsup.api/ltp/alarm03.c index 4948bb0b4..275301374 100644 --- a/winsup/testsuite/winsup.api/ltp/alarm03.c +++ b/winsup/testsuite/winsup.api/ltp/alarm03.c @@ -110,7 +110,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/asyncio02.c b/winsup/testsuite/winsup.api/ltp/asyncio02.c index 23532da79..b7ccb62f5 100644 --- a/winsup/testsuite/winsup.api/ltp/asyncio02.c +++ b/winsup/testsuite/winsup.api/ltp/asyncio02.c @@ -151,7 +151,7 @@ main(int ac, char **av) int ret_val; /* return value from testrun call */ int eok; /* everything is ok flag */ int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int flag_cnt; Tst_nobuf=1; diff --git a/winsup/testsuite/winsup.api/ltp/chdir02.c b/winsup/testsuite/winsup.api/ltp/chdir02.c index 3d0e4f306..b59fd9338 100644 --- a/winsup/testsuite/winsup.api/ltp/chdir02.c +++ b/winsup/testsuite/winsup.api/ltp/chdir02.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/chmod02.c b/winsup/testsuite/winsup.api/ltp/chmod02.c index 6a3914518..41c3485e8 100644 --- a/winsup/testsuite/winsup.api/ltp/chmod02.c +++ b/winsup/testsuite/winsup.api/ltp/chmod02.c @@ -140,7 +140,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int ind; int mode; diff --git a/winsup/testsuite/winsup.api/ltp/chown01.c b/winsup/testsuite/winsup.api/ltp/chown01.c index 18184c279..1060637e2 100644 --- a/winsup/testsuite/winsup.api/ltp/chown01.c +++ b/winsup/testsuite/winsup.api/ltp/chown01.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/close08.c b/winsup/testsuite/winsup.api/ltp/close08.c index 8cb933221..7c9567fdb 100644 --- a/winsup/testsuite/winsup.api/ltp/close08.c +++ b/winsup/testsuite/winsup.api/ltp/close08.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/creat09.c b/winsup/testsuite/winsup.api/ltp/creat09.c index 794f66c55..0caa87973 100644 --- a/winsup/testsuite/winsup.api/ltp/creat09.c +++ b/winsup/testsuite/winsup.api/ltp/creat09.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/dup01.c b/winsup/testsuite/winsup.api/ltp/dup01.c index b7ed8de2b..d065f9dc1 100644 --- a/winsup/testsuite/winsup.api/ltp/dup01.c +++ b/winsup/testsuite/winsup.api/ltp/dup01.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/dup02.c b/winsup/testsuite/winsup.api/ltp/dup02.c index a16cb658c..3aac3e9f8 100644 --- a/winsup/testsuite/winsup.api/ltp/dup02.c +++ b/winsup/testsuite/winsup.api/ltp/dup02.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int nfds = sizeof(Fds) / sizeof(int); int ind; diff --git a/winsup/testsuite/winsup.api/ltp/dup04.c b/winsup/testsuite/winsup.api/ltp/dup04.c index a2a2c343a..85540db35 100644 --- a/winsup/testsuite/winsup.api/ltp/dup04.c +++ b/winsup/testsuite/winsup.api/ltp/dup04.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/dup05.c b/winsup/testsuite/winsup.api/ltp/dup05.c index 03314b10c..4f889cdcd 100644 --- a/winsup/testsuite/winsup.api/ltp/dup05.c +++ b/winsup/testsuite/winsup.api/ltp/dup05.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/execl01.c b/winsup/testsuite/winsup.api/ltp/execl01.c index 90a3ec540..b23716a0f 100644 --- a/winsup/testsuite/winsup.api/ltp/execl01.c +++ b/winsup/testsuite/winsup.api/ltp/execl01.c @@ -140,7 +140,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/execle01.c b/winsup/testsuite/winsup.api/ltp/execle01.c index 46a27a29e..f29d34f6a 100644 --- a/winsup/testsuite/winsup.api/ltp/execle01.c +++ b/winsup/testsuite/winsup.api/ltp/execle01.c @@ -139,7 +139,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/execlp01.c b/winsup/testsuite/winsup.api/ltp/execlp01.c index e8e4a5332..6bf97d4e1 100644 --- a/winsup/testsuite/winsup.api/ltp/execlp01.c +++ b/winsup/testsuite/winsup.api/ltp/execlp01.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/execv01.c b/winsup/testsuite/winsup.api/ltp/execv01.c index 5f2459668..b833e1c4f 100644 --- a/winsup/testsuite/winsup.api/ltp/execv01.c +++ b/winsup/testsuite/winsup.api/ltp/execv01.c @@ -139,7 +139,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/execve01.c b/winsup/testsuite/winsup.api/ltp/execve01.c index 402205b49..1abe72f23 100644 --- a/winsup/testsuite/winsup.api/ltp/execve01.c +++ b/winsup/testsuite/winsup.api/ltp/execve01.c @@ -140,7 +140,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/execvp01.c b/winsup/testsuite/winsup.api/ltp/execvp01.c index d7d0cc3b9..6f645d68d 100644 --- a/winsup/testsuite/winsup.api/ltp/execvp01.c +++ b/winsup/testsuite/winsup.api/ltp/execvp01.c @@ -139,7 +139,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ Tst_nobuf=1; /* turn off buffering in tst_ routines */ diff --git a/winsup/testsuite/winsup.api/ltp/fchmod01.c b/winsup/testsuite/winsup.api/ltp/fchmod01.c index 0e27179d8..ffcf37f66 100644 --- a/winsup/testsuite/winsup.api/ltp/fchmod01.c +++ b/winsup/testsuite/winsup.api/ltp/fchmod01.c @@ -133,7 +133,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fchown01.c b/winsup/testsuite/winsup.api/ltp/fchown01.c index 3c9340348..045f84892 100644 --- a/winsup/testsuite/winsup.api/ltp/fchown01.c +++ b/winsup/testsuite/winsup.api/ltp/fchown01.c @@ -133,7 +133,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl02.c b/winsup/testsuite/winsup.api/ltp/fcntl02.c index 70f7803b7..14fc1b61d 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl02.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl02.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl03.c b/winsup/testsuite/winsup.api/ltp/fcntl03.c index be8289f5e..93a9b9b1f 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl03.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl03.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl04.c b/winsup/testsuite/winsup.api/ltp/fcntl04.c index 2dd1eb982..d70843071 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl04.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl04.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl05.c b/winsup/testsuite/winsup.api/ltp/fcntl05.c index 44180a5bc..86f492aa7 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl05.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl05.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl07.c b/winsup/testsuite/winsup.api/ltp/fcntl07.c index 3af0ec6fd..c48e475ba 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl07.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl07.c @@ -193,7 +193,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int exec_return; /* return from do_exec */ int **tcp; /* testcase pointer (pointer to FD) */ diff --git a/winsup/testsuite/winsup.api/ltp/fcntl07B.c b/winsup/testsuite/winsup.api/ltp/fcntl07B.c index 2d03dcabe..51b88c278 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl07B.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl07B.c @@ -191,7 +191,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int exec_return; /* return from do_exec */ int **tcp; /* testcase pointer (pointer to FD) */ diff --git a/winsup/testsuite/winsup.api/ltp/fcntl08.c b/winsup/testsuite/winsup.api/ltp/fcntl08.c index b96e0c2d4..c4cbad461 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl08.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl08.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl09.c b/winsup/testsuite/winsup.api/ltp/fcntl09.c index fe37077ad..f10df71fe 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl09.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl09.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fcntl10.c b/winsup/testsuite/winsup.api/ltp/fcntl10.c index 96e1e12e6..8b23575b3 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl10.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl10.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fork01.c b/winsup/testsuite/winsup.api/ltp/fork01.c index d45d30be5..dfd412a5f 100644 --- a/winsup/testsuite/winsup.api/ltp/fork01.c +++ b/winsup/testsuite/winsup.api/ltp/fork01.c @@ -199,7 +199,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int fails; int kid_status, wait_status; diff --git a/winsup/testsuite/winsup.api/ltp/fork04.c b/winsup/testsuite/winsup.api/ltp/fork04.c index 9fb7a8c9f..3725d9f0f 100644 --- a/winsup/testsuite/winsup.api/ltp/fork04.c +++ b/winsup/testsuite/winsup.api/ltp/fork04.c @@ -320,7 +320,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int kid_status; /* status returned from child */ int wait_status; /* status of wait system call in parent */ int fails; /* indicates whether to continue with tests */ diff --git a/winsup/testsuite/winsup.api/ltp/fpathconf01.c b/winsup/testsuite/winsup.api/ltp/fpathconf01.c index 2c0f1a77b..bc4f2b2ad 100644 --- a/winsup/testsuite/winsup.api/ltp/fpathconf01.c +++ b/winsup/testsuite/winsup.api/ltp/fpathconf01.c @@ -156,7 +156,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fstat01.c b/winsup/testsuite/winsup.api/ltp/fstat01.c index 9bc9d5f64..9cb7959e4 100644 --- a/winsup/testsuite/winsup.api/ltp/fstat01.c +++ b/winsup/testsuite/winsup.api/ltp/fstat01.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/fsync01.c b/winsup/testsuite/winsup.api/ltp/fsync01.c index 1f077b7f5..57ddd5f98 100644 --- a/winsup/testsuite/winsup.api/ltp/fsync01.c +++ b/winsup/testsuite/winsup.api/ltp/fsync01.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/getegid01.c b/winsup/testsuite/winsup.api/ltp/getegid01.c index 7bbee0fac..d2c8a5240 100644 --- a/winsup/testsuite/winsup.api/ltp/getegid01.c +++ b/winsup/testsuite/winsup.api/ltp/getegid01.c @@ -131,7 +131,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ ; diff --git a/winsup/testsuite/winsup.api/ltp/geteuid01.c b/winsup/testsuite/winsup.api/ltp/geteuid01.c index 90f289caa..b4840f52c 100644 --- a/winsup/testsuite/winsup.api/ltp/geteuid01.c +++ b/winsup/testsuite/winsup.api/ltp/geteuid01.c @@ -131,7 +131,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ ; diff --git a/winsup/testsuite/winsup.api/ltp/getgid01.c b/winsup/testsuite/winsup.api/ltp/getgid01.c index ff146fc1f..fcde734a0 100644 --- a/winsup/testsuite/winsup.api/ltp/getgid01.c +++ b/winsup/testsuite/winsup.api/ltp/getgid01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/getgroups01.c b/winsup/testsuite/winsup.api/ltp/getgroups01.c index ab39e8613..6b935f293 100644 --- a/winsup/testsuite/winsup.api/ltp/getgroups01.c +++ b/winsup/testsuite/winsup.api/ltp/getgroups01.c @@ -97,7 +97,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *ptr; /* message returned from parse_opts */ + const char *ptr; /* message returned from parse_opts */ int i, /* counter */ group, /* return value from Getgid() call */ diff --git a/winsup/testsuite/winsup.api/ltp/getgroups02.c b/winsup/testsuite/winsup.api/ltp/getgroups02.c index 977ae529d..b517c7617 100644 --- a/winsup/testsuite/winsup.api/ltp/getgroups02.c +++ b/winsup/testsuite/winsup.api/ltp/getgroups02.c @@ -139,7 +139,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/gethostid01.c b/winsup/testsuite/winsup.api/ltp/gethostid01.c index 7d43992b2..2d4a18755 100644 --- a/winsup/testsuite/winsup.api/ltp/gethostid01.c +++ b/winsup/testsuite/winsup.api/ltp/gethostid01.c @@ -129,7 +129,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ ; diff --git a/winsup/testsuite/winsup.api/ltp/gethostname01.c b/winsup/testsuite/winsup.api/ltp/gethostname01.c index 2e2e52058..2f94db725 100644 --- a/winsup/testsuite/winsup.api/ltp/gethostname01.c +++ b/winsup/testsuite/winsup.api/ltp/gethostname01.c @@ -131,7 +131,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ char hname[100]; /* host name */ diff --git a/winsup/testsuite/winsup.api/ltp/getpgrp01.c b/winsup/testsuite/winsup.api/ltp/getpgrp01.c index 49c931b02..bd3a89117 100644 --- a/winsup/testsuite/winsup.api/ltp/getpgrp01.c +++ b/winsup/testsuite/winsup.api/ltp/getpgrp01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/getpid01.c b/winsup/testsuite/winsup.api/ltp/getpid01.c index 0f1720349..58d6b0579 100644 --- a/winsup/testsuite/winsup.api/ltp/getpid01.c +++ b/winsup/testsuite/winsup.api/ltp/getpid01.c @@ -130,7 +130,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/getppid01.c b/winsup/testsuite/winsup.api/ltp/getppid01.c index d001fd1f6..9eab5dfc2 100644 --- a/winsup/testsuite/winsup.api/ltp/getppid01.c +++ b/winsup/testsuite/winsup.api/ltp/getppid01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/getuid01.c b/winsup/testsuite/winsup.api/ltp/getuid01.c index c4d779490..58920ed34 100644 --- a/winsup/testsuite/winsup.api/ltp/getuid01.c +++ b/winsup/testsuite/winsup.api/ltp/getuid01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/kill09.c b/winsup/testsuite/winsup.api/ltp/kill09.c index d1b1c3c58..9d6b0a181 100644 --- a/winsup/testsuite/winsup.api/ltp/kill09.c +++ b/winsup/testsuite/winsup.api/ltp/kill09.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int status; /*************************************************************** diff --git a/winsup/testsuite/winsup.api/ltp/link02.c b/winsup/testsuite/winsup.api/ltp/link02.c index 330337a8e..61294f16f 100644 --- a/winsup/testsuite/winsup.api/ltp/link02.c +++ b/winsup/testsuite/winsup.api/ltp/link02.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ struct stat fbuf, lbuf; /*************************************************************** diff --git a/winsup/testsuite/winsup.api/ltp/link03.c b/winsup/testsuite/winsup.api/ltp/link03.c index 95c3a7674..7b4395853 100644 --- a/winsup/testsuite/winsup.api/ltp/link03.c +++ b/winsup/testsuite/winsup.api/ltp/link03.c @@ -155,7 +155,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ struct stat fbuf, lbuf; int cnt; int nlinks; diff --git a/winsup/testsuite/winsup.api/ltp/link04.c b/winsup/testsuite/winsup.api/ltp/link04.c index 21a5471a2..7f2390139 100644 --- a/winsup/testsuite/winsup.api/ltp/link04.c +++ b/winsup/testsuite/winsup.api/ltp/link04.c @@ -213,7 +213,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ char *fname1, *fname2; char *desc1, *desc2; int ind; diff --git a/winsup/testsuite/winsup.api/ltp/link05.c b/winsup/testsuite/winsup.api/ltp/link05.c index f2c52ae45..5078a6a3f 100644 --- a/winsup/testsuite/winsup.api/ltp/link05.c +++ b/winsup/testsuite/winsup.api/ltp/link05.c @@ -155,7 +155,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ struct stat fbuf, lbuf; int cnt; char lname[255]; diff --git a/winsup/testsuite/winsup.api/ltp/lseek01.c b/winsup/testsuite/winsup.api/ltp/lseek01.c index e6d70a46b..32756fedd 100644 --- a/winsup/testsuite/winsup.api/ltp/lseek01.c +++ b/winsup/testsuite/winsup.api/ltp/lseek01.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int ind; int offset; diff --git a/winsup/testsuite/winsup.api/ltp/lseek02.c b/winsup/testsuite/winsup.api/ltp/lseek02.c index bce2b954a..9ad906b5b 100644 --- a/winsup/testsuite/winsup.api/ltp/lseek02.c +++ b/winsup/testsuite/winsup.api/ltp/lseek02.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/lseek04.c b/winsup/testsuite/winsup.api/ltp/lseek04.c index a79d0cf7c..d1c3c36a1 100644 --- a/winsup/testsuite/winsup.api/ltp/lseek04.c +++ b/winsup/testsuite/winsup.api/ltp/lseek04.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/lseek05.c b/winsup/testsuite/winsup.api/ltp/lseek05.c index 669156b20..0d51643f0 100644 --- a/winsup/testsuite/winsup.api/ltp/lseek05.c +++ b/winsup/testsuite/winsup.api/ltp/lseek05.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/lstat02.c b/winsup/testsuite/winsup.api/ltp/lstat02.c index 5f491be95..f6b97d78a 100644 --- a/winsup/testsuite/winsup.api/ltp/lstat02.c +++ b/winsup/testsuite/winsup.api/ltp/lstat02.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/mkdir01.c b/winsup/testsuite/winsup.api/ltp/mkdir01.c index b2ed07fe0..80f9bb6cc 100644 --- a/winsup/testsuite/winsup.api/ltp/mkdir01.c +++ b/winsup/testsuite/winsup.api/ltp/mkdir01.c @@ -128,7 +128,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** diff --git a/winsup/testsuite/winsup.api/ltp/mkdir08.c b/winsup/testsuite/winsup.api/ltp/mkdir08.c index 515ac83c7..8378aba34 100644 --- a/winsup/testsuite/winsup.api/ltp/mkdir08.c +++ b/winsup/testsuite/winsup.api/ltp/mkdir08.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/mknod01.c b/winsup/testsuite/winsup.api/ltp/mknod01.c index f009b9dda..32c7fe1e2 100644 --- a/winsup/testsuite/winsup.api/ltp/mknod01.c +++ b/winsup/testsuite/winsup.api/ltp/mknod01.c @@ -159,7 +159,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ TST_TOTAL=(sizeof(tcases)/sizeof(tcases[0])); /*************************************************************** diff --git a/winsup/testsuite/winsup.api/ltp/nice05.c b/winsup/testsuite/winsup.api/ltp/nice05.c index 77135d451..602971f8a 100644 --- a/winsup/testsuite/winsup.api/ltp/nice05.c +++ b/winsup/testsuite/winsup.api/ltp/nice05.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/open03.c b/winsup/testsuite/winsup.api/ltp/open03.c index 312093ba4..b8dce9cee 100644 --- a/winsup/testsuite/winsup.api/ltp/open03.c +++ b/winsup/testsuite/winsup.api/ltp/open03.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/pathconf01.c b/winsup/testsuite/winsup.api/ltp/pathconf01.c index fce0c041f..f87c6e239 100644 --- a/winsup/testsuite/winsup.api/ltp/pathconf01.c +++ b/winsup/testsuite/winsup.api/ltp/pathconf01.c @@ -148,7 +148,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ TST_TOTAL=(sizeof(args)/sizeof(args[0]))-1; diff --git a/winsup/testsuite/winsup.api/ltp/pause01.c b/winsup/testsuite/winsup.api/ltp/pause01.c index 109445646..28187c39f 100644 --- a/winsup/testsuite/winsup.api/ltp/pause01.c +++ b/winsup/testsuite/winsup.api/ltp/pause01.c @@ -130,7 +130,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/readlink02.c b/winsup/testsuite/winsup.api/ltp/readlink02.c index 8bd37a4ed..c0ed6f154 100644 --- a/winsup/testsuite/winsup.api/ltp/readlink02.c +++ b/winsup/testsuite/winsup.api/ltp/readlink02.c @@ -134,7 +134,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/rename02.c b/winsup/testsuite/winsup.api/ltp/rename02.c index f2390e8bf..28890f119 100644 --- a/winsup/testsuite/winsup.api/ltp/rename02.c +++ b/winsup/testsuite/winsup.api/ltp/rename02.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/rmdir04.c b/winsup/testsuite/winsup.api/ltp/rmdir04.c index 304f37d25..5cf84f770 100644 --- a/winsup/testsuite/winsup.api/ltp/rmdir04.c +++ b/winsup/testsuite/winsup.api/ltp/rmdir04.c @@ -138,7 +138,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/select01.c b/winsup/testsuite/winsup.api/ltp/select01.c index 69bb8cd63..6ff0fe87b 100644 --- a/winsup/testsuite/winsup.api/ltp/select01.c +++ b/winsup/testsuite/winsup.api/ltp/select01.c @@ -147,7 +147,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ struct timeval timeout; long test_time = 0; /* in usecs */ diff --git a/winsup/testsuite/winsup.api/ltp/setgid01.c b/winsup/testsuite/winsup.api/ltp/setgid01.c index d05db1801..50b339d03 100644 --- a/winsup/testsuite/winsup.api/ltp/setgid01.c +++ b/winsup/testsuite/winsup.api/ltp/setgid01.c @@ -131,7 +131,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setgroups01.c b/winsup/testsuite/winsup.api/ltp/setgroups01.c index dfdb6b763..dc7bd1d47 100644 --- a/winsup/testsuite/winsup.api/ltp/setgroups01.c +++ b/winsup/testsuite/winsup.api/ltp/setgroups01.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setpgid01.c b/winsup/testsuite/winsup.api/ltp/setpgid01.c index 8e26e0999..e580a34f7 100644 --- a/winsup/testsuite/winsup.api/ltp/setpgid01.c +++ b/winsup/testsuite/winsup.api/ltp/setpgid01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setregid01.c b/winsup/testsuite/winsup.api/ltp/setregid01.c index ff30f9c39..e247f6c61 100644 --- a/winsup/testsuite/winsup.api/ltp/setregid01.c +++ b/winsup/testsuite/winsup.api/ltp/setregid01.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setreuid01.c b/winsup/testsuite/winsup.api/ltp/setreuid01.c index ce86a2c07..67f3bae4a 100644 --- a/winsup/testsuite/winsup.api/ltp/setreuid01.c +++ b/winsup/testsuite/winsup.api/ltp/setreuid01.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setuid01.c b/winsup/testsuite/winsup.api/ltp/setuid01.c index 75b6b8902..4437108c8 100644 --- a/winsup/testsuite/winsup.api/ltp/setuid01.c +++ b/winsup/testsuite/winsup.api/ltp/setuid01.c @@ -133,7 +133,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/setuid02.c b/winsup/testsuite/winsup.api/ltp/setuid02.c index 11b19588b..65576af62 100644 --- a/winsup/testsuite/winsup.api/ltp/setuid02.c +++ b/winsup/testsuite/winsup.api/ltp/setuid02.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/stat05.c b/winsup/testsuite/winsup.api/ltp/stat05.c index 52652536e..ba102e3cb 100644 --- a/winsup/testsuite/winsup.api/ltp/stat05.c +++ b/winsup/testsuite/winsup.api/ltp/stat05.c @@ -137,7 +137,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/symlink01.c b/winsup/testsuite/winsup.api/ltp/symlink01.c index f202ee2bc..d0ad0d5ac 100644 --- a/winsup/testsuite/winsup.api/ltp/symlink01.c +++ b/winsup/testsuite/winsup.api/ltp/symlink01.c @@ -340,7 +340,7 @@ void do_open(); /* * Lets be optimistic and only define messages for passing test cases */ -char *msgs[] = { +const char *msgs[] = { "Creation of symbolic link file to no object file is ok", "Creation of symbolic link file and object file via symbolic link is ok", "Creating an existing symbolic link file error is caught", @@ -515,7 +515,7 @@ main(int argc, char *argv[]) int do_syscalltests(); void cleanup(); int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** diff --git a/winsup/testsuite/winsup.api/ltp/symlink02.c b/winsup/testsuite/winsup.api/ltp/symlink02.c index d303e822f..9fbecf202 100644 --- a/winsup/testsuite/winsup.api/ltp/symlink02.c +++ b/winsup/testsuite/winsup.api/ltp/symlink02.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/sync01.c b/winsup/testsuite/winsup.api/ltp/sync01.c index acb1782a9..a32b24ba8 100644 --- a/winsup/testsuite/winsup.api/ltp/sync01.c +++ b/winsup/testsuite/winsup.api/ltp/sync01.c @@ -130,7 +130,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/time01.c b/winsup/testsuite/winsup.api/ltp/time01.c index 60da86295..570dedc6b 100644 --- a/winsup/testsuite/winsup.api/ltp/time01.c +++ b/winsup/testsuite/winsup.api/ltp/time01.c @@ -131,7 +131,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/times01.c b/winsup/testsuite/winsup.api/ltp/times01.c index e80aaaf0d..0d8d1d0ca 100644 --- a/winsup/testsuite/winsup.api/ltp/times01.c +++ b/winsup/testsuite/winsup.api/ltp/times01.c @@ -134,7 +134,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/ulimit01.c b/winsup/testsuite/winsup.api/ltp/ulimit01.c index 2ca9672be..655c9e32e 100644 --- a/winsup/testsuite/winsup.api/ltp/ulimit01.c +++ b/winsup/testsuite/winsup.api/ltp/ulimit01.c @@ -157,7 +157,7 @@ main(int ac, char **av) { int lc; /* loop counter */ int i; /* inner loop (test case) counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ int tmp; TST_TOTAL = sizeof(Scenarios)/sizeof(struct limits_t); diff --git a/winsup/testsuite/winsup.api/ltp/umask01.c b/winsup/testsuite/winsup.api/ltp/umask01.c index fcf767b7e..04b385145 100644 --- a/winsup/testsuite/winsup.api/ltp/umask01.c +++ b/winsup/testsuite/winsup.api/ltp/umask01.c @@ -132,7 +132,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/uname01.c b/winsup/testsuite/winsup.api/ltp/uname01.c index 6e46f9b24..e2f8f8b0c 100644 --- a/winsup/testsuite/winsup.api/ltp/uname01.c +++ b/winsup/testsuite/winsup.api/ltp/uname01.c @@ -133,7 +133,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/unlink05.c b/winsup/testsuite/winsup.api/ltp/unlink05.c index 0bb5b7393..63e97df89 100644 --- a/winsup/testsuite/winsup.api/ltp/unlink05.c +++ b/winsup/testsuite/winsup.api/ltp/unlink05.c @@ -136,7 +136,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/unlink06.c b/winsup/testsuite/winsup.api/ltp/unlink06.c index 5fc323303..3d0690383 100644 --- a/winsup/testsuite/winsup.api/ltp/unlink06.c +++ b/winsup/testsuite/winsup.api/ltp/unlink06.c @@ -139,7 +139,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/unlink07.c b/winsup/testsuite/winsup.api/ltp/unlink07.c index cf48a4660..889b60959 100644 --- a/winsup/testsuite/winsup.api/ltp/unlink07.c +++ b/winsup/testsuite/winsup.api/ltp/unlink07.c @@ -166,7 +166,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ char *fname; char *desc; int ind; diff --git a/winsup/testsuite/winsup.api/ltp/wait02.c b/winsup/testsuite/winsup.api/ltp/wait02.c index 6c91f4f05..8b4f41b09 100644 --- a/winsup/testsuite/winsup.api/ltp/wait02.c +++ b/winsup/testsuite/winsup.api/ltp/wait02.c @@ -135,7 +135,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options diff --git a/winsup/testsuite/winsup.api/ltp/write01.c b/winsup/testsuite/winsup.api/ltp/write01.c index e137ee9cd..0fae9aea1 100644 --- a/winsup/testsuite/winsup.api/ltp/write01.c +++ b/winsup/testsuite/winsup.api/ltp/write01.c @@ -141,7 +141,7 @@ int main(int ac, char **av) { int lc; /* loop counter */ - char *msg; /* message returned from parse_opts */ + const char *msg; /* message returned from parse_opts */ /*************************************************************** * parse standard options |