mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-22 02:04:22 +03:00
* vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
uid_t, gid_t, and dev_t where appropriate. Patch extended by Roland Illig.
This commit is contained in:
parent
1bb010e66e
commit
6bbbeb77b4
@ -1,3 +1,10 @@
|
||||
2004-11-15 Leonard den Ottolander <leonard * den ottolander nl>
|
||||
|
||||
* vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
|
||||
uid_t, gid_t, and dev_t where appropriate.
|
||||
|
||||
Patch extended by Roland Illig.
|
||||
|
||||
2004-11-15 Leonard den Ottolander <leonard * den ottolander nl>
|
||||
|
||||
* vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path.
|
||||
|
@ -360,15 +360,15 @@ int mc_##name inarg \
|
||||
return result; \
|
||||
}
|
||||
|
||||
MC_NAMEOP (chmod, (const char *path, int mode), (vfs, mpath, mode))
|
||||
MC_NAMEOP (chown, (const char *path, int owner, int group), (vfs, mpath, owner, group))
|
||||
MC_NAMEOP (chmod, (const char *path, mode_t mode), (vfs, mpath, mode))
|
||||
MC_NAMEOP (chown, (const char *path, uid_t owner, gid_t group), (vfs, mpath, owner, group))
|
||||
MC_NAMEOP (utime, (const char *path, struct utimbuf *times), (vfs, mpath, times))
|
||||
MC_NAMEOP (readlink, (const char *path, char *buf, int bufsiz), (vfs, mpath, buf, bufsiz))
|
||||
MC_NAMEOP (unlink, (const char *path), (vfs, mpath))
|
||||
MC_NAMEOP (symlink, (const char *name1, const char *path), (vfs, name1, mpath))
|
||||
MC_NAMEOP (mkdir, (const char *path, mode_t mode), (vfs, mpath, mode))
|
||||
MC_NAMEOP (rmdir, (const char *path), (vfs, mpath))
|
||||
MC_NAMEOP (mknod, (const char *path, int mode, int dev), (vfs, mpath, mode, dev))
|
||||
MC_NAMEOP (mknod, (const char *path, mode_t mode, dev_t dev), (vfs, mpath, mode, dev))
|
||||
|
||||
|
||||
#define MC_HANDLEOP(name, inarg, callarg) \
|
||||
|
@ -32,14 +32,14 @@ int mc_stat (const char *path, struct stat *buf);
|
||||
int mc_lstat (const char *path, struct stat *buf);
|
||||
int mc_fstat (int fd, struct stat *buf);
|
||||
|
||||
int mc_chmod (const char *path, int mode);
|
||||
int mc_chown (const char *path, int owner, int group);
|
||||
int mc_chmod (const char *path, mode_t mode);
|
||||
int mc_chown (const char *path, uid_t owner, gid_t group);
|
||||
int mc_utime (const char *path, struct utimbuf *times);
|
||||
int mc_readlink (const char *path, char *buf, int bufsiz);
|
||||
int mc_unlink (const char *path);
|
||||
int mc_symlink (const char *name1, const char *name2);
|
||||
int mc_link (const char *name1, const char *name2);
|
||||
int mc_mknod (const char *, int, int);
|
||||
int mc_mknod (const char *, mode_t, dev_t);
|
||||
int mc_rename (const char *original, const char *target);
|
||||
int mc_rmdir (const char *path);
|
||||
int mc_mkdir (const char *path, mode_t mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user