PPT Slide
Hierarchical File Naming Systems
- Should be obvious to all of us now!
- Figure 3.2 example of an HFS
- Note difference between UNIX-style delimiter (“/”) and DOS-style (“\”); anybody know Mac’s?
File & I/O System Calls (very UNIX-like)
fid = open( name,flags) Create open file
fid = creat( name,mode) Create file
count = read( fid,buf,cnt) Read bytes
count = write( fid,buf,cnt) Write bytes
offset = lseek( fid,offset,m) Position in file
code = close( fid) Disconnect
code = unlink( name) Remove file