Searched refs:W_OK (Results 1 – 5 of 5) sorted by relevance
363 if (geteuid() != ROOT_UID && mch_access(TtyName, R_OK | W_OK)) in mch_openpty()421 if (geteuid() != ROOT_UID && mch_access(TtyName, R_OK | W_OK)) in mch_openpty()
1596 #ifndef W_OK1597 # define W_OK 2 // for systems that don't have W_OK in unistd.h macro
467 mch_access((char *)fname, W_OK)) in readfile()2968 mch_access((char *)fname, W_OK) in check_file_readonly()
2669 mch_access((char *)fname, W_OK) == 0 in filewritable()
7059 if (p & W_OK) in mch_access()7078 DWORD access_mode = ((p & W_OK) ? GENERIC_WRITE : 0) in mch_access()