aboutsummaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-27 12:38:33 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-27 19:57:55 -0300
commit5762c4e528cbd6629319bf3958d1f6554b399b20 (patch)
tree3be91959012944534451ec84584ff4be84286b7c /src/undo.c
parent3f7011ab9185b4968e89086f77b054161a900beb (diff)
downloadrneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.gz
rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.bz2
rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.zip
Rename mch_* functions to os_* in os module.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/undo.c b/src/undo.c
index 64ad005359..9d80904890 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -724,7 +724,7 @@ char_u *u_get_undo_file_name(char_u *buf_ffname, int reading)
STRCAT(p, ".un~");
} else {
dir_name[dir_len] = NUL;
- if (mch_isdir(dir_name)) {
+ if (os_isdir(dir_name)) {
if (munged_name == NULL) {
munged_name = vim_strsave(ffname);
if (munged_name == NULL)
@@ -1167,7 +1167,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
st_old_valid = TRUE;
}
#else
- perm = mch_getperm(buf->b_ffname);
+ perm = os_getperm(buf->b_ffname);
if (perm < 0)
perm = 0600;
#endif
@@ -1231,7 +1231,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
EMSG2(_(e_not_open), file_name);
goto theend;
}
- (void)mch_setperm(file_name, perm);
+ (void)os_setperm(file_name, perm);
if (p_verbose > 0) {
verbose_enter();
smsg((char_u *)_("Writing undo file: %s"), file_name);
@@ -1256,7 +1256,7 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash)
&& fchown(fd, (uid_t)-1, st_old.st_gid) != 0
# endif
)
- mch_setperm(file_name, (perm & 0707) | ((perm & 07) << 3));
+ os_setperm(file_name, (perm & 0707) | ((perm & 07) << 3));
# ifdef HAVE_SELINUX
if (buf->b_ffname != NULL)
mch_copy_sec(buf->b_ffname, file_name);