public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [Manual] memory access atomicity
@ 2005-09-02  6:59 NIIBE Yutaka
  2005-09-04 20:46 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: NIIBE Yutaka @ 2005-09-02  6:59 UTC (permalink / raw)
  To: libc-hacker

Hi, 

I found a bug in the description of sig_atomic_t.  It said:

	In practice, you can assume that @code{int} and other integer
	types no longer than @code{int} are atomic.

This is untrue, for example, 16-bit access or 8-bit access on Alpha is
not atomic.

Here is a patch to point out this issue.

Index: signal.texi
===================================================================
RCS file: /cvs/glibc/libc/manual/signal.texi,v
retrieving revision 1.70
diff -u -3 -p -r1.70 signal.texi
--- signal.texi	12 Jul 2004 21:44:33 -0000	1.70
+++ signal.texi	2 Sep 2005 06:37:07 -0000
@@ -2029,8 +2029,8 @@ This is an integer data type.  Objects o
 atomically.
 @end deftp
 
-In practice, you can assume that @code{int} and other integer types no
-longer than @code{int} are atomic.  You can also assume that pointer
+In practice, you can assume that @code{int} is atomic.
+You can also assume that pointer
 types are atomic; that is very convenient.  Both of these assumptions
 are true on all of the machines that the GNU C library supports and on
 all POSIX systems we know of.

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

* Re: [Manual] memory access atomicity
  2005-09-02  6:59 [Manual] memory access atomicity NIIBE Yutaka
@ 2005-09-04 20:46 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2005-09-04 20:46 UTC (permalink / raw)
  To: NIIBE Yutaka; +Cc: libc-hacker

[-- Attachment #1: Type: text/plain, Size: 111 bytes --]

I made the change.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

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

end of thread, other threads:[~2005-09-04 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-02  6:59 [Manual] memory access atomicity NIIBE Yutaka
2005-09-04 20:46 ` Ulrich Drepper

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