[Previous] [Contents] [Next]

posix_mem_offset(), posix_mem_offset64()

Get the offset of a mapped typed memory block

Synopsis:

#include <sys/mman.h>

int posix_mem_offset( const void * addr,
                      size_t length,
                      off_t * offset,
                      size_t * contig_len,
                      int * fd );

int posix_mem_offset64( const void * addr,
                        size_t length,
                        off64_t * offset,
                        size_t * contig_len,
                        int * fd );

Library:

libc

Description:


Note: The posix_mem_offset() and posix_mem_offset64() functions aren't currently supported.

The posix_mem_offset() and posix_mem_offset64() functions set the variable pointed to by offset to the offset (or location), within a typed memory object, of the memory block currently mapped at addr.

Returns:

-1 ( errno is set).

Errors:

ENOSYS
The posix_mem_offset() function isn't supported by this implementation.

Classification:

posix_mem_offset() is POSIX 1003.1j (draft); posix_mem_offset64() is for large-file support

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

mem_offset(), mem_offset64(), mmap()


[Previous] [Contents] [Next]