home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| Python script text executable
| default (weak)
| |
98%
| file
| LaTeX document text
| default
| |
97%
| file
| exported SGML document text
| default
| |
96%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 53 74 | 61 6e 64 61 72 64 20 4d |ts of St|andard M|
|000000b0| 6f 64 75 6c 65 20 70 6f | 73 69 78 66 69 6c 65 3c |odule po|sixfile<|
|000000c0| 2f 54 49 54 4c 45 3e 0a | 0a 3c 4d 45 54 41 20 48 |/TITLE>.|.<META H|
|000000d0| 54 54 50 2d 45 51 55 49 | 56 3d 22 43 6f 6e 74 65 |TTP-EQUI|V="Conte|
|000000e0| 6e 74 2d 54 79 70 65 22 | 20 43 4f 4e 54 45 4e 54 |nt-Type"| CONTENT|
|000000f0| 3d 22 74 65 78 74 2f 68 | 74 6d 6c 3b 20 63 68 61 |="text/h|tml; cha|
|00000100| 72 73 65 74 3d 75 74 66 | 2d 38 22 3e 0a 3c 4d 45 |rset=utf|-8">.<ME|
|00000110| 54 41 20 4e 41 4d 45 3d | 22 76 69 65 77 70 6f 72 |TA NAME=|"viewpor|
|00000120| 74 22 20 43 4f 4e 54 45 | 4e 54 3d 22 77 69 64 74 |t" CONTE|NT="widt|
|00000130| 68 3d 64 65 76 69 63 65 | 2d 77 69 64 74 68 2c 20 |h=device|-width, |
|00000140| 69 6e 69 74 69 61 6c 2d | 73 63 61 6c 65 3d 31 2e |initial-|scale=1.|
|00000150| 30 22 3e 0a 3c 4d 45 54 | 41 20 4e 41 4d 45 3d 22 |0">.<MET|A NAME="|
|00000160| 47 65 6e 65 72 61 74 6f | 72 22 20 43 4f 4e 54 45 |Generato|r" CONTE|
|00000170| 4e 54 3d 22 4c 61 54 65 | 58 32 48 54 4d 4c 20 76 |NT="LaTe|X2HTML v|
|00000180| 32 30 32 32 22 3e 0a 0a | 3c 4c 49 4e 4b 20 52 45 |2022">..|<LINK RE|
|00000190| 4c 3d 22 53 54 59 4c 45 | 53 48 45 45 54 22 20 48 |L="STYLE|SHEET" H|
|000001a0| 52 45 46 3d 22 6c 69 62 | 70 6f 73 69 78 66 69 6c |REF="lib|posixfil|
|000001b0| 65 2e 63 73 73 22 3e 0a | 0a 3c 4c 49 4e 4b 20 52 |e.css">.|.<LINK R|
|000001c0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|000001d0| 45 46 3d 22 6c 69 62 70 | 6f 73 69 78 66 69 6c 65 |EF="libp|osixfile|
|000001e0| 5f 6d 6e 2e 68 74 6d 6c | 22 3e 0a 3c 4c 49 4e 4b |_mn.html|">.<LINK|
|000001f0| 20 52 45 4c 3d 22 75 70 | 22 20 48 52 45 46 3d 22 | REL="up|" HREF="|
|00000200| 6c 69 62 70 6f 73 69 78 | 66 69 6c 65 5f 6d 6e 2e |libposix|file_mn.|
|00000210| 68 74 6d 6c 22 3e 0a 3c | 2f 48 45 41 44 3e 0a 20 |html">.<|/HEAD>. |
|00000220| 0a 3c 42 4f 44 59 20 62 | 67 63 6f 6c 6f 72 3d 22 |.<BODY b|gcolor="|
|00000230| 23 66 66 66 66 66 66 22 | 20 74 65 78 74 3d 22 23 |#ffffff"| text="#|
|00000240| 30 30 30 30 30 30 22 20 | 6c 69 6e 6b 3d 22 23 39 |000000" |link="#9|
|00000250| 39 34 34 45 45 22 20 76 | 6c 69 6e 6b 3d 22 23 30 |944EE" v|link="#0|
|00000260| 30 30 30 66 66 22 20 61 | 6c 69 6e 6b 3d 22 23 30 |000ff" a|link="#0|
|00000270| 30 66 66 30 30 22 3e 0a | 0a 3c 48 31 3e 3c 41 20 |0ff00">.|.<H1><A |
|00000280| 49 44 3d 22 53 45 43 54 | 49 4f 4e 30 30 30 31 30 |ID="SECT|ION00010|
|00000290| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 22 |00000000|0000000"|
|000002a0| 3e 0a 53 74 61 6e 64 61 | 72 64 20 4d 6f 64 75 6c |>.Standa|rd Modul|
|000002b0| 65 20 70 6f 73 69 78 66 | 69 6c 65 3c 2f 41 3e 0a |e posixf|ile</A>.|
|000002c0| 3c 2f 48 31 3e 0a 70 6f | 73 69 78 66 69 6c 65 0a |</H1>.po|sixfile.|
|000002d0| 70 6f 73 69 78 66 69 6c | 65 20 6f 62 6a 65 63 74 |posixfil|e object|
|000002e0| 0a 0a 3c 50 3e 0a 3c 49 | 3e 4e 6f 74 65 3a 3c 2f |..<P>.<I|>Note:</|
|000002f0| 49 3e 20 54 68 69 73 20 | 6d 6f 64 75 6c 65 20 77 |I> This |module w|
|00000300| 69 6c 6c 20 62 65 63 6f | 6d 65 20 6f 62 73 6f 6c |ill beco|me obsol|
|00000310| 65 74 65 20 69 6e 20 61 | 20 66 75 74 75 72 65 20 |ete in a| future |
|00000320| 72 65 6c 65 61 73 65 2e | 0a 54 68 65 20 6c 6f 63 |release.|.The loc|
|00000330| 6b 69 6e 67 20 6f 70 65 | 72 61 74 69 6f 6e 20 74 |king ope|ration t|
|00000340| 68 61 74 20 69 74 20 70 | 72 6f 76 69 64 65 73 20 |hat it p|rovides |
|00000350| 69 73 20 64 6f 6e 65 20 | 62 65 74 74 65 72 20 61 |is done |better a|
|00000360| 6e 64 20 6d 6f 72 65 0a | 70 6f 72 74 61 62 6c 79 |nd more.|portably|
|00000370| 20 62 79 20 74 68 65 20 | 66 63 6e 74 6c 2e 6c 6f | by the |fcntl.lo|
|00000380| 63 6b 66 28 29 20 63 61 | 6c 6c 2e 0a 0a 3c 50 3e |ckf() ca|ll...<P>|
|00000390| 0a 54 68 69 73 20 6d 6f | 64 75 6c 65 20 69 6d 70 |.This mo|dule imp|
|000003a0| 6c 65 6d 65 6e 74 73 20 | 73 6f 6d 65 20 61 64 64 |lements |some add|
|000003b0| 69 74 69 6f 6e 61 6c 20 | 66 75 6e 63 74 69 6f 6e |itional |function|
|000003c0| 61 6c 69 74 79 20 6f 76 | 65 72 20 74 68 65 20 62 |ality ov|er the b|
|000003d0| 75 69 6c 74 2d 69 6e 0a | 66 69 6c 65 20 6f 62 6a |uilt-in.|file obj|
|000003e0| 65 63 74 73 2e 20 20 49 | 6e 20 70 61 72 74 69 63 |ects. I|n partic|
|000003f0| 75 6c 61 72 2c 20 69 74 | 20 69 6d 70 6c 65 6d 65 |ular, it| impleme|
|00000400| 6e 74 73 20 66 69 6c 65 | 20 6c 6f 63 6b 69 6e 67 |nts file| locking|
|00000410| 2c 20 63 6f 6e 74 72 6f | 6c 20 6f 76 65 72 0a 74 |, contro|l over.t|
|00000420| 68 65 20 66 69 6c 65 20 | 66 6c 61 67 73 2c 20 61 |he file |flags, a|
|00000430| 6e 64 20 61 6e 20 65 61 | 73 79 20 69 6e 74 65 72 |nd an ea|sy inter|
|00000440| 66 61 63 65 20 74 6f 20 | 64 75 70 6c 69 63 61 74 |face to |duplicat|
|00000450| 65 20 74 68 65 20 66 69 | 6c 65 20 6f 62 6a 65 63 |e the fi|le objec|
|00000460| 74 2e 0a 54 68 65 20 6d | 6f 64 75 6c 65 20 64 65 |t..The m|odule de|
|00000470| 66 69 6e 65 73 20 61 20 | 6e 65 77 20 66 69 6c 65 |fines a |new file|
|00000480| 20 6f 62 6a 65 63 74 2c | 20 74 68 65 20 70 6f 73 | object,| the pos|
|00000490| 69 78 66 69 6c 65 20 6f | 62 6a 65 63 74 2e 20 20 |ixfile o|bject. |
|000004a0| 49 74 0a 68 61 73 20 61 | 6c 6c 20 74 68 65 20 73 |It.has a|ll the s|
|000004b0| 74 61 6e 64 61 72 64 20 | 66 69 6c 65 20 6f 62 6a |tandard |file obj|
|000004c0| 65 63 74 20 6d 65 74 68 | 6f 64 73 20 61 6e 64 20 |ect meth|ods and |
|000004d0| 61 64 64 73 20 74 68 65 | 20 6d 65 74 68 6f 64 73 |adds the| methods|
|000004e0| 0a 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 |.describ|ed below|
|000004f0| 2e 20 20 54 68 69 73 20 | 6d 6f 64 75 6c 65 20 6f |. This |module o|
|00000500| 6e 6c 79 20 77 6f 72 6b | 73 20 66 6f 72 20 63 65 |nly work|s for ce|
|00000510| 72 74 61 69 6e 20 66 6c | 61 76 6f 72 73 20 6f 66 |rtain fl|avors of|
|00000520| 0a 2c 20 73 69 6e 63 65 | 20 69 74 20 75 73 65 73 |., since| it uses|
|00000530| 20 66 63 6e 74 6c 28 29 | 20 66 6f 72 20 66 69 6c | fcntl()| for fil|
|00000540| 65 20 6c 6f 63 6b 69 6e | 67 2e 0a 0a 3c 50 3e 0a |e lockin|g...<P>.|
|00000550| 54 6f 20 69 6e 73 74 61 | 6e 74 69 61 74 65 20 61 |To insta|ntiate a|
|00000560| 20 70 6f 73 69 78 66 69 | 6c 65 20 6f 62 6a 65 63 | posixfi|le objec|
|00000570| 74 2c 20 75 73 65 20 74 | 68 65 20 6f 70 65 6e 28 |t, use t|he open(|
|00000580| 29 20 66 75 6e 63 74 69 | 6f 6e 20 69 6e 0a 74 68 |) functi|on in.th|
|00000590| 65 20 70 6f 73 69 78 66 | 69 6c 65 20 6d 6f 64 75 |e posixf|ile modu|
|000005a0| 6c 65 2e 20 20 54 68 65 | 20 72 65 73 75 6c 74 69 |le. The| resulti|
|000005b0| 6e 67 20 6f 62 6a 65 63 | 74 20 6c 6f 6f 6b 73 20 |ng objec|t looks |
|000005c0| 61 6e 64 20 66 65 65 6c | 73 20 72 6f 75 67 68 6c |and feel|s roughl|
|000005d0| 79 0a 74 68 65 20 73 61 | 6d 65 20 61 73 20 61 20 |y.the sa|me as a |
|000005e0| 73 74 61 6e 64 61 72 64 | 20 66 69 6c 65 20 6f 62 |standard| file ob|
|000005f0| 6a 65 63 74 2e 0a 0a 3c | 50 3e 0a 54 68 65 20 70 |ject...<|P>.The p|
|00000600| 6f 73 69 78 66 69 6c 65 | 20 6d 6f 64 75 6c 65 20 |osixfile| module |
|00000610| 64 65 66 69 6e 65 73 20 | 74 68 65 20 66 6f 6c 6c |defines |the foll|
|00000620| 6f 77 69 6e 67 20 63 6f | 6e 73 74 61 6e 74 73 3a |owing co|nstants:|
|00000630| 0a 0a 3c 50 3e 0a 0a 3c | 42 52 3e 0a 3c 49 4d 47 |..<P>..<|BR>.<IMG|
|00000640| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|00000650| 3a 20 31 39 36 2e 32 35 | 65 78 3b 20 76 65 72 74 |: 196.25|ex; vert|
|00000660| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 2d 30 2e 35 |ical-ali|gn: -0.5|
|00000670| 37 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 31 |7ex; " S|RC="img1|
|00000680| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000690| 69 6e 7b 64 61 74 61 64 | 65 73 63 7d 7b 53 45 45 |in{datad|esc}{SEE|
|000006a0| 4b 5f 53 45 54 7d 0a 6f | 66 66 73 65 74 20 69 73 |K_SET}.o|ffset is|
|000006b0| 20 63 61 6c 63 75 6c 61 | 74 65 64 20 66 72 6f 6d | calcula|ted from|
|000006c0| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 74 68 | the sta|rt of th|
|000006d0| 65 20 66 69 6c 65 0a 5c | 65 6e 64 7b 64 61 74 61 |e file.\|end{data|
|000006e0| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|000006f0| 3e 0a 3c 42 52 3e 0a 3c | 49 4d 47 0a 20 20 53 54 |>.<BR>.<|IMG. ST|
|00000700| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 32 2e 31 |YLE="hei|ght: 2.1|
|00000710| 37 65 78 3b 20 76 65 72 | 74 69 63 61 6c 2d 61 6c |7ex; ver|tical-al|
|00000720| 69 67 6e 3a 20 31 37 36 | 2e 36 38 65 78 3b 20 22 |ign: 176|.68ex; "|
|00000730| 20 53 52 43 3d 22 69 6d | 67 32 2e 70 6e 67 22 0a | SRC="im|g2.png".|
|00000740| 20 41 4c 54 3d 22 5c 62 | 65 67 69 6e 7b 64 61 74 | ALT="\b|egin{dat|
|00000750| 61 64 65 73 63 7d 7b 53 | 45 45 4b 5f 43 55 52 7d |adesc}{S|EEK_CUR}|
|00000760| 0a 6f 66 66 73 65 74 20 | 69 73 20 63 61 6c 63 75 |.offset |is calcu|
|00000770| 6c 61 74 65 64 20 66 72 | 6f 6d 20 74 68 65 20 63 |lated fr|om the c|
|00000780| 75 72 72 65 6e 74 20 70 | 6f 73 69 74 69 6f 6e 20 |urrent p|osition |
|00000790| 69 6e 20 74 68 65 20 66 | 69 6c 65 0a 5c 65 6e 64 |in the f|ile.\end|
|000007a0| 7b 64 61 74 61 64 65 73 | 63 7d 22 3e 0a 3c 42 52 |{datades|c}">.<BR|
|000007b0| 3e 0a 0a 3c 50 3e 0a 3c | 42 52 3e 0a 3c 49 4d 47 |>..<P>.<|BR>.<IMG|
|000007c0| 0a 20 20 53 54 59 4c 45 | 3d 22 68 65 69 67 68 74 |. STYLE|="height|
|000007d0| 3a 20 32 2e 31 37 65 78 | 3b 20 76 65 72 74 69 63 |: 2.17ex|; vertic|
|000007e0| 61 6c 2d 61 6c 69 67 6e | 3a 20 31 37 36 2e 36 38 |al-align|: 176.68|
|000007f0| 65 78 3b 20 22 20 53 52 | 43 3d 22 69 6d 67 33 2e |ex; " SR|C="img3.|
|00000800| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|00000810| 6e 7b 64 61 74 61 64 65 | 73 63 7d 7b 53 45 45 4b |n{datade|sc}{SEEK|
|00000820| 5f 45 4e 44 7d 0a 6f 66 | 66 73 65 74 20 69 73 20 |_END}.of|fset is |
|00000830| 63 61 6c 63 75 6c 61 74 | 65 64 20 66 72 6f 6d 20 |calculat|ed from |
|00000840| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 66 |the end |of the f|
|00000850| 69 6c 65 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |ile.\end|{datades|
|00000860| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 54 |c}">.<BR|>..<P>.T|
|00000870| 68 65 20 70 6f 73 69 78 | 66 69 6c 65 20 6d 6f 64 |he posix|file mod|
|00000880| 75 6c 65 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |ule defi|nes the |
|00000890| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 75 6e 63 74 69 |followin|g functi|
|000008a0| 6f 6e 73 3a 0a 0a 3c 50 | 3e 0a 0a 3c 50 3e 0a 3c |ons:..<P|>..<P>.<|
|000008b0| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|000008c0| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 37 65 78 |="height|: 2.17ex|
|000008d0| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|000008e0| 3a 20 31 37 36 2e 35 35 | 65 78 3b 20 22 20 53 52 |: 176.55|ex; " SR|
|000008f0| 43 3d 22 69 6d 67 34 2e | 70 6e 67 22 0a 20 41 4c |C="img4.|png". AL|
|00000900| 54 3d 22 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |T="\begi|n{funcde|
|00000910| 73 63 7d 7b 6f 70 65 6e | 7d 7b 66 69 6c 65 6e 61 |sc}{open|}{filena|
|00000920| 6d 65 5c 6f 70 74 69 6f | 6e 61 6c 7b 5c 2c 20 6d |me\optio|nal{\, m|
|00000930| 6f 64 65 5c 6f 70 74 69 | 6f 6e 61 6c 7b 5c 2c 20 |ode\opti|onal{\, |
|00000940| 62 75 66 73 69 7a 65 7d | 7d 7d 0a 43 72 65 61 74 |bufsize}|}}.Creat|
|00000950| 65 20 2e 2e 2e 0a 2e 2e | 2e 74 65 72 70 72 65 74 |e ......|.terpret|
|00000960| 65 64 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |ed the s|ame way |
|00000970| 61 73 20 62 79 20 74 68 | 65 20 62 75 69 6c 74 2d |as by th|e built-|
|00000980| 69 6e 20 5c 63 6f 64 65 | 7b 6f 70 65 6e 28 29 7d |in \code|{open()}|
|00000990| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 5c 65 6e 64 7b | functio|n..\end{|
|000009a0| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|000009b0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|000009c0| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|000009d0| 20 32 2e 31 37 65 78 3b | 20 76 65 72 74 69 63 61 | 2.17ex;| vertica|
|000009e0| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 35 34 65 |l-align:| 176.54e|
|000009f0| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 35 2e 70 |x; " SRC|="img5.p|
|00000a00| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000a10| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 66 69 6c 65 6f |{funcdes|c}{fileo|
|00000a20| 70 65 6e 7d 7b 66 69 6c | 65 6f 62 6a 65 63 74 7d |pen}{fil|eobject}|
|00000a30| 0a 43 72 65 61 74 65 20 | 61 20 6e 65 77 20 70 6f |.Create |a new po|
|00000a40| 73 69 78 66 69 6c 65 20 | 6f 62 6a 65 63 74 20 77 |sixfile |object w|
|00000a50| 69 74 68 20 74 68 65 20 | 67 2e 2e 2e 0a 2e 2e 2e |ith the |g.......|
|00000a60| 6a 65 63 74 20 68 61 73 | 20 74 68 65 20 73 61 6d |ject has| the sam|
|00000a70| 65 20 66 69 6c 65 6e 61 | 6d 65 20 61 6e 64 20 6d |e filena|me and m|
|00000a80| 6f 64 65 20 61 73 20 74 | 68 65 20 6f 72 69 67 69 |ode as t|he origi|
|00000a90| 6e 61 6c 0a 66 69 6c 65 | 20 6f 62 6a 65 63 74 2e |nal.file| object.|
|00000aa0| 0a 5c 65 6e 64 7b 66 75 | 6e 63 64 65 73 63 7d 22 |.\end{fu|ncdesc}"|
|00000ab0| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 54 68 65 20 |>.<BR>..|<P>.The |
|00000ac0| 70 6f 73 69 78 66 69 6c | 65 20 6f 62 6a 65 63 74 |posixfil|e object|
|00000ad0| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 66 6f 6c | defines| the fol|
|00000ae0| 6c 6f 77 69 6e 67 20 61 | 64 64 69 74 69 6f 6e 61 |lowing a|dditiona|
|00000af0| 6c 20 6d 65 74 68 6f 64 | 73 3a 0a 0a 3c 50 3e 0a |l method|s:..<P>.|
|00000b00| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 20 53 54 59 |.<BR>.<I|MG. STY|
|00000b10| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 32 2e 31 37 |LE="heig|ht: 2.17|
|00000b20| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00000b30| 67 6e 3a 20 31 37 36 2e | 36 38 65 78 3b 20 22 20 |gn: 176.|68ex; " |
|00000b40| 53 52 43 3d 22 69 6d 67 | 36 2e 70 6e 67 22 0a 20 |SRC="img|6.png". |
|00000b50| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|00000b60| 64 65 73 63 7d 7b 6c 6f | 63 6b 7d 7b 66 6d 74 5c |desc}{lo|ck}{fmt\|
|00000b70| 2c 20 5c 6f 70 74 69 6f | 6e 61 6c 7b 6c 65 6e 5c |, \optio|nal{len\|
|00000b80| 6f 70 74 69 6f 6e 61 6c | 7b 5c 2c 20 73 74 61 72 |optional|{\, star|
|00000b90| 74 0a 5c 6f 70 74 69 6f | 6e 61 6c 7b 5c 2c 20 77 |t.\optio|nal{\, w|
|00000ba0| 68 65 6e 63 65 2e 2e 2e | 0a 2e 2e 2e 6f 75 74 20 |hence...|....out |
|00000bb0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 72 65 |the argu|ments re|
|00000bc0| 66 65 72 20 74 6f 20 74 | 68 65 20 66 63 6e 74 6c |fer to t|he fcntl|
|00000bd0| 0a 6d 61 6e 75 61 6c 20 | 70 61 67 65 20 6f 6e 20 |.manual |page on |
|00000be0| 79 6f 75 72 20 73 79 73 | 74 65 6d 2e 0a 5c 65 6e |your sys|tem..\en|
|00000bf0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00000c00| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|00000c10| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00000c20| 74 3a 20 32 2e 31 37 65 | 78 3b 20 76 65 72 74 69 |t: 2.17e|x; verti|
|00000c30| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 35 |cal-alig|n: 176.5|
|00000c40| 35 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 37 |5ex; " S|RC="img7|
|00000c50| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000c60| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 66 6c 61 |in{funcd|esc}{fla|
|00000c70| 67 73 7d 7b 5c 6f 70 74 | 69 6f 6e 61 6c 7b 66 6c |gs}{\opt|ional{fl|
|00000c80| 61 67 73 7d 7d 0a 53 65 | 74 20 74 68 65 20 73 70 |ags}}.Se|t the sp|
|00000c90| 65 63 69 66 69 65 64 20 | 66 6c 61 67 73 20 66 6f |ecified |flags fo|
|00000ca0| 72 20 74 68 65 20 66 69 | 6c 65 20 2e 2e 2e 0a 2e |r the fi|le .....|
|00000cb0| 2e 2e 6e 20 61 62 6f 75 | 74 20 74 68 65 20 66 6c |..n abou|t the fl|
|00000cc0| 61 67 73 0a 72 65 66 65 | 72 20 74 6f 20 74 68 65 |ags.refe|r to the|
|00000cd0| 20 66 63 6e 74 6c 20 6d | 61 6e 75 61 6c 20 70 61 | fcntl m|anual pa|
|00000ce0| 67 65 20 6f 6e 20 79 6f | 75 72 20 73 79 73 74 65 |ge on yo|ur syste|
|00000cf0| 6d 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |m..\end{|funcdesc|
|00000d00| 7d 22 3e 0a 3c 42 52 3e | 0a 0a 3c 50 3e 0a 3c 42 |}">.<BR>|..<P>.<B|
|00000d10| 52 3e 0a 3c 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |R>.<IMG.| STYLE=|
|00000d20| 22 68 65 69 67 68 74 3a | 20 32 2e 31 37 65 78 3b |"height:| 2.17ex;|
|00000d30| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|00000d40| 20 31 37 36 2e 35 34 65 | 78 3b 20 22 20 53 52 43 | 176.54e|x; " SRC|
|00000d50| 3d 22 69 6d 67 38 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img8.p|ng". ALT|
|00000d60| 3d 22 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |="\begin|{funcdes|
|00000d70| 63 7d 7b 64 75 70 7d 7b | 7d 0a 44 75 70 6c 69 63 |c}{dup}{|}.Duplic|
|00000d80| 61 74 65 20 74 68 65 20 | 66 69 6c 65 20 6f 62 6a |ate the |file obj|
|00000d90| 65 63 74 20 61 6e 64 20 | 74 68 65 20 75 6e 64 65 |ect and |the unde|
|00000da0| 72 6c 79 69 6e 67 20 66 | 69 6c 65 20 70 6f 69 6e |rlying f|ile poin|
|00000db0| 74 2e 2e 2e 0a 2e 2e 2e | 72 69 70 74 6f 72 2e 20 |t.......|riptor. |
|00000dc0| 54 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 6f 62 |The resu|lting ob|
|00000dd0| 6a 65 63 74 20 62 65 68 | 61 76 65 73 20 61 73 20 |ject beh|aves as |
|00000de0| 69 66 20 69 74 20 77 65 | 72 65 20 6e 65 77 6c 79 |if it we|re newly|
|00000df0| 0a 6f 70 65 6e 65 64 2e | 0a 5c 65 6e 64 7b 66 75 |.opened.|.\end{fu|
|00000e00| 6e 63 64 65 73 63 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |ncdesc}"|>.<BR>..|
|00000e10| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000e20| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00000e30| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00000e40| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 36 38 65 78 3b |align: 1|76.68ex;|
|00000e50| 20 22 20 53 52 43 3d 22 | 69 6d 67 39 2e 70 6e 67 | " SRC="|img9.png|
|00000e60| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 66 |". ALT="|\begin{f|
|00000e70| 75 6e 63 64 65 73 63 7d | 7b 64 75 70 32 7d 7b 66 |uncdesc}|{dup2}{f|
|00000e80| 64 7d 0a 44 75 70 6c 69 | 63 61 74 65 20 74 68 65 |d}.Dupli|cate the|
|00000e90| 20 66 69 6c 65 20 6f 62 | 6a 65 63 74 20 61 6e 64 | file ob|ject and|
|00000ea0| 20 74 68 65 20 75 6e 64 | 65 72 6c 79 69 6e 67 20 | the und|erlying |
|00000eb0| 66 69 6c 65 20 70 6f 2e | 2e 2e 0a 2e 2e 2e 74 68 |file po.|......th|
|00000ec0| 65 72 77 69 73 65 20 74 | 68 65 20 72 65 73 75 6c |erwise t|he resul|
|00000ed0| 74 69 6e 67 20 6f 62 6a | 65 63 74 20 62 65 68 61 |ting obj|ect beha|
|00000ee0| 76 65 73 20 61 73 20 69 | 66 20 69 74 20 77 65 72 |ves as i|f it wer|
|00000ef0| 65 20 6e 65 77 6c 79 20 | 6f 70 65 6e 65 64 2e 0a |e newly |opened..|
|00000f00| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 22 3e |\end{fun|cdesc}">|
|00000f10| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00000f20| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000f30| 69 67 68 74 3a 20 32 2e | 31 37 65 78 3b 20 76 65 |ight: 2.|17ex; ve|
|00000f40| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00000f50| 36 2e 36 38 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.68ex; |" SRC="i|
|00000f60| 6d 67 31 30 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg10.png|". ALT="|
|00000f70| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000f80| 7b 66 69 6c 65 7d 7b 7d | 0a 52 65 74 75 72 6e 20 |{file}{}|.Return |
|00000f90| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 66 69 6c |the stan|dard fil|
|00000fa0| 65 20 6f 62 6a 65 63 74 | 20 74 68 61 74 20 74 68 |e object| that th|
|00000fb0| 65 20 70 6f 73 69 78 66 | 69 6c 65 20 6f 62 6a 2e |e posixf|ile obj.|
|00000fc0| 2e 2e 0a 2e 2e 2e 73 20 | 6e 65 63 65 73 73 61 72 |......s |necessar|
|00000fd0| 79 20 66 6f 72 20 66 75 | 6e 63 74 69 6f 6e 73 20 |y for fu|nctions |
|00000fe0| 74 68 61 74 20 69 6e 73 | 69 73 74 20 6f 6e 20 61 |that ins|ist on a|
|00000ff0| 0a 73 74 61 6e 64 61 72 | 64 20 66 69 6c 65 20 6f |.standar|d file o|
|00001000| 62 6a 65 63 74 2e 0a 5c | 65 6e 64 7b 66 75 6e 63 |bject..\|end{func|
|00001010| 64 65 73 63 7d 22 3e 0a | 3c 42 52 3e 0a 0a 3c 50 |desc}">.|<BR>..<P|
|00001020| 3e 0a 41 6c 6c 20 6d 65 | 74 68 6f 64 73 20 72 65 |>.All me|thods re|
|00001030| 74 75 72 6e 20 49 4f 45 | 72 72 6f 72 20 77 68 65 |turn IOE|rror whe|
|00001040| 6e 20 74 68 65 20 72 65 | 71 75 65 73 74 20 66 61 |n the re|quest fa|
|00001050| 69 6c 73 2e 0a 0a 3c 50 | 3e 0a 46 6f 72 6d 61 74 |ils...<P|>.Format|
|00001060| 20 63 68 61 72 61 63 74 | 65 72 73 20 66 6f 72 20 | charact|ers for |
|00001070| 74 68 65 20 6c 6f 63 6b | 28 29 20 6d 65 74 68 6f |the lock|() metho|
|00001080| 64 20 68 61 76 65 20 74 | 68 65 20 66 6f 6c 6c 6f |d have t|he follo|
|00001090| 77 69 6e 67 20 6d 65 61 | 6e 69 6e 67 3a 0a 0a 3c |wing mea|ning:..<|
|000010a0| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 53 54 |P>.<BR>.|<IMG. ST|
|000010b0| 59 4c 45 3d 22 68 65 69 | 67 68 74 3a 20 33 31 34 |YLE="hei|ght: 314|
|000010c0| 2e 30 30 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.00ex; "| SRC="im|
|000010d0| 67 31 31 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |g11.png"|. ALT="\|
|000010e0| 62 65 67 69 6e 7b 74 61 | 62 6c 65 69 69 69 7d 7b |begin{ta|bleiii}{|
|000010f0| 5c 76 65 72 74 20 63 5c | 76 65 72 74 20 6c 5c 76 |\vert c\|vert l\v|
|00001100| 65 72 74 20 63 5c 76 65 | 72 74 7d 7b 73 61 6d 70 |ert c\ve|rt}{samp|
|00001110| 7d 7b 46 6f 72 6d 61 74 | 7d 7b 4d 65 61 6e 69 6e |}{Format|}{Meanin|
|00001120| 67 7d 7b 7d 0a 5c 6c 69 | 6e 65 69 69 69 7b 2e 2e |g}{}.\li|neiii{..|
|00001130| 2e 0a 2e 2e 2e 7b 7d 0a | 5c 6c 69 6e 65 69 69 69 |.....{}.|\lineiii|
|00001140| 7b 77 7d 7b 72 65 71 75 | 65 73 74 20 61 20 77 72 |{w}{requ|est a wr|
|00001150| 69 74 65 20 6c 6f 63 6b | 20 66 6f 72 20 74 68 65 |ite lock| for the|
|00001160| 20 73 70 65 63 69 66 69 | 65 64 20 73 65 63 74 69 | specifi|ed secti|
|00001170| 6f 6e 7d 7b 7d 0a 5c 65 | 6e 64 7b 74 61 62 6c 65 |on}{}.\e|nd{table|
|00001180| 69 69 69 7d 22 3e 0a 3c | 42 52 3e 0a 0a 3c 50 3e |iii}">.<|BR>..<P>|
|00001190| 0a 49 6e 20 61 64 64 69 | 74 69 6f 6e 20 74 68 65 |.In addi|tion the|
|000011a0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 6f 64 69 66 | followi|ng modif|
|000011b0| 69 65 72 73 20 63 61 6e | 20 62 65 20 61 64 64 65 |iers can| be adde|
|000011c0| 64 20 74 6f 20 74 68 65 | 20 66 6f 72 6d 61 74 3a |d to the| format:|
|000011d0| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|000011e0| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|000011f0| 33 31 34 2e 30 30 65 78 | 3b 20 22 20 53 52 43 3d |314.00ex|; " SRC=|
|00001200| 22 69 6d 67 31 32 2e 70 | 6e 67 22 0a 20 41 4c 54 |"img12.p|ng". ALT|
|00001210| 3d 22 5c 62 65 67 69 6e | 7b 74 61 62 6c 65 69 69 |="\begin|{tableii|
|00001220| 69 7d 7b 5c 76 65 72 74 | 20 63 5c 76 65 72 74 20 |i}{\vert| c\vert |
|00001230| 6c 5c 76 65 72 74 20 63 | 5c 76 65 72 74 7d 7b 73 |l\vert c|\vert}{s|
|00001240| 61 6d 70 7d 7b 4d 6f 64 | 69 66 69 65 72 7d 7b 4d |amp}{Mod|ifier}{M|
|00001250| 65 61 6e 69 6e 67 7d 7b | 4e 6f 74 65 73 7d 0a 5c |eaning}{|Notes}.\|
|00001260| 6c 2e 2e 2e 0a 2e 2e 2e | 65 20 72 65 71 75 65 73 |l.......|e reques|
|00001270| 74 65 64 20 6c 6f 63 6b | 2c 20 6f 72 0a 5c 63 6f |ted lock|, or.\co|
|00001280| 64 65 7b 4e 6f 6e 65 7d | 20 69 66 20 74 68 65 72 |de{None}| if ther|
|00001290| 65 20 69 73 20 6e 6f 20 | 63 6f 6e 66 6c 69 63 74 |e is no |conflict|
|000012a0| 2e 7d 7b 28 31 29 7d 0a | 5c 65 6e 64 7b 74 61 62 |.}{(1)}.|\end{tab|
|000012b0| 6c 65 69 69 69 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |leiii}">|.<BR>..<|
|000012c0| 50 3e 0a 4e 6f 74 65 3a | 0a 0a 3c 50 3e 0a 28 31 |P>.Note:|..<P>.(1|
|000012d0| 29 20 54 68 65 20 6c 6f | 63 6b 20 72 65 74 75 72 |) The lo|ck retur|
|000012e0| 6e 65 64 20 69 73 20 69 | 6e 20 74 68 65 20 66 6f |ned is i|n the fo|
|000012f0| 72 6d 61 74 20 28 6d 6f | 64 65 2c 20 6c 65 6e 2c |rmat (mo|de, len,|
|00001300| 20 73 74 61 72 74 2c 0a | 77 68 65 6e 63 65 2c 20 | start,.|whence, |
|00001310| 70 69 64 29 20 77 68 65 | 72 65 20 6d 6f 64 65 20 |pid) whe|re mode |
|00001320| 69 73 20 61 20 63 68 61 | 72 61 63 74 65 72 20 72 |is a cha|racter r|
|00001330| 65 70 72 65 73 65 6e 74 | 69 6e 67 20 74 68 65 20 |epresent|ing the |
|00001340| 74 79 70 65 20 6f 66 20 | 6c 6f 63 6b 0a 28 27 72 |type of |lock.('r|
|00001350| 27 20 6f 72 20 27 77 27 | 29 2e 20 20 54 68 69 73 |' or 'w'|). This|
|00001360| 20 6d 6f 64 69 66 69 65 | 72 20 70 72 65 76 65 6e | modifie|r preven|
|00001370| 74 73 20 61 20 72 65 71 | 75 65 73 74 20 66 72 6f |ts a req|uest fro|
|00001380| 6d 20 62 65 69 6e 67 20 | 67 72 61 6e 74 65 64 3b |m being |granted;|
|00001390| 20 69 74 0a 69 73 20 66 | 6f 72 20 71 75 65 72 79 | it.is f|or query|
|000013a0| 20 70 75 72 70 6f 73 65 | 73 20 6f 6e 6c 79 2e 0a | purpose|s only..|
|000013b0| 0a 3c 50 3e 0a 46 6f 72 | 6d 61 74 20 63 68 61 72 |.<P>.For|mat char|
|000013c0| 61 63 74 65 72 20 66 6f | 72 20 74 68 65 20 66 6c |acter fo|r the fl|
|000013d0| 61 67 73 28 29 20 6d 65 | 74 68 6f 64 20 68 61 76 |ags() me|thod hav|
|000013e0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|000013f0| 6d 65 61 6e 69 6e 67 3a | 0a 0a 3c 50 3e 0a 3c 42 |meaning:|..<P>.<B|
|00001400| 52 3e 0a 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |R>.<IMG.| STYLE="|
|00001410| 68 65 69 67 68 74 3a 20 | 33 31 34 2e 30 30 65 78 |height: |314.00ex|
|00001420| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 31 33 2e 70 |; " SRC=|"img13.p|
|00001430| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00001440| 7b 74 61 62 6c 65 69 69 | 69 7d 7b 5c 76 65 72 74 |{tableii|i}{\vert|
|00001450| 20 63 5c 76 65 72 74 20 | 6c 5c 76 65 72 74 20 63 | c\vert |l\vert c|
|00001460| 5c 76 65 72 74 7d 7b 73 | 61 6d 70 7d 7b 46 6f 72 |\vert}{s|amp}{For|
|00001470| 6d 61 74 7d 7b 4d 65 61 | 6e 69 6e 67 7d 7b 7d 0a |mat}{Mea|ning}{}.|
|00001480| 5c 6c 69 6e 65 69 69 69 | 7b 2e 2e 2e 0a 2e 2e 2e |\lineiii|{.......|
|00001490| 63 61 6c 6c 65 64 20 6e | 6f 6e 2d 62 6c 6f 63 6b |called n|on-block|
|000014a0| 69 6e 67 20 66 6c 61 67 | 29 7d 7b 7d 0a 5c 6c 69 |ing flag|)}{}.\li|
|000014b0| 6e 65 69 69 69 7b 73 7d | 7b 73 79 6e 63 68 72 6f |neiii{s}|{synchro|
|000014c0| 6e 69 7a 61 74 69 6f 6e | 20 66 6c 61 67 7d 7b 7d |nization| flag}{}|
|000014d0| 0a 5c 65 6e 64 7b 74 61 | 62 6c 65 69 69 69 7d 22 |.\end{ta|bleiii}"|
|000014e0| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 49 6e 20 61 |>.<BR>..|<P>.In a|
|000014f0| 64 64 69 74 69 6f 6e 20 | 74 68 65 20 66 6f 6c 6c |ddition |the foll|
|00001500| 6f 77 69 6e 67 20 6d 6f | 64 69 66 69 65 72 73 20 |owing mo|difiers |
|00001510| 63 61 6e 20 62 65 20 61 | 64 64 65 64 20 74 6f 20 |can be a|dded to |
|00001520| 74 68 65 20 66 6f 72 6d | 61 74 3a 0a 0a 3c 50 3e |the form|at:..<P>|
|00001530| 0a 3c 42 52 3e 0a 3c 49 | 4d 47 0a 20 53 54 59 4c |.<BR>.<I|MG. STYL|
|00001540| 45 3d 22 68 65 69 67 68 | 74 3a 20 33 31 34 2e 30 |E="heigh|t: 314.0|
|00001550| 30 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 31 |0ex; " S|RC="img1|
|00001560| 34 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |4.png". |ALT="\be|
|00001570| 67 69 6e 7b 74 61 62 6c | 65 69 69 69 7d 7b 5c 76 |gin{tabl|eiii}{\v|
|00001580| 65 72 74 20 63 5c 76 65 | 72 74 20 6c 5c 76 65 72 |ert c\ve|rt l\ver|
|00001590| 74 20 63 5c 76 65 72 74 | 7d 7b 73 61 6d 70 7d 7b |t c\vert|}{samp}{|
|000015a0| 4d 6f 64 69 66 69 65 72 | 7d 7b 4d 65 61 6e 69 6e |Modifier|}{Meanin|
|000015b0| 67 7d 7b 4e 6f 74 65 73 | 7d 0a 5c 6c 2e 2e 2e 0a |g}{Notes|}.\l....|
|000015c0| 2e 2e 2e 20 69 6e 20 77 | 68 69 63 68 20 74 68 65 |... in w|hich the|
|000015d0| 20 63 68 61 72 61 63 74 | 65 72 73 20 72 65 70 72 | charact|ers repr|
|000015e0| 65 73 65 6e 74 20 74 68 | 65 20 66 6c 61 67 73 20 |esent th|e flags |
|000015f0| 74 68 61 74 0a 61 72 65 | 20 73 65 74 2e 7d 7b 28 |that.are| set.}{(|
|00001600| 32 29 7d 0a 5c 65 6e 64 | 7b 74 61 62 6c 65 69 69 |2)}.\end|{tableii|
|00001610| 69 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 4e |i}">.<BR|>..<P>.N|
|00001620| 6f 74 65 3a 0a 0a 3c 50 | 3e 0a 28 31 29 20 54 68 |ote:..<P|>.(1) Th|
|00001630| 65 20 21 20 61 6e 64 20 | 3d 20 6d 6f 64 69 66 69 |e ! and |= modifi|
|00001640| 65 72 73 20 61 72 65 20 | 6d 75 74 75 61 6c 6c 79 |ers are |mutually|
|00001650| 20 65 78 63 6c 75 73 69 | 76 65 2e 0a 0a 3c 50 3e | exclusi|ve...<P>|
|00001660| 0a 28 32 29 20 54 68 69 | 73 20 73 74 72 69 6e 67 |.(2) Thi|s string|
|00001670| 20 72 65 70 72 65 73 65 | 6e 74 73 20 74 68 65 20 | represe|nts the |
|00001680| 66 6c 61 67 73 20 61 66 | 74 65 72 20 74 68 65 79 |flags af|ter they|
|00001690| 20 6d 61 79 20 68 61 76 | 65 20 62 65 65 6e 20 61 | may hav|e been a|
|000016a0| 6c 74 65 72 65 64 0a 62 | 79 20 74 68 65 20 73 61 |ltered.b|y the sa|
|000016b0| 6d 65 20 63 61 6c 6c 2e | 0a 0a 3c 50 3e 0a 45 78 |me call.|..<P>.Ex|
|000016c0| 61 6d 70 6c 65 73 3a 0a | 0a 3c 50 3e 0a 3c 50 52 |amples:.|.<P>.<PR|
|000016d0| 45 3e 0a 66 72 6f 6d 20 | 70 6f 73 69 78 66 69 6c |E>.from |posixfil|
|000016e0| 65 20 69 6d 70 6f 72 74 | 20 2a 0a 0a 66 69 6c 65 |e import| *..file|
|000016f0| 20 3d 20 6f 70 65 6e 28 | 27 2f 74 6d 70 2f 74 65 | = open(|'/tmp/te|
|00001700| 73 74 27 2c 20 27 77 27 | 29 0a 66 69 6c 65 2e 6c |st', 'w'|).file.l|
|00001710| 6f 63 6b 28 27 77 7c 27 | 29 0a 2e 2e 2e 0a 66 69 |ock('w|'|).....fi|
|00001720| 6c 65 2e 6c 6f 63 6b 28 | 27 75 27 29 0a 66 69 6c |le.lock(|'u').fil|
|00001730| 65 2e 63 6c 6f 73 65 28 | 29 0a 3c 2f 50 52 45 3e |e.close(|).</PRE>|
|00001740| 0a 0a 3c 48 52 3e 0a 0a | 3c 2f 42 4f 44 59 3e 0a |..<HR>..|</BODY>.|
|00001750| 3c 2f 48 54 4d 4c 3e 0a | |</HTML>.| |
+--------+-------------------------+-------------------------+--------+--------+