Skip to content

Commit

Permalink
Expose fdopen()
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs committed Aug 20, 2012
1 parent 6950d12 commit 3e489a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kernel/source/posixemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ BEGIN_TABLE(FEOSPOSIXEMU)
ADD_FUNC(close),
ADD_FUNC(read),
ADD_FUNC(write),
ADD_FUNC(lseek)
ADD_FUNC(lseek),
ADD_FUNC(fdopen)
END_TABLE(FEOSPOSIXEMU)

MAKE_FAKEMODULE(FEOSPOSIXEMU)
2 changes: 2 additions & 0 deletions sdk/include/stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ FILE* fopen(const char*, const char*);
FILE* freopen(const char*, const char*, FILE*);
int fclose(FILE*);

FILE* fdopen(int fd, const char*);

size_t fread(void*, size_t, size_t, FILE*);
size_t fwrite(const void*, size_t, size_t, FILE*);
int feof(FILE*);
Expand Down
3 changes: 2 additions & 1 deletion sdk/source/FEOSPOSIXEMU/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ open \
close \
read \
write \
lseek
lseek \
fdopen

SFILES := $(addsuffix .s, $(FUNCS))

Expand Down

0 comments on commit 3e489a9

Please sign in to comment.