aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a2b9a82b2..ece1c9d91 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -338,17 +338,20 @@ uint16_t xatou16(const char *numstr);
338/* These parse entries in /etc/passwd and /etc/group. This is desirable 338/* These parse entries in /etc/passwd and /etc/group. This is desirable
339 * for BusyBox since we want to avoid using the glibc NSS stuff, which 339 * for BusyBox since we want to avoid using the glibc NSS stuff, which
340 * increases target size and is often not needed on embedded systems. */ 340 * increases target size and is often not needed on embedded systems. */
341extern long bb_xgetpwnam(const char *name); 341extern long xuname2uid(const char *name);
342extern long bb_xgetgrnam(const char *name); 342extern long xgroup2gid(const char *name);
343/*extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix);*/ 343/* wrapper: allows string to contain numeric uid or gid */
344extern char *bb_getpwuid(char *name, long uid, int bufsize); 344extern unsigned long get_ug_id(const char *s, long (*xname2id)(const char *));
345extern char *bb_getgrgid(char *group, long gid, int bufsize); 345/* from chpst. Does not die, returns 0 on failure */
346/* from chpst */
347struct bb_uidgid_t { 346struct bb_uidgid_t {
348 uid_t uid; 347 uid_t uid;
349 gid_t gid; 348 gid_t gid;
350}; 349};
351extern unsigned uidgid_get(struct bb_uidgid_t*, const char* /*, unsigned*/); 350extern int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok);
351/* what is this? */
352/*extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix);*/
353extern char *bb_getpwuid(char *name, long uid, int bufsize);
354extern char *bb_getgrgid(char *group, long gid, int bufsize);
352 355
353 356
354enum { BB_GETOPT_ERROR = 0x80000000 }; 357enum { BB_GETOPT_ERROR = 0x80000000 };
@@ -484,7 +487,6 @@ extern void vfork_daemon_rexec(int nochdir, int noclose,
484 int argc, char **argv, char *foreground_opt); 487 int argc, char **argv, char *foreground_opt);
485#endif 488#endif
486extern int get_terminal_width_height(int fd, int *width, int *height); 489extern int get_terminal_width_height(int fd, int *width, int *height);
487extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *));
488 490
489int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); 491int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
490void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); 492void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);