mailing list of musl libc
 help / color / mirror / code / Atom feed
From: David Timber <mieabby@gmail.com>
To: musl@lists.openwall.com
Subject: [musl] Add SYSCALL_USE_SOCKETCALL for old arch
Date: Mon, 3 Aug 2020 17:11:59 +0930	[thread overview]
Message-ID: <CAGYH49DtTEsUMyPRm5Y+0OT_q+HeQR9d7uiwREuKtD5-LnAUrw@mail.gmail.com> (raw)

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

             reply	other threads:[~2020-08-03 12:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-03  7:41 David Timber [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGYH49DtTEsUMyPRm5Y+0OT_q+HeQR9d7uiwREuKtD5-LnAUrw@mail.gmail.com \
    --to=mieabby@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).