Thread (3 messages) 3 messages, 3 authors, 2008-11-20

Re: [patch 05/35] reintroduce accept4

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2008-11-20 22:14:02
Also in: linux-arch


On Thu, 20 Nov 2008, Geert Uytterhoeven wrote:
On Wed, 19 Nov 2008, akpm@linux-foundation.org wrote:
quoted
From: Ulrich Drepper <redacted>

Introduce a new accept4() system call.  The addition of this system call
quoted
/* test_accept4.c
quoted
#ifdef __x86_64__
#define SYS_accept4 288
#elif __i386__
        ^^^^^^^^
	defined(__i386__)
quoted
#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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help