lkml.org 
[lkml]   [2000]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SHM and programs unable to attach to shm segments

This bit of the Unix98 standard might apply:

---- begin quote ----
The implementation may implement message queues, semaphores, or shared
memory objects as distinct file types. The following macros test
whether a file is of the specified type. The value of the buf argument
supplied to the macros is a pointer to a stat structure. The macro
evaluates to a non-zero value if the specified object is implemented
as a distinct file type and the specified file type is contained in
the stat structure referenced by buf. Otherwise, the macro evaluates
to zero.

S_TYPEISMQ(buf) Test for a message queue
S_TYPEISSEM(buf) Test for a semaphore
S_TYPEISSHM(buf) Test for a shared memory object
---- end quote ----

File types 030000, 050000, 070000, 0130000, and 0170000 are available.
(0x3000 0x5000 0x7000 0xb000 0xf000)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.379 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site