diff options
author | Ron Yorston <rmy@pobox.com> | 2015-10-19 12:53:35 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-10-19 12:53:35 +0100 |
commit | 8afe8ee83a274925340473fa4d0a984bdcbee740 (patch) | |
tree | b78ed448cb6a55ba7d0ef8141a9f68b55b8acf11 /include/libbb.h | |
parent | caab029609633220c417dc0aaa9025fd4b7a169c (diff) | |
parent | 3d0805e9e7c45e6c0f9fb5e587d8b4a5a5f3c74c (diff) | |
download | busybox-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.h | 9 |
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; | |||
934 | long xgroup2gid(const char *name) FAST_FUNC; | 934 | long 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 */ |
936 | unsigned long get_ug_id(const char *s, long FAST_FUNC (*xname2id)(const char *)) FAST_FUNC; | 936 | unsigned 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 */ | ||
938 | struct bb_uidgid_t { | 937 | struct 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 */ |
943 | int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok) FAST_FUNC; | 942 | int 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 */ |
945 | void xget_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC; | 944 | void xget_uidgid(struct bb_uidgid_t*, const char*) FAST_FUNC; |
946 | /* chown-like handling of "user[:[group]" */ | 945 | /* chown-like handling of "user[:[group]" */ |
947 | void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) FAST_FUNC; | 946 | void 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; | |||
1807 | extern const char bb_msg_perm_denied_are_you_root[] ALIGN1; | 1806 | extern const char bb_msg_perm_denied_are_you_root[] ALIGN1; |
1808 | extern const char bb_msg_you_must_be_root[] ALIGN1; | 1807 | extern const char bb_msg_you_must_be_root[] ALIGN1; |
1809 | extern const char bb_msg_requires_arg[] ALIGN1; | 1808 | extern const char bb_msg_requires_arg[] ALIGN1; |
1810 | extern const char bb_msg_invalid_arg[] ALIGN1; | 1809 | extern const char bb_msg_invalid_arg_to[] ALIGN1; |
1811 | extern const char bb_msg_standard_input[] ALIGN1; | 1810 | extern const char bb_msg_standard_input[] ALIGN1; |
1812 | extern const char bb_msg_standard_output[] ALIGN1; | 1811 | extern const char bb_msg_standard_output[] ALIGN1; |
1813 | 1812 | ||