mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-05-28 22:45:15 +02:00
stdio stdlib: add empty getenv/system/tmpnam/tmpfile for Lua
This commit is contained in:
parent
a7ae52b4c4
commit
e7325c5ace
5 changed files with 35 additions and 0 deletions
|
@ -145,6 +145,8 @@ set(SOURCES
|
||||||
src/stdio/snprintf.c
|
src/stdio/snprintf.c
|
||||||
src/stdio/sprintf.c
|
src/stdio/sprintf.c
|
||||||
src/stdio/streams.c
|
src/stdio/streams.c
|
||||||
|
src/stdio/tmpfile.c
|
||||||
|
src/stdio/tmpnam.c
|
||||||
src/stdio/ungetc.c
|
src/stdio/ungetc.c
|
||||||
src/stdio/vasprintf.c
|
src/stdio/vasprintf.c
|
||||||
src/stdio/vdprintf.c
|
src/stdio/vdprintf.c
|
||||||
|
@ -162,6 +164,7 @@ set(SOURCES
|
||||||
src/stdlib/calloc.c
|
src/stdlib/calloc.c
|
||||||
src/stdlib/div.c
|
src/stdlib/div.c
|
||||||
src/stdlib/exit.c
|
src/stdlib/exit.c
|
||||||
|
src/stdlib/getenv.c
|
||||||
src/stdlib/labs.c
|
src/stdlib/labs.c
|
||||||
src/stdlib/ldiv.c
|
src/stdlib/ldiv.c
|
||||||
src/stdlib/llabs.c
|
src/stdlib/llabs.c
|
||||||
|
@ -177,6 +180,7 @@ set(SOURCES
|
||||||
src/stdlib/strtoll.c
|
src/stdlib/strtoll.c
|
||||||
src/stdlib/strtoul.c
|
src/stdlib/strtoul.c
|
||||||
src/stdlib/strtoull.c
|
src/stdlib/strtoull.c
|
||||||
|
src/stdlib/system.c
|
||||||
# string
|
# string
|
||||||
src/string/memchr.c
|
src/string/memchr.c
|
||||||
src/string/memcmp.c
|
src/string/memcmp.c
|
||||||
|
|
6
src/stdio/tmpfile.c
Normal file
6
src/stdio/tmpfile.c
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
FILE *tmpfile(void)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
7
src/stdio/tmpnam.c
Normal file
7
src/stdio/tmpnam.c
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
char *tmpnam(char *s)
|
||||||
|
{
|
||||||
|
(void)s;
|
||||||
|
return NULL;
|
||||||
|
}
|
7
src/stdlib/getenv.c
Normal file
7
src/stdlib/getenv.c
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
char *getenv(char const *name)
|
||||||
|
{
|
||||||
|
(void)name;
|
||||||
|
return NULL;
|
||||||
|
}
|
11
src/stdlib/system.c
Normal file
11
src/stdlib/system.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int system(char const *command)
|
||||||
|
{
|
||||||
|
/* No command: determine whether there is a shell */
|
||||||
|
if(!command)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
/* Command: pretend it fails and return 1 */
|
||||||
|
return 1;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue