📄 cpio.5
字号:
.\" SCCSID: @(#)cpio.5 8.1 9/11/90.TH cpio 5 .SH Namecpio \- format of cpio archive.SH Description.NXR "cpio file" "format".NXAM "cpio command" "cpio file"The headerstructure, when the.PN \-coption of .MS cpio 1is not used, is:.EXstruct { short h_magic, h_dev; ushort h_ino, h_mode, h_uid, h_gid; short h_nlink, h_rdev h_mtime[2], h_namesize, h_filesize[2]' char h_name[h_namesize rounded to word];} Hdr;.EEWhen the .PN \-coption is used, the headerinformation is described by:.EX sscanf(Chdr,"%6o%6o%6o%6o%6o%6o%6o%6o%11lo%6o%11lo%s", &Hdr.h_magic, &Hdr.h_dev, &Hdr.h_ino, &Hdr.h_mode, &Hdr.h_uid, &Hdr.h_gid, &Hdr.h_nlink, &Hdr.h_rdev, &Longtime, &Hdr.h_namesize,&Longfile,Hdr.h_name);.EEThe.I Longtimeand.I Longfile are equivalent to .I Hdr.h_mtimeand.I Hdr.h_filesize,respectively. The contents of each file are recorded in anelement of the array of varying length structures,.I archive,together with other items describing the file.Every instance of.I h_magiccontains the constant 070707 (octal). The items.I h_dev through.I h_mtimehave meanings explained in .MS stat 2 .The length of the null-terminated path name.IR h_name , including the null byte, is given by.IR h_namesize ..PPThe last record of the.I archivealways contains the name .PN TRAILER!!!Specialfiles, directories, and the trailer are recordedwith.I h_filesizeequal to zero..SH See Alsocpio(1), find(1), stat(2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -