summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2011-11-09 15:34:18 +0000
committerfgsch <fgsch@openbsd.org>2011-11-09 15:34:18 +0000
commit3ebeadf023cc046759f1070455fa2d3a3d527dc1 (patch)
tree1674589c99095706ed41a7f252d88d7c18fc5137 /include/unistd.h
parentopenbsd will never support __ARMEB__, so remove it here (diff)
downloadwireguard-openbsd-3ebeadf023cc046759f1070455fa2d3a3d527dc1.tar.xz
wireguard-openbsd-3ebeadf023cc046759f1070455fa2d3a3d527dc1.zip
getcwd() buffer's length can be smaller than 1024. In that case it will
fail with errno set to ERANGE if not enough room is provided. Similar for getlogin_r() so remove minbytes enforcement attribute. ok kettenis@ guenther@ deraadt@ on getcwd, deraadt@ on getlogin_r.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 3c27f525ab7..b08399c3d2f 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.65 2011/07/18 17:29:49 matthew Exp $ */
+/* $OpenBSD: unistd.h,v 1.66 2011/11/09 15:34:18 fgsch Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -85,8 +85,7 @@ int execvp(const char *, char * const *);
pid_t fork(void);
long fpathconf(int, int);
char *getcwd(char *, size_t)
- __attribute__((__bounded__(__string__,1,2)))
- __attribute__((__bounded__(__minbytes__,1,1024)));
+ __attribute__((__bounded__(__string__,1,2)));
gid_t getegid(void);
uid_t geteuid(void);
gid_t getgid(void);
@@ -139,8 +138,7 @@ extern char *suboptarg; /* getsubopt(3) external variable */
int fsync(int);
int ftruncate(int, off_t);
int getlogin_r(char *, size_t)
- __attribute__((__bounded__(__string__,1,2)))
- __attribute__((__bounded__(__minbytes__,1,32)));
+ __attribute__((__bounded__(__string__,1,2)));
#endif
#if __XPG_VISIBLE || __BSD_VISIBLE