lect02-wb - Laziurtl Hut-5.. F‘ll-H.flu—Lina...

Info iconThis preview shows pages 1–21. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 14
Background image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 16
Background image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 18
Background image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 20
Background image of page 21
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Laziurtl Hut-5.. F‘ll-H.flu—Lina Dan-autumn: SW5 Today waerflfwwvmflmofl the/mm utility. IwflLe/pmmg; we; M Lem/“n: about fifilexgq W5; tum ANDW fmflmumfiyyelfidommww 21‘? G. How ml WWW WWW? *By FWWWWWEI meLtdoe/sa * By man who was WW even: me: How DM 10310 Work? '3. How thadcrit? Tar IWFD mamum COW" * read/WW man who *WohflLe/W man -k user | more * rmm.hfimm/W/W mare fusrfincludeffuu.h * follow fine/“SwAIMP W c2.-__Hw ’DcrI Rmmmfrm a. file? IFWWQWW) WW), yowkznow P1011! bread/Warm W Wwwwmfmofmw W? What DmfhexMWSay? man -k file | grep read man 2 read ‘11— 11 MW flflfiflflflf? Warm Dine/HO, W), W W)- fd = npeniname, made} 1 \ Char * D_RDONLY D_WRDNLY D_RDWE returns —1 an error DR an int on success Wax WWW axfiilex. Amer: Wam ope/HO, read/(l W Glow/()- fd = npeniname, made) n = readifd, array, numchars} * MWFW W cany MW WM GR ~1 WWW closetfd) NW was My writer 103101.15: Ififlygetfwlgrpretfiydom Wit—mewh. fl: . How 'Dcr We: Get It tar Look Good/3? A. SvtppwaIk/Wflay '5. mefm 79: Len cmmmm 71k (Ami/WWW) A. mgr-m 13W mm Wm:th (mm.h) '3. Form firm aft/HM) mafia/WWW HWWFMMW Epoch whole V. Project 2: op (PM W writer) In; whcr, waWfimwfim H011! dflwewrflmmwfilex? Lefgxezxplomaxreabe/mqpla' up sourcefile cnpyfile (1) What W of: 0hr? ANS: Wwflflmwfim ermdmmfl? (.2) How Wop weatwmwrflfer? ANS: WWWW the/Wary C reuniting/Trumqu A FM fd = creatiname, flfidd} FWW Worm”me W12 opwflwxfile/fiflvwrflfmgr Hem getnwde/Er, 065W Harms ~1 Warm, Wuflgawfile/WEPW Writ'fl—g m A File n = writetfd, buffer, num} *W'W Wymflw/fikz * MWFWMWWW {CIR retuwngx ~1 Warm?” FUrit’ _fir Logifl- open sourcefile ======= creat cupyfile __} read source-} buffer.___+ g5¢¥ ___ write buffer -} copy | C1053 it: ——————————————— __ + close $W=1000byfexy =:-r 3 W)m1dx3 wrW)CflH/y Irrbpmfm Idem: MEI/WW Wmmmmw MW HSER MG’D’E mKERN’EL MG’D’E Mid/hm H” M WWWWMW“ VII. DMWMW whfl2firlé’ 1W? Yaw! MWWWMWH/WWW mice/army WWMW~ flwwmmwwmfltw Bait—Br Idm‘ RmmmWofmwfi/y Mmfmmm flywéfl’veggymw an.-. m H WW VIII. If’Bwffar'M IXSESM Why DWI? W Karer ’Dfl' It? Rice/54' mmmkeepycofnfleéflfdfik/Hooké/m mm. IFWFMWMWWW muff/Wu The/W)oalbactmauy Gopflagx WWWW W5; WWWde Commof Buicwa 1) Fm MD 2) mfmwmmwm 3) Nmmwmmbefivmmuw IX. FWEMA/rbplez: rm 1) wwmmdw 2) Hmudoexy W work/Z? IX. FWExa/m/pbez: 17m 1) WWW W 030? 2) fimudo—exy W mark}? (:2: H010 mmprogarmjwnw ffithex W (01" to" W arbitrary Wm) ofwfilex? A: lseektfd, offset, base) 7r k # Df chars Start: D: 1: current 2: and TM WWW wrém warm ...
View Full Document

This note was uploaded on 01/20/2011 for the course CS 3560 taught by Professor Morgan,c during the Spring '08 term at CSU East Bay.

Page1 / 21

lect02-wb - Laziurtl Hut-5.. F‘ll-H.flu—Lina...

This preview shows document pages 1 - 21. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online