From 70cc2f081aa9fae9968c569b7ca1b1c3b239a497 Mon Sep 17 00:00:00 2001 From: mickey <> Date: Wed, 19 Jul 2000 19:26:04 +0000 Subject: [PATCH] from freebsd: strtofflags/fflagstostr to convert file flags to/from binary from/into a string as used in chflags(1). use u_int32_t instead of u_long (as freebsd does). increase libc minor. millert@ ok. --- src/include/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index d1b1eef5..65084f6c 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.31 2000/04/20 06:34:18 deraadt Exp $ */ +/* $OpenBSD: unistd.h,v 1.32 2000/07/19 19:26:04 mickey Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -132,6 +132,7 @@ void endusershell __P((void)); int exect __P((const char *, char * const *, char * const *)); int fchdir __P((int)); int fchown __P((int, uid_t, gid_t)); +char *fflagstostr __P((u_int32_t)); int fsync __P((int)); int ftruncate __P((int, off_t)); int getdomainname __P((char *, size_t)); @@ -194,6 +195,7 @@ int setreuid __P((int, int)); int setrgid __P((gid_t)); int setruid __P((uid_t)); void setusershell __P((void)); +int strtofflags __P((char **, u_int32_t *, u_int32_t *)); void swab __P((const void *, void *, size_t)); int swapon __P((const char *)); int swapctl __P((int cmd, const void *arg, int misc));