Generic Linux architectural discussions
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: akpm@linux-foundation.org, drepper@redhat.com,
	linux-api@vger.kernel.org, linux-arch@vger.kernel.org,
	mtk.manpages@gmail.com
Subject: Re: [patch 05/35] reintroduce accept4
Date: Thu, 20 Nov 2008 14:14:02 -0800 (PST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0811201412040.21698@nehalem.linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0811202259360.12975@anakin>



On Thu, 20 Nov 2008, Geert Uytterhoeven wrote:

> On Wed, 19 Nov 2008, akpm@linux-foundation.org wrote:
> > From: Ulrich Drepper <drepper@redhat.com>
> > 
> > Introduce a new accept4() system call.  The addition of this system call
> 
> > /* test_accept4.c
> 
> > #ifdef __x86_64__
> > #define SYS_accept4 288
> > #elif __i386__
>         ^^^^^^^^
> 	defined(__i386__)
> 
> > #define USE_SOCKETCALL 1
> > #define SYS_ACCEPT4 18
> > #else
> > #error "Sorry -- don't know the syscall # on this architecture"
> > #endif
> 
> Anyway, it's just a test program. Succeeded on m68k using socketcall.

It _should_ work even without the 'defined()'. Didn't it?

Unknown symbols should expand to '0' in preprocessor value evaluation. Of 
course, the compiler may warn about the practice, but it shouldn't be 
technically wrong.

		Linus

  reply	other threads:[~2008-11-20 22:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19 23:36 [patch 05/35] reintroduce accept4 akpm
2008-11-20 22:00 ` Geert Uytterhoeven
2008-11-20 22:14   ` Linus Torvalds [this message]
     [not found]     ` <alpine.LFD.2.00.0811201412040.21698-nfNrOhbfy2R17+2ddN/4kux8cNe9sq/dYPYVAmT7z5s@public.gmane.org>
2008-11-20 22:37       ` Matt Mackall
2008-11-20 22:37         ` Matt Mackall
2008-11-20 22:41       ` Michael Kerrisk
2008-11-20 22:41         ` Michael Kerrisk
2008-11-21  7:20       ` Geert Uytterhoeven
2008-11-21  7:20         ` Geert Uytterhoeven

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=alpine.LFD.2.00.0811201412040.21698@nehalem.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=drepper@redhat.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=mtk.manpages@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox