This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: adding euidaccess for cygwin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Eric Blake on 9/25/2009 5:55 PM:
> According to Corinna Vinschen on 9/25/2009 2:31 AM:
>>> 2009-09-24 Eric Blake <ebb9@byu.net>
>>>
>>> * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]:
>>> Add declarations.
>> Since that only affects Cygwin anyway, this is ok after you applied the
>> corresponding patch to Cygwin.
>
> Now applied.
And a followup for two more declarations.
2009-09-26 Eric Blake <ebb9@byu.net>
* libc/include/sys/unistd.h (execvpe, fexecve) [__CYGWIN__]:
Add declarations.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkq+gLgACgkQ84KuGfSFAYD6+wCdG3OlNWw8ek7ZTTN1esLEf1PZ
b7UAnjIbWYcbpIKumabeMZFv8vnQ3rNk
=oypi
-----END PGP SIGNATURE-----
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 388ba4e..a91f105 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -49,6 +49,7 @@ int _EXFUN(execv, (const char *__path, char * const __argv[] ));
int _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] ));
int _EXFUN(execvp, (const char *__file, char * const __argv[] ));
#if defined(__CYGWIN__)
+int _EXFUN(execvpe, (const char *__file, char * const __argv[], char * const __envp[] ));
int _EXFUN(faccessat, (int __dirfd, const char *__path, int __mode, int __flags));
#endif
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__SPU__)
@@ -60,6 +61,7 @@ int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
#endif
#if defined(__CYGWIN__)
int _EXFUN(fchownat, (int __dirfd, const char *__path, uid_t __owner, gid_t __group, int __flags));
+int _EXFUN(fexecve, (int __fd, char * const __argv[], char * const __envp[] ));
#endif
pid_t _EXFUN(fork, (void ));
long _EXFUN(fpathconf, (int __fd, int __name ));
--
1.6.5.rc1