public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Consensus on adding kernel syscall wrappers.
@ 2014-10-24  1:10 Carlos O'Donell
  2014-10-30 21:18 ` Alexandre Oliva
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos O'Donell @ 2014-10-24  1:10 UTC (permalink / raw)
  To: GNU C Library, Roland McGrath, Joseph S. Myers, Andreas Schwab,
	Siddhesh Poyarekar, Alexandre Oliva, Maxim Kuvyrkov,
	Ryan S. Arnold, Jakub Jelinek

I've drafted some consensus notes regarding the addition of kernel
syscall wrappers. These notes are based on Joseph Myers's comments.

Please read them and comment. We are looking for consensus on the
addition of linux kernel syscall wrappers to glibc.

There is still work to be done in reviewing the list of missing
syscall wrappers and applying this consensus to them and carrying
out the actual work.

https://sourceware.org/glibc/wiki/Consensus#WIP:_Kernel_syscalls_wrappers
~~~
3. WIP: Kernel syscalls wrappers

This consensus entry is a work in progress:

* If a syscall is obsoleted by another syscall (or otherwise considered 
obsolete), there is no need to add a wrapper to glibc.

* If a syscall cannot meaningfully be used behind glibc's back, or is
not useful in the glibc context except for in the ways in which it is
used by glibc, but can only be used directly by glibc, there is no
need to add a wrapper to glibc (this probably applies to set_thread_area,
for example).

* If there's a glibc function that's not quite a direct wrapper of the
syscall but provides all the functionality of it that can usefully be
used in a program using glibc, there is no need to add a wrapper to glibc.

* Wrappers to syscalls should be added by default (both for syscalls not
used in glibc, and for cases such as futex where the syscall is used in
glibc but can usefully be used directly as well) unless there is a clear
reason not to. This includes for architecture-specific syscalls.

* If a wrapper is provided, there should also be a header with corresponding
declarations (that either provides any relevant constants / structures or
includes appropriate kernel neaders providing them).

* There may be cases where a function is meaningful not just with Linux
kernels supporting the syscall, and should be provided with some kind
of fallback for older kernels, and possibly made part of the glibc
API for systems with other kernels as well. 
~~~

Cheers,
Carlos.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Consensus on adding kernel syscall wrappers.
  2014-10-24  1:10 Consensus on adding kernel syscall wrappers Carlos O'Donell
@ 2014-10-30 21:18 ` Alexandre Oliva
  2014-11-09  8:28   ` Michael Kerrisk
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Oliva @ 2014-10-30 21:18 UTC (permalink / raw)
  To: Carlos O'Donell
  Cc: GNU C Library, Roland McGrath, Joseph S. Myers, Andreas Schwab,
	Siddhesh Poyarekar, Maxim Kuvyrkov, Ryan S. Arnold,
	Jakub Jelinek

On Oct 23, 2014, "Carlos O'Donell" <carlos@redhat.com> wrote:

> https://sourceware.org/glibc/wiki/Consensus#WIP:_Kernel_syscalls_wrappers

FTR, this (the portion you quoted in your email) looks good to me.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Consensus on adding kernel syscall wrappers.
  2014-10-30 21:18 ` Alexandre Oliva
@ 2014-11-09  8:28   ` Michael Kerrisk
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Kerrisk @ 2014-11-09  8:28 UTC (permalink / raw)
  To: Alexandre Oliva
  Cc: Carlos O'Donell, GNU C Library, Roland McGrath,
	Joseph S. Myers, Andreas Schwab, Siddhesh Poyarekar,
	Maxim Kuvyrkov, Ryan S. Arnold, Jakub Jelinek

On Thu, Oct 30, 2014 at 10:17 PM, Alexandre Oliva <aoliva@redhat.com> wrote:
> On Oct 23, 2014, "Carlos O'Donell" <carlos@redhat.com> wrote:
>
>> https://sourceware.org/glibc/wiki/Consensus#WIP:_Kernel_syscalls_wrappers
>
> FTR, this (the portion you quoted in your email) looks good to me.


I agree. From an outsider perspective, the quoted piece makes sense to me.

Thanks,

Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-09  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-24  1:10 Consensus on adding kernel syscall wrappers Carlos O'Donell
2014-10-30 21:18 ` Alexandre Oliva
2014-11-09  8:28   ` Michael Kerrisk

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 read-only IMAP folder(s) and NNTP newsgroup(s).