This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
adding euidaccess for cygwin
- From: Eric Blake <ebb9 at byu dot net>
- To: newlib at sources dot redhat dot com
- Date: Thu, 24 Sep 2009 21:17:21 -0600
- Subject: adding euidaccess for cygwin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Is it okay for me to apply this patch, for cygwin?
2009-09-24 Eric Blake <ebb9@byu.net>
* libc/include/sys/unistd.h (eaccess, euidaccess) [__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/
iEYEARECAAYFAkq8NkEACgkQ84KuGfSFAYAr8QCgtSUnmpVO11InBCFaPQIRI79u
fMYAoJlO6Kc1ajhkEPXrwrWG3vZtP52n
=LR1R
-----END PGP SIGNATURE-----
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 5128d30..388ba4e 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -38,7 +38,9 @@ int _EXFUN(daemon, (int nochdir, int noclose));
int _EXFUN(dup, (int __fildes ));
int _EXFUN(dup2, (int __fildes, int __fildes2 ));
#if defined(__CYGWIN__)
+int _EXFUN(eaccess, (const char *__path, int __mode));
void _EXFUN(endusershell, (void));
+int _EXFUN(euidaccess, (const char *__path, int __mode));
#endif
int _EXFUN(execl, (const char *__path, const char *, ... ));
int _EXFUN(execle, (const char *__path, const char *, ... ));
--
1.6.5.rc1