diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-19 20:03:48 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-19 20:03:48 +0000 |
commit | 274427d7a0019b02cc4bc0d1bfaf513b6b525bed (patch) | |
tree | fe8cf4622b7973cae5614de2da32a6a7bd24aedb /internal.h | |
parent | 36c02e8fb8068de935ab488ee0ce105087f30087 (diff) | |
download | busybox-w32-274427d7a0019b02cc4bc0d1bfaf513b6b525bed.tar.gz busybox-w32-274427d7a0019b02cc4bc0d1bfaf513b6b525bed.tar.bz2 busybox-w32-274427d7a0019b02cc4bc0d1bfaf513b6b525bed.zip |
Finish off the libc5 porting effort. Everything now works with libc5
except for md5sum, which uses the GNU libc addition getline().
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@669 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 697ce4778..4a132abf1 100644 --- a/internal.h +++ b/internal.h | |||
@@ -297,4 +297,13 @@ int nfsmount(const char *spec, const char *node, unsigned long *flags, | |||
297 | #endif | 297 | #endif |
298 | 298 | ||
299 | 299 | ||
300 | #ifndef setbit | ||
301 | /* Bit map related macros -- libc5 doens't provide these... sigh. */ | ||
302 | #define NBBY CHAR_BIT | ||
303 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | ||
304 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | ||
305 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | ||
306 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) | ||
307 | #endif | ||
308 | |||
300 | #endif /* _BB_INTERNAL_H_ */ | 309 | #endif /* _BB_INTERNAL_H_ */ |