Lines Matching refs:mode
104 unsigned int mode, uid_t uid, gid_t gid) in cpio_mkslink() argument
114 S_IFLNK | mode, /* mode */ in cpio_mkslink()
138 unsigned int mode; in cpio_mkslink_line() local
143 …if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &ui… in cpio_mkslink_line()
147 rc = cpio_mkslink(name, target, mode, uid, gid); in cpio_mkslink_line()
152 static int cpio_mkgeneric(const char *name, unsigned int mode, in cpio_mkgeneric() argument
163 mode, /* mode */ in cpio_mkgeneric()
188 mode_t mode; member
194 .mode = S_IFDIR
198 .mode = S_IFIFO
202 .mode = S_IFSOCK
209 unsigned int mode; in cpio_mkgeneric_line() local
214 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { in cpio_mkgeneric_line()
219 mode |= generic_type_table[gt].mode; in cpio_mkgeneric_line()
220 rc = cpio_mkgeneric(name, mode, uid, gid); in cpio_mkgeneric_line()
240 static int cpio_mknod(const char *name, unsigned int mode, in cpio_mknod() argument
247 mode |= S_IFBLK; in cpio_mknod()
249 mode |= S_IFCHR; in cpio_mknod()
257 mode, /* mode */ in cpio_mknod()
277 unsigned int mode; in cpio_mknod_line() local
286 name, &mode, &uid, &gid, &dev_type, &maj, &min)) { in cpio_mknod_line()
290 rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min); in cpio_mknod_line()
296 unsigned int mode, uid_t uid, gid_t gid, in cpio_mkfile() argument
309 mode |= S_IFREG; in cpio_mkfile()
347 mode, /* mode */ in cpio_mkfile()
405 unsigned int mode; in cpio_mkfile_line() local
414 name, location, &mode, &uid, &gid, &end)) { in cpio_mkfile_line()
446 mode, uid, gid, nlinks); in cpio_mkfile_line()