public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* policy on __libc_*
@ 2000-01-05 20:03 Roland McGrath
  2000-01-05 20:39 ` Ulrich Drepper
  0 siblings, 1 reply; 9+ messages in thread
From: Roland McGrath @ 2000-01-05 20:03 UTC (permalink / raw)
  To: GNU libc hacker

Regardless of the other bickering, I don't think I got a clear answer on
the question of what the general policy is about __libc_foo names.  I've
just __libc_ified lseek, open, and fcntl for the hurd since other things
have come to use those.  This is a non-issue for the hurd, since
cancellation is handled entirely differently (the __libc_foo, __foo, and
foo names are all aliases for the same thing regardless), but it would be
nice to know what to expect from the os-independent parts of libc.

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

* Re: policy on __libc_*
  2000-01-05 20:03 policy on __libc_* Roland McGrath
@ 2000-01-05 20:39 ` Ulrich Drepper
  2000-01-05 20:40   ` Roland McGrath
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Drepper @ 2000-01-05 20:39 UTC (permalink / raw)
  To: Roland McGrath; +Cc: GNU libc hacker

Roland McGrath <roland@frob.com> writes:

> but it would be nice to know what to expect from the os-independent
> parts of libc.

You are right, that would be nice.  But I really have no time to write
this all down in detail.  I think I've explained on the list a few
times already that the __libc_* names are introduced for cancelation
points since the functions must be intercepted even when called from
inside the libc.  I.e., the __* functions also have to be exported.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: policy on __libc_*
  2000-01-05 20:39 ` Ulrich Drepper
@ 2000-01-05 20:40   ` Roland McGrath
  2000-01-05 20:46     ` Ulrich Drepper
  0 siblings, 1 reply; 9+ messages in thread
From: Roland McGrath @ 2000-01-05 20:40 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU libc hacker

> You are right, that would be nice.  But I really have no time to write
> this all down in detail.  I think I've explained on the list a few
> times already that the __libc_* names are introduced for cancelation
> points since the functions must be intercepted even when called from
> inside the libc.  I.e., the __* functions also have to be exported.

I did not ask why they exist, I do already know that.  I asked which
functions need them.  All libc functions that are POSIX.1 cancellation
points?  Only some of them?  Is there a rule, or are we doing it as needed?

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

* Re: policy on __libc_*
  2000-01-05 20:40   ` Roland McGrath
@ 2000-01-05 20:46     ` Ulrich Drepper
  2000-01-05 20:56       ` Roland McGrath
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Drepper @ 2000-01-05 20:46 UTC (permalink / raw)
  To: Roland McGrath; +Cc: GNU libc hacker

Roland McGrath <roland@frob.com> writes:

> I did not ask why they exist, I do already know that.  I asked which
> functions need them.  All libc functions that are POSIX.1 cancellation
> points?  Only some of them?

Some of the,

> Is there a rule, or are we doing it as needed?

The list of functions can be seen easily from the wrapsyscall.c file
on the linuxthreads add-on:

close
fcntl
fsync
lseek
lseek64
msync
nanosleep
open
open64
pause
pread
pread64
pwrite
pwrite64
read
system
tcdrain
wait
waitpid
write
accept
connect
recv
recvfrom
recvmsg
send
sendmsg
sento

They are also described in POSIX (except that POSIX is not mentioning
the 64bit variants yet).

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: policy on __libc_*
  2000-01-05 20:46     ` Ulrich Drepper
@ 2000-01-05 20:56       ` Roland McGrath
  2000-01-05 21:05         ` Ulrich Drepper
  0 siblings, 1 reply; 9+ messages in thread
From: Roland McGrath @ 2000-01-05 20:56 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU libc hacker

> Roland McGrath <roland@frob.com> writes:
> 
> > I did not ask why they exist, I do already know that.  I asked which
> > functions need them.  All libc functions that are POSIX.1 cancellation
> > points?  Only some of them?
> 
> Some of the,

Huh?

> > Is there a rule, or are we doing it as needed?
> 
> The list of functions can be seen easily from the wrapsyscall.c file
> on the linuxthreads add-on:

Ok.  I also have 1003.1-1996 at home to consult, so the complete list is
available to me.  But I remain unclear on the answer to my question,
perhaps the missing first paragraph of your message contains it.

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

* Re: policy on __libc_*
  2000-01-05 20:56       ` Roland McGrath
@ 2000-01-05 21:05         ` Ulrich Drepper
  2000-01-05 23:01           ` Roland McGrath
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Drepper @ 2000-01-05 21:05 UTC (permalink / raw)
  To: Roland McGrath; +Cc: GNU libc hacker

Roland McGrath <roland@frob.com> writes:

> Ok.  I also have 1003.1-1996 at home to consult, so the complete list is
> available to me.  But I remain unclear on the answer to my question,
> perhaps the missing first paragraph of your message contains it.

This was menat to be a full stop, no further explanation planned.  But
I can give you one.  Only those POSIX functions which can block are
cancelation points.  These are almost all functions handling
file/terminal I/O but not something like tcgetattr.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: policy on __libc_*
  2000-01-05 21:05         ` Ulrich Drepper
@ 2000-01-05 23:01           ` Roland McGrath
  2000-01-05 23:05             ` Ulrich Drepper
  0 siblings, 1 reply; 9+ messages in thread
From: Roland McGrath @ 2000-01-05 23:01 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU libc hacker

> This was menat to be a full stop, no further explanation planned.  But
> I can give you one.

Yet you have not.  You continue to talk about which functions are
cancellation points, when I know about all of those.  You have not said
whether all those functions are to be renamed __libc_foo or only some and
if only some then how those are selected.

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

* Re: policy on __libc_*
  2000-01-05 23:01           ` Roland McGrath
@ 2000-01-05 23:05             ` Ulrich Drepper
  2000-01-05 23:08               ` Roland McGrath
  0 siblings, 1 reply; 9+ messages in thread
From: Ulrich Drepper @ 2000-01-05 23:05 UTC (permalink / raw)
  To: Roland McGrath; +Cc: GNU libc hacker

Roland McGrath <roland@frob.com> writes:

> Yet you have not.  You continue to talk about which functions are
> cancellation points, when I know about all of those.  You have not said
> whether all those functions are to be renamed __libc_foo or only some and
> if only some then how those are selected.

All of the cancelation points have the official name __libc_*.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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

* Re: policy on __libc_*
  2000-01-05 23:05             ` Ulrich Drepper
@ 2000-01-05 23:08               ` Roland McGrath
  0 siblings, 0 replies; 9+ messages in thread
From: Roland McGrath @ 2000-01-05 23:08 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: GNU libc hacker

> All of the cancelation points have the official name __libc_*.

Thank you!  Finally!  How I was supposed to glean this from "Some the,"
I will never comprehend, but that we can let pass.

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

end of thread, other threads:[~2000-01-05 23:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-05 20:03 policy on __libc_* Roland McGrath
2000-01-05 20:39 ` Ulrich Drepper
2000-01-05 20:40   ` Roland McGrath
2000-01-05 20:46     ` Ulrich Drepper
2000-01-05 20:56       ` Roland McGrath
2000-01-05 21:05         ` Ulrich Drepper
2000-01-05 23:01           ` Roland McGrath
2000-01-05 23:05             ` Ulrich Drepper
2000-01-05 23:08               ` Roland McGrath

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).