Lines Matching refs:mode

40 	int			mode;  member
50 if (ms->mode & TEMP_STREAM_READONLY) { in php_stream_memory_write()
54 if (ms->mode & TEMP_STREAM_APPEND) { in php_stream_memory_write()
196 ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666; in php_stream_memory_stat()
231 if (ms->mode & TEMP_STREAM_READONLY) { in php_stream_memory_set_option()
264 PHPAPI int php_stream_mode_from_str(const char *mode) in php_stream_mode_from_str() argument
266 if (strpbrk(mode, "a")) { in php_stream_mode_from_str()
268 } else if (strpbrk(mode, "w+")) { in php_stream_mode_from_str()
276 PHPAPI const char *_php_stream_mode_to_str(int mode) in _php_stream_mode_to_str() argument
278 if (mode == TEMP_STREAM_READONLY) { in _php_stream_mode_to_str()
280 } else if (mode == TEMP_STREAM_APPEND) { in _php_stream_mode_to_str()
288 PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC) in _php_stream_memory_create()
296 self->mode = mode; in _php_stream_memory_create()
298 stream = php_stream_alloc_rel(&php_stream_memory_ops, self, 0, _php_stream_mode_to_str(mode)); in _php_stream_memory_create()
306 PHPAPI php_stream *_php_stream_memory_open(int mode, zend_string *buf STREAMS_DC) in _php_stream_memory_open() argument
311 if ((stream = php_stream_memory_create_rel(mode)) != NULL) { in _php_stream_memory_open()
336 int mode; member
546 PHPAPI php_stream *_php_stream_temp_create_ex(int mode, size_t max_memory_usage, const char *tmpdir… in _php_stream_temp_create_ex() argument
553 self->mode = mode; in _php_stream_temp_create_ex()
558 stream = php_stream_alloc_rel(&php_stream_temp_ops, self, 0, _php_stream_mode_to_str(mode)); in _php_stream_temp_create_ex()
560 self->innerstream = php_stream_memory_create_rel(mode); in _php_stream_temp_create_ex()
568 PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC) in _php_stream_temp_create() argument
570 return php_stream_temp_create_ex(mode, max_memory_usage, NULL); in _php_stream_temp_create()
575 PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, const char *buf, size_t… in _php_stream_temp_open() argument
581 if ((stream = php_stream_temp_create_rel(mode, max_memory_usage)) != NULL) { in _php_stream_temp_open()
589 ts->mode = mode; in _php_stream_temp_open()
606 const char *mode, int options, zend_string **opened_path, in php_stream_url_wrap_rfc2397() argument
618 ZEND_ASSERT(mode); in php_stream_url_wrap_rfc2397()
726 vlen = strlen(mode); in php_stream_url_wrap_rfc2397()
727 if (vlen >= sizeof(stream->mode)) { in php_stream_url_wrap_rfc2397()
728 vlen = sizeof(stream->mode) - 1; in php_stream_url_wrap_rfc2397()
730 memcpy(stream->mode, mode, vlen); in php_stream_url_wrap_rfc2397()
731 stream->mode[vlen] = '\0'; in php_stream_url_wrap_rfc2397()
735 ts->mode = mode[0] == 'r' && mode[1] != '+' ? TEMP_STREAM_READONLY : 0; in php_stream_url_wrap_rfc2397()