From 65d436509b8e1d66629f91810dffabef56173996 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 25 Sep 2009 23:57:09 +0000 Subject: [PATCH] * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]: Add declarations. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/unistd.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 63182d7e7..58c24cfcf 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-09-24 Eric Blake + + * libc/include/sys/unistd.h (eaccess, euidaccess) [__CYGWIN__]: + Add declarations. + 2009-09-23 Corinna Vinschen * libc/locale/locale.c: Drop Cygwin-specific windows.h include. diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 5128d3034..388ba4ee7 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 *, ... ));