X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=internal.h;h=0caaf5cb45cd693087d6748c60d4504286fe5d8f;hb=a709317cea0180772616152d2f1af195a95703fd;hp=9b230a3358a3fa2c022a4e7d53aae87ed309dc00;hpb=ef8b6c757de9684f5d88eff4b014527e87121137;p=oweals%2Fbusybox.git diff --git a/internal.h b/internal.h index 9b230a335..0caaf5cb4 100644 --- a/internal.h +++ b/internal.h @@ -1,7 +1,6 @@ /* - * Busybox main header file + * Busybox main internal header file * - * Copyright (C) 1998 by Erik Andersen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -128,16 +127,21 @@ char *chunkstrdup(const char *str); void freeChunks(void); int fullWrite(int fd, const char *buf, int len); int fullRead(int fd, char *buf, int len); -int recursiveAction(const char *fileName, int recurse, int followLinks, int delayDirAction, +int recursiveAction(const char *fileName, int recurse, int followLinks, int depthFirst, int (*fileAction) (const char *fileName, struct stat* statbuf), int (*dirAction) (const char *fileName, struct stat* statbuf)); -int match(const char* text, const char * pattern); const char* timeString(time_t timeVal); extern void createPath (const char *name, int mode); extern int parse_mode( const char* s, mode_t* theMode); extern volatile void usage(const char *usage); +extern uid_t my_getpwnam(char *name); +extern gid_t my_getgrnam(char *name); +extern void my_getpwuid(char* name, uid_t uid); +extern void my_getgrgid(char* group, gid_t gid); +extern int get_kernel_revision(); + #if defined (BB_FSCK_MINIX) || defined (BB_MKFS_MINIX) @@ -161,8 +165,9 @@ static inline int clrbit(char * addr,unsigned int nr) return __res != 0; } -#endif +#endif /* inline bitops junk */ + -#endif +#endif /* _INTERNAL_H_ */