📄 stat.2
字号:
3127(number)S3459(or)S3568(hard)S3772(links)S3992(to)S4095(the)S4243(\256le)S4397(*/)S4248 V1728(uid_t)S2304(st_uid;)S3024(/*)S3127(user-id)S3432(of)S3541(the)S3689(\256le's)S3916(owner)S4193(*/)S4368 V1728(gid_t)S2304(st_gid;)S3024(/*)S(group-id)346 3127 A3498(of)S3607(the)S3755(\256le's)S3982(owner)S4259(*/)S4488 V1728(dev_t)S2304(st_rdev;)S3024(/*)S3127(the)S3275(device)S3563(type,)S3786(for)S(inode)223 3929 A4177(that)S4353(is)S4445(device)S4733(*/)S4608 V1728(off_t)S2304(st_size;)S3024(/*)S3127(total)S3331(size)S3513(of)S3622(\256le)S3776(*/)S4728 V1728(time_t)S2304(st_atime;)S3024(/*)S3127(time)S3331(of)S3440(last)S(access)258 3605 A3888(*/)S4848 V1728(time_t)S2304(st_mtime;)S3024(/*)S3127(time)S3331(of)S3440(last)S3605(data)S3798(modi\256cation)S4331(*/)S4968 V1728(time_t)S2304(st_ctime;)S3024(/*)S3127(time)S3331(of)S3440(last)S3605(\256le)S3759(status)S4013(change)S4323(*/)S5088 V1440(};)S5256 V1080(st_atime)S1680(Time)S1923(when)S2171(\256le)S2330(data)S2528(was)S2715(last)S2885(read)S3090(or)S3205(modi\256ed.)S3643(Changed)S4031(by)S4162(the)S4316(following)S4738(system)S5048(calls:)S5376 V10 B1680(mknod)S10 R1982(\(2\),)S10 B2160(utime)S10 R2407(\(2\),)S10 B2585(read)S10 R2781(\(2\),)S2959(and)S10 B3139(write)S10 R3364(\(2\).)S3567(For)S3742(reasons)S4079(of)S4198(ef\256ciency,)S4656(st_atime)S5032(is)S5133(not)S5496 V1680(set)S1817(when)S2060(a)S2130(directory)S2519(is)S2611(searched,)S(although)351 3014 A3390(this)S3560(would)S3836(be)S3956(more)S4188(logical.)S5664 V1080(st_mtime)S1680(Time)S1921(when)S2167(data)S2363(was)S2549(last)S2718(modi\256ed.)S3154(It)S3245(is)S3341(not)S3498(set)S3639(by)S3768(changes)S4121(of)S4234(owner,)S(group,)259 4540 A4828(link)S(count,)248 5013 A5784 V1680(or)S1789(mode.)S2087(Changed)S2469(by)S2594(the)S2742(following)S3158(system)S3462(calls:)S10 B3700(mknod)S10 R4002(\(2\),)S10 B4170(utime)S10 R4417(\(2\),)S10 B4585(write)S10 R4810(\(2\).)S5952 V1080(st_ctime)S1680(Time)S1923(when)S2171(\256le)S2330(status)S2589(was)S2776(last)S2946(changed.)S3361(It)S3453(is)S3550(set)S3692(both)S3901(both)S4110(by)S(writing)291 4241 A4563(and)S4739(changing)S5138(the)S6072 V(i-node.)282 1680 A2062(Changed)S2494(by)S2668(the)S2865(following)S3330(system)S3683(calls:)S10 B3970(chmod)S10 R4261(\(2\))S10 B4453(chown)S10 R4733(\(2\),)S10 B4950(link)S10 R5118(\(2\),)S6192 V10 B1680(mknod)S10 R1982(\(2\),)S10 B2150(rename)S10 R2475(\(2\),)S10 B2643(unlink)S10 R2923(\(2\),)S10 B3091(utime)S10 R3338(\(2\),)S10 B3506(write)S10 R3731(\(2\).)S6360 V1080(The)S1262(\256le)S1416(type)S1614(information)S2114(in)S10 B2217(st_mode)S10 R2600(has)S2759(bits:)S6528 V1330(#de\256ne)S1651(S_IFMT)S(0170000)350 2482 A3130(/*)S3233(type)S3431(of)S3540(\256le)S3694(*/)S6648 V1330(#de\256ne)S1726(S_IFIFO)S(0010000)350 2482 A3130(/*)S3233(named)S3526(pipe)S3724(*/)S6768 V1330(#de\256ne)S1726(S_IFCHR)S(0020000)350 2482 A3130(/*)S3233(character)S3629(special)S3934(*/)S6888 V1330(#de\256ne)S1726(S_IFDIR)S(0040000)350 2482 A3130(/*)S3233(directory)S3622(*/)S7008 V1330(#de\256ne)S1726(S_IFBLK)S(0060000)350 2482 A3130(/*)S3233(block)S3481(special)S3786(*/)S7128 V1330(#de\256ne)S1726(S_IFREG)S(0100000)350 2482 A3130(/*)S3233(regular)S3544(*/)S7248 V1330(#de\256ne)S1726(S_IFLNK)S(0120000)350 2482 A3130(/*)S3233(symbolic)S3626(link)S3807(\(Minix-vmd\))S4357(*/)S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(12,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 2 2BP/slant 0 def/height 0 def480 V10 R720(STAT)S981(\()S1023(2)S1081(\))S2696(Eighth)S(Edition)296 2989 A4866(STAT)S5127(\()S5169(2)S5227(\))S960 V1080(The)S1262(mode)S1510(bits)S(0007777)350 1680 A2055(encode)S2365(set-uid/gid)S2820(bits)S2990(and)S3160(permission)S3626(bits)S3796(\(see)S10 B3984(chmod)S10 R4275(\(2\)\).)S1128 V9 R720(R)S722(RE)S784(ET)S842(TU)S900(UR)S968(RN)S1030(N)S1121(V)S1123(VA)S1191(AL)S1259(LU)S1317(UE)S1385(E)S1248 V10 R(Upon)223 1080 A(successful)414 1330 A1771(completion)S2250(a)S2322(value)S2567(of)S2678(0)S2755(is)S2849(returned.)S3262(Otherwise,)S3729(a)S3801(value)S4046(of)S10 R-14158(-)S10 R4215(1)S4293(is)S4388(returned)S4752(and)S10 B(errno)241 4925 A10 R5194(is)S1368 V1080(set)S1217(to)S1320(indicate)S1664(the)S1812(error.)S1536 V9 R720(E)S722(ER)S780(RR)S842(RO)S904(OR)S972(RS)S1034(S)S1656 V10 B1080(Stat)S10 R1279(and)S10 B1449(lstat)S10 R(will)157 1659 A1841(fail)S2001(if)S2088(one)S2258(or)S2367(more)S2599(of)S2708(the)S2856(following)S3272(are)S3421(true:)S1824 V1080([ENOTDIR])S1830(A)S(component)446 1928 A2399(of)S2508(the)S2656(path)S2854(pre\256x)S3114(is)S3206(not)S3359(a)S3429(directory.)S1992 V([ENAMETOOLONG])916 1080 A2112 V1830(The)S2012(path)S2210(name)S(exceeds)319 2453 A2797(PATH_MAX)S3371(characters.)S2280 V1080([ENOENT])S1830(The)S2012(named)S2305(\256le)S2459(does)S2668(not)S2821(exist.)S2448 V1080([EACCES])S1830(Search)S2130(permission)S2596(is)S2688(denied)S2981(for)S3124(a)S(component)446 3194 A3665(of)S3774(the)S3922(path)S4120(pre\256x.)S2616 V1080([ELOOP])S1830(Too)S2033(many)S2297(symbolic)S2706(links)S2942(were)S(encountered)492 3180 A3713(in)S3833(translating)S4300(the)S4465(pathname.)S4948(\(Minix-)S2736 V1830(vmd\))S2904 V1080([EFAULT])S10 I1830(Buf)S10 R1995(or)S10 I2104(name)S10 R2347(points)S2617(to)S2720(an)S2840(invalid)S3144(address.)S3072 V1080([EIO])S1830(An)S1978(I/O)S2138(error)S2360(occurred)S2738(while)S2987(reading)S3314(from)S3535(or)S(writing)291 3644 A3960(to)S4063(the)S4211(\256le)S4365(system.)S3240 V10 B1080(Fstat)S10 R(will)157 1324 A1506(fail)S1666(if)S1753(one)S1923(or)S2032(both)S2235(of)S2344(the)S2492(following)S2908(are)S3057(true:)S3408 V1080([EBADF])S10 I1830(Fildes)S10 R2107(is)S2199(not)S2352(a)S2422(valid)S2648(open)S2868(\256le)S3022(descriptor.)S3576 V1080([EFAULT])S10 I1830(Buf)S10 R1995(points)S2265(to)S2368(an)S2488(invalid)S2792(address.)S3744 V1080([EIO])S1830(An)S1978(I/O)S2138(error)S2360(occurred)S2738(while)S2987(reading)S3314(from)S3535(or)S(writing)291 3644 A3960(to)S4063(the)S4211(\256le)S4365(system.)S3912 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S4032 V10 B1080(chmod)S10 R1371(\(2\),)S10 B1539(chown)S10 R1819(\(2\),)S10 B1987(utime)S10 R2234(\(2\).)S7903 V720(September)S1176(13,)S(1996)200 1326 A2669(\()S2711(May)S2920(12,)S(1986)200 3070 A3278(\))S4990(Page)S5211(2)S8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -