Searched defs:src (Results 1 - 25 of 102) sorted by relevance

12345

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_str.h8 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ argument
15 for (; d < end && *src; ++d, ++src) {
16 if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') {
19 *d = *src;
/PHP_TRUNK/ext/zip/lib/
H A Dzip_fdopen.c44 zip_source_t *src; local
67 if ((src = zip_source_filep_create(fp, 0, -1, &error)) == NULL) {
73 if ((za = zip_open_from_source(src, _flags, &error)) == NULL) {
H A Dzip_filerange_crc.c43 _zip_filerange_crc(zip_source_t *src, zip_uint64_t start, zip_uint64_t len, uLong *crcp, zip_error_t *error) argument
55 if (zip_source_seek(src, (zip_int64_t)start, SEEK_SET) != 0) {
56 _zip_error_set_from_source(error, src);
62 if ((n = zip_source_read(src, buf, (zip_uint64_t)n)) < 0) {
63 _zip_error_set_from_source(error, src);
H A Dzip_fopen_index_encrypted.c49 zip_source_t *src; local
51 if ((src=_zip_source_zip_new(za, za, index, flags, 0, 0, password)) == NULL)
54 if (zip_source_open(src) < 0) {
55 _zip_error_set_from_source(&za->error, src);
56 zip_source_free(src);
61 zip_source_free(src);
65 zf->src = src;
84 zf->src = NULL;
H A Dzip_source_begin_write.c39 zip_source_begin_write(zip_source_t *src) argument
41 if (ZIP_SOURCE_IS_OPEN_WRITING(src)) {
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
46 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_BEGIN_WRITE) < 0) {
50 src->write_state = ZIP_SOURCE_WRITE_OPEN;
H A Dzip_source_call.c39 _zip_source_call(zip_source_t *src, void *data, zip_uint64_t length, zip_source_cmd_t command) argument
43 if ((src->supports & ZIP_SOURCE_MAKE_COMMAND_BITMASK(command)) == 0) {
44 zip_error_set(&src->error, ZIP_ER_OPNOTSUPP, 0);
48 if (src->src == NULL) {
49 ret = src->cb.f(src->ud, data, length, command);
52 ret = src->cb.l(src->src, sr
[all...]
H A Dzip_source_close.c39 zip_source_close(zip_source_t *src) argument
41 if (!ZIP_SOURCE_IS_OPEN_READING(src)) {
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
46 src->open_count--;
47 if (src->open_count == 0) {
48 _zip_source_call(src, NULL, 0, ZIP_SOURCE_CLOSE);
50 if (ZIP_SOURCE_IS_LAYERED(src)) {
51 if (zip_source_close(src->src) < 0) {
52 zip_error_set(&src
[all...]
H A Dzip_source_commit_write.c39 zip_source_commit_write(zip_source_t *src) argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src)) {
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
46 if (src->open_count > 1) {
47 zip_error_set(&src->error, ZIP_ER_INUSE, 0);
50 else if (ZIP_SOURCE_IS_OPEN_READING(src)) {
51 if (zip_source_close(src) < 0) {
56 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_COMMIT_WRITE) < 0) {
57 src->write_state = ZIP_SOURCE_WRITE_FAILED;
61 src
[all...]
H A Dzip_source_error.c39 zip_source_error(zip_source_t *src) argument
41 return &src->error;
H A Dzip_source_free.c41 zip_source_free(zip_source_t *src) argument
43 if (src == NULL)
46 if (src->refcount > 0) {
47 src->refcount--;
49 if (src->refcount > 0) {
53 if (ZIP_SOURCE_IS_OPEN_READING(src)) {
54 src->open_count = 1; /* force close */
55 zip_source_close(src);
57 if (ZIP_SOURCE_IS_OPEN_WRITING(src)) {
58 zip_source_rollback_write(src);
[all...]
H A Dzip_source_function.c72 zip_source_keep(zip_source_t *src) argument
74 src->refcount++;
81 zip_source_t *src; local
83 if ((src=(zip_source_t *)malloc(sizeof(*src))) == NULL) {
88 src->src = NULL;
89 src->cb.f = NULL;
90 src->ud = NULL;
91 src
[all...]
H A Dzip_source_is_deleted.c39 zip_source_is_deleted(zip_source_t *src) argument
41 return src->write_state == ZIP_SOURCE_WRITE_REMOVED;
H A Dzip_source_layered.c41 zip_source_layered(zip_t *za, zip_source_t *src, zip_source_layered_callback cb, void *ud) argument
46 return zip_source_layered_create(src, cb, ud, &za->error);
51 zip_source_layered_create(zip_source_t *src, zip_source_layered_callback cb, void *ud, zip_error_t *error) argument
58 zip_source_keep(src);
59 zs->src = src;
63 zs->supports = cb(src, ud, NULL, 0, ZIP_SOURCE_SUPPORTS);
H A Dzip_source_open.c38 zip_source_open(zip_source_t *src) argument
40 if (src->source_closed) {
43 if (src->write_state == ZIP_SOURCE_WRITE_REMOVED) {
44 zip_error_set(&src->error, ZIP_ER_DELETED, 0);
48 if (ZIP_SOURCE_IS_OPEN_READING(src)) {
49 if ((zip_source_supports(src) & ZIP_SOURCE_MAKE_COMMAND_BITMASK(ZIP_SOURCE_SEEK)) == 0) {
50 zip_error_set(&src->error, ZIP_ER_INUSE, 0);
55 if (ZIP_SOURCE_IS_LAYERED(src)) {
56 if (zip_source_open(src->src) <
[all...]
H A Dzip_source_read.c39 zip_source_read(zip_source_t *src, void *data, zip_uint64_t len) argument
41 if (src->source_closed) {
44 if (!ZIP_SOURCE_IS_OPEN_READING(src) || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) {
45 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
49 return _zip_source_call(src, data, len, ZIP_SOURCE_READ);
H A Dzip_source_remove.c39 zip_source_remove(zip_source_t *src) argument
41 if (src->write_state == ZIP_SOURCE_WRITE_REMOVED) {
45 if (ZIP_SOURCE_IS_OPEN_READING(src)) {
46 if (zip_source_close(src) < 0) {
50 if (src->write_state != ZIP_SOURCE_WRITE_CLOSED) {
51 zip_source_rollback_write(src);
54 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_REMOVE) < 0) {
58 src->write_state = ZIP_SOURCE_WRITE_REMOVED;
H A Dzip_source_rollback_write.c39 zip_source_rollback_write(zip_source_t *src) argument
41 if (src->write_state != ZIP_SOURCE_WRITE_OPEN && src->write_state != ZIP_SOURCE_WRITE_FAILED) {
45 _zip_source_call(src, NULL, 0, ZIP_SOURCE_ROLLBACK_WRITE);
46 src->write_state = ZIP_SOURCE_WRITE_CLOSED;
H A Dzip_source_seek.c39 zip_source_seek(zip_source_t *src, zip_int64_t offset, int whence) argument
43 if (src->source_closed) {
46 if (!ZIP_SOURCE_IS_OPEN_READING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END)) {
47 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
54 return (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK) < 0 ? -1 : 0);
H A Dzip_source_seek_write.c39 zip_source_seek_write(zip_source_t *src, zip_int64_t offset, int whence) argument
43 if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END)) {
44 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
51 return (_zip_source_call(src, &args, sizeof(args), ZIP_SOURCE_SEEK_WRITE) < 0 ? -1 : 0);
H A Dzip_source_stat.c39 zip_source_stat(zip_source_t *src, zip_stat_t *st) argument
41 if (src->source_closed) {
45 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
51 if (ZIP_SOURCE_IS_LAYERED(src)) {
52 if (zip_source_stat(src->src, st) < 0) {
53 _zip_error_set_from_source(&src->error, src->src);
58 if (_zip_source_call(src, s
[all...]
H A Dzip_source_supports.c41 zip_source_supports(zip_source_t *src) argument
43 return src->supports;
H A Dzip_source_tell.c39 zip_source_tell(zip_source_t *src) argument
41 if (src->source_closed) {
44 if (!ZIP_SOURCE_IS_OPEN_READING(src)) {
45 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
49 return _zip_source_call(src, NULL, 0, ZIP_SOURCE_TELL);
H A Dzip_source_tell_write.c39 zip_source_tell_write(zip_source_t *src) argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src)) {
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
46 return _zip_source_call(src, NULL, 0, ZIP_SOURCE_TELL_WRITE);
H A Dzip_source_write.c39 zip_source_write(zip_source_t *src, const void *data, zip_uint64_t length) argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || length > ZIP_INT64_MAX) {
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0);
46 return _zip_source_call(src, (void *)data, length, ZIP_SOURCE_WRITE);
H A Dzip_stat_init.c55 _zip_stat_merge(zip_stat_t *dst, const zip_stat_t *src, zip_error_t *error) argument
57 /* name is not merged, since zip_stat_t doesn't own it, and src may not be valid as long as dst */
58 if (src->valid & ZIP_STAT_INDEX) {
59 dst->index = src->index;
61 if (src->valid & ZIP_STAT_SIZE) {
62 dst->size = src->size;
64 if (src->valid & ZIP_STAT_COMP_SIZE) {
65 dst->comp_size = src->comp_size;
67 if (src->valid & ZIP_STAT_MTIME) {
68 dst->mtime = src
[all...]

Completed in 8 milliseconds

12345