summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-12-14 19:18:01 +0000
committerchristos <christos@NetBSD.org>2006-12-14 19:18:01 +0000
commit33d6b113f25d858df1549e5eb7029107d9c37fc8 (patch)
tree91b8e95460f146cdd31f5dae6a04b13fb771229e /include
parenta4e596d708dd194d95764023f1685be79f2c00e9 (diff)
moved string_to_flags and flags_to_string from ls to libutil.
Diffstat (limited to 'include')
-rw-r--r--include/util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/util.h b/include/util.h
index 080ed60ad69..79c8039606a 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.44 2006/11/20 20:33:33 christos Exp $ */
+/* $NetBSD: util.h,v 1.45 2006/12/14 19:18:01 christos Exp $ */
/*-
* Copyright (c) 1995
@@ -73,6 +73,7 @@ struct sockaddr;
typedef struct pw_policy *pw_policy_t;
+char *flags_to_string(u_long, const char *);
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
const char *getbootfile(void);
off_t getlabeloffset(void);
@@ -116,6 +117,7 @@ int secure_path(const char *);
int snprintb(char *, size_t, const char *, uint64_t);
int sockaddr_snprintf(char *, size_t, const char *,
const struct sockaddr *);
+int string_to_flags(char **, u_long *, u_long *);
int ttyaction(const char *, const char *, const char *);
int ttylock(const char *, int, pid_t *);
char *ttymsg(struct iovec *, int, const char *, int);
@@ -139,7 +141,6 @@ int easprintf(char ** __restrict, const char * __restrict, ...)
int evasprintf(char ** __restrict, const char * __restrict,
_BSD_VA_LIST_)
__attribute__((__format__(__printf__, 2, 0)));
-
__END_DECLS
#endif /* !_UTIL_H_ */