/contrib/sdk/sources/newlib/libc/dirent/alphasort.c |
---|
File deleted |
/contrib/sdk/sources/newlib/libc/dirent/dir.c |
---|
File deleted |
\ No newline at end of file |
/contrib/sdk/sources/newlib/libc/dirent/telldir.c |
---|
File deleted |
\ No newline at end of file |
/contrib/sdk/sources/newlib/libc/dirent/opendir.c |
---|
File deleted |
/contrib/sdk/sources/newlib/libc/dirent/scandir.c |
---|
File deleted |
/contrib/sdk/sources/newlib/libc/dirent/closedir.c |
---|
File deleted |
\ No newline at end of file |
/contrib/sdk/sources/newlib/libc/dirent/seekdir.c |
---|
File deleted |
\ No newline at end of file |
/contrib/sdk/sources/newlib/libc/dirent/ksys_fs.h |
---|
File deleted |
/contrib/sdk/sources/newlib/libc/dirent/rewinddir.c |
---|
File deleted |
\ No newline at end of file |
/contrib/sdk/sources/newlib/libc/dirent/readdir.c |
---|
File deleted |
/contrib/sdk/sources/newlib/libc/Tupfile.lua |
---|
454,17 → 454,6 |
"wsetup.c" |
} |
DIRENT_SRCS = { |
"dir.c", |
"closedir.c", |
"opendir.c", |
"readdir.c", |
"rewinddir.c", |
"seekdir.c", |
"telldir.c", |
"scandir.c", |
"alphasort.c", |
} |
MATH_SRCS = { |
"e_acos.c", "e_acosh.c", "e_asin.c", "e_atan2.c", "e_atanh.c", "e_cosh.c", "e_exp.c", "e_fmod.c", |
517,7 → 506,6 |
LIB_SRCS += prepend("stdio/", STDIO_SRCS) |
LIB_SRCS += prepend("string/", STRING_SRCS) |
LIB_SRCS += prepend("stdlib/", STDLIB_SRCS) |
LIB_SRCS += prepend("dirent/", DIRENT_SRCS) |
LIB_SRCS += prepend("math/", MATH_SRCS) |
ALL_OBJS = {} |
/contrib/sdk/sources/newlib/libc/include/sys/dirent.h |
---|
8,34 → 8,25 |
extern "C" { |
#endif |
#define DT_DIR 16 |
#define DT_REG 0 |
#include <limits.h> |
#include <sys/types.h> |
struct dirent{ |
ino_t d_ino; |
unsigned d_type; |
char d_namlen; |
char d_name[256]; |
}; |
typedef struct{ |
struct dirent* objs; |
ino_t pos; |
ino_t num_objs; |
typedef struct |
{ |
// struct systree_info2 fileinfo; |
struct dirent entry; |
// __u8 bdfeheader[0x20]; |
// struct bdfe_item bdfebase; |
// __u8 bdfename[264]; |
}DIR; |
extern int closedir(DIR *dir); |
extern DIR* opendir(const char *path); |
extern struct dirent* readdir(DIR *); |
extern void rewinddir(DIR *dir); |
extern void seekdir(DIR *dir, unsigned pos); |
extern unsigned telldir(DIR *dir); |
int closedir(DIR *dirp); |
DIR * opendir(const char *_dirname); |
struct dirent * readdir(DIR *_dirp); |
void rewinddir(DIR *_dirp); |
extern int scandir(const char *path, struct dirent ***res, int (*sel)(const struct dirent *), int (*cmp)(const struct dirent **, const struct dirent **)); |
extern int alphasort(const struct dirent **a, const struct dirent **b); |
#ifdef __cplusplus |
} |
#endif |
/contrib/sdk/sources/newlib/libc/include/sys/dir.h |
---|
7,8 → 7,4 |
#define direct dirent |
extern int chdir(char* dir); |
extern int rmdir(const char* dir); |
extern int mkdir(const char* dir, unsigned fake_mode); |
#endif /*_SYS_DIR_H_*/ |
/contrib/sdk/sources/newlib/libc/Makefile |
---|
2,7 → 2,7 |
AR = kos32-ar |
LD = kos32-ld |
INSTALLDIR:= /home/autobuild/tools/win32/mingw32 |
INSTALLDIR:= /home/autobuild/tools/win32/lib |
CFLAGS = -c -O2 -fno-builtin -fno-ident -fomit-frame-pointer -DMISSING_SYSCALL_NAMES |
LDFLAGS = -shared -s -T libcdll.lds --out-implib libc.dll.a --image-base 0 |
472,15 → 472,6 |
wscanf.c \ |
wsetup.c |
DIRENT_SRCS= dir.c \ |
closedir.c \ |
opendir.c \ |
readdir.c \ |
rewinddir.c \ |
seekdir.c \ |
telldir.c \ |
scandir.c \ |
alphasort.c |
MATH_SRCS = e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c e_exp.c e_fmod.c \ |
e_hypot.c e_j0.c e_j1.c e_jn.c e_log.c e_log10.c e_pow.c e_rem_pio2.c \ |
538,8 → 529,6 |
STDLIB_OBJS = $(patsubst %.S, stdlib/%.o, $(patsubst %.asm, stdlib/%.o,\ |
$(patsubst %.c, stdlib/%.o, $(STDLIB_SRCS)))) |
DIRENT_OBJS = $(patsubst %.S, dirent/%.o, $(patsubst %.asm, dirent/%.o,\ |
$(patsubst %.c, dirent/%.o, $(DIRENT_SRCS)))) |
MATH_OBJS = $(patsubst %.S, math/%.o, $(patsubst %.asm, math/%.o,\ |
$(patsubst %.c, math/%.o, $(MATH_SRCS)))) |
584,8 → 573,7 |
$(STDLIB_OBJS) \ |
$(STDIO_OBJS) \ |
$(PRINTF_OBJS) \ |
$(MATH_OBJS) \ |
$(DIRENT_OBJS) |
$(MATH_OBJS) |
LIB_OBJS+= time/wcsftime.o |
674,7 → 662,7 |
%.obj : %.asm Makefile |
fasm $< |
fasm $< $ |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
/contrib/sdk/sources/newlib/libc/libc.def |
---|
507,14 → 507,3 |
y1f |
yn |
ynf |
alphasort |
opendir |
closedir |
readdir |
rewinddir |
seekdir |
telldir |
scandir |
mkdir |
rmdir |
chdir |