* libc/string/swab.c: Specify that it's defined in <unistd.h>.
* libc/include/string.h: Don't include <sys/types.h>, as it causes really bad namespace pollution. Don't declare swab(), it is properly declared in unistd.h.
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 2000-08-30  Geoffrey Keating  <geoffk@cygnus.com> | ||||||
|  |  | ||||||
|  | 	* libc/string/swab.c: Specify that it's defined in <unistd.h>. | ||||||
|  | 	* libc/include/string.h: Don't include <sys/types.h>, | ||||||
|  | 	as it causes really bad namespace pollution.  Don't declare | ||||||
|  | 	swab(), it is properly declared in unistd.h. | ||||||
|  |  | ||||||
| 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch> | 2000-08-29  Werner Almesberger  <Werner.Almesberger@epfl.ch> | ||||||
|  |  | ||||||
|         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed |         * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed | ||||||
|   | |||||||
| @@ -13,7 +13,6 @@ extern "C" { | |||||||
|  |  | ||||||
| #include "_ansi.h" | #include "_ansi.h" | ||||||
| #include <sys/reent.h> | #include <sys/reent.h> | ||||||
| #include <sys/types.h> |  | ||||||
|  |  | ||||||
| #define __need_size_t | #define __need_size_t | ||||||
| #include <stddef.h> | #include <stddef.h> | ||||||
| @@ -72,7 +71,6 @@ const char  *_EXFUN(strsignal, (int __signo)); | |||||||
| #endif | #endif | ||||||
| int     _EXFUN(strtosigno, (const char *__name)); | int     _EXFUN(strtosigno, (const char *__name)); | ||||||
| #endif | #endif | ||||||
| void	 _EXFUN(swab,(const void *, void *, ssize_t)); |  | ||||||
|  |  | ||||||
| /* These function names are used on Windows and perhaps other systems.  */ | /* These function names are used on Windows and perhaps other systems.  */ | ||||||
| #ifndef strcmpi | #ifndef strcmpi | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ FUNCTION | |||||||
| 	<<swab>>---swap adjacent bytes | 	<<swab>>---swap adjacent bytes | ||||||
|  |  | ||||||
| ANSI_SYNOPSIS | ANSI_SYNOPSIS | ||||||
| 	#include <string.h> | 	#include <unistd.h> | ||||||
| 	void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>); | 	void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>); | ||||||
|  |  | ||||||
| TRAD_SYNOPSIS | TRAD_SYNOPSIS | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user