mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 04:23:38 +01:00
stdlib: add fileno (DONE)
This commit is contained in:
parent
26e54af8e0
commit
95e33092ec
4 changed files with 9 additions and 0 deletions
|
@ -112,6 +112,7 @@ set(SOURCES
|
|||
src/stdio/fgetc.c
|
||||
src/stdio/fgetpos.c
|
||||
src/stdio/fgets.c
|
||||
src/stdio/fileno.c
|
||||
src/stdio/fileutil.c
|
||||
src/stdio/fopen.c
|
||||
src/stdio/fprintf.c
|
||||
|
|
1
STATUS
1
STATUS
|
@ -99,6 +99,7 @@ TEST: Function/symbol/macro needs to be tested
|
|||
7.19.5.4 freopen -
|
||||
7.19.5.5 setbuf -
|
||||
7.19.5.6 setvbuf -
|
||||
(EXT) fileno -
|
||||
|
||||
7.19.6.1 fprintf -
|
||||
7.19.6.2 fscanf TODO
|
||||
|
|
|
@ -187,6 +187,7 @@ extern void setbuf(FILE * __restrict__ __fp, char * __restrict__ __buf);
|
|||
extern int setvbuf(FILE * __restrict__ __fp, char * __restrict__ __buf,
|
||||
int __mode, size_t __size);
|
||||
|
||||
/* Return the file descriptor associated with __fp. */
|
||||
extern int fileno(FILE *__fp);
|
||||
|
||||
/*
|
||||
|
|
6
src/stdio/fileno.c
Normal file
6
src/stdio/fileno.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int fileno(FILE *fp)
|
||||
{
|
||||
return fp->fd;
|
||||
}
|
Loading…
Reference in a new issue