Changeset 146
- Timestamp:
- May 15, 2003, 4:29:14 PM (22 years ago)
- Location:
- trunk/src/emx/src/lib
- Files:
-
- 1 added
- 32 deleted
- 287 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/Attic/ctype/ctype.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 libc.TSRC += $(addprefix src/lib/ctype/, ctype.c toascii.c tolower.c \ 2 toupper.c _tolower.c _toupper.c isalnum.c isalpha.c iscntrl.c isdigit.c \ 3 isgraph.c islower.c isprint.c ispunct.c isspace.c isupper.c isxdigit.c \ 4 isascii.c) 1 libc.TSRC += $(wildcard src/lib/ctype/*.c) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/Attic/ctype/tolower.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 5 5 int tolower (int c) 6 6 { 7 if (c >= 'A' && c <= 'Z')7 if isupper (c) 8 8 return c + 'a' - 'A'; 9 9 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/Attic/ctype/toupper.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 5 5 int toupper (int c) 6 6 { 7 if (c >= 'a' && c <= 'z')7 if islower (c) 8 8 return c - 'a' + 'A'; 9 9 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/alias/alias.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 # This submakefile builds c_alias.a, a library that defines 2 2 # for all C runtime functions an alias with an underscore prefix. 3 # 4 # ***************************************************************** 5 # this is a placeholder for now. Ignore it -- everything is garbage 6 # 3 7 4 8 .MODULE := alias 5 9 .MDESC := A library of underscored aliases for most C library functions 10 .MDEP := libc sys app 11 .TKIND := aout 6 12 .INSDIR := lib/ 7 13 .TARGET := c_alias$A 8 .TDEP := $.st/st/c.a9 .FUNC := access acosl alarm asinl atan2l atanl _atold bcmp bcopy brk \10 bzero cbrt cbrtl ceill cfgetispeed cfgetospeed cfsetispeed cfsetospeed \11 chdir chmod chsize close closedir copysign copysignf copysignl coshl \12 cosl creat cuserid daylight dup dup2 edata end endpwent environ eof \13 etext execl execle execlp execlpe execv execve execvp execvpe expl fabsl \14 fcloseall fcntl fdopen ffs fgetchar filelength flock floorl flushall fmodl \15 fnmatch fork fpathconf fputchar frexpl fstat fsync ftime ftruncate ftw \16 gcvt getcwd getegid geteuid getgid getgrgid getgrnam getgroups getlogin \17 getopt getpagesize getpass getpgrp getpid getppid getpwent getpwnam \18 getpwuid gettimeofday getuid getw getwd glob globfree HUGE hypot hypotl \19 index ioctl isascii isatty kill ldexpl _LHUGE log10l logl lseek memccpy \20 memicmp mkdir mkstemp mktemp modfl nextafter nextafterf nextafterl open \21 opendir optarg opterr optind optmode optopt optswchar pathconf pause pclose \22 pipe popen powl profil ptrace putenv putw read readdir readv rewinddir \23 rindex rint rintl rmdir sbrk seekdir select setbuffer setgid setmode \24 set_new_handler setpgid setpwent settimeofday setuid sigaction sigaddset \25 sigdelset sigemptyset sigfillset sigismember siglongjmp sigpending \26 sigprocmask sigsetjmp sigsuspend sinhl sinl sleep snprintf sopen spawnl \27 spawnle spawnlp spawnlpe spawnv spawnve spawnvp spawnvpe sqrtl stat strdup \28 stricmp strlwr strnicmp strnset strptime strrev strset strtof strtold \29 strupr swab sysconf sys_errlist sys_nerr tanhl tanl tcdrain tcflow tcflush \30 tcgetattr tcgetpgrp tcsendbreak tcsetattr tcsetpgrp tell telldir tempnam \31 times timezone toascii trunc truncl truncate ttyname tzname tzset ulimit \32 umask uname unlink utime utimes vsnprintf wait waitpid write writev33 34 14 include common.smak 35 15 36 .DIRS := $.$(.TKIND.DIR)src/lib/alias/ 37 .OBJS := $(addprefix $(.DIRS),$(addsuffix .o,$(.FUNC))) 38 TARGDIRS += $(.DIRS) 16 ALIAS.FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk _) 17 ALIAS._FUNCS = $(shell gawk -f src/lib/alias/aliasfuncs.awk __) 39 18 40 $(.MODULE): $ (.DIRS) $.$(.TARG)19 $(.MODULE): $.$(.TARG) 41 20 42 $.$(.TARG): $(.OBJS) 43 $(DO.LIBRARY) 21 DO.STDALIAS = \ 22 echo 'Aliasing $1 to $2 ...'; \ 23 echo '.stabs "$1",11,0,0,0;.stabs "$2",1,0,0,0;' | as -o $3 44 24 45 $(.OBJS): 46 $(COMSPEC) /c src\\lib\\alias\\$(CPU)\\emxalias.cmd $(patsubst %.o,%,$(notdir $@)) _$(patsubst %.o,%,$(notdir $@)) $(subst /,\,$@) 25 # For every aliased function create a .o file containing the alias 26 # and add it to the target library. 27 $.$(.TARG): $.$(.TKIND.DIR)c.a $.$(.TKIND.DIR)sys.a $.$(.TKIND.DIR)c_app.a 28 $(call RM,$@) 29 @$(foreach x,$(ALIAS.FUNCS),\ 30 $(call DO.STDALIAS,_$x,__std_$x,$(dir $@)$x.o)$(NL)) 31 @$(foreach x,$(ALIAS._FUNCS),\ 32 $(call DO.STDALIAS,__$x,__std_$x,$(dir $@)_$x.o)$(NL)) 33 $(AR) $(ARFLAGS) $@ $(addprefix $(dir $@),\ 34 $(addsuffix .o,$(ALIAS.FUNCS) $(addprefix _,$(ALIAS._FUNCS)))) 35 @$(call RM,$(addprefix $(dir $@),$(addsuffix .o,$(ALIAS.FUNCS)\ 36 $(addprefix _,$(ALIAS._FUNCS))))) 47 37 48 38 include comend.smak 49 50 .FUNC := -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/Attic/386/crt2.s
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 9 9 10 10 .globl __entry1 11 .globl __ environ11 .globl __std_environ 12 12 .globl __org_environ 13 13 … … 19 19 xorl %ebp, %ebp /* End of stack frames */ 20 20 leal (%esp), %edi /* argv[] */ 21 movl %edi, __ environ21 movl %edi, __std_environ 22 22 movl %edi, __org_environ 23 23 pushl %edi /* envp */ … … 37 37 ret 38 38 39 . data39 .bss 40 40 41 .comm __environ,442 .comm __org_environ,441 __std_environ: .space 4 42 __org_environ: .space 4 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/app.smak
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 7 7 .TKIND := aout 8 8 .TARGET := c_app$A 9 .TSRC.386 := $(addprefix 386/,crt2.s crt3.s emxio.s inp8.s inp16.s inp32.s \ 10 inps8.s inps16.s inps32.s outp8.s outp16.s outp32.s outps8.s outps8da.s \ 11 outps16.s outps32.s outpt.s wait0.s wait01.s wait1.s wait10.s) 12 .TSRC := $(addprefix src/lib/app/,$(.TSRC.$(CPU)) \ 13 getenv.c putenv.c stdio.c iodata.c) 9 .TSRC.386 := $(wildcard src/lib/app/386/*.s) 10 .TSRC := $(.TSRC.$(CPU)) $(wildcard src/lib/app/*.c) 14 11 .TCF.src/lib/app/stdio.c := -D_NFILES=40 15 12 .TCF.src/lib/app/iodata.c := -D_NFILES=40 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/getenv.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* getenv.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> 5 6 6 char * getenv(const char *name)7 char *_STD(getenv) (const char *name) 7 8 { 8 9 int len; 9 10 char **p; 10 11 11 if (name == NULL || _environ == NULL)12 if (name == NULL || environ == NULL) 12 13 return NULL; 13 14 len = strlen (name); 14 for (p = _environ; *p != NULL; ++p)15 for (p = environ; *p != NULL; ++p) 15 16 if (strncmp (*p, name, len) == 0 && (*p)[len] == '=') 16 17 return *p + len + 1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/iodata.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* iodata.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <fcntl.h> 4 5 #include <emx/io.h> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/putenv.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* putenv.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 7 8 #include <emx/time.h> /* _tzset_flag */ 8 9 9 int _ putenv(const char *string)10 int _STD(putenv) (const char *string) 10 11 { 11 12 char *s, **p; … … 23 24 else 24 25 len = s - string; 25 p = _environ;26 p = environ; 26 27 env_size = 0; 27 28 if (p != NULL) … … 35 36 if (p == NULL || *p == NULL) 36 37 { 37 if ( _environ == _org_environ)38 if (environ == _org_environ) 38 39 { 39 40 p = malloc ((env_size+2) * sizeof (char *)); 40 41 if (p == NULL) return -1; 41 _environ = p;42 environ = p; 42 43 if (env_size != 0) 43 memcpy ( _environ, _org_environ, env_size * sizeof (char *));44 memcpy (environ, _org_environ, env_size * sizeof (char *)); 44 45 } 45 46 else 46 47 { 47 p = realloc ( _environ, (env_size+2) * sizeof (char *));48 p = realloc (environ, (env_size+2) * sizeof (char *)); 48 49 if (p == NULL) return -1; 49 _environ = p;50 environ = p; 50 51 } 51 _environ[env_size+0] = (char *)string;52 _environ[env_size+1] = NULL;52 environ[env_size+0] = (char *)string; 53 environ[env_size+1] = NULL; 53 54 } 54 55 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/stdio.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* stdio.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/atof.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atof.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> 5 6 #include <math.h> 6 7 7 double atof(const char *s)8 double _STD(atof) (const char *s) 8 9 { 9 10 return strtod (s, NULL); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/atofl.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atofl.c (emx+gcc) -- Copyright (c) 1993-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> 5 6 #include <math.h> 6 7 7 long double _ atofl(const char *s)8 long double _STD(atofl) (const char *s) 8 9 { 9 return _strtold (s, NULL);10 return strtold (s, NULL); 10 11 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/atoi.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atoi.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 int atoi(const char *string)6 int _STD(atoi) (const char *string) 6 7 { 7 8 int n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/atol.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atol.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 long atol(const char *string)6 long _STD(atol) (const char *string) 6 7 { 7 8 long n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/atoll.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atoll.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 long long _ atoll(const char *string)6 long long _STD(atoll) (const char *string) 6 7 { 7 8 long long n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/gcvt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* gcvt.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 9 10 #include <emx/locale.h> 10 11 11 char *_ gcvt(double x, int digits, char *buffer)12 char *_STD(gcvt) (double x, int digits, char *buffer) 12 13 { 13 14 char digstr[DECIMAL_DIG+2], *str, *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/itoa.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* itoa.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/lltoa.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* lltoa.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 char *_ lltoa(long long value, char *string, int radix)6 char *_STD(lltoa) (long long value, char *string, int radix) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/ltoa.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* ltoa.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 char *_ ltoa(long value, char *string, int radix)6 char *_STD(ltoa) (long value, char *string, int radix) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/strtod.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strtod.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <math.h> … … 6 7 #include <emx/float.h> 7 8 8 double strtod(const char *string, char **end_ptr)9 double _STD(strtod) (const char *string, char **end_ptr) 9 10 { 10 11 const char *end; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/strtof.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strtof.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <math.h> … … 6 7 #include <emx/float.h> 7 8 8 float _ strtof(const char *string, char **end_ptr)9 float _STD(strtof) (const char *string, char **end_ptr) 9 10 { 10 11 const char *end; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/strtol.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strtol.c (emx+gcc) -- Copyright (c) 1990-2001 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <limits.h> … … 21 22 #define UTYPE unsigned long 22 23 #ifdef UNSIGNED 23 #define NAME strtoul24 #define NAME _STD(strtoul) 24 25 #define TYPE unsigned long 25 26 #define MAX ULONG_MAX 26 27 #else 27 #define NAME strtol28 #define NAME _STD(strtol) 28 29 #define TYPE long 29 30 #define MAX LONG_MAX -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/conv/strtold.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strtold.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <math.h> … … 6 7 #include <emx/float.h> 7 8 8 long double _ strtold(const char *string, char **end_ptr)9 long double _STD(strtold) (const char *string, char **end_ptr) 9 10 { 10 11 const char *end; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/emx_386/syscalls.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 / emx_386/syscalls.h (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes 2 3 #define SYSCALL(x) movb $x,%ah;call ___syscall4 2 5 3 #define ENOMEM 12 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_flushst.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 51 51 w = 0; 52 52 if (pflags != NULL && (*pflags & O_APPEND)) 53 _lseek (fh, 0L, SEEK_END);53 lseek (fh, 0L, SEEK_END); 54 54 } 55 55 stream->_ptr = stream->_buffer; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_fopen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 10 10 #define TRUE 1 11 11 12 FILE *_ fopen(FILE *dst, const char *fname, const char *mode, int shflag,13 int lock)12 FILE *_openstream (FILE *dst, const char *fname, const char *mode, int shflag, 13 int lock) 14 14 { 15 15 char ok, bt; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_fsopen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 10 10 f = _newstream (); 11 11 if (f != NULL) 12 f = _ fopen(f, fname, mode, shflag, 1);12 f = _openstream (f, fname, mode, shflag, 1); 13 13 return f; 14 14 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_input.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 523 523 { 524 524 case 'L': 525 lx = _strtold (p, &q);525 lx = strtold (p, &q); 526 526 break; 527 527 case 'l': … … 529 529 break; 530 530 default: 531 fx = _strtof (p, &q);531 fx = strtof (p, &q); 532 532 break; 533 533 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_isterm.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 8 8 int j; 9 9 10 if (! _isatty (handle))10 if (!isatty (handle)) 11 11 return 0; 12 12 j = __ioctl1 (handle, 0); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_output.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 288 288 { 289 289 if (x == 'X') 290 _strupr (str);290 strupr (str); 291 291 return cvt_integer (v, ((!zero && v->hash) ? "0x" : NULL), 292 292 str, zero, FALSE, FALSE); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_seekhdr.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 24 24 int saved_errno; 25 25 26 original_pos = _tell (handle);27 if ( _read (handle, &exe_hdr, sizeof (exe_hdr)) != sizeof (exe_hdr))26 original_pos = tell (handle); 27 if (read (handle, &exe_hdr, sizeof (exe_hdr)) != sizeof (exe_hdr)) 28 28 goto failure; 29 29 if (memcmp (exe_hdr.magic, "MZ", 2) != 0) 30 return ( _lseek (handle, original_pos, SEEK_SET) == -1 ? -1 : 0);31 if ( _lseek (handle, original_pos + 16 * exe_hdr.hdr_size, SEEK_SET) == -1)30 return (lseek (handle, original_pos, SEEK_SET) == -1 ? -1 : 0); 31 if (lseek (handle, original_pos + 16 * exe_hdr.hdr_size, SEEK_SET) == -1) 32 32 goto failure; 33 if ( _read (handle, &patch, sizeof (patch)) != sizeof (patch))33 if (read (handle, &patch, sizeof (patch)) != sizeof (patch)) 34 34 goto failure; 35 35 if (memcmp (patch.sig, "emx", 3) != 0) 36 36 goto failure; 37 if ( _lseek (handle, original_pos + patch.hdr_loc_lo37 if (lseek (handle, original_pos + patch.hdr_loc_lo 38 38 + 65536L * patch.hdr_loc_hi, SEEK_SET) == -1) 39 39 goto failure; … … 42 42 failure: 43 43 saved_errno = errno; 44 _lseek (handle, original_pos, SEEK_SET);44 lseek (handle, original_pos, SEEK_SET); 45 45 errno = saved_errno; 46 46 return -1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_str_rd.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 11 11 do 12 12 { 13 r = _read (fd, buf, nbyte);13 r = read (fd, buf, nbyte); 14 14 } while (r == -1 && errno == EINTR); 15 15 return r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_str_wr.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 11 11 do 12 12 { 13 r = _write (fd, buf, nbyte);13 r = write (fd, buf, nbyte); 14 14 } while (r == -1 && errno == EINTR); 15 15 return r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_tempnam.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 80 80 memmove (p, prefix, strlen (prefix)); 81 81 errno = 0; 82 if ( _access (tmpname, 0) != 0)82 if (access (tmpname, 0) != 0) 83 83 { 84 84 if (errno == ENOENT) … … 98 98 } 99 99 free (tmpname); 100 p = _strdup (buf);100 p = strdup (buf); 101 101 if (p == NULL) 102 102 errno = ENOMEM; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_tmpidxn.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 40 40 strcat (string + len, ".tmp"); 41 41 errno = 0; 42 if ( _access (string, 0) != 0)42 if (access (string, 0) != 0) 43 43 { 44 44 if (errno == ENOENT) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/access.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* access.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <io.h> 5 #include <alloca.h>6 6 #include <errno.h> 7 7 #include <emx/io.h> 8 8 #include <emx/syscalls.h> 9 9 10 int access(const char *name, int mode)10 int _STD(access) (const char *name, int mode) 11 11 { 12 12 int a, slash; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/chmod.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* chmod.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 int chmod(const char *name, int pmode)10 int _STD(chmod) (const char *name, int pmode) 10 11 { 11 12 int attr, rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/chsize.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* chsize.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <io.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 int chsize(int handle, long length)10 int _STD(chsize) (int handle, long length) 10 11 { 11 12 long n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/close.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* close.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int close(int handle)9 int _STD(close) (int handle) 9 10 { 10 11 if (_fd_flags (handle) == NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/creat.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* creat.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <fcntl.h> 5 6 6 int creat(const char *name, int pmode)7 int _STD(creat) (const char *name, int pmode) 7 8 { 8 return _open (name, O_WRONLY|O_TRUNC|O_CREAT, pmode);9 return open (name, O_WRONLY|O_TRUNC|O_CREAT, pmode); 9 10 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/dup.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* dup.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int dup(int handle)9 int _STD(dup) (int handle) 9 10 { 10 11 int new, *pflags1, *pflags2, *pla1, *pla2; 11 12 12 13 if ((pflags1 = _fd_flags (handle)) == NULL 13 14 || (pla1 = _fd_lookahead (handle)) == NULL) 14 15 { 15 16 errno = EBADF; … … 22 23 || (pla2 = _fd_lookahead (new)) == NULL) 23 24 { 24 __close (new);25 close (new); 25 26 errno = EMFILE; 26 27 return -1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/dup2.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* dup2.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int dup2(int handle1, int handle2)9 int _STD(dup2) (int handle1, int handle2) 9 10 { 10 11 int *pflags1, *pflags2, *pla1, *pla2; 11 12 12 13 if ((pflags1 = _fd_flags (handle1)) == NULL 13 14 14 || (pla1 = _fd_lookahead (handle1)) == NULL 15 || handle2 < 0) 15 16 { 16 17 errno = EBADF; … … 22 23 23 24 if ((pflags2 = _fd_init (handle2)) == NULL 24 25 || (pla2 = _fd_lookahead (handle2)) == NULL) 25 26 { 26 27 /* TODO: Unfortunately, the original HANDLE2, if there was one, 27 28 is now closed. */ 28 __close (handle2);29 close (handle2); 29 30 errno = EMFILE; 30 31 return -1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/eaget.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 6 6 #include <string.h> 7 7 #include <io.h> 8 #include <alloca.h> 8 9 #include <errno.h> 9 #include <alloca.h>10 10 #include <sys/ea.h> 11 11 #include "ea.h" -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/eof.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* eof.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> 5 6 #include <emx/io.h> 6 7 7 int eof(int handle)8 int _STD(eof) (int handle) 8 9 { 9 10 int *pflags; … … 17 18 if (*pflags & F_EOF) /* Ctrl-Z reached */ 18 19 return 1; 19 cur = _tell (handle);20 cur = tell (handle); 20 21 if (cur < 0) 21 22 return -1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fclose.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fclose.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> … … 7 8 #include <emx/io.h> 8 9 9 int fclose(FILE *stream)10 int _STD(fclose) (FILE *stream) 10 11 { 11 12 int result; … … 17 18 result = 0; 18 19 result = fflush (stream); 19 if ( _close (stream->_handle) < 0)20 if (close (stream->_handle) < 0) 20 21 result = EOF; 21 22 if (result == 0 && (stream->_flags & _IOTMP)) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fcloseal.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 4 4 #include <emx/io.h> 5 5 6 int fcloseall (void)6 int _fcloseall (void) 7 7 { 8 8 int i, n, start; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fcntl.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* fcntl.c (emx+gcc) -- Copyright (c) 1992-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdarg.h> 4 5 #include <unistd.h> 5 6 #include <io.h> 6 7 #include <fcntl.h> 7 #include <alloca.h>8 8 #include <errno.h> 9 9 #include <limits.h> … … 38 38 for (;;) 39 39 { 40 fd = _dup (handle);40 fd = dup (handle); 41 41 if (fd < 0 || fd >= handle2) 42 42 break; … … 46 46 happens not to work as advertised. */ 47 47 48 _close (fd);48 close (fd); 49 49 fd = -1; errno = EMFILE; 50 50 break; … … 54 54 e = errno; 55 55 while (n > 0) 56 _close (handles[--n]);56 close (handles[--n]); 57 57 errno = e; 58 58 return fd; … … 60 60 61 61 62 int fcntl(int handle, int request, ...)62 int _STD(fcntl) (int handle, int request, ...) 63 63 { 64 64 va_list va; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fdopen.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fdopen.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <io.h> … … 12 13 /* Bug: doesn't check for compatible modes (O_ACCMODE) */ 13 14 14 FILE * fdopen(int handle, const char *mode)15 FILE *_STD(fdopen) (int handle, const char *mode) 15 16 { 16 17 char ok, bt; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/feof.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* feof.c (emx+gcc) -- Copyright (c) 1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int feof(FILE *s)6 int _STD(feof) (FILE *s) 6 7 { 7 8 return (s->_flags & _IOEOF ? 1 : 0); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ferror.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* ferror.c (emx+gcc) -- Copyright (c) 1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int ferror(FILE *s)6 int _STD(ferror) (FILE *s) 6 7 { 7 8 return (s->_flags & _IOERR ? 1 : 0); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fflush.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fflush.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 46 47 saved_errno = errno; 47 48 if ((stream->_flags & _IOREAD) && bbuf (stream) && 48 _ioctl (stream->_handle, FGETHTYPE, &ft) >= 0 && ft == HT_FILE)49 ioctl (stream->_handle, FGETHTYPE, &ft) >= 0 && ft == HT_FILE) 49 50 { 50 51 /* ISO 9899-1990, 7.9.5.2: "The fflush function returns EOF if a … … 52 53 pos = _ftell_nolock (stream); 53 54 if (pos != -1L) 54 _lseek (stream->_handle, pos, SEEK_SET);55 lseek (stream->_handle, pos, SEEK_SET); 55 56 } 56 57 errno = saved_errno; … … 64 65 65 66 66 int fflush(FILE *stream)67 int _STD(fflush) (FILE *stream) 67 68 { 68 69 int result, n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fgetc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fgetc.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int fgetc(FILE *stream)11 int _STD(fgetc) (FILE *stream) 11 12 { 12 13 int r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fgetchar.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fgetchar.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int fgetchar(void)6 int _STD(fgetchar) (void) 6 7 { 7 8 return getchar (); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fgetpos.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fgetpos.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int fgetpos(FILE *stream, fpos_t *pos)6 int _STD(fgetpos) (FILE *stream, fpos_t *pos) 6 7 { 7 8 long n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fgets.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fgets.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 char * fgets(char *buffer, int n, FILE *stream)11 char *_STD(fgets) (char *buffer, int n, FILE *stream) 11 12 { 12 13 int c; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fileleng.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fileleng.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <emx/syscalls.h> 5 6 6 long filelength(int handle)7 long _STD(filelength) (int handle) 7 8 { 8 9 long cur, n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fileno.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fileno.c (emx+gcc) -- Copyright (c) 1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int fileno(FILE *s)6 int _STD(fileno) (FILE *s) 6 7 { 7 8 return s->_handle; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/flock.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* flock.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/file.h> 4 5 #include <errno.h> 5 6 #include <emx/io.h> 6 7 7 int flock(int handle, int operation)8 int _STD(flock) (int handle, int operation) 8 9 { 9 10 if (_fd_flags (handle) == NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/flushall.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* flushall.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int flushall(void)11 int _STD(flushall) (void) 11 12 { 12 13 int i, n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fopen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fopen.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <share.h> 5 6 #include <emx/io.h> 6 7 7 FILE * fopen(const char *fname, const char *mode)8 FILE *_STD(fopen) (const char *fname, const char *mode) 8 9 { 9 10 FILE *f; … … 11 12 f = _newstream (); 12 13 if (f != NULL) 13 f = _ fopen(f, fname, mode, SH_DENYNO, 1);14 f = _openstream (f, fname, mode, SH_DENYNO, 1); 14 15 return f; 15 16 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fprintf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int fprintf(FILE *stream, const char *format, ...)12 int _STD(fprintf) (FILE *stream, const char *format, ...) 12 13 { 13 14 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fputc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fputc.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int fputc(int c, FILE *stream)11 int _STD(fputc) (int c, FILE *stream) 11 12 { 12 13 int r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fputchar.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fputchar.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int fputchar(int c)6 int _STD(fputchar) (int c) 6 7 { 7 8 return putchar (c); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fputs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fputs.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <string.h> 5 6 6 int fputs(const char *string, FILE *stream)7 int _STD(fputs) (const char *string, FILE *stream) 7 8 { 8 9 int len; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fread.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fread.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 13 14 #define min(a,b) (((a) < (b)) ? (a) : (b)) 14 15 15 size_t fread(void *buffer, size_t size, size_t count, FILE *stream)16 size_t _STD(fread) (void *buffer, size_t size, size_t count, FILE *stream) 16 17 { 17 18 size_t total, left, n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/freopen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* freopen.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <share.h> … … 8 9 #include <emx/io.h> 9 10 10 FILE * freopen(const char *fname, const char *mode, FILE *stream)11 FILE *_STD(freopen) (const char *fname, const char *mode, FILE *stream) 11 12 { 12 13 FILE *result; … … 15 16 if (stream->_flags & _IOOPEN) 16 17 fclose (stream); 17 result = _ fopen(stream, fname, mode, SH_DENYNO, 0);18 result = _openstream (stream, fname, mode, SH_DENYNO, 0); 18 19 STREAMV_UNLOCK; 19 20 return result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fscanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int fscanf(FILE *stream, const char *format, ...)12 int _STD(fscanf) (FILE *stream, const char *format, ...) 12 13 { 13 14 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fseek.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fseek.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 37 38 int text_mode, n; 38 39 39 file_pos = _tell (stream->_handle);40 file_pos = tell (stream->_handle); 40 41 if (file_pos == -1) return EOF; 41 42 cur_pos = _ftell_nolock (stream); … … 47 48 else if (origin == SEEK_END) 48 49 { 49 end_pos = _lseek (stream->_handle, 0L, SEEK_END);50 _lseek (stream->_handle, file_pos, SEEK_SET);50 end_pos = lseek (stream->_handle, 0L, SEEK_END); 51 lseek (stream->_handle, file_pos, SEEK_SET); 51 52 if (end_pos == -1) 52 53 return EOF; … … 171 172 } 172 173 173 if ( _lseek (stream->_handle, offset, origin) == -1)174 if (lseek (stream->_handle, offset, origin) == -1) 174 175 return EOF; 175 176 else … … 178 179 179 180 180 int fseek(FILE *stream, long offset, int origin)181 int _STD(fseek) (FILE *stream, long offset, int origin) 181 182 { 182 183 int result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fsetpos.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fsetpos.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int fsetpos(FILE *stream, const fpos_t *pos)6 int _STD(fsetpos) (FILE *stream, const fpos_t *pos) 6 7 { 7 8 if (fseek (stream, pos->_pos, SEEK_SET) != 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fstat.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fstat.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <io.h> … … 8 9 #include <emx/syscalls.h> 9 10 10 int fstat(int handle, struct stat *buffer)11 int _STD(fstat) (int handle, struct stat *buffer) 11 12 { 12 13 int rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ftell.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* ftell.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 19 20 else 20 21 { 21 pos = _tell (stream->_handle);22 pos = tell (stream->_handle); 22 23 if (pos == -1) 23 24 return -1; … … 98 99 99 100 100 long ftell(FILE *stream)101 long _STD(ftell) (FILE *stream) 101 102 { 102 103 long r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ftruncat.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ftruncat.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int ftruncate(int handle, long length)9 int _STD(ftruncate) (int handle, long length) 9 10 { 10 11 int *pflags; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/fwrite.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* fwrite.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 159 160 160 161 161 size_t fwrite(const void *buffer, size_t size, size_t count, FILE *stream)162 size_t _STD(fwrite) (const void *buffer, size_t size, size_t count, FILE *stream) 162 163 { 163 164 size_t r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/getchar.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* getchar.c (emx+gcc) -- Copyright (c) 1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int getchar(void)6 int _STD(getchar) (void) 6 7 { 7 8 return getc (stdin); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/gets.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* gets.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 char * gets(char *buffer)11 char *_STD(gets) (char *buffer) 11 12 { 12 13 int c; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/getw.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getw.c (emx+gcc) -- Copyright (c) 1992-1995 by Kai Uwe Rommel */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int getw(FILE *stream)6 int _STD(getw) (FILE *stream) 6 7 { 7 8 int x; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/io.smak
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 20 20 # bird: added dependency to help make make omf version. 21 21 $.omf/src/lib/io/386/binmode.obj: $.aout/src/lib/io/386/binmode.o 22 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ioctl.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ioctl.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stdarg.h> … … 14 15 #define FIONBIO 0x667e 15 16 16 int ioctl(int handle, int request, ...)17 int _STD(ioctl) (int handle, int request, ...) 17 18 { 18 19 va_list va; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/isatty.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* isatty.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> 5 6 #include <emx/io.h> 6 7 7 int isatty(int handle)8 int _STD(isatty) (int handle) 8 9 { 9 10 int *pflags; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/lseek.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* lseek.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 long lseek(int handle, long offset, int origin)9 long _STD(lseek) (int handle, long offset, int origin) 9 10 { 10 11 int *pflags, *pla; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/mkstemp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* mkstemp.c (emx+gcc) -- Copyright (c) 1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <process.h> … … 7 8 #include <errno.h> 8 9 9 int mkstemp(char *string)10 int _STD(mkstemp) (char *string) 10 11 { 11 12 int fd, pid, n; 12 13 char *s; 13 14 14 pid = _getpid ();15 pid = getpid (); 15 16 s = strchr (string, 0); 16 17 n = 0; … … 29 30 for (;;) 30 31 { 31 fd = _open (string, O_RDWR | O_CREAT | O_EXCL, 0600);32 fd = open (string, O_RDWR | O_CREAT | O_EXCL, 0600); 32 33 if (fd >= 0 || errno != EEXIST || *s == 'z') 33 34 return fd; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/mktemp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* mktemp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <process.h> … … 6 7 #include <errno.h> 7 8 8 char * mktemp(char *string)9 char *_STD(mktemp) (char *string) 9 10 { 10 11 int pid, n, saved_errno; … … 26 27 { 27 28 errno = 0; 28 if ( _access (string, 0) != 0 && errno == ENOENT)29 if (access (string, 0) != 0 && errno == ENOENT) 29 30 { 30 31 errno = saved_errno; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/open.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* open.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdarg.h> 4 5 #include <io.h> … … 6 7 #include <emx/io.h> 7 8 8 int open(const char *name, int oflag, ...)9 int _STD(open) (const char *name, int oflag, ...) 9 10 { 10 11 va_list va; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/pclose.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* pclose.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <process.h> … … 6 7 #include <emx/io.h> 7 8 8 int pclose(FILE *stream)9 int _STD(pclose) (FILE *stream) 9 10 { 10 11 int rc, write_mode; … … 18 19 if (write_mode && fclose (stream) != 0) 19 20 return -1; 20 if ( _waitpid (stream->_pid, &rc, 0) == -1)21 if (waitpid (stream->_pid, &rc, 0) == -1) 21 22 return -1; 22 23 if (!write_mode && fclose (stream) != 0 && errno != EBADF) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/pipe.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* pipe.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <fcntl.h> … … 10 11 int _pipe_size; 11 12 12 int pipe(int *two_handles)13 int _STD(pipe) (int *two_handles) 13 14 { 14 15 int *pflags1, *pflags2; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/popen.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* popen.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> … … 15 16 16 17 saved_errno = errno; 17 _dup2 (org_handle, handle);18 _close (org_handle);19 _fcntl (handle, F_SETFD, org_private);18 dup2 (org_handle, handle); 19 close (org_handle); 20 fcntl (handle, F_SETFD, org_private); 20 21 errno = saved_errno; 21 22 } … … 28 29 const char *sh, *base, *opt; 29 30 30 _fcntl (pipe_local, F_SETFD, 1);31 org_private = _fcntl (handle, F_GETFD, 0);31 fcntl (pipe_local, F_SETFD, 1); 32 org_private = fcntl (handle, F_GETFD, 0); 32 33 if (org_private == -1) 33 34 return NULL; 34 org_handle = _dup (handle);35 org_handle = dup (handle); 35 36 if (org_handle == -1) 36 37 return NULL; 37 _fcntl (org_handle, F_SETFD, 1);38 i = _dup2 (pipe_remote, handle);38 fcntl (org_handle, F_SETFD, 1); 39 i = dup2 (pipe_remote, handle); 39 40 if (i != handle) 40 41 { … … 43 44 return NULL; 44 45 } 45 if ( _close (pipe_remote) == -1)46 if (close (pipe_remote) == -1) 46 47 { 47 48 restore (org_handle, org_private, handle); … … 69 70 else 70 71 opt = "-c"; 71 i = _spawnlp (P_NOWAIT, sh, sh, opt, command, (char *)0);72 i = spawnlp (P_NOWAIT, sh, sh, opt, command, (char *)0); 72 73 if (i == -1) 73 74 { … … 82 83 83 84 84 FILE * popen(const char *command, const char *mode)85 FILE *_STD(popen) (const char *command, const char *mode) 85 86 { 86 87 int ph[2]; … … 93 94 return NULL; 94 95 } 95 if ( _pipe (ph) == -1)96 if (pipe (ph) == -1) 96 97 return NULL; 97 if ( _fcntl (ph[0], F_SETFD, 1) == -1)98 if (fcntl (ph[0], F_SETFD, 1) == -1) 98 99 return NULL; 99 if ( _fcntl (ph[1], F_SETFD, 1) == -1)100 if (fcntl (ph[1], F_SETFD, 1) == -1) 100 101 return NULL; 101 102 if (mode[0] == 'r') … … 106 107 { 107 108 saved_errno = errno; 108 _close (ph[0]);109 _close (ph[1]);109 close (ph[0]); 110 close (ph[1]); 110 111 errno = saved_errno; 111 112 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/printf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* printf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int printf(const char *format, ...)12 int _STD(printf) (const char *format, ...) 12 13 { 13 14 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/putchar.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* putchar.c (emx+gcc) -- Copyright (c) 1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int putchar(int c)6 int _STD(putchar) (int c) 6 7 { 7 8 return putc (c, stdout); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/puts.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* puts.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int puts(const char *string)12 int _STD(puts) (const char *string) 12 13 { 13 14 int result, len; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/putw.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* putw.c (emx+gcc) -- Copyright (c) 1992-1995 by Kai Uwe Rommel */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int putw(int x, FILE *stream)6 int _STD(putw) (int x, FILE *stream) 6 7 { 7 8 return (fwrite (&x, sizeof (x), 1, stream) == 1 ? x : EOF); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/read.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* read.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <io.h> … … 37 38 38 39 39 int read(int handle, void *buf, size_t nbyte)40 int _STD(read) (int handle, void *buf, size_t nbyte) 40 41 { 41 42 int n, *pflags, *pla; … … 61 62 /* special processing for text mode */ 62 63 if (!(*pflags & (F_PIPE|F_SOCKET|F_DEV)) && dst[n-1] == 0x1a && 63 _eof (handle))64 eof (handle)) 64 65 { 65 66 /* remove last Ctrl-Z in text files */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/readv.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* readv.c (emx+gcc) -- Copyright (c) 1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 10 11 #include <sys/uio.h> 11 12 12 int readv(int handle, const struct iovec *iov, int iovcnt)13 int _STD(readv) (int handle, const struct iovec *iov, int iovcnt) 13 14 { 14 15 int i, n; … … 44 45 } 45 46 46 n = _read (handle, buf, total);47 n = read (handle, buf, total); 47 48 if (n > 0) 48 49 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/rewind.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* rewind.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 void rewind(FILE *stream)11 void _STD(rewind) (FILE *stream) 11 12 { 12 13 STREAM_LOCK (stream); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/scanf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* scanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int scanf(const char *format, ...)12 int _STD(scanf) (const char *format, ...) 12 13 { 13 14 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/select.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* select.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <memory.h> 5 6 #include <io.h> 6 #include <alloca.h>7 7 #include <sys/types.h> 8 8 #include <sys/time.h> … … 12 12 #define MIN(a,b) (((a) < (b)) ? (a) : (b)) 13 13 14 int select(int nfds, fd_set *readfds, fd_set *writefds,15 fd_set *exceptfds, struct timeval *timeout)14 int _STD(select) (int nfds, fd_set *readfds, fd_set *writefds, 15 fd_set *exceptfds, struct timeval *timeout) 16 16 { 17 17 struct _select args; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/setbuf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* setbuf.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int setbuf(FILE *stream, char *buffer)6 int _STD(setbuf) (FILE *stream, char *buffer) 6 7 { 7 8 return setvbuf (stream, buffer, (buffer != NULL ? _IOFBF : _IONBF), BUFSIZ); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/setbuffe.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setbuffe.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 5 int setbuffer(FILE *stream, char *buffer, size_t size)6 int _STD(setbuffer) (FILE *stream, char *buffer, size_t size) 6 7 { 7 8 return setvbuf (stream, buffer, (buffer != NULL ? _IOFBF : _IONBF), size); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/setmode.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setmode.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <fcntl.h> … … 6 7 #include <emx/io.h> 7 8 8 int setmode(int handle, int mode)9 int _STD(setmode) (int handle, int mode) 9 10 { 10 11 int old_mode, *pflags; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/setvbuf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* setvbuf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int setvbuf(FILE *stream, char *buffer, int mode, size_t size)11 int _STD(setvbuf) (FILE *stream, char *buffer, int mode, size_t size) 11 12 { 12 13 if (!(stream->_flags & _IOOPEN) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/snprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* snprintf.c (emx+gcc) -- Copyright (c) 1995-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdarg.h> … … 6 7 #include <emx/io.h> 7 8 8 int snprintf(char *buffer, size_t n, const char *format, ...)9 int _STD(snprintf) (char *buffer, size_t n, const char *format, ...) 9 10 { 10 11 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/sopen.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* sopen.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdarg.h> 4 5 #include <io.h> 5 6 #include <emx/io.h> 6 7 7 int sopen(const char *name, int oflag, int shflag, ...)8 int _STD(sopen) (const char *name, int oflag, int shflag, ...) 8 9 { 9 10 va_list va; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/sprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sprintf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdarg.h> … … 6 7 #include <emx/io.h> 7 8 8 int sprintf(char *buffer, const char *format, ...)9 int _STD(sprintf) (char *buffer, const char *format, ...) 9 10 { 10 11 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/sscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* sscanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdarg.h> … … 7 8 #include <emx/io.h> 8 9 9 int sscanf(const char *buffer, const char *format, ...)10 int _STD(sscanf) (const char *buffer, const char *format, ...) 10 11 { 11 12 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/stat.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* stat.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> 5 6 #include <time.h> 6 7 #include <io.h> 7 #include <alloca.h>8 8 #include <errno.h> 9 9 #include <sys/types.h> … … 13 13 #include <emx/syscalls.h> 14 14 15 int stat(const char *name, struct stat *buffer)15 int _STD(stat) (const char *name, struct stat *buffer) 16 16 { 17 17 int rc, slash; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/tell.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* tell.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <errno.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 long tell(int handle)9 long _STD(tell) (int handle) 9 10 { 10 11 int *pflags, *pla; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/tmpfile.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 2 2 /* Copyright (c) 1991-1993 by Kolja Elsaesser */ 3 3 4 #include "libc-alias.h" 4 5 #include <stdio.h> 5 6 #include <stdlib.h> … … 13 14 14 15 15 FILE * tmpfile(void)16 FILE *_STD(tmpfile) (void) 16 17 { 17 18 char name[L_tmpnam]; … … 24 25 if (idx == -1) 25 26 return NULL; 26 fd = _open (name, O_RDWR|O_CREAT|O_EXCL|O_BINARY, 0644);27 fd = open (name, O_RDWR|O_CREAT|O_EXCL|O_BINARY, 0644); 27 28 } while (fd == -1 && errno == EEXIST); 28 29 if (fd == -1) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/tmpnam.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 2 2 /* Copyright (c) 1991-1993 by Kolja Elsaesser */ 3 3 4 #include "libc-alias.h" 4 5 #include <stdio.h> 5 6 #include <emx/thread.h> … … 7 8 8 9 9 char * tmpnam(char *string)10 char *_STD(tmpnam) (char *string) 10 11 { 11 12 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/truncate.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* truncate.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <fcntl.h> 5 6 6 int truncate(char *name, long length)7 int _STD(truncate) (char *name, long length) 7 8 { 8 9 int handle, result; … … 11 12 if (handle == -1) 12 13 return -1; 13 result = _ftruncate (handle, length);14 result = ftruncate (handle, length); 14 15 close (handle); 15 16 return result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ttyname.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ttyname.c (emx+gcc) -- Copyright (c) 1995-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <emx/syscalls.h> 5 6 #include <emx/thread.h> 6 7 7 char * ttyname(int handle)8 char *_STD(ttyname) (int handle) 8 9 { 9 10 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ungetc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* ungetc.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 109 110 110 111 if ((stream->_flags & _IOSPECIAL) 111 || _ioctl (stream->_handle, FGETHTYPE, &ft) < 0112 || ioctl (stream->_handle, FGETHTYPE, &ft) < 0 112 113 || ft != HT_FILE) 113 114 return EOF; … … 150 151 151 152 152 int ungetc(int c, FILE *stream)153 int _STD(ungetc) (int c, FILE *stream) 153 154 { 154 155 int result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/unlink.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* unlink.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <io.h> 4 5 #include <emx/syscalls.h> 5 6 6 int unlink(const char *name)7 int _STD(unlink) (const char *name) 7 8 { 8 return __remove (name); /* There are no links */9 return remove (name); /* There are no links */ 9 10 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/utime.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* utime.c (emx+gcc) -- Copyright (c) 1990-2000 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <sys/time.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 int utime(const char *name, const struct utimbuf *times)10 int _STD(utime) (const char *name, const struct utimbuf *times) 10 11 { 11 12 struct timeval tv[2]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/utimes.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* utimes.c (emx+gcc) -- Copyright (c) 1990-2000 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <sys/time.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int utimes(const char *name, const struct timeval *tvp)9 int _STD(utimes) (const char *name, const struct timeval *tvp) 9 10 { 10 11 struct timeval tv[2]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vfprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* vfprintf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int vfprintf(FILE *stream, const char *format, va_list arg_ptr)11 int _STD(vfprintf) (FILE *stream, const char *format, va_list arg_ptr) 11 12 { 12 13 int result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vfscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* vfscanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 9 10 #include <emx/io.h> 10 11 11 int vfscanf(FILE *stream, const char *format, va_list arg_ptr)12 int _STD(vfscanf) (FILE *stream, const char *format, va_list arg_ptr) 12 13 { 13 14 int r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* vprintf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 8 9 #include <emx/io.h> 9 10 10 int vprintf(const char *format, va_list arg_ptr)11 int _STD(vprintf) (const char *format, va_list arg_ptr) 11 12 { 12 13 int result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* vscanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/builtin.h> /* For <sys/fmutex.h> */ 4 5 #include <sys/fmutex.h> /* For <sys/rmutex.h> */ … … 7 8 #include <stdlib.h> 8 9 #include <stdarg.h> 9 #include <string.h>10 10 #include <emx/io.h> 11 11 12 int vscanf(const char *format, va_list arg_ptr)12 int _STD(vscanf) (const char *format, va_list arg_ptr) 13 13 { 14 14 int r; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vsnprint.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* vsnprintf.c (emx+gcc) -- Copyright (c) 1995-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <limits.h> 5 6 #include <emx/io.h> 6 7 7 int vsnprintf(char *buffer, size_t n, const char *format, va_list arg_ptr)8 int _STD(vsnprintf) (char *buffer, size_t n, const char *format, va_list arg_ptr) 8 9 { 9 10 FILE trick; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vsprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* vsprintf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <limits.h> 5 6 #include <emx/io.h> 6 7 7 int vsprintf(char *buffer, const char *format, va_list arg_ptr)8 int _STD(vsprintf) (char *buffer, const char *format, va_list arg_ptr) 8 9 { 9 10 FILE trick; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/vsscanf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* vsscanf.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdarg.h> 6 #include <limits.h> 5 7 #include <string.h> 6 #include <limits.h>7 8 #include <emx/io.h> 8 9 9 int vsscanf(const char *buffer, const char *format, va_list arg_ptr)10 int _STD(vsscanf) (const char *buffer, const char *format, va_list arg_ptr) 10 11 { 11 12 FILE trick; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/write.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* write.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <signal.h> … … 137 138 138 139 139 int write(int handle, const void *buf, size_t nbyte)140 int _STD(write) (int handle, const void *buf, size_t nbyte) 140 141 { 141 142 int n, *pflags; … … 161 162 if (errno == EPIPE) 162 163 { 163 __raise (SIGPIPE);164 raise (SIGPIPE); 164 165 errno = EPIPE; 165 166 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/writev.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* writev.c (emx+gcc) -- Copyright (c) 1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 10 11 #include <sys/uio.h> 11 12 12 int writev(int handle, const struct iovec *iov, int iovcnt)13 int _STD(writev) (int handle, const struct iovec *iov, int iovcnt) 13 14 { 14 15 int i, n; … … 52 53 } 53 54 54 n = _write (handle, buf, total);55 n = write (handle, buf, total); 55 56 if (mp != NULL) 56 57 free (mp); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/calloc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* calloc.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stddef.h> … … 10 11 #include <emx/thread.h> 11 12 12 void * calloc(size_t count, size_t size)13 void *_STD(calloc) (size_t count, size_t size) 13 14 { 14 15 _UM_MT_DECL -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/expand.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* expand.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stddef.h> … … 9 10 #include <emx/umalloc.h> 10 11 11 void *_ expand(void *block, size_t new_size)12 void *_STD(expand) (void *block, size_t new_size) 12 13 { 13 14 return _um_realloc (block, new_size, 4, _UMFI_NOMOVE); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/free.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* free.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stddef.h> … … 9 10 #include <emx/umalloc.h> 10 11 11 void free(void *block)12 void _STD(free) (void *block) 12 13 { 13 14 _um_free_maybe_lock (block, 1); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/malloc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* malloc.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stddef.h> … … 10 11 #include <emx/thread.h> 11 12 12 void * malloc(size_t size)13 void *_STD(malloc) (size_t size) 13 14 { 14 15 _UM_MT_DECL -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/realloc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* realloc.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <stddef.h> … … 9 10 #include <emx/umalloc.h> 10 11 11 void * realloc(void *block, size_t new_size)12 void *_STD(realloc) (void *block, size_t new_size) 12 13 { 13 14 if (block == NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/math/cbrt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* cbrt.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <math.h> 4 5 5 double _ cbrt(double x)6 double _STD(cbrt) (double x) 6 7 { 7 8 if (x >= 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/mbyte/mblen.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* mblen.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <emx/thread.h> … … 12 13 13 14 14 int mblen(const char *s, size_t n)15 int _STD(mblen) (const char *s, size_t n) 15 16 { 16 17 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/mbyte/mbstowcs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* mbstowcs.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <limits.h> 5 6 #include <emx/locale.h> 6 7 7 8 size_t mbstowcs (wchar_t *pwcs, const char *s, size_t n) 8 size_t _STD(mbstowcs) (wchar_t *pwcs, const char *s, size_t n) 9 9 { 10 10 int shift, i; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/mbyte/mbtowc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* mbtowc.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <emx/thread.h> … … 12 13 13 14 14 int mbtowc(wchar_t *pwc, const char *s, size_t n)15 int _STD(mbtowc) (wchar_t *pwc, const char *s, size_t n) 15 16 { 16 17 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/mbyte/wcstombs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* wcstombs.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <ctype.h> 5 6 #include <emx/locale.h> 6 7 7 size_t wcstombs(char *s, const wchar_t *pwcs, size_t n)8 size_t _STD(wcstombs) (char *s, const wchar_t *pwcs, size_t n) 8 9 { 9 10 size_t result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/mbyte/wctomb.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* wctomb.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <limits.h> … … 12 13 #endif 13 14 14 int wctomb(char *s, wchar_t wchar)15 int _STD(wctomb) (char *s, wchar_t wchar) 15 16 { 16 17 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/386/sigsetjm.s
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 43 43 pushl $0 /* iset */ 44 44 pushl $3 /* how: SIG_SETMASK */ 45 call _ _sigprocmask45 call _sigprocmask 46 46 addl $12, %esp 47 47 1: xorl %eax, %eax … … 61 61 pushl %eax /* iset */ 62 62 pushl $3 /* how: SIG_SETMASK */ 63 call _ _sigprocmask63 call _sigprocmask 64 64 addl $12, %esp 65 65 1: movl 1*4(%esp), %eax /* there */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/abort.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* abort.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <signal.h> … … 7 8 static sig_atomic_t abort_flag = 0; 8 9 9 void abort(void)10 void _STD(abort) (void) 10 11 { 11 12 sigset_t set; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/abs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* abs.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */ 2 2 3 int abs (int n) 3 #include "libc-alias.h" 4 5 int _STD(abs) (int n) 4 6 { 5 7 return (n < 0 ? -n : n); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/assert.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
-
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/atexit.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* atexit.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <emx/startup.h> 5 6 6 int atexit(void (*func)(void))7 int _STD(atexit) (void (*func)(void)) 7 8 { 8 9 if (_atexit_n >= sizeof (_atexit_v) / sizeof (_atexit_v[0])) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/bsearch.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* bsearch.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 void * bsearch (const void *key, const void *base, size_t num, size_t width,6 6 void *_STD(bsearch) (const void *key, const void *base, size_t num, 7 size_t width, int (*compare)(const void *key, const void *element)) 7 8 { 8 9 int left, right, median, sign; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/chdir.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* chdir.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 int chdir(const char *name)9 int _STD(chdir) (const char *name) 9 10 { 10 11 size_t len; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/cuserid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* cuserid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> 5 6 #include <string.h> 6 7 7 char * cuserid(char *buffer)8 char *_STD(cuserid) (char *buffer) 8 9 { 9 10 static char tmp_name[L_cuserid]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/dirent.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* dirent.c (emx+gcc) */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 37 38 const char *base); 38 39 39 int closedir(DIR *dirp)40 int _STD(closedir) (DIR *dirp) 40 41 { 41 42 free_dircontents (dirp->dd_contents); … … 45 46 46 47 47 struct dirent * readdir(DIR *dirp)48 struct dirent *_STD(readdir) (DIR *dirp) 48 49 { 49 50 if (dirp->dd_cp == NULL) … … 65 66 66 67 67 void seekdir(DIR *dirp, long off)68 void _STD(seekdir) (DIR *dirp, long off) 68 69 { 69 70 long i; 70 71 struct _dircontents *dp; 71 72 72 73 if (off >= 0) 73 74 { … … 83 84 84 85 85 void rewinddir(DIR *dirp)86 void _STD(rewinddir) (DIR *dirp) 86 87 { 87 88 _seekdir (dirp, 0L); … … 89 90 90 91 91 long telldir(DIR *dirp)92 long _STD(telldir) (DIR *dirp) 92 93 { 93 94 return dirp->dd_loc; … … 95 96 96 97 97 DIR * opendir(const char *name)98 DIR *_STD(opendir) (const char *name) 98 99 { 99 100 struct stat statb; … … 104 105 char nbuf[MAXPATHLEN+1]; 105 106 int len; 106 107 107 108 len = strlen (name); 108 109 memcpy (nbuf, name, len + 1); … … 113 114 nbuf[len] = 0; 114 115 } 115 if ( _stat (nbuf, &statb) < 0)116 if (stat (nbuf, &statb) < 0) 116 117 return NULL; 117 118 if ((statb.st_mode & S_IFMT) != S_IFDIR) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/dtread.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 76 76 new->next = NULL; 77 77 new->sub = NULL; 78 new->name = _strdup (dp->find.name);78 new->name = strdup (dp->find.name); 79 79 if (new->name == NULL) 80 80 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/envargs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 13 13 if (str == NULL || *str == 0) 14 14 return; 15 str = _strdup (str);15 str = strdup (str); 16 16 if (str == NULL) 17 17 return; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/fnexplod.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 21 21 contains. */ 22 22 23 if ( _stat (mask, &st) == 0 && S_ISDIR (st.st_mode))23 if (stat (mask, &st) == 0 && S_ISDIR (st.st_mode)) 24 24 return NULL; 25 25 … … 47 47 strcpy (p, find.name); 48 48 _fnlwr2 (name, name); 49 q = _strdup (name);49 q = strdup (name); 50 50 if (q == NULL) 51 51 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/fnmatch.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fnmatch.c (emx+gcc) -- Copyright (c) 1994-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> … … 592 593 /* This is the public entrypoint, with signed arguments. */ 593 594 594 int fnmatch(const char *mask, const char *name, int flags)595 int _STD(fnmatch) (const char *mask, const char *name, int flags) 595 596 { 596 597 return _fnmatch_unsigned (mask, name, flags); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/fpathcon.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fpathcon.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <limits.h> … … 7 8 /* Return the POSIX.1 minimum values, for now. */ 8 9 9 long fpathconf(int handle, int name)10 long _STD(fpathconf) (int handle, int name) 10 11 { 11 12 switch (name) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/ftw.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ftw.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 22 23 struct dirent *ent; 23 24 24 dir = _opendir (name_buf);25 dir = opendir (name_buf); 25 26 if (dir == NULL) 26 27 return -1; … … 30 31 for (;;) 31 32 { 32 ent = _readdir (dir); /* emx version never fails */33 ent = readdir (dir); /* emx version never fails */ 33 34 if (ent == NULL) 34 35 break; … … 41 42 } 42 43 strcpy (name_buf + index, ent->d_name); 43 if ( _stat (name_buf, &st) != 0)44 if (stat (name_buf, &st) != 0) 44 45 flag = FTW_NS; 45 46 else if ((st.st_mode & S_IFMT) == S_IFDIR) … … 61 62 } 62 63 } 63 _closedir (dir);64 closedir (dir); 64 65 return rc; 65 66 } 66 67 67 68 68 int ftw(const char *path,69 70 69 int _STD(ftw) (const char *path, 70 int (*fn)(const char *name, const struct stat *stat_ptr, int flag), 71 int depth) 71 72 { 72 73 struct stat st; … … 80 81 return -1; 81 82 } 82 if ( _stat (path, &st) != 0)83 if (stat (path, &st) != 0) 83 84 return -1; 84 85 if ((st.st_mode & S_IFMT) != S_IFDIR) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getcwd.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getcwd.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 char * getcwd(char *buffer, size_t size)10 char *_STD(getcwd) (char *buffer, size_t size) 10 11 { 11 12 char tmp[MAXPATHLEN+1]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getegid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 4 4 #include <sys/types.h> 5 5 6 gid_t getegid (void)6 gid_t _getegid (void) 7 7 { 8 8 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/geteuid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 4 4 #include <sys/types.h> 5 5 6 uid_t geteuid (void)6 uid_t _geteuid (void) 7 7 { 8 8 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getgid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getgid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <sys/types.h> 5 6 6 gid_t getgid(void)7 gid_t _STD(getgid) (void) 7 8 { 8 9 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getgrgid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 7 7 /* Dummy function */ 8 8 9 struct group * getgrgid (gid_t gid)9 struct group *_getgrgid (gid_t gid) 10 10 { 11 11 static struct group tmp_grp; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getgrnam.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getgrnam.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <sys/types.h> … … 7 8 /* Dummy function */ 8 9 9 struct group * getgrnam(const char *name)10 struct group *_STD(getgrnam) (const char *name) 10 11 { 11 12 static struct group tmp_grp; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getgroup.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getgroup.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <sys/types.h> 5 6 6 int getgroups(int gidsetsize, gid_t grouplist [])7 int _STD(getgroups) (int gidsetsize, gid_t grouplist []) 7 8 { 8 9 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getlogin.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getlogin.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> … … 6 7 #include <unistd.h> 7 8 8 char * getlogin(void)9 char *_STD(getlogin) (void) 9 10 { 10 11 static char tmp_name[L_cuserid]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getname.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* getname.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 12 13 /* Note: This function is used by emx.dll. */ 13 14 14 char *_ getname(const char *path)15 char *_STD(getname) (const char *path) 15 16 { 16 17 const char *p; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getopt.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 34 34 /* Note: `argv' is not const as GETOPT_ANY reorders argv[]. */ 35 35 36 int getopt (int argc, char * argv[], const char *opt_str)36 int _getopt (int argc, char * argv[], const char *opt_str) 37 37 { 38 38 char c, *q; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpages.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getpages.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 5 int getpagesize(void)6 int _STD(getpagesize) (void) 6 7 { 7 8 return 4096; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpass.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getpass.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 5 char * getpass(const char *prompt)6 char *_STD(getpass) (const char *prompt) 6 7 { 7 8 return _getpass2 (prompt, 1); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpass1.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 8 8 int ht, kbd; 9 9 10 kbd = ( _ioctl (0, FGETHTYPE, &ht) == 0 && ht == HT_DEV_CON);10 kbd = (ioctl (0, FGETHTYPE, &ht) == 0 && ht == HT_DEV_CON); 11 11 return _getpass2 (prompt, kbd); 12 12 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpgrp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getpgrp.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <process.h> 5 6 #include <sys/types.h> 6 7 7 pid_t getpgrp(void)8 pid_t _STD(getpgrp) (void) 8 9 { 9 10 return getpid (); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpwnam.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getpwnam.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <pwd.h> … … 9 10 /* Dummy function */ 10 11 11 struct passwd * getpwnam(const char *name)12 struct passwd *_STD(getpwnam) (const char *name) 12 13 { 13 14 if (name == NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getpwuid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getpwuid.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <pwd.h> … … 8 9 /* Dummy function */ 9 10 10 struct passwd * getpwuid(uid_t uid)11 struct passwd *_STD(getpwuid) (uid_t uid) 11 12 { 12 13 return _getpw (uid, NULL); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getuid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getuid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <sys/types.h> 5 6 6 uid_t getuid(void)7 uid_t _STD(getuid) (void) 7 8 { 8 9 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/getwd.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* getwd.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 char * getwd(char *buffer)10 char *_STD(getwd) (char *buffer) 10 11 { 11 12 if (buffer == NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/glob.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 5 5 #include <errno.h> 6 6 #include <unistd.h> 7 #include <glob.h> 7 8 #include <alloca.h> 8 9 #include <emx/fnmatch.h> 9 #include <glob.h>10 10 #include <sys/types.h> 11 11 #include <dirent.h> … … 48 48 else 49 49 { 50 s = _strdup (s0);50 s = strdup (s0); 51 51 if (s == NULL) 52 52 goto nospace; … … 176 176 177 177 178 int glob (const char *pattern, int flags,179 int (*errfun)(const char *e_path, int e_errno), glob_t *pglob)178 int _glob (const char *pattern, int flags, 179 int (*errfun)(const char *e_path, int e_errno), glob_t *pglob) 180 180 { 181 181 struct globi g; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/labs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* labs.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */ 2 2 3 long labs (long n) 3 #include "libc-alias.h" 4 5 long _STD(labs) (long n) 4 6 { 5 7 return (n < 0 ? -n : n); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/mkdir.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* mkdir.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <errno.h> 5 6 #include <emx/syscalls.h> 6 7 7 int mkdir(const char *name, long mode)8 int _STD(mkdir) (const char *name, long mode) 8 9 { 9 (void)mode; /* Keep the compiler happy */10 mode = 0; /* Keep the compiler happy */ 10 11 if (__mkdir (name) == 0) 11 12 return 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/os2bad.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 9 9 { 10 10 __write (2, msg, sizeof (msg) - 1); 11 exit (2);11 _exit (2); 12 12 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/path.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 10 10 if (strpbrk (name, "/\\:") != NULL) 11 11 { 12 if ( _access (name, 4) == 0)12 if (access (name, 4) == 0) 13 13 strcpy (dst, name); 14 14 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/pathconf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* pathconf.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <limits.h> … … 7 8 /* Return the POSIX.1 minimum values, for now. */ 8 9 9 long pathconf(const char *path, int name)10 long _STD(pathconf) (const char *path, int name) 10 11 { 11 12 switch (name) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/perror.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* perror.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> 5 6 6 void perror(const char *string)7 void _STD(perror) (const char *string) 7 8 { 8 9 int e = errno; … … 13 14 fputs (": ", stderr); 14 15 } 15 if (e >= 0 && e < _sys_nerr)16 if (e >= 0 && e < sys_nerr) 16 17 fputs (sys_errlist[e], stderr); 17 18 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/pwd.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* pwd.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdio.h> 4 5 #include <stdlib.h> … … 8 9 #include <emx/pwd.h> 9 10 10 11 11 static void path_assign (char *dst, const char *src, size_t dst_size) 12 12 { … … 15 15 } 16 16 17 18 struct passwd *_getpw (uid_t uid, const char *name) 17 struct passwd *_STD(getpw) (uid_t uid, const char *name) 19 18 { 20 19 static struct passwd tmp_pwd; … … 57 56 } 58 57 59 60 struct passwd *getpwent (void) 58 struct passwd *_STD(getpwent) (void) 61 59 { 62 60 return NULL; /* End of /etc/passwd reached */ 63 61 } 64 62 65 66 void setpwent (void) 63 void _STD(setpwent) (void) 67 64 { 68 65 } 69 66 70 71 void endpwent (void) 67 void _STD(endpwent) (void) 72 68 { 73 69 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/qsort.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* qsort.c (emx+gcc) -- Copyright (c) 1990-1994 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <memory.h> 5 6 6 7 static void qsort1 (char *l, char *r, size_t width, 7 8 int (*compare)(const void *x1, const void *x2)); 8 9 9 void qsort(void *base, size_t num, size_t width,10 10 void _STD(qsort) (void *base, size_t num, size_t width, 11 int (*compare)(const void *x1, const void *x2)) 11 12 { 12 13 if (width > 0 && num > 1 && base != NULL) … … 16 17 17 18 static void qsort1 (char *l, char *r, size_t width, 18 19 int (*compare)(const void *x1, const void *x2)) 19 20 { 20 21 char *i, *j, *x; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/rand.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* rand.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <emx/thread.h> … … 11 12 12 13 13 int rand(void)14 int _STD(rand) (void) 14 15 { 15 16 #if defined (__MT__) … … 22 23 23 24 24 void srand(unsigned int seed)25 void _STD(srand) (unsigned int seed) 25 26 { 26 27 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/response.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 49 49 p = strchr (line+1, '\n'); 50 50 if (p != NULL) *p = 0; 51 p = _strdup (line);51 p = strdup (line); 52 52 if (p == NULL) 53 53 goto out_of_memory; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/rmdir.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* rmdir.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <errno.h> 5 6 #include <emx/syscalls.h> 6 7 7 int rmdir(const char *name)8 int _STD(rmdir) (const char *name) 8 9 { 9 10 if (__rmdir (name) == 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/setgid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setgid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <errno.h> 5 6 #include <sys/types.h> 6 7 7 int setgid(gid_t gid)8 int _STD(setgid) (gid_t gid) 8 9 { 9 10 if (gid != 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/setpgid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setpgid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <errno.h> 5 6 #include <sys/types.h> 6 7 7 int setpgid(pid_t pid, pid_t pgid)8 int _STD(setpgid) (pid_t pid, pid_t pgid) 8 9 { 9 10 errno = ENOSYS; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/setsid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setsid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <errno.h> 5 6 #include <sys/types.h> 6 7 7 pid_t setsid(void)8 pid_t _STD(setsid) (void) 8 9 { 9 10 errno = EPERM; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/setuid.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* setuid.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <errno.h> 5 6 #include <sys/types.h> 6 7 7 int setuid(uid_t uid)8 int _STD(setuid) (uid_t uid) 8 9 { 9 10 if (uid != 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/sysconf.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* sysconf.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <unistd.h> 4 5 #include <limits.h> … … 8 9 /* Return the POSIX.1 minimum values, for now. */ 9 10 10 long sysconf(int name)11 long _STD(sysconf) (int name) 11 12 { 12 13 switch (name) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/syserr.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* syserr.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 const char * const sys_errlist[] = 3 #include "libc-alias.h" 4 5 const char * const _STD(sys_errlist)[] = 4 6 { 5 7 /* 0 EZERO */ "Error 0", … … 72 74 }; 73 75 74 const int sys_nerr = sizeof (sys_errlist) / sizeof (sys_errlist[0]);76 const int _STD(sys_nerr) = sizeof (_STD(sys_errlist)) / sizeof (_STD(sys_errlist)[0]); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/ulimit.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ulimit.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdarg.h> 4 5 #include <stdlib.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 long ulimit(int cmd, ...)10 long _STD(ulimit) (int cmd, ...) 10 11 { 11 12 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/uname.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 2 2 /* Copyright (c) 1993-1995 by Eberhard Mattes */ 3 3 4 #include "libc-alias.h" 4 5 #include <stdlib.h> 5 6 #include <string.h> … … 9 10 #define CHR(x) (char)((x)+'0') 10 11 11 int uname(struct utsname *name)12 int _STD(uname) (struct utsname *name) 12 13 { 13 14 char *host; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/misc/wildcard.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 56 56 strcpy (p, find.name); 57 57 _fnlwr2 (p, line+1); 58 q = _strdup (line);58 q = strdup (line); 59 59 if (q == NULL) 60 60 goto out_of_memory; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execl.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* execl.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int execl(const char *name, const char *arg0, ...)8 int _STD(execl) (const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execle.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* execle.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int execle(const char *name, const char *arg0, ...)8 int _STD(execle) (const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execlp.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* execlp.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int execlp(const char *name, const char *arg0, ...)8 int _STD(execlp) (const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execlpe.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r145 r146 1 1 /* execlpe.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int execlpe(const char *name, const char *arg0, ...)8 int _STD(execlpe) (const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execv.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* execv.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <process.h> 4 5 5 int execv(const char *name, char * const argv[])6 int _STD(execv) (const char *name, char * const argv[]) 6 7 { 7 8 return spawnv (P_OVERLAY, name, argv); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execve.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* execve.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <process.h> 4 5 5 int execve(const char *name, char * const argv[], char * const envp[])6 int _STD(execve) (const char *name, char * const argv[], char * const envp[]) 6 7 { 7 8 return spawnve (P_OVERLAY, name, argv, envp); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execvp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* execvp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <process.h> 4 5 5 int execvp(const char *name, char * const argv[])6 int _STD(execvp) (const char *name, char * const argv[]) 6 7 { 7 8 return spawnvp (P_OVERLAY, name, argv); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/execvpe.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* execvpe.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <process.h> 4 5 5 int execvpe(const char *name, char * const argv[], char * const envp[])6 int _STD(execvpe) (const char *name, char * const argv[], char * const envp[]) 6 7 { 7 8 return spawnvpe (P_OVERLAY, name, argv, envp); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/fork.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* fork.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <process.h> 4 5 #include <emx/syscalls.h> … … 6 7 extern void _rmutex_fork (void); 7 8 8 int fork(void)9 int _STD(fork) (void) 9 10 { 10 11 int pid; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/sigaddse.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sigaddse.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <signal.h> 4 5 #include <errno.h> 5 6 6 int _ sigaddset(sigset_t *set, int sig)7 int _STD(sigaddset) (sigset_t *set, int sig) 7 8 { 8 9 if (sig < 1 || sig >= NSIG) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/sigdelse.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sigdelse.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <signal.h> 4 5 #include <errno.h> 5 6 6 int _ sigdelset(sigset_t *set, int sig)7 int _STD(sigdelset) (sigset_t *set, int sig) 7 8 { 8 9 if (sig < 1 || sig >= NSIG) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/sigempty.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sigempty.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <signal.h> 4 5 5 int _ sigemptyset(sigset_t *set)6 int _STD(sigemptyset) (sigset_t *set) 6 7 { 7 8 return __sigemptyset (set); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/sigfills.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sigfills.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <signal.h> 4 5 5 int _ sigfillset(sigset_t *set)6 int _STD(sigfillset) (sigset_t *set) 6 7 { 7 8 return __sigfillset (set); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/sigismem.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sigismem.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <signal.h> 4 5 #include <errno.h> 5 6 6 int _ sigismember(const sigset_t *set, int sig)7 int _STD(sigismember) (const sigset_t *set, int sig) 7 8 { 8 9 if (sig < 1 || sig >= NSIG) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnl.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnl.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int spawnl(int mode, const char *name, const char *arg0, ...)8 int _STD(spawnl) (int mode, const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnle.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnle.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int spawnle(int mode, const char *name, const char *arg0, ...)8 int _STD(spawnle) (int mode, const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnlp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnlp.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int spawnlp(int mode, const char *name, const char *arg0, ...)8 int _STD(spawnlp) (int mode, const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnlpe.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnlpe.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <stdarg.h> 5 6 #include <process.h> 6 7 7 int spawnlpe(int mode, const char *name, const char *arg0, ...)8 int _STD(spawnlpe) (int mode, const char *name, const char *arg0, ...) 8 9 { 9 10 va_list arg_ptr; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnv.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnv.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <process.h> 5 6 6 int spawnv(int mode, const char *name, char * const argv[])7 int _STD(spawnv) (int mode, const char *name, char * const argv[]) 7 8 { 8 9 return spawnve (mode, name, argv, NULL); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnvp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnvp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stddef.h> 4 5 #include <process.h> 5 6 6 int spawnvp(int mode, const char *name, char * const argv[])7 int _STD(spawnvp) (int mode, const char *name, char * const argv[]) 7 8 { 8 9 return spawnvpe (mode, name, argv, NULL); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/spawnvpe.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* spawnvpe.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 5 #include <process.h> 4 6 #include <string.h> 5 #include <process.h>6 7 #include <errno.h> 7 8 8 int spawnvpe(int mode, const char *name, char * const argv[],9 9 int _STD(spawnvpe) (int mode, const char *name, char * const argv[], 10 char * const envp[]) 10 11 { 11 12 char exe[512]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/process/system.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* system.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 7 8 #include <errno.h> 8 9 9 int system(const char *name)10 int _STD(system) (const char *name) 10 11 { 11 12 int rc; … … 21 22 } 22 23 if (name == NULL) /* Check for command interpreter */ 23 return _access (sh, 0) == 0;24 return access (sh, 0) == 0; 24 25 if (*name == 0) 25 26 rc = spawnlp (P_WAIT, sh, sh, (char *)0); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/386/crt0.s
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 / crt0.s (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes 2 2 3 .globl __text 4 .globl ___syscall 5 .globl __data 6 .globl __heap_base 7 .globl __heap_brk 8 .globl __heap_end 9 .globl __init 3 .globl __text 4 .globl __data 10 5 11 6 .text 12 7 13 8 __text: 14 push $__data 15 call __emx_init 16 jmp __init 9 push $__data 10 call __emx_init 11 cld 12 call __entry1 13 call __entry2 14 #if defined (MCRT0) 15 pushl $__mcleanup 16 call _atexit 17 addl $4, %esp 18 pushl $__etext 19 pushl $__text 20 call _monstartup 21 addl $2*4, %esp 22 #endif 23 call __startup 24 call _main 25 addl $3*4, %esp 26 pushl %eax 27 call _exit 28 2: jmp 2b 17 29 18 ___syscall: 19 call __emx_syscall 20 ret 21 22 .space 6, 0x90 /* Patch area for rsx */ 23 24 __init: cld 25 call __entry1 26 call __entry2 27 #if defined (MCRT0) 28 pushl $__mcleanup 29 call _atexit 30 addl $4, %esp 31 pushl $__etext 32 pushl $__text 33 call _monstartup 34 addl $2*4, %esp 35 #endif 36 call __startup 37 call _main 38 addl $3*4, %esp 39 pushl %eax 40 call _exit 41 2: jmp 2b 42 43 .data 44 45 / The data segment starts with a table containing the start and end 46 / addresses of the text, data and bss segments 30 .data 47 31 48 32 __data: 49 __heap_base: 50 .long 0 /* heap base address */ 51 __heap_end: 52 .long 0 /* heap end address */ 53 __heap_brk: 54 .long 0 /* heap brk address */ 55 .long 0 /* heap offset */ 56 .long __os2dll /* list of OS/2 DLL references */ 57 .long 0 /* stack base address */ 58 .long 0 /* stack end address */ 59 .long 0x02000002 /* flags: application, OMF */ 60 .long 0 /* reserved */ 61 .long 0 /* reserved */ 62 .byte 0 /* options */ 63 .space 63, 0 33 .long 0xba0bab // Magic number (error detection) 34 .long __os2dll // list of OS/2 DLL references 64 35 65 / first element of vector (N_SETA|N_EXT == 21) 66 67 __os2dll: 68 .long 0, 0 69 / .stabs "__os2dll", 21, 0, 0, 0xffffffff 70 71 .stabs "___CTOR_LIST__", 21, 0, 0, 0xffffffff 72 .stabs "___DTOR_LIST__", 21, 0, 0, 0xffffffff 73 .stabs "___crtinit1__", 21, 0, 0, 0xffffffff 74 .stabs "___crtexit1__", 21, 0, 0, 0xffffffff 75 .stabs "___eh_frame__", 21, 0, 0, 0xffffffff 36 .stabs "__os2dll", 21, 0, 0, 0xffffffff 37 .stabs "___CTOR_LIST__", 21, 0, 0, 0xffffffff 38 .stabs "___DTOR_LIST__", 21, 0, 0, 0xffffffff 39 .stabs "___crtinit1__", 21, 0, 0, 0xffffffff 40 .stabs "___crtexit1__", 21, 0, 0, 0xffffffff 41 .stabs "___eh_frame__", 21, 0, 0, 0xffffffff -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/386/crt1.s
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 10 10 11 11 12 12 .globl __entry2 13 13 #if !defined (__MT__) 14 14 .globl _errno 15 15 #endif 16 17 18 19 20 21 16 .globl __emx_env 17 .globl __emx_vcmp 18 .globl __emx_vprt 19 .globl __emx_rev 20 .globl __osmajor 21 .globl __osminor 22 22 23 23 .text 24 24 25 25 __entry2: 26 27 28 29 30 31 32 33 34 35 36 37 38 26 call ___os_version 27 movb %al, __osmajor 28 movb %ah, __osminor 29 call ___emx_version 30 movl %eax, __emx_vcmp 31 movl %ecx, __emx_rev 32 movl %edx, __emx_env 33 xchgb %al, %ah 34 rorl $16, %eax 35 xchgb %al, %ah 36 movl %eax, __emx_vprt 37 movb $0, __emx_vprt+4 38 EPILOGUE(_entry2) 39 39 40 40 .data 41 41 42 42 #if !defined (__MT__) 43 _errno: 43 _errno: .long 0 44 44 #endif 45 46 47 48 49 50 45 .comm __emx_rev, 4 46 .comm __emx_env, 4 47 .comm __emx_vcmp, 4 48 .comm __emx_vprt, 5 49 .comm __osmajor, 1 50 .comm __osminor, 1 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/386/dll0.s
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 2 2 3 3 .globl __text 4 .globl ___syscall5 4 .globl __data 6 .globl __heap_base7 .globl __heap_brk8 .globl __heap_end9 .globl __init10 5 11 6 .text … … 14 9 push $__data 15 10 call __emx_init 16 jmp __init 17 18 19 ___syscall: 20 call __emx_syscall 21 ret 22 23 __init: cld 11 cld 24 12 pushl %ebp 25 13 movl %esp, %ebp … … 33 21 .data 34 22 35 / The data segment starts with a table containing the start and end 36 / addresses of the text, data and bss segments 23 __data: 24 .long 0xba0bab // Magic number (error detection) 25 .long __os2dll // list of OS/2 DLL references 37 26 38 __data: 39 .long __text 40 .long __etext 41 .long __data 42 .long __edata 43 .long __edata 44 .long __end 45 __heap_base: 46 .long 0 /* heap base address */ 47 __heap_end: 48 .long 0 /* heap end address */ 49 __heap_brk: 50 .long 0 /* heap brk address */ 51 .long 0 /* heap offset */ 52 .long __os2dll /* list of OS/2 DLL references */ 53 .long 0 /* stack base address */ 54 .long 0 /* stack end address */ 55 .long 0x02000003 /* flags: DLL, OMF */ 56 .long 0 /* reserved */ 57 .long 0 /* reserved */ 58 .byte 0 /* options */ 59 .space 63, 0 60 61 / first element of vector (N_SETA|N_EXT == 21) 62 63 __os2dll: 64 .long 0, 0 65 / .stabs "__os2dll", 21, 0, 0, 0xffffffff 66 27 .stabs "__os2dll", 21, 0, 0, 0xffffffff 67 28 .stabs "___CTOR_LIST__", 21, 0, 0, 0xffffffff 68 29 .stabs "___DTOR_LIST__", 21, 0, 0, 0xffffffff -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/exit.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* exit.c (emx+gcc) -- Copyright (c) 1990-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <emx/startup.h> … … 7 8 int _atexit_n = 0; 8 9 9 void exit(int ret)10 void _STD(exit) (int ret) 10 11 { 11 12 int i; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/startup.smak
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 27 27 $(CC) $(CFLAGS) -x assembler-with-cpp -DMCRT0 -o tmp1.o $< 28 28 $(CC) $(CFLAGS) -o tmp2.o src/lib/startup/gmon.c 29 strip --strip-debug tmp1.o tmp2.o 29 30 ld -r -o $@ tmp1.o tmp2.o 30 31 $(call RM,tmp1.o tmp2.o) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/memccpy.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* memccpy.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 void * memccpy(void *s1, const void *s2, int c, size_t n)6 void *_STD(memccpy) (void *s1, const void *s2, int c, size_t n) 6 7 { 7 8 size_t i; 8 9 9 10 for (i = 0; i < n; ++i) 10 11 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/memicmp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* memicmp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> 5 6 6 int memicmp(const void *s1, const void *s2, size_t n)7 int _STD(memicmp) (const void *s1, const void *s2, size_t n) 7 8 { 8 9 size_t i; 9 10 int d; 10 11 11 12 for (i = 0; i < n; ++i) 12 13 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strcoll.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strcoll.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 6 /* Ignore the current locale for now. */ 6 7 7 int strcoll(const char *string1, const char *string2)8 int _STD(strcoll) (const char *string1, const char *string2) 8 9 { 9 10 return strcmp (string1, string2); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strcspn.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strcspn.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 size_t strcspn(const char *string1, const char *string2)6 size_t _STD(strcspn) (const char *string1, const char *string2) 6 7 { 7 8 char table[256]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strdup.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strdup.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <stdlib.h> 5 6 6 char * strdup(const char *string)7 char *_STD(strdup) (const char *string) 7 8 { 8 9 char *p; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strerror.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strerror.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> 5 6 #include <emx/thread.h> 6 7 7 char * strerror(int errnum)8 char *_STD(strerror) (int errnum) 8 9 { 9 if (errnum >= 0 && errnum < _sys_nerr)10 return (char *) _sys_errlist [errnum];10 if (errnum >= 0 && errnum < sys_nerr) 11 return (char *)sys_errlist [errnum]; 11 12 else 12 13 { … … 19 20 #endif 20 21 memcpy (result, msg, sizeof (msg) - 1); 21 itoa (errnum, result + sizeof (msg) - 1, 10);22 _itoa (errnum, result + sizeof (msg) - 1, 10); 22 23 return result; 23 24 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/stricmp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* stricmp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> 5 6 6 int stricmp(const char *string1, const char *string2)7 int _STD(stricmp) (const char *string1, const char *string2) 7 8 { 8 9 int d; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strlwr.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strlwr.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> 5 6 6 char * strlwr(char *string)7 char *_STD(strlwr) (char *string) 7 8 { 8 9 unsigned char *p; 9 10 10 11 for (p = (unsigned char *)string; *p != 0; ++p) 11 if (isupper (*p)) 12 *p = (unsigned char)tolower (*p); 12 *p = (unsigned char)tolower (*p); 13 13 return string; 14 14 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strncat.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strncat.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strncat(char *string1, const char *string2, size_t count)6 char *_STD(strncat) (char *string1, const char *string2, size_t count) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strncmp.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strncmp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 int strncmp(const char *string1, const char *string2, size_t count)6 int _STD(strncmp) (const char *string1, const char *string2, size_t count) 6 7 { 7 8 int d; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strncpy.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strncpy.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strncpy(char *string1, const char *string2, size_t count)6 char *_STD(strncpy) (char *string1, const char *string2, size_t count) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strnicmp.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strnicmp.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> 5 6 6 int strnicmp(const char *string1, const char *string2, size_t count)7 int _STD(strnicmp) (const char *string1, const char *string2, size_t count) 7 8 { 8 9 int d; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strnset.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strnset.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strnset(char *string, int c, size_t count)6 char *_STD(strnset) (char *string, int c, size_t count) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strpbrk.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strpbrk.c (emx+gcc) -- Copyright (c) 1990-1993 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strpbrk(const char *string1, const char *string2)6 char *_STD(strpbrk) (const char *string1, const char *string2) 6 7 { 7 8 char table[256]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strrev.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strrev.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strrev(char *string)6 char *_STD(strrev) (char *string) 6 7 { 7 8 char *p, *q, c; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strset.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strset.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strset(char *string, int c)6 char *_STD(strset) (char *string, int c) 6 7 { 7 8 char *dst; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strspn.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strspn.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 size_t strspn(const char *string1, const char *string2)6 size_t _STD(strspn) (const char *string1, const char *string2) 6 7 { 7 8 char table[256]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strstr.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strstr.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 char * strstr(const char *string1, const char *string2)6 char *_STD(strstr) (const char *string1, const char *string2) 6 7 { 7 8 int len1, len2, i; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strtok.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strtok.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <emx/thread.h> 5 6 6 char * strtok(char *string1, const char *string2)7 char *_STD(strtok) (char *string1, const char *string2) 7 8 { 8 9 char table[256]; … … 12 13 #define next (tp->_th_strtok_ptr) 13 14 #else 14 static unsigned char *next = NULL;15 static unsigned char *next = NULL; 15 16 #endif 16 17 if (string1 != NULL) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strupr.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strupr.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <ctype.h> 5 6 6 char * strupr(char *string)7 char *_STD(strupr) (char *string) 7 8 { 8 9 unsigned char *p; 9 10 10 11 for (p = (unsigned char *)string; *p != 0; ++p) 11 if (islower (*p))12 12 *p = (unsigned char)toupper (*p); 13 13 return string; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/str/strxfrm.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strxfrm.c (emx+gcc) -- Copyright (c) 1994-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 5 6 /* Ignore the current locale for now. */ 6 7 7 size_t strxfrm(char *string1, const char *string2, size_t count)8 size_t _STD(strxfrm) (char *string1, const char *string2, size_t count) 8 9 { 9 10 size_t result; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__ftime.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 21 21 tm.tm_year = now.year - 1900; 22 22 tm.tm_isdst = -1; /* unknown */ 23 ptr->time = (time_t) mktime (&tm);23 ptr->time = (time_t)_mktime (&tm); 24 24 ptr->millitm = now.hundredths * 10; 25 25 ptr->timezone = now.timezone; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__getdrive.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 5 5 #include "syscalls.h" 6 6 7 char _ _getdrive (void)7 char _getdrive (void) 8 8 { 9 9 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__init.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 4 4 #include <os2emx.h> 5 5 #include <string.h> 6 #include <alloca.h>7 6 #include <sys/builtin.h> 8 7 #include <sys/fmutex.h> 9 8 #include <emx/startup.h> 10 9 #include <emx/syscalls.h> 10 #include <alloca.h> 11 11 12 12 #define SYS_PRIVATE_HEAP_SIZE 0x100000 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__spawnve.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 29 29 30 30 31 int __ _spawnve (struct _new_proc *np)31 int __spawnve (struct _new_proc *np) 32 32 { 33 33 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/brk.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/brk.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <errno.h> … … 8 9 #include "syscalls.h" 9 10 10 void *_ _brk(void *brkp)11 void *_STD(brk) (void *brkp) 11 12 { 12 13 ULONG base; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/chdrive.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/chdrive.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <emx/syscalls.h> 5 6 #include "syscalls.h" 6 7 7 int _ _chdrive(char drive)8 int _STD(chdrive) (char drive) 8 9 { 9 10 if (drive >= 'a') -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/clock.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/clock.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <emx/syscalls.h> … … 9 10 will wrap around after 49 days. */ 10 11 11 long long _ _clock(void)12 long long _STD(clock) (void) 12 13 { 13 14 ULONG val_ms; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/execname.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 7 7 #include "syscalls.h" 8 8 9 int _ _execname (char *dst, size_t size)9 int _execname (char *dst, size_t size) 10 10 { 11 11 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/filesys.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 10 10 #define QFSA_SIZE 256 11 11 12 int _ _filesys (const char *drive, char *name, size_t size)12 int _filesys (const char *drive, char *name, size_t size) 13 13 { 14 14 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/fsync.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/fsync.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <emx/syscalls.h> 5 6 #include "syscalls.h" 6 7 7 int _ _fsync(int handle)8 int _STD(fsync) (int handle) 8 9 { 9 10 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/getpid.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/getpid.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include "syscalls.h" 5 6 6 int _ _getpid(void)7 int _STD(getpid) (void) 7 8 { 8 9 return _sys_pid; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/getppid.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/getppid.c (emx+gcc) -- Copyright (c) 1992-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include "syscalls.h" 5 6 6 int _ _getppid(void)7 int _STD(getppid) (void) 7 8 { 8 9 return _sys_ppid; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/kill.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/kill.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> 5 6 #include <errno.h> 6 #include <emx/syscalls.h> 7 #include <signal.h> 8 #include <sys/process.h> 7 9 #include "syscalls.h" 8 10 9 int _ _kill(int pid, int sig)11 int _STD(kill) (int pid, int sig) 10 12 { 11 13 ULONG rc; 12 14 ULONG n; 13 15 14 if (pid == __getpid ())16 if (pid == getpid ()) 15 17 { 16 18 if (sig == 0) 17 19 return 0; 18 return __raise (sig);20 return raise (sig); 19 21 } 20 22 else if (sig == SIGINT || sig == SIGBREAK) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/p2t.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 18 18 tm.tm_year = d.year + 1980 - 1900; 19 19 tm.tm_isdst = -1; /* unknown */ 20 return mktime (&tm);20 return _mktime (&tm); 21 21 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/pause.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* sys/pause.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSPROCESS 4 5 #include <os2emx.h> … … 7 8 #include "syscalls.h" 8 9 9 int pause(void)10 int _STD(pause) (void) 10 11 { 11 12 while (DosSleep (0xffffffff) == 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/raise.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/raise.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 8 9 #include "syscalls.h" 9 10 10 int _ _raise(int signo)11 int _STD(raise) (int signo) 11 12 { 12 13 thread_data *tp; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/remove.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/remove.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <emx/syscalls.h> 5 6 #include "syscalls.h" 6 7 7 int _ _remove(const char *name)8 int _STD(remove) (const char *name) 8 9 { 9 10 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/rename.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/rename.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <emx/syscalls.h> 5 6 #include "syscalls.h" 6 7 7 int _ _rename(const char *old_name, const char *new_name)8 int _STD(rename) (const char *old_name, const char *new_name) 8 9 { 9 10 ULONG rc; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sbrk.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/sbrk.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <os2emx.h> 4 5 #include <errno.h> … … 9 10 #include "syscalls.h" 10 11 11 void *_ _sbrk(int incr)12 void *_STD(sbrk) (int incr) 12 13 { 13 14 ULONG base; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/scrsize.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 #include <emx/syscalls.h> 7 7 8 void _ _scrsize (int *dst)8 void _scrsize (int *dst) 9 9 { 10 10 VIOMODEINFO vmi1, vmi2, *pvmi; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sigaction.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* sys/sigactio.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 7 8 #include "syscalls.h" 8 9 9 int _ _sigaction(int signo, const struct sigaction *iact,10 10 int _STD(sigaction) (int signo, const struct sigaction *iact, 11 struct sigaction *oact) 11 12 { 12 13 struct sigaction output, *s; … … 37 38 && sig_info[signo].dfl_action != ST_IGNORE) 38 39 || s->sa_handler == SIG_IGN) 39 __sigdelset (&tp->sig_pending, signo);40 sigdelset (&tp->sig_pending, signo); 40 41 } 41 42 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/signal.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/signal.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 9 10 typedef void sigfun (int sig); 10 11 11 sigfun *_ _signal(int sig, sigfun *handler)12 sigfun *_STD(signal) (int sig, sigfun *handler) 12 13 { 13 14 if (handler == SIG_ACK) … … 23 24 if (tp == NULL) 24 25 return SIG_ERR; 25 __sigdelset (&tp->sig_blocked, sig);26 sigdelset (&tp->sig_blocked, sig); 26 27 _sys_deliver_pending_signals (tp); 27 28 return tp->signals[sig].sa_handler; … … 34 35 isa.sa_mask = 0; 35 36 isa.sa_flags = SA_ACK; 36 if ( __sigaction (sig, &isa, &osa) != 0)37 if (sigaction (sig, &isa, &osa) != 0) 37 38 return SIG_ERR; 38 39 else -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sigpending.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/sigpendi.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 6 7 #include "syscalls.h" 7 8 8 int _ _sigpending(sigset_t *set)9 int _STD(sigpending) (sigset_t *set) 9 10 { 10 11 thread_data *tp; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sigprocmask.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/sigprocm.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 7 8 #include "syscalls.h" 8 9 9 int _ _sigprocmask(int how, const sigset_t *iset, sigset_t *oset)10 int _STD(sigprocmask) (int how, const sigset_t *iset, sigset_t *oset) 10 11 { 11 12 thread_data *tp; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sigsuspend.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/sigsuspe.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSEXCEPTIONS 4 5 #include <os2emx.h> … … 7 8 #include "syscalls.h" 8 9 9 int _ _sigsuspend(const sigset_t *mask)10 int _STD(sigsuspend) (const sigset_t *mask) 10 11 { 11 12 sigset_t old_blocked; … … 16 17 old_blocked = tp->sig_blocked; 17 18 SET_BLOCKED (tp, *mask); 18 __pause ();19 pause (); 19 20 tp->sig_blocked = old_blocked; 20 21 errno = EINTR; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sleep.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/sleep.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #define INCL_DOSMISC 4 5 #define INCL_DOSPROCESS … … 7 8 #include "syscalls.h" 8 9 9 unsigned _ _sleep(unsigned sec)10 unsigned _STD(sleep) (unsigned sec) 10 11 { 11 12 if (sec == 0) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sleep2.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 #include "syscalls.h" 7 7 8 unsigned _ _sleep2 (unsigned millisec)8 unsigned _sleep2 (unsigned millisec) 9 9 { 10 10 DosSleep (millisec); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/sys.smak
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 8 8 .TARGET := sys$A 9 9 .TSRC.386 := $(wildcard src/lib/sys/386/*.s) 10 .TSRC := $( wildcard src/lib/sys/*.c)10 .TSRC := $(.TSRC.$(CPU)) $(wildcard src/lib/sys/*.c) 11 11 .TCF.src/lib/sys/heapsize.c := -DHEAPSIZE=0x2000000 12 12 .INSDIR = lib/ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/uflags.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/uflags.c (emx+gcc) -- Copyright (c) 1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include "syscalls.h" 4 5 5 int _ _uflags(int mask, int new_flags)6 int _STD(uflags) (int mask, int new_flags) 6 7 { 7 8 int ret; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/umask.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* sys/umask.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <emx/syscalls.h> 4 5 #include "syscalls.h" 5 6 6 7 int __umask (int pmode) 7 int _STD(umask) (int pmode) 8 8 { 9 9 int old; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcdrain.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 int _tcdrain (int handle) 7 7 { 8 return _ioctl (handle, TCSBRK, 1);8 return ioctl (handle, TCSBRK, 1); 9 9 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcflow.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 int _tcflow (int handle, int action) 7 7 { 8 return _ioctl (handle, TCXONC, action);8 return ioctl (handle, TCXONC, action); 9 9 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcflush.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 int _tcflush (int handle, int queue) 7 7 { 8 return _ioctl (handle, TCFLSH, queue);8 return ioctl (handle, TCFLSH, queue); 9 9 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcgetatt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 6 6 int _tcgetattr (int handle, struct termios *ptermios) 7 7 { 8 return _ioctl (handle, _TCGA, ptermios);8 return ioctl (handle, _TCGA, ptermios); 9 9 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcsendbr.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 7 7 int _tcsendbreak (int handle, int duration) 8 8 { 9 return _ioctl (handle, TCSBRK, duration);9 return ioctl (handle, TCSBRK, duration); 10 10 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/termios/tcsetatt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 24 24 return -1; 25 25 } 26 return _ioctl (handle, request, ptermios);26 return ioctl (handle, request, ptermios); 27 27 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/asctime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* asctime.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <string.h> 4 5 #include <time.h> … … 10 11 #define digit(i) (char)(((i)%10)+'0') 11 12 12 char * asctime(const struct tm *t)13 char *_STD(asctime) (const struct tm *t) 13 14 { 14 15 #if defined (__MT__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/ctime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* ctime.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <emx/time.h> 5 6 6 char * ctime(const time_t *t)7 char *_STD(ctime) (const time_t *t) 7 8 { 8 9 struct tm tmp, *x; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/difftime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* difftime.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 5 double difftime(time_t t1, time_t t0)6 double _STD(difftime) (time_t t1, time_t t0) 6 7 { 7 8 return (double)t1 - (double)t0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/ftime.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* ftime.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/timeb.h> 4 5 #include <time.h> … … 6 7 #include <emx/syscalls.h> 7 8 8 void ftime(struct timeb *ptr)9 void _STD(ftime) (struct timeb *ptr) 9 10 { 10 11 time_t t_loc; 11 12 12 if (!_tzset_flag) tzset ();13 if (!_tzset_flag) _tzset (); 13 14 __ftime (ptr); 14 15 t_loc = ptr->time; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/gettimeo.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* gettimeo.c (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/timeb.h> 4 5 #include <time.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 int gettimeofday(struct timeval *tp, struct timezone *tzp)10 int _STD(gettimeofday) (struct timeval *tp, struct timezone *tzp) 10 11 { 11 12 struct timeb tb; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/gmtime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* gmtime.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <time.h> … … 6 7 #include <emx/time.h> 7 8 8 struct tm * gmtime(const time_t *t)9 struct tm *_STD(gmtime) (const time_t *t) 9 10 { 10 11 #if defined (__MT__) … … 52 53 { 53 54 int i; 54 const int *p;55 const unsigned short *p; 55 56 56 57 p = (_leap_year (dst->tm_year + 1900) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/gmtloc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 26 26 27 27 static int switch_day (int month, int week, int day, int ywday, 28 const int *month_table)28 const unsigned short *month_table) 29 29 { 30 30 int d, wday; … … 60 60 { 61 61 int y, i, ywday, d_year, d_start, d_end; 62 const int *month_table;62 const unsigned short *month_table; 63 63 time_t t_year, t_start, t_end; 64 64 … … 74 74 75 75 i = 0; 76 for (y = 0; _year_day[y] != INT_MAX; ++y)76 for (y = 0; _year_day[y] != USHRT_MAX; ++y) 77 77 { 78 78 month_table = (_leap_year (y + 1970) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/localtim.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* localtim.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <emx/thread.h> 5 6 #include <emx/time.h> 6 7 7 struct tm * localtime(const time_t *t)8 struct tm *_STD(localtime) (const time_t *t) 8 9 { 9 10 #if defined (__MT__) … … 22 23 struct tm *p; 23 24 24 if (!_tzset_flag) tzset ();25 if (!_tzset_flag) _tzset (); 25 26 lt = *t; 26 27 isdst = _gmt2loc (<); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/mktime.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* mktime.c (emx+gcc) -- Copyright (c) 1990-1999 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <limits.h> 5 6 #include <emx/time.h> 6 7 7 time_t mktime(struct tm *t)8 time_t _STD(mktime) (struct tm *t) 8 9 { 9 10 time_t t1, t2; … … 11 12 int dst; 12 13 13 if (!_tzset_flag) tzset ();14 if (!_tzset_flag) _tzset (); 14 15 15 /* mktime() requires that tm_mon is in range. The other members16 /* _mktime() requires that tm_mon is in range. The other members 16 17 are not restricted. */ 17 18 … … 41 42 if (dst == -1) 42 43 return (time_t)-1; 43 44 44 45 if (_gmtime (&tmp, &t2) == NULL) 45 46 return (time_t)-1; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/settimeo.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* settimeo.c (emx+gcc) -- Copyright (c) 1995-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <sys/time.h> … … 7 8 #include <emx/syscalls.h> 8 9 9 int settimeofday(const struct timeval *tp, const struct timezone *tzp)10 int _STD(settimeofday) (const struct timeval *tp, const struct timezone *tzp) 10 11 { 11 12 struct timeval local; … … 17 18 return -1; 18 19 } 19 if (!_tzset_flag) tzset ();20 if (!_tzset_flag) _tzset (); 20 21 t = tp->tv_sec; 21 22 local.tv_sec = _gmt2loc (&t); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/strftime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 1 1 /* strftime.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 94 95 95 96 96 size_t strftime(char *string, size_t size, const char *format,97 97 size_t _STD(strftime) (char *string, size_t size, const char *format, 98 const struct tm *t) 98 99 { 99 100 size_t i, n; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/strptime.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* strptime.c (emx+gcc) -- Copyright (c) 1994-1998 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <stdlib.h> 4 5 #include <string.h> … … 265 266 266 267 267 char * strptime(const char *buf, const char *format, struct tm *tm)268 char *_STD(strptime) (const char *buf, const char *format, struct tm *tm) 268 269 { 269 270 return (char *)parse_fmt ((const unsigned char *)buf, -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/time.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* time.c (emx+gcc) -- Copyright (c) 1990-1995 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <sys/timeb.h> 4 5 #include <time.h> 5 6 6 time_t time(time_t *t)7 time_t _STD(time) (time_t *t) 7 8 { 8 9 struct timeb tb; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/times.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 1 1 /* times.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */ 2 2 3 #include "libc-alias.h" 3 4 #include <time.h> 4 5 #include <sys/time.h> … … 7 8 /* Note: return value overflows */ 8 9 9 long times(struct tms *buffer)10 long _STD(times) (struct tms *buffer) 10 11 { 11 12 struct timeval tv; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/timetabs.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r145 r146 7 7 through 2106 */ 8 8 9 int const _year_day[_YEARS+1] =9 unsigned short const _year_day[_YEARS+1] = 10 10 { 11 11 0, 365, 730, 1096, 1461, 1826, 2191, 2557, 2922, 3287, 3652, 4018, … … 23 23 41638, 42004, 42369, 42734, 43099, 43465, 43830, 44195, 44560, 24 24 44926, 45291, 45656, 46021, 46387, 46752, 47117, 47482, 47847, 25 48212, 48577, 48942, 49308, 49673, INT_MAX25 48212, 48577, 48942, 49308, 49673, USHRT_MAX 26 26 }; 27 27 … … 30 30 December. */ 31 31 32 int const _month_day_non_leap[] =33 {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, INT_MAX};32 unsigned short const _month_day_non_leap[] = 33 {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, USHRT_MAX}; 34 34 35 int const _month_day_leap[] =36 {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, INT_MAX};35 unsigned short const _month_day_leap[] = 36 {0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, USHRT_MAX}; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/time/tzset.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r145 r146 2 2 /* Copyright (c) 1996 by Eberhard Mattes */ 3 3 4 #include "libc-alias.h" 4 5 #include <stdlib.h> 5 6 #include <string.h> … … 105 106 106 107 107 void tzset(void)108 void _STD(tzset) (void) 108 109 { 109 110 struct _tzinfo ntz; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.