This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FreeBSD port (34): syscalls list


Hi,

unix/inet/syscalls.list is incomplete: without this patch, I get link errors
when linking iconvconfig:

/gnu/build/build-glibc/libc.so.6: undefined reference to `__connect_internal'
/gnu/build/build-glibc/libc.so.6: undefined reference to `__getpeername'
/gnu/build/build-glibc/libc.so.6: undefined reference to `__socket'
/gnu/build/build-glibc/libc.so.6: undefined reference to `__getsockname'

The reason you don't see these on Linux is that
- for i386, m68k etc. they are overridden by sysdeps/unix/sysv/linux/*.S
  and sysdeps/unix/sysv/linux/$cpu/socket.S,
- for alpha, mips, ia64 etc. they are overridden in
  sysdeps/unix/sysv/linux/$cpu/syscalls.list


2002-07-06  Bruno Haible  <bruno@clisp.org>

	* sysdeps/unix/inet/syscalls.list (__connect_internal): New alias.
	(__getpeername): New alias.
	(__getsockname): New alias.
	(__socket): New alias.

diff -r -c3 glibc-20020627.bak/sysdeps/unix/inet/syscalls.list glibc-20020627/sysdeps/unix/inet/syscalls.list
--- glibc-20020627.bak/sysdeps/unix/inet/syscalls.list	Wed May 15 14:31:12 2002
+++ glibc-20020627/sysdeps/unix/inet/syscalls.list	Fri Jul  5 02:55:23 2002
@@ -2,11 +2,11 @@
 
 accept		-	accept		i:iBN	__libc_accept	accept
 bind		-	bind		i:ipi	__bind		bind
-connect		-	connect		i:ipi	__libc_connect	__connect connect
+connect		-	connect		i:ipi	__libc_connect	__connect __connect_internal connect
 gethostid	-	gethostid	i:	gethostid
 gethostname	-	gethostname	i:bn	__gethostname	gethostname
-getpeername	-	getpeername	i:ibN	getpeername
-getsockname	-	getsockname	i:ibN	getsockname
+getpeername	-	getpeername	i:ibN	__getpeername	getpeername
+getsockname	-	getsockname	i:ibN	__getsockname	getsockname
 getsockopt	-	getsockopt	i:iiiBN	getsockopt
 listen		-	listen		i:ii	__listen	listen
 recv		-	recv		i:ibni	__libc_recv	recv
@@ -19,7 +19,7 @@
 sethostname	-	sethostname	i:pi	sethostname
 setsockopt	-	setsockopt	i:iiibn	setsockopt	__setsockopt
 shutdown	-	shutdown	i:ii	shutdown
-socket		-	socket		i:iii	socket
+socket		-	socket		i:iii	__socket	socket
 socketpair	-	socketpair	i:iiif	socketpair
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]