diff options
| author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-03 21:00:06 +0000 |
|---|---|---|
| committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-03 21:00:06 +0000 |
| commit | 63adc7384791548741e3a2afbee1be40d99fe9d2 (patch) | |
| tree | edb58560b444979051b42ab7f0c0c718f7459754 /include | |
| parent | 1fa12c6ebcb25e2924778bcbaae4bea1af7b7e6a (diff) | |
| download | busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.tar.gz busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.tar.bz2 busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.zip | |
getopt_ulflags -> getopt32.
It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit.
git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index c0de92190..4e96ea415 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -207,9 +207,9 @@ extern void xsetuid(uid_t uid); | |||
| 207 | extern off_t fdlength(int fd); | 207 | extern off_t fdlength(int fd); |
| 208 | 208 | ||
| 209 | #define BB_GETOPT_ERROR 0x80000000UL | 209 | #define BB_GETOPT_ERROR 0x80000000UL |
| 210 | extern const char *bb_opt_complementally; | 210 | extern const char *opt_complementary; |
| 211 | extern const struct option *bb_applet_long_options; | 211 | extern const struct option *applet_long_options; |
| 212 | extern unsigned long bb_getopt_ulflags(int argc, char **argv, const char *applet_opts, ...); | 212 | extern uint32_t getopt32(int argc, char **argv, const char *applet_opts, ...); |
| 213 | 213 | ||
| 214 | extern int bb_vfprintf(FILE * __restrict stream, const char * __restrict format, | 214 | extern int bb_vfprintf(FILE * __restrict stream, const char * __restrict format, |
| 215 | va_list arg) __attribute__ ((format (printf, 2, 0))); | 215 | va_list arg) __attribute__ ((format (printf, 2, 0))); |
| @@ -232,7 +232,7 @@ extern char *skip_whitespace(const char *); | |||
| 232 | 232 | ||
| 233 | #ifndef BUILD_INDIVIDUAL | 233 | #ifndef BUILD_INDIVIDUAL |
| 234 | extern struct BB_applet *find_applet_by_name(const char *name); | 234 | extern struct BB_applet *find_applet_by_name(const char *name); |
| 235 | void run_applet_by_name(const char *name, int argc, char **argv); | 235 | extern void run_applet_by_name(const char *name, int argc, char **argv); |
| 236 | #endif | 236 | #endif |
| 237 | 237 | ||
| 238 | /* dmalloc will redefine these to it's own implementation. It is safe | 238 | /* dmalloc will redefine these to it's own implementation. It is safe |
