aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-03 21:00:06 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-10-03 21:00:06 +0000
commit63adc7384791548741e3a2afbee1be40d99fe9d2 (patch)
treeedb58560b444979051b42ab7f0c0c718f7459754 /include
parent1fa12c6ebcb25e2924778bcbaae4bea1af7b7e6a (diff)
downloadbusybox-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.h8
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);
207extern off_t fdlength(int fd); 207extern off_t fdlength(int fd);
208 208
209#define BB_GETOPT_ERROR 0x80000000UL 209#define BB_GETOPT_ERROR 0x80000000UL
210extern const char *bb_opt_complementally; 210extern const char *opt_complementary;
211extern const struct option *bb_applet_long_options; 211extern const struct option *applet_long_options;
212extern unsigned long bb_getopt_ulflags(int argc, char **argv, const char *applet_opts, ...); 212extern uint32_t getopt32(int argc, char **argv, const char *applet_opts, ...);
213 213
214extern int bb_vfprintf(FILE * __restrict stream, const char * __restrict format, 214extern 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
234extern struct BB_applet *find_applet_by_name(const char *name); 234extern struct BB_applet *find_applet_by_name(const char *name);
235void run_applet_by_name(const char *name, int argc, char **argv); 235extern 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