Searched defs:flags (Results 1 - 25 of 150) sorted by relevance

123456

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_sockets.h33 int flags = fcntl(fd, F_GETFL); local
35 if (flags < 0) {
40 flags &= ~O_NONBLOCK;
42 flags |= O_NONBLOCK;
44 return fcntl(fd, F_SETFL, flags);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_fdopen.c47 unsigned int flags;
54 flags = (unsigned int)_flags;
56 if (flags & ZIP_TRUNCATE) {
76 return _zip_open(NULL, fp, flags, zep);
45 unsigned int flags; local
H A Dzip_file_add.c49 zip_file_add(struct zip *za, const char *name, struct zip_source *source, zip_flags_t flags)
56 return _zip_file_replace(za, ZIP_UINT64_MAX, name, source, flags);
47 zip_file_add(struct zip *za, const char *name, struct zip_source *source, zip_flags_t flags) argument
H A Dzip_file_get_comment.c44 zip_file_get_comment(struct zip *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags)
50 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
53 if ((str=_zip_string_get(de->comment, &len, flags, &za->error)) == NULL)
42 zip_file_get_comment(struct zip *za, zip_uint64_t idx, zip_uint32_t *lenp, zip_flags_t flags) argument
H A Dzip_file_rename.c45 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags)
71 return _zip_set_name(za, idx, name, flags);
43 zip_file_rename(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
H A Dzip_file_replace.c43 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags)
50 if (_zip_file_replace(za, idx, NULL, source, flags) == -1)
63 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags)
76 if (flags & ZIP_FL_OVERWRITE)
77 i = _zip_name_locate(za, name, flags, NULL);
87 if (name && _zip_set_name(za, idx, name, flags) != 0) {
41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags) argument
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zip_flags_t flags) argument
H A Dzip_file_set_comment.c46 const char *comment, zip_uint16_t len, zip_flags_t flags)
66 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL)
68 if ((flags & ZIP_FL_ENCODING_ALL) == ZIP_FL_ENC_GUESS && _zip_guess_encoding(cstr, ZIP_ENCODING_UNKNOWN) == ZIP_ENCODING_UTF8_GUESSED)
43 zip_file_set_comment(struct zip *za, zip_uint64_t idx, const char *comment, zip_uint16_t len, zip_flags_t flags) argument
H A Dzip_fopen.c43 zip_fopen(struct zip *za, const char *fname, zip_flags_t flags)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, za->default_password);
41 zip_fopen(struct zip *za, const char *fname, zip_flags_t flags) argument
H A Dzip_fopen_encrypted.c43 zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
41 zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password) argument
H A Dzip_get_archive_comment.c45 zip_get_archive_comment(struct zip *za, int *lenp, zip_flags_t flags)
51 if ((flags & ZIP_FL_UNCHANGED) || (za->comment_changes == NULL))
56 if ((str=_zip_string_get(comment, &len, flags, &za->error)) == NULL)
43 zip_get_archive_comment(struct zip *za, int *lenp, zip_flags_t flags) argument
H A Dzip_get_file_comment.c44 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags)
49 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
42 zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags) argument
H A Dzip_get_name.c45 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags)
47 return _zip_get_name(za, idx, flags, &za->error);
54 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error)
59 if ((de=_zip_get_dirent(za, idx, flags, error)) == NULL)
62 if ((str=_zip_string_get(de->filename, NULL, flags, error)) == NULL)
43 zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags) argument
51 _zip_get_name(struct zip *za, zip_uint64_t idx, zip_flags_t flags, struct zip_error *error) argument
H A Dzip_get_num_entries.c43 zip_get_num_entries(struct zip *za, zip_flags_t flags)
50 if (flags & ZIP_FL_UNCHANGED) {
41 zip_get_num_entries(struct zip *za, zip_flags_t flags) argument
H A Dzip_name_locate.c48 zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags)
50 return _zip_name_locate(za, fname, flags, &za->error);
57 _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error)
71 cmp = (flags & ZIP_FL_NOCASE) ? strcasecmp : strcmp;
74 fn = _zip_get_name(za, i, flags, error);
80 if (flags & ZIP_FL_NODIR) {
46 zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags) argument
54 _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error) argument
H A Dzip_source_zip.c47 zip_flags_t flags, zip_uint64_t start, zip_int64_t len)
58 flags |= ZIP_FL_COMPRESSED;
60 flags &= ~ZIP_FL_COMPRESSED;
62 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL);
44 zip_source_zip(struct zip *za, struct zip *srcza, zip_uint64_t srcidx, zip_flags_t flags, zip_uint64_t start, zip_int64_t len) argument
H A Dzip_stat.c43 zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
50 return zip_stat_index(za, (zip_uint64_t)idx, flags, st);
41 zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st) argument
H A Dzip_get_archive_flag.c43 zip_get_archive_flag(struct zip *za, zip_flags_t flag, zip_flags_t flags)
47 fl = (flags & ZIP_FL_UNCHANGED) ? za->flags : za->ch_flags;
41 zip_get_archive_flag(struct zip *za, zip_flags_t flag, zip_flags_t flags) argument
H A Dzip_set_file_compression.c44 zip_int32_t method, zip_uint32_t flags)
68 /* TODO: revisit this when flags are supported, since they may require a recompression */
41 zip_set_file_compression(struct zip *za, zip_uint64_t idx, zip_int32_t method, zip_uint32_t flags) argument
H A Dzip_set_name.c46 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags)
65 if ((str=_zip_string_new((const zip_uint8_t *)name, (zip_uint16_t)strlen(name), flags, &za->error)) == NULL)
67 if ((flags & ZIP_FL_ENCODING_ALL) == ZIP_FL_ENC_GUESS && _zip_guess_encoding(str, ZIP_ENCODING_UNKNOWN) == ZIP_ENCODING_UTF8_GUESSED)
73 /* TODO: encoding flags needed for CP437? */
44 _zip_set_name(struct zip *za, zip_uint64_t idx, const char *name, zip_flags_t flags) argument
H A Dzip_stat_index.c43 zip_stat_index(struct zip *za, zip_uint64_t index, zip_flags_t flags,
49 if ((de=_zip_get_dirent(za, index, flags, NULL)) == NULL)
52 if ((name=zip_get_name(za, index, flags)) == NULL)
56 if ((flags & ZIP_FL_UNCHANGED) == 0
41 zip_stat_index(struct zip *za, zip_uint64_t index, zip_flags_t flags, struct zip_stat *st) argument
H A Dzip_file_get_external_attributes.c37 zip_file_get_external_attributes(struct zip *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t *opsys, zip_uint32_t *attributes) argument
43 if ((de=_zip_get_dirent(za, idx, flags, NULL)) == NULL)
H A Dzip_file_set_external_attributes.c37 zip_file_set_external_attributes(struct zip *za, zip_uint64_t idx, zip_flags_t flags, zip_uint8_t opsys, zip_uint32_t attributes) argument
H A Dzip_dir_add.c48 zip_dir_add(struct zip *za, const char *name, zip_flags_t flags)
83 idx = _zip_file_replace(za, ZIP_UINT64_MAX, s ? s : name, source, flags);
46 zip_dir_add(struct zip *za, const char *name, zip_flags_t flags) argument
H A Dzip_fopen_index.c47 zip_fopen_index(struct zip *za, zip_uint64_t index, zip_flags_t flags)
49 return zip_fopen_index_encrypted(za, index, flags, za->default_password);
45 zip_fopen_index(struct zip *za, zip_uint64_t index, zip_flags_t flags) argument
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_report.c32 /* {{{ proto bool mysqli_report(int flags)
36 long flags; local
39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &flags) == FAILURE) {
43 MyG(report_mode) = flags;

Completed in 54 milliseconds

123456