2008-12-11 Craig Howland <howland@LGSInnovations.com>
* libc/include/sys/lock.h: Add void cast to avoid "statement has no effect" warnings from gcc. * libc/include/sys/stdio.h: Ditto. * libc/include/sys/time.h: Correct gettimeofday() prototype. * libc/stdlib/__exp10.c: Add #include "std.h" for function prototype. * libc/stdlib/__ten_mu.c: Ditto. * libc/stdlib/std.h: Correct __exp10's ANSI prototype. * libc/stdlib/ldtoa.c: Change eiisinf definition to ANSI form. (Are already others in file without _ansi method, so did not bother.) * libc/stdlib/system.c: Use _ansi forms for function prototypes and definitions. * libc/time/mktime.c: Ditto. * libc/misc/__dprintf.c: Ditto. * libc/include/stdio.h: Add function prototypes for _fgetc_r, _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r, _funopen_r, and _fopencookie_r. * libc/include/reent.h: Add function prototype for _stat64_r, align _execve_r prototype with POSIX definition for execve. * libc/reent/execr.c: Align function prototype with POSIX definition. * libc/stdio/asniprintf.c: Add #include "local.h". * libc/stdio/vasniprintf.c: Ditto. * libc/stdio/fread.c: Remove unused variable newcount. * libc/stdio/local.h: Add function prototype for __sccl. * libc/stdio/open_memstream.c: Remove unused variable flags. * libc/stdio/vfscanf.c: Proper prototyping for ccfn, remove prototype for __sccl since now in local.h. * libc/string/memcpy.c: Add #include <string.h> (for real and for traditional synopsis), remove extraneous stddef.h and limits.h. * libc/syscalls/sysclose.c: Add #include <unistd.h>. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysexecve.c: Add #include <unistd.h>, align function prototype with POSIX definition. * libc/syscalls/sysfstat.c: Add #include <sys/stat.h>. * libc/syscalls/sysgettod.c: Correct sys/times.h to sys/time.h. * libc/syscalls/syskill.c: Add #include <signal.h>. * libc/syscalls/syslink.c: Add #include <unistd.h>, fix prototype. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/sysstat.c: Add #include <sys/stat.h>, fix prototype. * libc/syscalls/syswait.c: Add #include <sys/wait.h>, fix prototype.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
#include <_ansi.h>
|
||||
#include "std.h"
|
||||
|
||||
double
|
||||
_DEFUN (__exp10, (x),
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <_ansi.h>
|
||||
#include "std.h"
|
||||
|
||||
int
|
||||
_DEFUN (__ten_mul, (acc, digit),
|
||||
|
@ -719,8 +719,7 @@ return(0);
|
||||
|
||||
/* Return nonzero if internal format number is infinite. */
|
||||
static int
|
||||
eiisinf (x)
|
||||
unsigned short x[];
|
||||
eiisinf (unsigned short x[])
|
||||
{
|
||||
|
||||
#ifdef NANS
|
||||
|
@ -25,7 +25,7 @@
|
||||
#ifdef _HAVE_STDC
|
||||
int __ten_mul(double *acc, int digit);
|
||||
double __adjust(struct _reent *ptr, double *acc, int dexp, int sign);
|
||||
const double __exp10(unsigned x);
|
||||
double __exp10(unsigned x);
|
||||
#else
|
||||
int __ten_mul();
|
||||
double __adjust();
|
||||
|
@ -53,6 +53,7 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>,
|
||||
<<_wait_r>>.
|
||||
*/
|
||||
|
||||
#include <_ansi.h>
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
@ -61,13 +62,13 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>,
|
||||
#include <reent.h>
|
||||
|
||||
#if defined (unix) || defined (__CYGWIN__)
|
||||
static int do_system ();
|
||||
static int _EXFUN(do_system, (struct _reent *ptr _AND _CONST char *s));
|
||||
#endif
|
||||
|
||||
int
|
||||
_system_r (ptr, s)
|
||||
struct _reent *ptr;
|
||||
_CONST char *s;
|
||||
_DEFUN(_system_r, (ptr, s),
|
||||
struct _reent *ptr _AND
|
||||
_CONST char *s)
|
||||
{
|
||||
#if defined(HAVE_SYSTEM)
|
||||
return _system (s);
|
||||
@ -101,8 +102,8 @@ _system_r (ptr, s)
|
||||
#ifndef _REENT_ONLY
|
||||
|
||||
int
|
||||
system (s)
|
||||
_CONST char *s;
|
||||
_DEFUN(system, (s),
|
||||
_CONST char *s)
|
||||
{
|
||||
return _system_r (_REENT, s);
|
||||
}
|
||||
@ -118,9 +119,9 @@ extern char **environ;
|
||||
static char ***p_environ = &environ;
|
||||
|
||||
static int
|
||||
do_system (ptr, s)
|
||||
struct _reent *ptr;
|
||||
_CONST char *s;
|
||||
_DEFUN(do_system, (ptr, s),
|
||||
struct _reent *ptr _AND
|
||||
_CONST char *s)
|
||||
{
|
||||
char *argv[4];
|
||||
int pid, status;
|
||||
@ -150,9 +151,9 @@ do_system (ptr, s)
|
||||
|
||||
#if defined (__CYGWIN__)
|
||||
static int
|
||||
do_system (ptr, s)
|
||||
struct _reent *ptr;
|
||||
_CONST char *s;
|
||||
_DEFUN(do_system, (ptr, s),
|
||||
struct _reent *ptr _AND
|
||||
_CONST char *s)
|
||||
{
|
||||
char *argv[4];
|
||||
int pid, status;
|
||||
|
Reference in New Issue
Block a user