__gethostname

Andreas Schwab schwab@suse.de
Tue Mar 20 04:57:00 GMT 2001


The __gethostname prototype in include/unistd.h needs fixing.

Andreas.

2001-03-20  Andreas Schwab  <schwab@suse.de>

	* include/unistd.h: Adjust prototype of __gethostname.

--- include/unistd.h.~1.18.~	Wed Feb 14 09:58:37 2001
+++ include/unistd.h	Tue Mar 20 13:39:49 2001
@@ -77,7 +77,7 @@
 extern int __symlink (__const char *__from, __const char *__to);
 extern int __readlink (__const char *__path, char *__buf, size_t __len);
 extern int __unlink (__const char *__name);
-extern int __gethostname (char *__name, socklen_t __len);
+extern int __gethostname (char *__name, size_t __len);
 extern int __profil (unsigned short int *__sample_buffer, size_t __size,
 		     size_t __offset, unsigned int __scale);
 extern int __getdtablesize (void);

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



More information about the Libc-hacker mailing list