Move mktemp to sys; attic getgrent as noone will ever use this.
This commit is contained in:
parent
3f10299f43
commit
59dbdea48a
|
@ -33,31 +33,31 @@ for _, plat in ipairs(vars.plats) do
|
||||||
srcs = {
|
srcs = {
|
||||||
"+ctype_files",
|
"+ctype_files",
|
||||||
"+ctype_tab",
|
"+ctype_tab",
|
||||||
|
"./core/ctype/*.c",
|
||||||
"./core/errno/*.c",
|
"./core/errno/*.c",
|
||||||
"./core/string/*.c",
|
|
||||||
"./core/stdlib/*.c",
|
|
||||||
"./core/locale/*.c",
|
"./core/locale/*.c",
|
||||||
"./core/setjmp/*.c",
|
|
||||||
"./core/setjmp/*.e",
|
|
||||||
"./core/math/*.c",
|
"./core/math/*.c",
|
||||||
"./core/math/*.e",
|
"./core/math/*.e",
|
||||||
"./core/ctype/*.c",
|
|
||||||
"./core/misc/*.c",
|
"./core/misc/*.c",
|
||||||
|
"./core/setjmp/*.c",
|
||||||
|
"./core/setjmp/*.e",
|
||||||
|
"./core/stdlib/*.c",
|
||||||
|
"./core/string/*.c",
|
||||||
"./core/time/*.c",
|
"./core/time/*.c",
|
||||||
"./sys/malloc/*.c",
|
|
||||||
"./sys/exit/*.c",
|
"./sys/exit/*.c",
|
||||||
"./sys/stdio/*.c",
|
"./sys/malloc/*.c",
|
||||||
"./sys/misc/*.c",
|
"./sys/misc/*.c",
|
||||||
|
"./sys/stdio/*.c",
|
||||||
},
|
},
|
||||||
hdrs = {}, -- must be empty
|
hdrs = {}, -- must be empty
|
||||||
deps = {
|
deps = {
|
||||||
"lang/cem/libcc.ansi/headers+pkg",
|
"lang/cem/libcc.ansi/headers+pkg",
|
||||||
"plat/"..plat.."/include+pkg",
|
"plat/"..plat.."/include+pkg",
|
||||||
"./sys/malloc/malloc.h",
|
|
||||||
"./core/math/localmath.h",
|
"./core/math/localmath.h",
|
||||||
"./core/stdlib/ext_fmt.h",
|
"./core/stdlib/ext_fmt.h",
|
||||||
|
"./core/time/loc_time.h",
|
||||||
|
"./sys/malloc/malloc.h",
|
||||||
"./sys/stdio/loc_incl.h",
|
"./sys/stdio/loc_incl.h",
|
||||||
"./time/loc_time.h",
|
|
||||||
},
|
},
|
||||||
vars = { plat = plat }
|
vars = { plat = plat }
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,6 +79,7 @@ extern char** environ;
|
||||||
|
|
||||||
/* Implemented system calls */
|
/* Implemented system calls */
|
||||||
|
|
||||||
|
extern int access(const char* pathname, int mode);
|
||||||
extern int brk(void* ptr);
|
extern int brk(void* ptr);
|
||||||
extern int close(int d);
|
extern int close(int d);
|
||||||
extern int creat(const char* path, mode_t mode);
|
extern int creat(const char* path, mode_t mode);
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
getgrent.c
|
|
||||||
getopt.c
|
|
||||||
getpass.c
|
|
||||||
getpw.c
|
|
||||||
getw.c
|
|
||||||
putw.c
|
|
||||||
putenv.c
|
|
||||||
environ.c
|
|
||||||
popen.c
|
|
||||||
sleep.c
|
|
||||||
termcap.c
|
|
||||||
fdopen.c
|
|
||||||
closedir.c
|
|
||||||
getdents.c
|
|
||||||
opendir.c
|
|
||||||
readdir.c
|
|
||||||
rewinddir.c
|
|
||||||
seekdir.c
|
|
||||||
telldir.c
|
|
||||||
isatty.c
|
|
||||||
mktemp.c
|
|
||||||
hypot.c
|
|
|
@ -1,5 +0,0 @@
|
||||||
clean:
|
|
||||||
rm -f getgrent.o getopt.o getpass.o getpw.o getw.o putw.o putenv.o \
|
|
||||||
environ.o popen.o sleep.o termcap.o fdopen.o closedir.o \
|
|
||||||
getdents.o opendir.o readdir.o rewinddir.o seekdir.o \
|
|
||||||
telldir.o isatty.o OLIST
|
|
|
@ -2,8 +2,8 @@
|
||||||
/* mktemp - make a name for a temporary file; only here for backwards compat */
|
/* mktemp - make a name for a temporary file; only here for backwards compat */
|
||||||
/* no _-protected system-calls? */
|
/* no _-protected system-calls? */
|
||||||
|
|
||||||
unsigned int getpid(void);
|
#include <stdlib.h>
|
||||||
int access(char*, int);
|
#include <unistd.h>
|
||||||
|
|
||||||
char* mktemp(char* template)
|
char* mktemp(char* template)
|
||||||
{
|
{
|
Loading…
Reference in a new issue