aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-12 22:31:15 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-12 22:31:15 +0000
commit6042094221b950dfc2a56f3ab58dfb9a93b0226d (patch)
tree94e33f089502ba8625c31f72b93ae365e906d9d0 /include/libbb.h
parent7993d9224b6a93d1d4b1bc4fb7c64c5195073913 (diff)
downloadbusybox-w32-6042094221b950dfc2a56f3ab58dfb9a93b0226d.tar.gz
busybox-w32-6042094221b950dfc2a56f3ab58dfb9a93b0226d.tar.bz2
busybox-w32-6042094221b950dfc2a56f3ab58dfb9a93b0226d.zip
build system: add "release" target
find: support -size N (needed for above) git-svn-id: svn://busybox.net/trunk/busybox@16862 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/libbb.h b/include/libbb.h
index ef5086d6c..1d91a0a72 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -85,7 +85,7 @@
85/* CONFIG_LFS is on */ 85/* CONFIG_LFS is on */
86# if ULONG_MAX > 0xffffffff 86# if ULONG_MAX > 0xffffffff
87/* "long" is long enough on this system */ 87/* "long" is long enough on this system */
88# define XSTRTOOFF xstrtoul 88# define XATOOFF(a) xatoul_range(a, 0, LONG_MAX)
89/* usage: sz = BB_STRTOOFF(s, NULL, 10); if (errno || sz < 0) die(); */ 89/* usage: sz = BB_STRTOOFF(s, NULL, 10); if (errno || sz < 0) die(); */
90# define BB_STRTOOFF bb_strtoul 90# define BB_STRTOOFF bb_strtoul
91# define STRTOOFF strtoul 91# define STRTOOFF strtoul
@@ -93,22 +93,23 @@
93# define OFF_FMT "l" 93# define OFF_FMT "l"
94# else 94# else
95/* "long" is too short, need "long long" */ 95/* "long" is too short, need "long long" */
96# define XSTRTOOFF xstrtoull 96# define XATOOFF(a) xatoull_range(a, 0, LLONG_MAX)
97# define BB_STRTOOFF bb_strtoull 97# define BB_STRTOOFF bb_strtoull
98# define STRTOOFF strtoull 98# define STRTOOFF strtoull
99# define OFF_FMT "ll" 99# define OFF_FMT "ll"
100# endif 100# endif
101#else 101#else
102# if 0 /* #if UINT_MAX == 0xffffffff */ 102/* CONFIG_LFS is off */
103/* Doesn't work. off_t is a long. gcc will throw warnings on printf("%d", off_t) 103# if UINT_MAX == 0xffffffff
104 * even if long==int on this arch. Crap... */ 104/* While sizeof(off_t) == sizeof(int), off_t is typedef'ed to long anyway.
105# define XSTRTOOFF xstrtou 105 * gcc will throw warnings on printf("%d", off_t). Crap... */
106# define BB_STRTOOFF bb_strtoi 106# define XATOOFF(a) xatoi_u(a)
107# define BB_STRTOOFF bb_strtou
107# define STRTOOFF strtol 108# define STRTOOFF strtol
108# define OFF_FMT "" 109# define OFF_FMT "l"
109# else 110# else
110# define XSTRTOOFF xstrtoul 111# define XATOOFF(a) xatoul_range(a, 0, LONG_MAX)
111# define BB_STRTOOFF bb_strtol 112# define BB_STRTOOFF bb_strtoul
112# define STRTOOFF strtol 113# define STRTOOFF strtol
113# define OFF_FMT "l" 114# define OFF_FMT "l"
114# endif 115# endif