Annoying prototypes for execv* functions in V.4 <sys/unistd.h>

Ron Guilmette rfg at lupine.ncd.com
Thu Jan 31 08:59:21 AEST 1991


If you use and/or sell System V Release 4 you may want to fix up your
<sys/unistd.h> file.

It probably contains:

extern int execv(const char *, char *const *);
extern int execve(const char *, char *const *, char *const *);
extern int execvp(const char *, char *const *);

I'm fairly sure that these declarations should be changed to:

extern int execv(const char *, const char *const *);
extern int execve(const char *, const char *const *, const char *const *);
extern int execvp(const char *, const char *const *);

If your company sells V.4 ports to the general public (either on your
company's own hardware or on somebody else's) I encourage you to fix
this annoying little problem in the systems that your company distributes
to its customers.

Please don't make us all suffer with this annoying glitch.



More information about the Comp.bugs.sys5 mailing list