mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 14:28:06 +11:00
4cde58fd83
Use it in shell instead of using popen()
11 lines
326 B
C
11 lines
326 B
C
#define BLKSIZE 0x100
|
|
#define HEADERSIZE 0x20
|
|
#define MAX_FN_LEN 25 // 26 - null char
|
|
#define MAX_FILE_SIZE (BLKSIZE * 0x100) - HEADERSIZE
|
|
|
|
void set_spit_stream(FILE *stream);
|
|
int is_regular_file(char *path);
|
|
void spitempty();
|
|
int spitblock(char *fullpath, char *fn);
|
|
int spitdir(char *path, char *prefix, char **patterns);
|