summaryrefslogtreecommitdiffhomepage
path: root/internal.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-13 18:01:10 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-13 18:01:10 +0000
commitc6cb79dedfb1af4ce64e75cd1c0d3cc1bfa71225 (patch)
tree685c18e7a6e52b315c9b8a142b8b21fc55e635fc /internal.h
parent5de3065f5870526a68adee314fe181af976a9246 (diff)
More stuff
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/internal.h b/internal.h
index d36d218a9..a67c22339 100644
--- a/internal.h
+++ b/internal.h
@@ -49,49 +49,11 @@
-struct FileInfo {
- unsigned int complainInPostProcess:1;
- unsigned int changeUserID:1;
- unsigned int changeGroupID:1;
- unsigned int changeMode:1;
- unsigned int create:1;
- unsigned int force:1;
- unsigned int recursive:1;
- unsigned int processDirectoriesAfterTheirContents;
- unsigned int makeParentDirectories:1;
- unsigned int didOperation:1;
- unsigned int isSymbolicLink:1;
- unsigned int makeSymbolicLink:1;
- unsigned int dyadic:1;
- const char* source;
- const char* destination;
- int directoryLength;
- uid_t userID;
- gid_t groupID;
- mode_t andWithMode;
- mode_t orWithMode;
- struct stat stat;
- const struct Applet *
- applet;
-};
-
struct Applet {
const char* name;
int (*main)(int argc, char** argv);
};
-extern void name_and_error(const char*);
-extern int is_a_directory(const char*);
-extern char* join_paths(char *, const char *, const char *);
-
-extern int descend(
- struct FileInfo *o
- ,int (*function)(const struct FileInfo * i));
-
-extern struct mntent *
- findMountPoint(const char*, const char *);
-
-extern void usage(const char*);
extern int busybox_main(int argc, char** argv);
extern int block_device_main(int argc, char** argv);
extern int cat_more_main(int argc, char** argv);
@@ -146,29 +108,6 @@ extern int update_main(int argc, char** argv);
extern int zcat_main(int argc, char** argv);
extern int gzip_main(int argc, char** argv);
-extern int
-parse_mode(
- const char* s
-,mode_t * or
-,mode_t * and
-,int * group_execute);
-
-extern int parse_user_name(const char* string, struct FileInfo * i);
-
-
-/*
- * A chunk of data.
- * Chunks contain data which is allocated as needed, but which is
- * not freed until all of the data needs freeing, such as at
- * the beginning of the next command.
- */
-typedef struct chunk CHUNK;
-#define CHUNK_INIT_SIZE 4
-
-struct chunk {
- CHUNK *next;
- char data[CHUNK_INIT_SIZE]; /* actually of varying length */
-};
const char *modeString(int mode);
const char *timeString(time_t timeVal);