Re: microblaze syscall list

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: John Williams <john.williams@...>
Cc: <monstr@...>, Matthew Wilcox <matthew@...>, Will Newton <will.newton@...>, Linux Kernel list <linux-kernel@...>, <linux-arch@...>, <git@...>, Stephen Neuendorffer <stephen.neuendorffer@...>, John Linn <John.Linn@...>, Ulrich Drepper <drepper@...>
Date: Saturday, May 3, 2008 - 5:16 am

On Saturday 03 May 2008, John Williams wrote:


I think for glibc, you also need to look for INLINE_SYSCALL and
INTERNAL_SYSCALL, possibly more.

However, note that many of the syscall numbers that are referenced
by glibc are not _required_ by it, because it already contains
alternative implementations.


openat was added in glibc-2.4 as a syscall, see
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/openat.c?rev=1.2...

What is not yet there is code to implement open() using openat() in the
absense of __NR_open.


I think your approach is flawed, it doesn't help at all to look at what
your libc currently does if you already think that you will need to change
the libc code.

A more relevant question is what changes should be done in glibc for this
in the first place, and I would like to hear Ulis opinion on that.

Uli: The question at hand is what syscalls a new linux architecture
should implement. To take utimes() as an example, the kernel currently
has utime(), utimes(), futimesat() and utimensat(), while glibc
provides utime(), utimes(), futimes(), futimesat(), futimens() and
utimensat(). In theory, all the glibc interfaces could be provided
on top of the utimensat() syscall, but should they?
Currently, glibc has fallback code to implement utime() using utimes(),
but not any of the others.

The same argument can be made about others, including
{,f}{mknod,mkdir,symlink,rename,access,chmod,open}{,at}
select/pselect,poll/ppoll,epoll_wait/epoll_pwait
vfork/fork/clone
{,rt_}{sigaction,sigsuspend,sigreturn,sigprocmask,sigpending}
any of your newly proposed syscalls with flags

If a new architecture should override these, should that be
done in the architecture specific code, or should the common
code be modified to handle this implicitly?

On a similar note, do you agree that a new 32 bit architecture should
define 32 bit uid_t and 64 bit off_t, and consequently leave
out all the uid16_t and loff_t based syscalls that are then simple
duplicates?


This list is possibly more useful as a "what's wrong with uClibc" list.
Most of these syscalls were added recently and should be added in uClibc
eventually, at least the subset of them that is also provided by glibc.


You are obviously missing the INLINE_SYSCALL and INTERNAL_SYSCALL here.
I do think that having this list (in a correct form) is useful for the
discussion, so it would be nice if you could do it again, including those.

	Arnd <><
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 8:13 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 11:21 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 11:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 11:42 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Randy Dunlap, (Tue Apr 22, 11:12 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Adrian Bunk, (Thu Apr 24, 10:51 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 11:16 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 11:24 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 11:34 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 11:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 10:36 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Sam Ravnborg, (Wed Apr 23, 2:44 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Wed Apr 23, 11:40 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 11:50 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 12:05 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 1:59 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Thu Apr 24, 5:18 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Wed Apr 23, 10:59 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 9:15 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Michal Simek, (Wed Apr 23, 5:16 pm)
microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 7:11 am)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 4:51 pm)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 5:37 pm)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 2:42 pm)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Fri Apr 25, 5:36 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, Matthew Wilcox, (Fri Apr 25, 6:06 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Sat Apr 26, 10:04 pm)
Re: microblaze syscall list, Michal Simek, (Sun Apr 27, 11:52 am)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 5:57 pm)
Re: microblaze syscall list, Michal Simek, (Sun May 4, 5:12 am)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 6:09 pm)
Re: microblaze syscall list, Michal Simek, (Tue May 6, 4:33 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 6:54 pm)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 6:53 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 3:37 pm)
Re: microblaze syscall list, Michal Simek, (Mon May 5, 2:18 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun Apr 27, 4:15 pm)
Re: microblaze syscall list, John Williams, (Sun Apr 27, 8:15 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon Apr 28, 8:31 am)
Re: microblaze syscall list, Arnd Bergmann, (Thu May 1, 3:17 pm)
Re: microblaze syscall list, John Williams, (Fri May 2, 1:38 am)
Re: microblaze syscall list, Michal Simek, (Fri May 2, 4:18 am)
Re: microblaze syscall list, John Williams, (Fri May 2, 11:49 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 5:16 am)
Re: microblaze syscall list, John Williams, (Sun May 4, 9:09 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon May 5, 10:08 am)
Re: microblaze syscall list, Ulrich Drepper, (Sat May 3, 11:56 am)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 5:14 pm)
Re: microblaze syscall list, Alan Cox, (Sun Apr 27, 12:50 pm)
Re: [microblaze-uclinux] Re: microblaze syscall list, Geert Uytterhoeven, (Fri Apr 25, 7:32 am)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 5:21 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 5:38 pm)