Lines Matching refs:opts
74 PW32IO BOOL php_win32_ioutil_posix_to_open_opts(int flags, mode_t mode, php_ioutil_open_opts *opts) in php_win32_ioutil_posix_to_open_opts() argument
78 opts->attributes = 0; in php_win32_ioutil_posix_to_open_opts()
88 opts->access = FILE_GENERIC_READ; in php_win32_ioutil_posix_to_open_opts()
93 opts->access = FILE_GENERIC_WRITE; in php_win32_ioutil_posix_to_open_opts()
96 opts->access = FILE_GENERIC_READ | FILE_GENERIC_WRITE; in php_win32_ioutil_posix_to_open_opts()
105 opts->access |= FILE_APPEND_DATA; in php_win32_ioutil_posix_to_open_opts()
106 opts->attributes &= ~FILE_FLAG_BACKUP_SEMANTICS; in php_win32_ioutil_posix_to_open_opts()
115 opts->share = PHP_WIN32_IOUTIL_DEFAULT_SHARE_MODE; in php_win32_ioutil_posix_to_open_opts()
120 opts->disposition = OPEN_EXISTING; in php_win32_ioutil_posix_to_open_opts()
123 opts->disposition = OPEN_ALWAYS; in php_win32_ioutil_posix_to_open_opts()
127 opts->disposition = CREATE_NEW; in php_win32_ioutil_posix_to_open_opts()
131 opts->disposition = TRUNCATE_EXISTING; in php_win32_ioutil_posix_to_open_opts()
134 opts->disposition = CREATE_ALWAYS; in php_win32_ioutil_posix_to_open_opts()
140 opts->attributes |= FILE_ATTRIBUTE_NORMAL; in php_win32_ioutil_posix_to_open_opts()
143 opts->attributes |= FILE_ATTRIBUTE_READONLY; in php_win32_ioutil_posix_to_open_opts()
148 opts->attributes |= FILE_FLAG_DELETE_ON_CLOSE | FILE_ATTRIBUTE_TEMPORARY; in php_win32_ioutil_posix_to_open_opts()
149 opts->access |= DELETE; in php_win32_ioutil_posix_to_open_opts()
153 opts->attributes |= FILE_ATTRIBUTE_TEMPORARY; in php_win32_ioutil_posix_to_open_opts()
160 opts->attributes |= FILE_FLAG_SEQUENTIAL_SCAN; in php_win32_ioutil_posix_to_open_opts()
163 opts->attributes |= FILE_FLAG_RANDOM_ACCESS; in php_win32_ioutil_posix_to_open_opts()