summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-19 20:52:57 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-19 20:52:57 +0000
commite674eb78e4cbd52d4b044d8e67d1620b32244e8f (patch)
tree8751bdd6f866ef10ad0131961256a62bc50772c6 /internal.h
parente494fdd2c73f7f2979f7e02d65e46a50bd86a59f (diff)
downloadbusybox-w32-e674eb78e4cbd52d4b044d8e67d1620b32244e8f.tar.gz
busybox-w32-e674eb78e4cbd52d4b044d8e67d1620b32244e8f.tar.bz2
busybox-w32-e674eb78e4cbd52d4b044d8e67d1620b32244e8f.zip
Made em work.
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index ae0148b2e..dcddea05a 100644
--- a/internal.h
+++ b/internal.h
@@ -138,5 +138,30 @@ extern int parse_mode( const char* s, mode_t* theMode);
138extern volatile void usage(const char *usage); 138extern volatile void usage(const char *usage);
139 139
140 140
141
142#if defined (BB_FSCK_MINIX) || defined (BB_MKFS_MINIX)
143
144static inline int bit(char * addr,unsigned int nr)
145{
146 return (addr[nr >> 3] & (1<<(nr & 7))) != 0;
147}
148
149static inline int setbit(char * addr,unsigned int nr)
150{
151 int __res = bit(addr, nr);
152 addr[nr >> 3] |= (1<<(nr & 7));
153 return __res != 0; \
154}
155
156static inline int clrbit(char * addr,unsigned int nr)
157{
158 int __res = bit(addr, nr);
159 addr[nr >> 3] &= ~(1<<(nr & 7));
160 return __res != 0;
161}
162
163#endif
164
165
141#endif 166#endif
142 167