2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* libc/include/fcntl.h: Declare syscalls only when building newlib.
        * libc/include/unistd.h: Ditto.
        * libc/include/stat.h: Ditto.  Also declare struct stat64.
			
			
This commit is contained in:
		
							parent
							
								
									f25babdf07
								
							
						
					
					
						commit
						0a707c79e9
					
				| 
						 | 
				
			
			@ -1,3 +1,9 @@
 | 
			
		|||
2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* libc/include/fcntl.h: Declare syscalls only when building newlib.
 | 
			
		||||
	* libc/include/unistd.h: Ditto.
 | 
			
		||||
	* libc/include/stat.h: Ditto.  Also declare struct stat64.
 | 
			
		||||
 | 
			
		||||
2003-11-24  Artem B. Bityuckiy  <mail_lists@mail.ru>
 | 
			
		||||
 | 
			
		||||
	* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -169,11 +169,13 @@ extern int fcntl _PARAMS ((int, int, ...));
 | 
			
		|||
 | 
			
		||||
/* Provide _<systemcall> prototypes for functions provided by some versions
 | 
			
		||||
   of newlib.  */
 | 
			
		||||
#ifdef _COMPILING_NEWLIB
 | 
			
		||||
extern int _open _PARAMS ((const char *, int, ...));
 | 
			
		||||
extern int _fcntl _PARAMS ((int, int, ...));
 | 
			
		||||
#ifdef __LARGE64_FILES
 | 
			
		||||
extern int _open64 _PARAMS ((const char *, int, ...));
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -137,10 +137,11 @@ int	_EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
 | 
			
		|||
 | 
			
		||||
/* Provide prototypes for most of the _<systemcall> names that are
 | 
			
		||||
   provided in newlib for some compilers.  */
 | 
			
		||||
#ifndef __INSIDE_CYGWIN__
 | 
			
		||||
#ifdef _COMPILING_NEWLIB
 | 
			
		||||
int	_EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
 | 
			
		||||
int	_EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
 | 
			
		||||
#ifdef __LARGE64_FILES
 | 
			
		||||
struct stat64;
 | 
			
		||||
int	_EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf ));
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -165,6 +165,7 @@ extern char *suboptarg;			/* getsubopt(3) external variable */
 | 
			
		|||
int	 getsubopt(char **, char * const *, char **);
 | 
			
		||||
#endif /* _POSIX_SOURCE */
 | 
			
		||||
 | 
			
		||||
#ifdef _COMPILING_NEWLIB
 | 
			
		||||
/* Provide prototypes for most of the _<systemcall> names that are
 | 
			
		||||
   provided in newlib for some compilers.  */
 | 
			
		||||
int     _EXFUN(_close, (int __fildes ));
 | 
			
		||||
| 
						 | 
				
			
			@ -180,6 +181,7 @@ void *  _EXFUN(_sbrk,  (ptrdiff_t __incr));
 | 
			
		|||
int     _EXFUN(_unlink, (const char *__path ));
 | 
			
		||||
_READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte ));
 | 
			
		||||
int     _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] ));
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__)
 | 
			
		||||
#if !defined(__INSIDE_CYGWIN__)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue