Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 13 of 13) sorted by relevance

/vim-8.2.3635/src/
H A Dfileio.c425 swap_mode = (st.st_mode & 0644) | 0600; in readfile()
4087 || (int)st.st_mode != buf->b_orig_mode in buf_check_timestamp()
4490 buf->b_orig_mode = (int)st->st_mode; in buf_store_time()
4514 unsigned short st_mode; in getfpermwfd() local
4530 st_mode |= _S_IEXEC; in getfpermwfd()
4534 st_mode |= (st_mode & 0700) >> 3; in getfpermwfd()
4535 st_mode |= (st_mode & 0700) >> 6; in getfpermwfd()
4537 st.st_mode = st_mode; in getfpermwfd()
4642 if (ret >= 0 && S_ISLNK(st.st_mode)) in create_readdirex_item()
4658 if (S_ISDIR(st.st_mode)) in create_readdirex_item()
[all …]
H A Dfilepath.c1143 if (st->st_mode & (1 << (8 - i))) in getfpermst()
1230 if (S_ISREG(st->st_mode)) in getftypest()
1232 else if (S_ISDIR(st->st_mode)) in getftypest()
1234 else if (S_ISLNK(st->st_mode)) in getftypest()
1236 else if (S_ISBLK(st->st_mode)) in getftypest()
1238 else if (S_ISCHR(st->st_mode)) in getftypest()
1240 else if (S_ISFIFO(st->st_mode)) in getftypest()
1242 else if (S_ISSOCK(st->st_mode)) in getftypest()
H A Dviminfo.c3040 if (mch_fstat(fileno(fp), &st) < 0 || S_ISDIR(st.st_mode)) in read_viminfo()
3112 || S_ISDIR(st_old.st_mode) in write_viminfo()
3119 ? (st_old.st_mode & 0200) in write_viminfo()
3121 ? (st_old.st_mode & 0020) in write_viminfo()
3122 : (st_old.st_mode & 0002)))) in write_viminfo()
3214 (int)((st_old.st_mode & 0777) | 0600)); in write_viminfo()
H A Dbufwrite.c1047 perm = st_old.st_mode; in buf_write()
1048 if (!S_ISREG(st_old.st_mode)) // not a file in buf_write()
1050 if (S_ISDIR(st_old.st_mode)) in buf_write()
1231 || (long)st.st_mode != perm) in buf_write()
H A Dos_unix.c2817 return statb.st_mode & ~S_ADDACE; in mch_getperm()
2819 return statb.st_mode; in mch_getperm()
3139 return (S_ISDIR(statb.st_mode) ? TRUE : FALSE); in mch_isdir()
3156 return (S_ISDIR(statb.st_mode) ? TRUE : FALSE); in mch_isrealdir()
3178 if (S_ISREG(st.st_mode) && mch_access((char *)name, X_OK) == 0) in executable_file()
3186 return S_ISREG(st.st_mode) && mch_access((char *)name, X_OK) == 0; in executable_file()
3281 if (S_ISREG(st.st_mode) || S_ISDIR(st.st_mode)) in mch_nodetype()
3283 if (S_ISBLK(st.st_mode)) // block device isn't writable in mch_nodetype()
H A Dgui_at_fs.c980 if (S_ISDIR (statBuf->st_mode)) in SFstatChar()
982 if (S_ISREG (statBuf->st_mode)) in SFstatChar()
983 return S_ISXXX (statBuf->st_mode) ? '*' : ' '; in SFstatChar()
985 if (S_ISSOCK (statBuf->st_mode)) in SFstatChar()
H A Dif_cscope.c529 if (S_ISDIR(statbuf.st_mode)) in cs_add_common()
560 else if (S_ISREG(statbuf.st_mode) || S_ISLNK(statbuf.st_mode)) in cs_add_common()
H A Dos_mswin.c493 stp->st_mode = (stp->st_mode & ~S_IFREG) | S_IFDIR; in wstat_symlink_aware()
H A Dnetbeans.c256 if (mch_stat(file, &st) == 0 && (st.st_mode & 0077) != 0) in getConnInfo()
H A Dundo.c1610 perm = st_old.st_mode; in u_write_undo()
H A Dos_win32.c3178 return n == 0 ? (long)(unsigned short)st.st_mode : -1L; in mch_getperm()
/vim-8.2.3635/runtime/doc/
H A Dversion7.txt5172 Solution: Remove the top bit from st_mode. (Ligesh)
H A Dversion8.txt1312 Problem: Problems when building with Borland: st_mode is signed short;