Lines Matching refs:flags
66 int flags; in php_stream_parse_fopen_modes() local
70 flags = 0; in php_stream_parse_fopen_modes()
73 flags = O_TRUNC|O_CREAT; in php_stream_parse_fopen_modes()
76 flags = O_CREAT|O_APPEND; in php_stream_parse_fopen_modes()
79 flags = O_CREAT|O_EXCL; in php_stream_parse_fopen_modes()
82 flags = O_CREAT; in php_stream_parse_fopen_modes()
90 flags |= O_RDWR; in php_stream_parse_fopen_modes()
91 } else if (flags) { in php_stream_parse_fopen_modes()
92 flags |= O_WRONLY; in php_stream_parse_fopen_modes()
94 flags |= O_RDONLY; in php_stream_parse_fopen_modes()
99 flags |= O_CLOEXEC; in php_stream_parse_fopen_modes()
105 flags |= O_NONBLOCK; in php_stream_parse_fopen_modes()
111 flags |= _O_TEXT; in php_stream_parse_fopen_modes()
113 flags |= O_BINARY; in php_stream_parse_fopen_modes()
117 *open_flags = flags; in php_stream_parse_fopen_modes()
275 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_fd()
282 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_fd()
301 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_file()
330 stream->flags |= PHP_STREAM_FLAG_NO_SEEK; in _php_stream_fopen_from_pipe()
640 int flags; in php_stdiop_set_option() local
651 flags = fcntl(fd, F_GETFL, 0); in php_stdiop_set_option()
652 oldval = (flags & O_NONBLOCK) ? 0 : 1; in php_stdiop_set_option()
654 flags &= ~O_NONBLOCK; in php_stdiop_set_option()
656 flags |= O_NONBLOCK; in php_stdiop_set_option()
658 if (-1 == fcntl(fd, F_SETFL, flags)) in php_stdiop_set_option()
712 int prot, flags; in php_stdiop_set_option() local
732 flags = MAP_PRIVATE; in php_stdiop_set_option()
736 flags = MAP_PRIVATE; in php_stdiop_set_option()
740 flags = MAP_SHARED; in php_stdiop_set_option()
744 flags = MAP_SHARED; in php_stdiop_set_option()
749 range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); in php_stdiop_set_option()
938 flags = fcntl(fd, F_GETFL, 0); in php_stdiop_set_option()
941 add_assoc_bool((zval*)ptrparam, "blocked", (flags & O_NONBLOCK)? 0 : 1); in php_stdiop_set_option()
1153 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_… in php_plain_files_url_stater() argument
1159 if (php_check_open_basedir_ex(url, (flags & PHP_STREAM_URL_STAT_QUIET) ? 0 : 1)) { in php_plain_files_url_stater()
1164 if (flags & PHP_STREAM_URL_STAT_LINK) { in php_plain_files_url_stater()
1169 if (flags & PHP_STREAM_URL_STAT_LINK) { in php_plain_files_url_stater()