summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorErik Andersen2000-03-24 00:54:46 +0000
committerErik Andersen2000-03-24 00:54:46 +0000
commit1ad302ac903695ef4ba748d3880222c05eeaafef (patch)
treea03bebb080253f4a20f8d5335285a5e717106d36 /internal.h
parente454fb68a3165ca5cf42c290b4b9dc92dbf9a235 (diff)
downloadbusybox-1ad302ac903695ef4ba748d3880222c05eeaafef.zip
busybox-1ad302ac903695ef4ba748d3880222c05eeaafef.tar.gz
The new tar for busybox is now done, and works just fine
for extracting files. Creation of tarballs is next... -Erik
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/internal.h b/internal.h
index 84624b3..c54480e 100644
--- a/internal.h
+++ b/internal.h
@@ -47,11 +47,6 @@
#define EXPAND_ALLOC 1024
-#ifndef MAJOR
-#define MAJOR(dev) (((dev)>>8)&0xff)
-#define MINOR(dev) ((dev)&0xff)
-#endif
-
#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t'))
#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9'))
#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7'))
@@ -168,8 +163,8 @@ extern int yes_main(int argc, char** argv);
extern void usage(const char *usage) __attribute__ ((noreturn));
-extern void errorMsg(char *s, ...);
-extern void fatalError(char *s, ...) __attribute__ ((noreturn));
+extern void errorMsg(const char *s, ...);
+extern void fatalError(const char *s, ...) __attribute__ ((noreturn));
const char *modeString(int mode);
const char *timeString(time_t timeVal);
@@ -203,6 +198,7 @@ const char* timeString(time_t timeVal);
extern int createPath (const char *name, int mode);
extern int parse_mode( const char* s, mode_t* theMode);
+extern int get_kernel_revision(void);
extern uid_t my_getpwnam(char *name);
extern gid_t my_getgrnam(char *name);
extern void my_getpwuid(char* name, uid_t uid);