📄 write.2
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:06:02 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def [psize 0 cheight slant sin slant cos div mul cheight 0 0] makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig { /SavedState save def userdict maxlength dict begin currentpoint transform DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix itransform moveto /ury exch def /urx exch def /lly exch def /llx exch def /y exch 72 mul resolution div def /x exch 72 mul resolution div def currentpoint /cy exch def /cx exch def /sx x urx llx sub div def /sy y ury lly sub div def sx sy scale cx sx div llx sub cy sy div ury sub translate /DefFigCTM matrix currentmatrix def /initmatrix { DefFigCTM setmatrix } def /defaultmatrix { DefFigCTM exch copy } def /initgraphics { DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix DefFigCTM setmatrix } def /showpage { initgraphics } def}bind def/clipFig { currentpoint 6 2 roll newpath 4 copy 4 2 roll moveto 6 -1 roll exch lineto exch lineto exch lineto closepath clip newpath moveto}bind def/doclip { llx lly urx ury clipFig } def/endFig { end SavedState restore}bind def/globalstart { fontnum psize slant height resolution currentpoint pagesave restore gsave }bind def/globalend { grestore moveto /resolution exch def /height exch def /slant exch def /psize exch def /fontnum exch def F /pagesave save def}bind def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne { exch newdict 3 1 roll put } { pop pop } % Ignore FID ifelse} forallnewdict begin/Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(WRITE)S1048(\()S1090(2)S1148(\))S2696(Eighth)S(Edition)296 2989 A4799(WRITE)S5127(\()S5169(2)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(write)S10 R-11313(-)S10 R1395(write)S1628(output)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(#include)S1482(<sys/types.h>)S1488 V1080(#include)S1482(<unistd.h>)S1728 V1080(ssize_t)S1398(write\(int)S10 I1813(d)S10 B1863(,)S1926(const)S2188(void)S2410(*)S10 I2460(buf)S10 B2588(,)S2651(size_t)S10 I2930(nbytes)S10 B3187(\))S1896 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S2016 V10 B1080(Write)S10 R1371(attempts)S1751(to)S1868(write)S10 I2116(nbytes)S10 R2413(of)S2537(data)S2745(to)S2863(the)S3026(object)S3312(referenced)S3779(by)S3919(the)S4082(descriptor)S10 I4525(d)S10 R4615(from)S4851(the)S5014(buffer)S2136 V1080(pointed)S1406(to)S1509(by)S10 I1634(buf)S10 R1770(.)S2304 V1080(On)S1231(objects)S1544(capable)S1880(of)S1992(seeking,)S2352(the)S10 B2503(write)S10 R2756(starts)S2997(at)S3098(a)S(position)323 3171 A3522(given)S3774(by)S3903(the)S4055(pointer)S4369(associated)S4812(with)S10 I5020(d)S10 R5078(,)S5132(see)S2424 V10 B1080(lseek)S10 R1293(\(2\).)S(Upon)223 1486 A1734(return)S2000(from)S10 B2221(write)S10 R2446(,)S2496(the)S2644(pointer)S2954(is)S3046(incremented)S3569(by)S3694(the)S3842(number)S4174(of)S4283(bytes)S4520(actually)S(written.)311 4864 A2592 V1080(Objects)S1413(that)S1589(are)S1738(not)S1891(capable)S2225(of)S2335(seeking)S2668(always)S2974(write)S3208(from)S3430(the)S3579(current)S(position.)348 3891 A4290(The)S4473(value)S4717(of)S4827(the)S4976(pointer)S2712 V1080(associated)S1519(with)S1723(such)S1932(an)S2052(object)S2323(is)S(unde\256ned.)421 2415 A2880 V1080(When)S1361(using)S(non-blocking)535 1619 A2195(I/O)S2371(on)S2512(objects)S2838(such)S3063(as)S3188(TCP/IP)S3532(channels)S3925(that)S4117(are)S4283(subject)S4610(to)S4730(\257ow)S4951(control,)S3000 V10 B1080(write)S10 R1337(may)S1542(write)S1782(fewer)S2045(bytes)S2289(than)S2494(requested;)S2940(the)S3095(return)S3368(value)S3618(must)S3845(be)S3972(noted,)S4252(and)S4429(the)S4583(remainder)S5023(of)S5138(the)S3120 V1080(operation)S(should)267 1485 A1777(be)S1897(retried)S2186(when)S2429(possible.)S3288 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)S3408 V10 R(Upon)223 1080 A(successful)414 1351 A1813(completion)S2313(the)S2484(number)S2839(of)S2971(bytes)S3231(actually)S(written)286 3598 A3932(is)S4047(returned.)S4481(Otherwise)S4944(a)S10 R-15038(-)S10 R5095(1)S5194(is)S3528 V1080(returned)S1441(and)S1611(the)S1759(global)S2035(variable)S10 B(errno)241 2385 A10 R2651(is)S2743(set)S2880(to)S2983(indicate)S3327(the)S3475(error.)S3696 V9 R720(E)S722(ER)S780(RR)S842(RO)S904(OR)S972(RS)S1034(S)S3816 V10 B1080(Write)S10 R(will)157 1357 A1539(fail)S1699(and)S1869(the)S2017(\256le)S2171(pointer)S(will)157 2481 A2663(remain)S2968(unchanged)S3428(if)S3515(one)S3685(or)S3794(more)S4026(of)S4135(the)S4283(following)S4699(are)S4848(true:)S3984 V1080([EBADF])S10 I1830(D)S10 R1928(is)S2020(not)S2173(a)S2243(valid)S2469(descriptor)S2897(open)S3117(for)S(writing.)316 3260 A4152 V1080([EPIPE])S1830(An)S1978(attempt)S2305(is)S2397(made)S2640(to)S2743(write)S2976(to)S3079(a)S3149(pipe)S3347(that)S3523(is)S3615(not)S3768(open)S3988(for)S4131(reading)S4458(by)S4583(any)S4753(process.)S4320 V1080([EPIPE])S1830(An)S1978(attempt)S2305(is)S2397(made)S2640(to)S2743(write)S2976(to)S3079(a)S3149(TCP)S3359(channel)S3697(that)S3873(is)S3965(not)S(connected)408 4118 A4551(to)S4654(a)S4724(peer)S4923(socket.)S4488 V1080([EFBIG])S1830(An)S1985(attempt)S2319(was)S2508(made)S2758(to)S2868(write)S3108(a)S3185(\256le)S3346(that)S(exceeds)319 3530 A3882(the)S4038(process's)S4446(\256le)S4608(size)S4798(limit)S5021(or)S5138(the)S4608 V1830(maximum)S2262(\256le)S2416(size.)S4776 V1080([EFAULT])S1830(Part)S2020(of)S2131(the)S2281(data)S2476(to)S2581(be)S(written)286 2703 A3016(to)S3121(the)S3271(\256le)S3427(points)S3699(outside)S4016(the)S4166(process's)S4568(allocated)S4959(address)S4896 V(space.)249 1830 A5064 V1080([ENOSPC])S1830(There)S2091(is)S2183(no)S2308(free)S(space)224 2491 A2740(remaining)S3173(on)S3298(the)S3446(\256le)S3600(system)S3904(containing)S4353(the)S4501(\256le.)S5232 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.)S5400 V([EAGAIN])456 1080 A1830(The)S2012(\256le)S2166(was)S2348(marked)S2675(for)S(non-blocking)535 2818 A3378(I/O,)S3563(and)S3733(no)S3858(data)S4051(could)S4299(be)S(written)286 4419 A4730(immediately.)S5568 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5688 V10 B1080(fcntl)S10 R1277(\(2\),)S10 B1445(lseek)S10 R1658(\(2\),)S10 B1826(open)S10 R2033(\(2\),)S10 B2201(pipe)S10 R2386(\(2\),)S10 B2554(read)S10 R2750(\(2\).)S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(14,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -