php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_stream_mmap.h File Reference

Go to the source code of this file.

Data Structures

struct  php_stream_mmap_range
 

Macros

#define PHP_STREAM_MMAP_ALL   0
 
#define PHP_STREAM_MMAP_MAX   (512 * 1024 * 1024)
 
#define php_stream_mmap_supported(stream)
 
#define php_stream_mmap_possible(stream)
 
#define php_stream_mmap_range(stream, offset, length, mode, mapped_len)
 
#define php_stream_mmap_unmap(stream)
 
#define php_stream_mmap_unmap_ex(stream, readden)
 

Enumerations

enum  php_stream_mmap_operation_t { PHP_STREAM_MMAP_SUPPORTED , PHP_STREAM_MMAP_MAP_RANGE , PHP_STREAM_MMAP_UNMAP }
 
enum  php_stream_mmap_access_t { PHP_STREAM_MAP_MODE_READONLY , PHP_STREAM_MAP_MODE_READWRITE , PHP_STREAM_MAP_MODE_SHARED_READONLY , PHP_STREAM_MAP_MODE_SHARED_READWRITE }
 

Functions

PHPAPI char * _php_stream_mmap_range (php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len)
 
PHPAPI int _php_stream_mmap_unmap (php_stream *stream)
 
PHPAPI int _php_stream_mmap_unmap_ex (php_stream *stream, zend_off_t readden)
 

Macro Definition Documentation

◆ PHP_STREAM_MMAP_ALL

#define PHP_STREAM_MMAP_ALL   0

Definition at line 57 of file php_stream_mmap.h.

◆ PHP_STREAM_MMAP_MAX

#define PHP_STREAM_MMAP_MAX   (512 * 1024 * 1024)

Definition at line 59 of file php_stream_mmap.h.

◆ php_stream_mmap_possible

#define php_stream_mmap_possible ( stream)
Value:
#define php_stream_is_filtered(stream)
#define php_stream_mmap_supported(stream)

Definition at line 65 of file php_stream_mmap.h.

◆ php_stream_mmap_range

#define php_stream_mmap_range ( stream,
offset,
length,
mode,
mapped_len )
Value:
_php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len))
zend_long offset
char * mode
PHPAPI char * _php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len)
Definition mmap.c:21

Definition at line 69 of file php_stream_mmap.h.

◆ php_stream_mmap_supported

#define php_stream_mmap_supported ( stream)
Value:
#define NULL
Definition gdcache.h:45
@ PHP_STREAM_MMAP_SUPPORTED
PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam)
Definition streams.c:1433
#define PHP_STREAM_OPTION_MMAP_API

Definition at line 61 of file php_stream_mmap.h.

◆ php_stream_mmap_unmap

#define php_stream_mmap_unmap ( stream)
Value:
PHPAPI int _php_stream_mmap_unmap(php_stream *stream)
Definition mmap.c:39

Definition at line 73 of file php_stream_mmap.h.

◆ php_stream_mmap_unmap_ex

#define php_stream_mmap_unmap_ex ( stream,
readden )
Value:
_php_stream_mmap_unmap_ex((stream), (readden))
PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, zend_off_t readden)
Definition mmap.c:44

Definition at line 76 of file php_stream_mmap.h.

Enumeration Type Documentation

◆ php_stream_mmap_access_t

Enumerator
PHP_STREAM_MAP_MODE_READONLY 
PHP_STREAM_MAP_MODE_READWRITE 
PHP_STREAM_MAP_MODE_SHARED_READONLY 
PHP_STREAM_MAP_MODE_SHARED_READWRITE 

Definition at line 37 of file php_stream_mmap.h.

◆ php_stream_mmap_operation_t

Enumerator
PHP_STREAM_MMAP_SUPPORTED 
PHP_STREAM_MMAP_MAP_RANGE 
PHP_STREAM_MMAP_UNMAP 

Definition at line 26 of file php_stream_mmap.h.

Function Documentation

◆ _php_stream_mmap_range()

PHPAPI char * _php_stream_mmap_range ( php_stream * stream,
size_t offset,
size_t length,
php_stream_mmap_access_t mode,
size_t * mapped_len )

Definition at line 21 of file mmap.c.

◆ _php_stream_mmap_unmap()

PHPAPI int _php_stream_mmap_unmap ( php_stream * stream)

Definition at line 39 of file mmap.c.

◆ _php_stream_mmap_unmap_ex()

PHPAPI int _php_stream_mmap_unmap_ex ( php_stream * stream,
zend_off_t readden )

Definition at line 44 of file mmap.c.