OSDN Git Service

* include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
authordannysmith <dannysmith>
Wed, 2 Jul 2003 22:09:25 +0000 (22:09 +0000)
committerdannysmith <dannysmith>
Wed, 2 Jul 2003 22:09:25 +0000 (22:09 +0000)
_execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.

winsup/mingw/ChangeLog
winsup/mingw/include/process.h

index 15fdcaf..1fc90c1 100644 (file)
@@ -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
index 3fb8ed7..67277db 100644 (file)
@@ -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