php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
#include "file.h"
#include "magic.h"
#include <assert.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
Go to the source code of this file.
Data Structures | |
struct | guid |
Macros | |
#define | SIZE_MAX ((size_t)~0) |
#define | FILE_SEPARATOR "\n- " |
#define | OCTALIFY(n, o) |
Functions | |
file_protected char * | file_copystr (char *buf, size_t blen, size_t width, const char *str) |
file_private void | file_clearbuf (struct magic_set *ms) |
file_private int | file_checkfield (char *msg, size_t mlen, const char *what, const char **pp) |
file_protected int | file_checkfmt (char *msg, size_t mlen, const char *fmt) |
file_protected int | file_vprintf (struct magic_set *ms, const char *fmt, va_list ap) |
file_protected int | file_printf (struct magic_set *ms, const char *fmt,...) |
__attribute__ ((__format__(__printf__, 3, 0))) | |
file_protected void | file_error (struct magic_set *ms, int error, const char *f,...) |
file_protected void | file_magerror (struct magic_set *ms, const char *f,...) |
file_protected void | file_oomem (struct magic_set *ms, size_t len) |
file_protected void | file_badseek (struct magic_set *ms) |
file_protected void | file_badread (struct magic_set *ms) |
file_protected int | file_separator (struct magic_set *ms) |
file_protected int | file_default (struct magic_set *ms, size_t nb) |
file_protected int | file_buffer (struct magic_set *ms, php_stream *stream, zend_stat_t *st, const char *inname __attribute__((__unused__)), const void *buf, size_t nb) |
file_protected int | file_reset (struct magic_set *ms, int checkloaded) |
file_protected const char * | file_getbuffer (struct magic_set *ms) |
file_protected int | file_check_mem (struct magic_set *ms, unsigned int level) |
file_protected size_t | file_printedlen (const struct magic_set *ms) |
file_protected int | file_replace (struct magic_set *ms, const char *pat, const char *rep) |
file_protected file_pushbuf_t * | file_push_buffer (struct magic_set *ms) |
file_protected char * | file_pop_buffer (struct magic_set *ms, file_pushbuf_t *pb) |
file_protected char * | file_printable (struct magic_set *ms, char *buf, size_t bufsiz, const char *str, size_t slen) |
file_protected int | file_parse_guid (const char *s, uint64_t *guid) |
file_protected int | file_print_guid (char *str, size_t len, const uint64_t *guid) |
file_protected int | file_clear_closexec (int fd) |
file_protected char * | file_strtrim (char *str) |
file_protected void file_badread | ( | struct magic_set * | ms | ) |
file_protected void file_badseek | ( | struct magic_set * | ms | ) |
file_protected int file_buffer | ( | struct magic_set * | ms, |
php_stream * | stream, | ||
zend_stat_t * | st, | ||
const char *inname | __attribute__(__unused__), | ||
const void * | buf, | ||
size_t | nb ) |
file_protected int file_check_mem | ( | struct magic_set * | ms, |
unsigned int | level ) |
file_private int file_checkfield | ( | char * | msg, |
size_t | mlen, | ||
const char * | what, | ||
const char ** | pp ) |
file_protected int file_checkfmt | ( | char * | msg, |
size_t | mlen, | ||
const char * | fmt ) |
file_protected int file_clear_closexec | ( | int | fd | ) |
file_private void file_clearbuf | ( | struct magic_set * | ms | ) |
file_protected char * file_copystr | ( | char * | buf, |
size_t | blen, | ||
size_t | width, | ||
const char * | str ) |
file_protected int file_default | ( | struct magic_set * | ms, |
size_t | nb ) |
file_protected void file_error | ( | struct magic_set * | ms, |
int | error, | ||
const char * | f, | ||
... ) |
file_protected const char * file_getbuffer | ( | struct magic_set * | ms | ) |
file_protected void file_magerror | ( | struct magic_set * | ms, |
const char * | f, | ||
... ) |
file_protected void file_oomem | ( | struct magic_set * | ms, |
size_t | len ) |
file_protected int file_parse_guid | ( | const char * | s, |
uint64_t * | guid ) |
file_protected char * file_pop_buffer | ( | struct magic_set * | ms, |
file_pushbuf_t * | pb ) |
file_protected int file_print_guid | ( | char * | str, |
size_t | len, | ||
const uint64_t * | guid ) |
file_protected char * file_printable | ( | struct magic_set * | ms, |
char * | buf, | ||
size_t | bufsiz, | ||
const char * | str, | ||
size_t | slen ) |
file_protected size_t file_printedlen | ( | const struct magic_set * | ms | ) |
file_protected int file_printf | ( | struct magic_set * | ms, |
const char * | fmt, | ||
... ) |
file_protected file_pushbuf_t * file_push_buffer | ( | struct magic_set * | ms | ) |
file_protected int file_replace | ( | struct magic_set * | ms, |
const char * | pat, | ||
const char * | rep ) |
file_protected int file_reset | ( | struct magic_set * | ms, |
int | checkloaded ) |
file_protected int file_separator | ( | struct magic_set * | ms | ) |
file_protected char * file_strtrim | ( | char * | str | ) |
file_protected int file_vprintf | ( | struct magic_set * | ms, |
const char * | fmt, | ||
va_list | ap ) |