mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [OSELAS.Toolchain] glibc-ports accept4 on ARM for kernels 2.6.36 and later
Date: Tue, 4 Dec 2012 10:25:10 +0100	[thread overview]
Message-ID: <20121204092510.GP27118@pengutronix.de> (raw)
In-Reply-To: <50A3CD61.20505@gmail.com>

Hi,

On Wed, Nov 14, 2012 at 10:57:05AM -0600, George McCollister wrote:
> When trying to run systemd on my arm platform I received this error:
> "systemd-journald[190]: Failed to accept stdout connection: Function
> not implemented"
> 
> I was using OSELAS.Toolchain-2011.03.0. I switched to the newest and
> added this patch at the same time:
> http://sourceware.org/ml/libc-ports/2012-05/msg00092.html
> 
> Can't say for sure if the patch was required since I didn't try a
> build with the new toolchain without the patch. I did look through
> glibc-2.14.1 and
> glibc-ports-2.14.1 and I didn't see anywhere else where
> __ASSUME_ACCEPT4 would be defined for ARM.

I've looked at this some more. It is not necessary and des not make any
difference. Take a closer look:

[...]
+/* Support for the accept4 syscall was added in 2.6.36.  */
+#if __LINUX_KERNEL_VERSION >= 0x020624
+# define __ASSUME_ACCEPT41
+#endif
[...]

"__LINUX_KERNEL_VERSION >= 0x020624" mean the _buildtime_ _minimum_ kernel
version is >= 2.6.36. And in OSELAS.Toolchain-2011.11.x this is set to
2.6.23.
As a result glibc won't just use accept4() but uses a wrapper that checks
for its existence the first time it is called. If it gets a ENOSYS, then
the emulation code is used.

Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2012-12-04  9:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14 16:57 George McCollister
2012-11-16 10:36 ` Michael Olbrich
2012-11-26 15:28   ` George McCollister
2012-12-04  9:25 ` Michael Olbrich [this message]

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=20121204092510.GP27118@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox