summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/process.h35
2 files changed, 24 insertions, 17 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 15fdcaf37..1fc90c13c 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-03 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * 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.
+
2003-07-01 Earnie Boyd <earnie@users.sf.net>
* include/_mingw.h (small, hyper): Change to __small and __hyper to
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