Lines Matching refs:flags

72 	int flags;  in php_stream_parse_fopen_modes()  local
76 flags = 0; in php_stream_parse_fopen_modes()
79 flags = O_TRUNC|O_CREAT; in php_stream_parse_fopen_modes()
82 flags = O_CREAT|O_APPEND; in php_stream_parse_fopen_modes()
85 flags = O_CREAT|O_EXCL; in php_stream_parse_fopen_modes()
88 flags = O_CREAT; in php_stream_parse_fopen_modes()
96 flags |= O_RDWR; in php_stream_parse_fopen_modes()
97 } else if (flags) { in php_stream_parse_fopen_modes()
98 flags |= O_WRONLY; in php_stream_parse_fopen_modes()
100 flags |= O_RDONLY; in php_stream_parse_fopen_modes()
105 flags |= O_CLOEXEC; in php_stream_parse_fopen_modes()
111 flags |= O_NONBLOCK; in php_stream_parse_fopen_modes()
117 flags |= _O_TEXT; in php_stream_parse_fopen_modes()
119 flags |= O_BINARY; in php_stream_parse_fopen_modes()
123 *open_flags = flags; in php_stream_parse_fopen_modes()
286 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_fd()
293 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_fd()
312 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_file()
341 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_pipe()
369 if (!(stream->flags & PHP_STREAM_FLAG_SUPPRESS_ERRORS)) { in php_stdiop_write()
439 if (!(stream->flags & PHP_STREAM_FLAG_SUPPRESS_ERRORS)) { in php_stdiop_read()
677 int flags; in php_stdiop_set_option() local
688 flags = fcntl(fd, F_GETFL, 0); in php_stdiop_set_option()
689 oldval = (flags & O_NONBLOCK) ? 0 : 1; in php_stdiop_set_option()
691 flags &= ~O_NONBLOCK; in php_stdiop_set_option()
693 flags |= O_NONBLOCK; in php_stdiop_set_option()
695 if (-1 == fcntl(fd, F_SETFL, flags)) in php_stdiop_set_option()
749 int prot, flags; in php_stdiop_set_option() local
769 flags = MAP_PRIVATE; in php_stdiop_set_option()
773 flags = MAP_PRIVATE; in php_stdiop_set_option()
777 flags = MAP_SHARED; in php_stdiop_set_option()
781 flags = MAP_SHARED; in php_stdiop_set_option()
786 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
988 flags = fcntl(fd, F_GETFL, 0); in php_stdiop_set_option()
991 add_assoc_bool((zval*)ptrparam, "blocked", (flags & O_NONBLOCK)? 0 : 1); in php_stdiop_set_option()
1203 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1205 if (!(flags & PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR)) { in php_plain_files_url_stater()
1210 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1216 if (flags & PHP_STREAM_URL_STAT_LINK) { in php_plain_files_url_stater()
1221 if (flags & PHP_STREAM_URL_STAT_LINK) { in php_plain_files_url_stater()