diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-08-16 12:59:05 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-08-16 18:04:54 +0700 |
commit | 10d1cb9f3e515778e7841b61df4c6ad94c3d8352 (patch) | |
tree | c7b3f40f6e6ab7ea752886d9a1a2c441816fb5dc /system/include/libc | |
parent | 4e0c5a89b387d5f4ca8248c8b31e2db136652a64 (diff) |
Add compat headers, move some things to them.
This is groundwork for landing musl includes which remove
some of the deprecated functions or very old BSDisms.
Diffstat (limited to 'system/include/libc')
-rw-r--r-- | system/include/libc/stdlib.h | 2 | ||||
-rw-r--r-- | system/include/libc/string.h | 2 | ||||
-rw-r--r-- | system/include/libc/sys/timeb.h | 39 | ||||
-rw-r--r-- | system/include/libc/sys/unistd.h | 1 |
4 files changed, 0 insertions, 44 deletions
diff --git a/system/include/libc/stdlib.h b/system/include/libc/stdlib.h index 888b6041..6fdef40b 100644 --- a/system/include/libc/stdlib.h +++ b/system/include/libc/stdlib.h @@ -223,8 +223,6 @@ extern long double strtold (const char *, char **); extern long double wcstold (const wchar_t *, wchar_t **); #endif /* _LDBL_EQ_DBL */ -int getloadavg(double loadavg[], int nelem); /* XXX Emscripten */ - _END_STD_C #endif /* _STDLIB_H_ */ diff --git a/system/include/libc/string.h b/system/include/libc/string.h index 515c71a7..8fd9ea43 100644 --- a/system/include/libc/string.h +++ b/system/include/libc/string.h @@ -72,8 +72,6 @@ size_t _EXFUN(strlcpy,(char *, const char *, size_t)); int _EXFUN(strncasecmp,(const char *, const char *, size_t)); size_t _EXFUN(strnlen,(const char *, size_t)); char *_EXFUN(strsep,(char **, const char *)); -char *_EXFUN(strlwr,(char *)); -char *_EXFUN(strupr,(char *)); #if defined(__CYGWIN__) || defined(EMSCRIPTEN) #ifndef DEFS_H /* Kludge to work around problem compiling in gdb */ char *_EXFUN(strsignal, (int __signo)); diff --git a/system/include/libc/sys/timeb.h b/system/include/libc/sys/timeb.h deleted file mode 100644 index 0a2c3de8..00000000 --- a/system/include/libc/sys/timeb.h +++ /dev/null @@ -1,39 +0,0 @@ -/* timeb.h -- An implementation of the standard Unix <sys/timeb.h> file. - Written by Ian Lance Taylor <ian@cygnus.com> - Public domain; no rights reserved. - - <sys/timeb.h> declares the structure used by the ftime function, as - well as the ftime function itself. Newlib does not provide an - implementation of ftime. */ - -#ifndef _SYS_TIMEB_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define _SYS_TIMEB_H - -#include <_ansi.h> -#include <machine/types.h> - -#ifndef __time_t_defined -typedef _TIME_T_ time_t; -#define __time_t_defined -#endif - -struct timeb -{ - time_t time; - unsigned short millitm; - short timezone; - short dstflag; -}; - -extern int ftime _PARAMS ((struct timeb *)); - -#ifdef __cplusplus -} -#endif - -#endif /* ! defined (_SYS_TIMEB_H) */ diff --git a/system/include/libc/sys/unistd.h b/system/include/libc/sys/unistd.h index 1a414b3c..a4219d4d 100644 --- a/system/include/libc/sys/unistd.h +++ b/system/include/libc/sys/unistd.h @@ -102,7 +102,6 @@ uid_t _EXFUN(getuid, (void )); #endif #if defined(EMSCRIPTEN) || defined(__CYGWIN__) char * _EXFUN(getusershell, (void)); -char * _EXFUN(getwd, (char *__buf )); int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser)); #endif int _EXFUN(isatty, (int __fildes )); |