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:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-07-03 02:09:25 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2003-07-03 02:09:25 +0400
commite298efab0a6c34c935a934438ec1b54c7df007ca (patch)
tree4f1aea9c0c0c84c4f5011b04e38aeadfae94011f /winsup/mingw/include/process.h
parent282eff9a6a90fed4d59196f8dced9b941ccda9af (diff)
* include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
_execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp, execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
Diffstat (limited to 'winsup/mingw/include/process.h')
-rw-r--r--winsup/mingw/include/process.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/winsup/mingw/include/process.h b/winsup/mingw/include/process.h
index 3fb8ed7e0..67277db8f 100644
--- a/winsup/mingw/include/process.h
+++ b/winsup/mingw/include/process.h
@@ -81,22 +81,23 @@ _CRTIMP int __cdecl _cwait (int*, _pid_t, int);
_CRTIMP _pid_t __cdecl _getpid(void);
_CRTIMP int __cdecl _execl (const char*, const char*, ...);
-_CRTIMP int __cdecl _execle (const char*, const char*, ...);
+_CRTIMP int __cdecl _execle (const char*, const char*, ...);
_CRTIMP int __cdecl _execlp (const char*, const char*, ...);
_CRTIMP int __cdecl _execlpe (const char*, const char*, ...);
-_CRTIMP int __cdecl _execv (const char*, char* const*);
-_CRTIMP int __cdecl _execve (const char*, char* const*, char* const*);
-_CRTIMP int __cdecl _execvp (const char*, char* const*);
-_CRTIMP int __cdecl _execvpe (const char*, char* const*, char* const*);
+_CRTIMP int __cdecl _execv (const char*, const char* const*);
+_CRTIMP int __cdecl _execve (const char*, const char* const*, const char* const*);
+_CRTIMP int __cdecl _execvp (const char*, const char* const*);
+_CRTIMP int __cdecl _execvpe (const char*, const char* const*, const char* const*);
_CRTIMP int __cdecl _spawnl (int, const char*, const char*, ...);
_CRTIMP int __cdecl _spawnle (int, const char*, const char*, ...);
_CRTIMP int __cdecl _spawnlp (int, const char*, const char*, ...);
_CRTIMP int __cdecl _spawnlpe (int, const char*, const char*, ...);
-_CRTIMP int __cdecl _spawnv (int, const char*, char* const*);
-_CRTIMP int __cdecl _spawnve (int, const char*, char* const*, char* const*);
-_CRTIMP int __cdecl _spawnvp (int, const char*, char* const*);
-_CRTIMP int __cdecl _spawnvpe (int, const char*, char* const*, char* const*);
+_CRTIMP int __cdecl _spawnv (int, const char*, const char* const*);
+_CRTIMP int __cdecl _spawnve (int, const char*, const char* const*, const char* const*);
+_CRTIMP int __cdecl _spawnvp (int, const char*, const char* const*);
+_CRTIMP int __cdecl _spawnvpe (int, const char*, const char* const*, const char* const*);
+
/*
* The functions _beginthreadex and _endthreadex are not provided by CRTDLL.
@@ -132,18 +133,18 @@ _CRTIMP int __cdecl execl (const char*, const char*, ...);
_CRTIMP int __cdecl execle (const char*, const char*, ...);
_CRTIMP int __cdecl execlp (const char*, const char*, ...);
_CRTIMP int __cdecl execlpe (const char*, const char*, ...);
-_CRTIMP int __cdecl execv (const char*, char* const*);
-_CRTIMP int __cdecl execve (const char*, char* const*, char* const*);
-_CRTIMP int __cdecl execvp (const char*, char* const*);
-_CRTIMP int __cdecl execvpe (const char*, char* const*, char* const*);
+_CRTIMP int __cdecl execv (const char*, const char* const*);
+_CRTIMP int __cdecl execve (const char*, const char* const*, const char* const*);
+_CRTIMP int __cdecl execvp (const char*, const char* const*);
+_CRTIMP int __cdecl execvpe (const char*, const char* const*, const char* const*);
_CRTIMP int __cdecl spawnl (int, const char*, const char*, ...);
_CRTIMP int __cdecl spawnle (int, const char*, const char*, ...);
_CRTIMP int __cdecl spawnlp (int, const char*, const char*, ...);
_CRTIMP int __cdecl spawnlpe (int, const char*, const char*, ...);
-_CRTIMP int __cdecl spawnv (int, const char*, char* const*);
-_CRTIMP int __cdecl spawnve (int, const char*, char* const*, char* const*);
-_CRTIMP int __cdecl spawnvp (int, const char*, char* const*);
-_CRTIMP int __cdecl spawnvpe (int, const char*, char* const*, char* const*);
+_CRTIMP int __cdecl spawnv (int, const char*, const char* const*);
+_CRTIMP int __cdecl spawnve (int, const char*, const char* const*, const char* const*);
+_CRTIMP int __cdecl spawnvp (int, const char*, const char* const*);
+_CRTIMP int __cdecl spawnvpe (int, const char*, const char* const*, const char* const*);
#endif /* Not _NO_OLDNAMES */
#ifdef __cplusplus