mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Add SYSCALL_USE_SOCKETCALL for old arch
@ 2020-08-03  7:41 David Timber
  2020-08-03 13:33 ` Rich Felker
  0 siblings, 1 reply; 6+ messages in thread
From: David Timber @ 2020-08-03  7:41 UTC (permalink / raw)
  To: musl

The following arches do not have __NR_SOCKET in kernel version 2.4.x,
but musl makes call to socket(), resulting in ENOSYS:

* arm
* powerpc
* powerpc64
* sh (32bit only)

Adding `#define SYSCALL_USE_SOCKETCALL` would solve the problem, but
doing so will incur a bit of overhead. uClibc checks if `__NR_socket`
is defined. I suggest you do the same.

https://git.uclibc.org/uClibc/tree/libc/inet/socketcalls.c#n387

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-06  2:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03  7:41 [musl] Add SYSCALL_USE_SOCKETCALL for old arch David Timber
2020-08-03 13:33 ` Rich Felker
     [not found]   ` <CAGYH49BV-SG0THP2kzbSVVRypkk0APF1MQb74geskos=dDLv6A@mail.gmail.com>
     [not found]     ` <CAGYH49Dd6qMK0pL+eGBzMZPxBqoZhRRfejnsvkkSsN+xcw4njg@mail.gmail.com>
     [not found]       ` <20200803141513.GD6949@brightrain.aerifal.cx>
     [not found]         ` <CAGYH49AEpS9_ndXP=x20Qpj7tx0RBEyt+iB5nEjD4odUW02wiQ@mail.gmail.com>
2020-08-04 18:18           ` Rich Felker
2020-08-04 18:56             ` Markus Wichmann
2020-08-04 19:15               ` Rich Felker
2020-08-06  2:18                 ` [musl] [PATCH] use new socket syscalls, fallback to socketcall Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).