aboutsummaryrefslogtreecommitdiff
path: root/src/extern.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-07 12:03:46 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-06-07 12:03:46 +0000
commit5e05dc40bf628f595abb0e26131fff5272093358 (patch)
treef66d9a83565d5b8b4a839bb12c9b66c8612ee5a0 /src/extern.h
parentab82f94068f99ab5997e0e72cd16365c4f193322 (diff)
downloadcpio-5e05dc40bf628f595abb0e26131fff5272093358.tar.gz
cpio-5e05dc40bf628f595abb0e26131fff5272093358.tar.bz2
(set_perms, set_file_times): Take file descriptor as the first argument.
Diffstat (limited to 'src/extern.h')
-rw-r--r--src/extern.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/extern.h b/src/extern.h
index c5458fa..2bed3ce 100644
--- a/src/extern.h
+++ b/src/extern.h
@@ -203,8 +203,9 @@ void write_nuls_to_file (off_t num_bytes, int out_des,
# define UMASKED_SYMLINK(name1,name2,mode) umasked_symlink(name1,name2,mode)
#endif /* SYMLINK_USES_UMASK */
-void set_perms (struct cpio_file_stat *header);
-void set_file_times (const char *name, unsigned long atime, unsigned long mtime);
+void set_perms (int fd, struct cpio_file_stat *header);
+void set_file_times (int fd, const char *name, unsigned long atime,
+ unsigned long mtime);
void stat_to_cpio (struct cpio_file_stat *hdr, struct stat *st);
void cpio_safer_name_suffix (char *name, bool link_target,
bool absolute_names, bool strip_leading_dots);

Return to:

Send suggestions and report system problems to the System administrator.