From 89b6034299281fb00a156312952454fd8c369264 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 14 Jan 2015 21:19:26 +0000 Subject: [PATCH] 2015-01-14 Joel Sherrill * libc/include/sys/unistd.h [__BSD_VISIBLE]: Add issetugid() prototype. --- newlib/ChangeLog | 4 ++++ newlib/libc/include/sys/unistd.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4930593d2..ac87504b4 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2015-01-14 Joel Sherrill + + * libc/include/sys/unistd.h [__BSD_VISIBLE]: Add issetugid() prototype. + 2015-01-14 Joel Sherrill * doc/makedoc.c: Use uintptr_t to avoid int/pointer size warnings diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index a741383d0..eb26921cc 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -117,6 +117,9 @@ char * _EXFUN(getwd, (char *__buf )); int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser)); #endif int _EXFUN(isatty, (int __fildes )); +#if __BSD_VISIBLE +int _EXFUN(issetugid, (void)); +#endif #if !defined(__INSIDE_CYGWIN__) int _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group )); #endif -- 2.43.5