Advanced Programming in the UNIX® Environment
ptg10805159 Section 4.9 chmod,fchmod,andfchmodatFunctions 107 Note that nine of the entries in Figure4.11are the nine file acces ...
ptg10805159 108 Files and Directories Chapter 4 On Solaris, thelscommand displays anlinstead of anSto indicate that mandatory fi ...
ptg10805159 Section 4.11 chown,fchown,fchownat,andlchownFunctions 109 portion of a program is the machine instructions.) The pro ...
ptg10805159 110 Files and Directories Chapter 4 These four functions operate similarly unless the referenced file is a symbolic ...
ptg10805159 Section 4.12 File Size 111 4.12 File Siz e Thest_sizemember of thestatstructurecontains the size of the file in byte ...
ptg10805159 112 Files and Directories Chapter 4 $wc -c core 8483248 core Thewc( 1 )command with the-coption counts the number of ...
ptg10805159 Section 4.14 File Systems 113 4.14 File Systems To appreciate the concept of links to a file, we need a conceptual u ...
ptg10805159 114 Files and Directories Chapter 4 If we examine the i-node and data block portion of a cylinder group in moredetai ...
ptg10805159 Section 4.14 File Systems 115 •Because the i-node number in the directory entry points to an i-node in the same file ...
ptg10805159 116 Files and Directories Chapter 4 number is 1267 has a type field of ‘‘directory’’and a link count that is greater ...
ptg10805159 Section 4.15 link,linkat,unlink,unlinkat,andremoveFunctions 117 Most implementations requirethat both pathnames be o ...
ptg10805159 118 Files and Directories Chapter 4 Example The program shown in Figure4.16 opens a file and then unlinks it. The pr ...
ptg10805159 Section 4.16 renameandrenameatFunctions 119 The superuser can callunlinkwithpathname specifying a directory if the f ...
ptg10805159 120 Files and Directories Chapter 4 If eitheroldnameornewnamerefers to a symbolic link, then the link itself is pro ...
ptg10805159 Section 4.17 Symbolic Links 121 Symbolic links wereintroduced with 4.2BSD. Initially,chowndidn’t follow symbolic lin ...
ptg10805159 122 Files and Directories Chapter 4 This creates a directoryfoothat contains the fileaand a symbolic link that point ...
ptg10805159 Section 4.18 Creating and Reading Symbolic Links 123 $ln -s /no/such/file myfile create a symbolic link $ls myfile m ...
ptg10805159 124 Files and Directories Chapter 4 These functions combine the actions ofopen,read,andclose.Ifsuccessful, they retu ...
ptg10805159 Section 4.19 File Times 125 Thelscommand displays or sorts only on one of the three time values. By default, when in ...
ptg10805159 126 Files and Directories Chapter 4 4.20 futimens,utimensat,andutimes Functions Several functions areavailable to ch ...
«
3
4
5
6
7
8
9
10
11
12
»
Free download pdf