aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-10-19 12:53:35 +0100
committerRon Yorston <rmy@pobox.com>2015-10-19 12:53:35 +0100
commit8afe8ee83a274925340473fa4d0a984bdcbee740 (patch)
treeb78ed448cb6a55ba7d0ef8141a9f68b55b8acf11 /include/libbb.h
parentcaab029609633220c417dc0aaa9025fd4b7a169c (diff)
parent3d0805e9e7c45e6c0f9fb5e587d8b4a5a5f3c74c (diff)
downloadbusybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.tar.gz
busybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.tar.bz2
busybox-w32-8afe8ee83a274925340473fa4d0a984bdcbee740.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 2f90b35f7..de00abe7f 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -934,14 +934,13 @@ long xuname2uid(const char *name) FAST_FUNC;
934long xgroup2gid(const char *name) FAST_FUNC; 934long xgroup2gid(const char *name) FAST_FUNC;
935/* wrapper: allows string to contain numeric uid or gid */ 935/* wrapper: allows string to contain numeric uid or gid */
936unsigned long get_ug_id(const char *s, long FAST_FUNC (*xname2id)(const char *)) FAST_FUNC; 936unsigned long get_ug_id(const char *s, long FAST_FUNC (*xname2id)(const char *)) FAST_FUNC;
937/* from chpst. Does not die, returns 0 on failure */
938struct bb_uidgid_t { 937struct bb_uidgid_t {
939 uid_t uid; 938 uid_t uid;
940 gid_t gid; 939 gid_t gid;
941}; 940};
942/* always sets uid and gid */ 941/* always sets uid and gid; returns 0 on failure */
943int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok) FAST_FUNC; 942int get_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC;
944/* always sets uid and gid, allows numeric; exits on failure */ 943/* always sets uid and gid; exits on failure */
945void xget_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC; 944void xget_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC;
946/* chown-like handling of "user[:[group]" */ 945/* chown-like handling of "user[:[group]" */
947void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) FAST_FUNC; 946void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) FAST_FUNC;
@@ -1807,7 +1806,7 @@ extern const char bb_msg_can_not_create_raw_socket[] ALIGN1;
1807extern const char bb_msg_perm_denied_are_you_root[] ALIGN1; 1806extern const char bb_msg_perm_denied_are_you_root[] ALIGN1;
1808extern const char bb_msg_you_must_be_root[] ALIGN1; 1807extern const char bb_msg_you_must_be_root[] ALIGN1;
1809extern const char bb_msg_requires_arg[] ALIGN1; 1808extern const char bb_msg_requires_arg[] ALIGN1;
1810extern const char bb_msg_invalid_arg[] ALIGN1; 1809extern const char bb_msg_invalid_arg_to[] ALIGN1;
1811extern const char bb_msg_standard_input[] ALIGN1; 1810extern const char bb_msg_standard_input[] ALIGN1;
1812extern const char bb_msg_standard_output[] ALIGN1; 1811extern const char bb_msg_standard_output[] ALIGN1;
1813 1812