Searched refs:src (Results 1 - 25 of 144) sorted by relevance

123456

/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/gd/libgd/
H A Dgd_matrix.c27 int gdAffineApplyToPointF (gdPointFPtr dst, const gdPointFPtr src, argument
30 double x = src->x;
31 double y = src->y;
32 x = src->x;
33 y = src->y;
44 * inverted matrix will restore the original values. Multiplying <src>
60 int gdAffineInvert (double dst[6], const double src[6]) argument
62 double r_det = (src[0] * src[3] - src[
95 gdAffineFlip(double dst[6], const double src[6], const int flip_h, const int flip_v) argument
291 gdAffineExpansion(const double src[6]) argument
[all...]
H A Dgd_rotate.c20 void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double dWeight, int clrBack, int ignoretransparent) argument
29 if (src->trueColor) {
34 clrBackR = gdImageRed(src, clrBack);
35 clrBackG = gdImageGreen(src, clrBack);
36 clrBackB = gdImageBlue(src, clrBack);
37 clrBackA = gdImageAlpha(src, clrBack);
50 for (i = 0; i < src->sx; i++) {
51 pxlSrc = f (src,i,uRow);
53 r = (int)(gdImageRed(src,pxlSrc) * dWeight);
54 g = (int)(gdImageGreen(src,pxlSr
117 gdImageSkewY(gdImagePtr dst, gdImagePtr src, int uCol, int iOffset, double dWeight, int clrBack, int ignoretransparent) argument
205 gdImageRotate90(gdImagePtr src, int ignoretransparent) argument
252 gdImageRotate180(gdImagePtr src, int ignoretransparent) argument
300 gdImageRotate270(gdImagePtr src, int ignoretransparent) argument
347 gdImageRotate45(gdImagePtr src, double dAngle, int clrBack, int ignoretransparent) argument
505 gdImageRotate(gdImagePtr src, double dAngle, int clrBack, int ignoretransparent) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_uuencode.h27 PHPAPI zend_string *php_uudecode(char *src, size_t src_len);
28 PHPAPI zend_string *php_uuencode(char *src, size_t src_len);
/PHP_TRUNK/main/
H A Dstrlcpy.c62 * Copy src to string dst of size siz. At most siz-1 characters
64 * Returns strlen(src); if retval >= siz, truncation occurred.
66 PHPAPI size_t php_strlcpy(dst, src, siz)
68 const char *src;
72 register const char *s = src;
83 /* Not enough room in dst, add NUL and traverse rest of src */
91 return(s - src - 1); /* count does not include NUL */
/PHP_TRUNK/ext/zip/lib/
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_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_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 41 milliseconds

123456