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

Go to the source code of this file.

Macros

#define FINFO_LSEEK_FUNC   lseek
 
#define FINFO_READ_FUNC   read
 
#define offsetof(STRUCTURE, FIELD)
 
#define UINT32_MAX   (0xffffffff)
 
#define PREG_OFFSET_CAPTURE   (1<<8)
 
#define abort()
 

Functions

zend_stringconvert_libmagic_pattern (const char *val, size_t len, uint32_t options)
 

Macro Definition Documentation

◆ abort

#define abort ( )
Value:
zend_error_noreturn(E_ERROR, "fatal libmagic error")
ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn(int type, const char *format,...)
Definition zend.c:1703
#define E_ERROR
Definition zend_errors.h:23

Definition at line 66 of file php_libmagic.h.

◆ FINFO_LSEEK_FUNC

#define FINFO_LSEEK_FUNC   lseek

Definition at line 42 of file php_libmagic.h.

◆ FINFO_READ_FUNC

#define FINFO_READ_FUNC   read

Definition at line 43 of file php_libmagic.h.

◆ offsetof

#define offsetof ( STRUCTURE,
FIELD )
Value:
((int)((char*)&((STRUCTURE*)0)->FIELD))

Definition at line 55 of file php_libmagic.h.

◆ PREG_OFFSET_CAPTURE

#define PREG_OFFSET_CAPTURE   (1<<8)

Definition at line 63 of file php_libmagic.h.

◆ UINT32_MAX

#define UINT32_MAX   (0xffffffff)

Definition at line 59 of file php_libmagic.h.

Function Documentation

◆ convert_libmagic_pattern()

zend_string * convert_libmagic_pattern ( const char * val,
size_t len,
uint32_t options )

Definition at line 20 of file php_libmagic.c.