<<On Sun, 3 Oct 1999 09:42:45 +1000 (EST), Bruce Evans <[EMAIL PROTECTED]> said:

> More details on the POSIX signal numbers: SIGBUS is mainly for accesses
> beyond the end of mmap()ed objects.  It's not clear what this means in
> an address space with multiple mmap()ed objects and/or non-mmap()ed
> objects.

`Beyond the end of the object' refers to the situation where the
mmap()ed region was specified with a longer length than the underlying
object.  Thus, under the following procedure:

#define PGSZ sysconf(_SC_PAGE_SIZE)
        fd = shm_open(...);
        ftruncate(fd, PGSZ);
        p = mmap(fd, ..., 2 * PGSZ, ...);

...an access to p at offsets in the interval [PGSZ,2*PGSZ) should
generate a SIGBUS.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
[EMAIL PROTECTED]  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to