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
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| 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 6f 73 | 3c 2f 54 49 54 4c 45 3e |odule os|</TITLE>|
|000000c0| 0a 0a 3c 4d 45 54 41 20 | 48 54 54 50 2d 45 51 55 |..<META |HTTP-EQU|
|000000d0| 49 56 3d 22 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |IV="Cont|ent-Type|
|000000e0| 22 20 43 4f 4e 54 45 4e | 54 3d 22 74 65 78 74 2f |" CONTEN|T="text/|
|000000f0| 68 74 6d 6c 3b 20 63 68 | 61 72 73 65 74 3d 75 74 |html; ch|arset=ut|
|00000100| 66 2d 38 22 3e 0a 3c 4d | 45 54 41 20 4e 41 4d 45 |f-8">.<M|ETA NAME|
|00000110| 3d 22 76 69 65 77 70 6f | 72 74 22 20 43 4f 4e 54 |="viewpo|rt" CONT|
|00000120| 45 4e 54 3d 22 77 69 64 | 74 68 3d 64 65 76 69 63 |ENT="wid|th=devic|
|00000130| 65 2d 77 69 64 74 68 2c | 20 69 6e 69 74 69 61 6c |e-width,| initial|
|00000140| 2d 73 63 61 6c 65 3d 31 | 2e 30 22 3e 0a 3c 4d 45 |-scale=1|.0">.<ME|
|00000150| 54 41 20 4e 41 4d 45 3d | 22 47 65 6e 65 72 61 74 |TA NAME=|"Generat|
|00000160| 6f 72 22 20 43 4f 4e 54 | 45 4e 54 3d 22 4c 61 54 |or" CONT|ENT="LaT|
|00000170| 65 58 32 48 54 4d 4c 20 | 76 32 30 32 32 22 3e 0a |eX2HTML |v2022">.|
|00000180| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 53 54 59 4c |.<LINK R|EL="STYL|
|00000190| 45 53 48 45 45 54 22 20 | 48 52 45 46 3d 22 6c 69 |ESHEET" |HREF="li|
|000001a0| 62 6f 73 2e 63 73 73 22 | 3e 0a 0a 3c 4c 49 4e 4b |bos.css"|>..<LINK|
|000001b0| 20 52 45 4c 3d 22 70 72 | 65 76 69 6f 75 73 22 20 | REL="pr|evious" |
|000001c0| 48 52 45 46 3d 22 6c 69 | 62 6f 73 5f 6d 6e 2e 68 |HREF="li|bos_mn.h|
|000001d0| 74 6d 6c 22 3e 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |tml">.<L|INK REL=|
|000001e0| 22 75 70 22 20 48 52 45 | 46 3d 22 6c 69 62 6f 73 |"up" HRE|F="libos|
|000001f0| 5f 6d 6e 2e 68 74 6d 6c | 22 3e 0a 3c 2f 48 45 41 |_mn.html|">.</HEA|
|00000200| 44 3e 0a 20 0a 3c 42 4f | 44 59 20 62 67 63 6f 6c |D>. .<BO|DY bgcol|
|00000210| 6f 72 3d 22 23 66 66 66 | 66 66 66 22 20 74 65 78 |or="#fff|fff" tex|
|00000220| 74 3d 22 23 30 30 30 30 | 30 30 22 20 6c 69 6e 6b |t="#0000|00" link|
|00000230| 3d 22 23 39 39 34 34 45 | 45 22 20 76 6c 69 6e 6b |="#9944E|E" vlink|
|00000240| 3d 22 23 30 30 30 30 66 | 66 22 20 61 6c 69 6e 6b |="#0000f|f" alink|
|00000250| 3d 22 23 30 30 66 66 30 | 30 22 3e 0a 0a 3c 48 31 |="#00ff0|0">..<H1|
|00000260| 3e 3c 41 20 49 44 3d 22 | 53 45 43 54 49 4f 4e 30 |><A ID="|SECTION0|
|00000270| 30 30 31 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00100000|00000000|
|00000280| 30 30 30 22 3e 0a 53 74 | 61 6e 64 61 72 64 20 4d |000">.St|andard M|
|00000290| 6f 64 75 6c 65 20 6f 73 | 3c 2f 41 3e 0a 3c 2f 48 |odule os|</A>.</H|
|000002a0| 31 3e 0a 0a 3c 50 3e 0a | 6f 73 0a 54 68 69 73 20 |1>..<P>.|os.This |
|000002b0| 6d 6f 64 75 6c 65 20 70 | 72 6f 76 69 64 65 73 20 |module p|rovides |
|000002c0| 61 20 6d 6f 72 65 20 70 | 6f 72 74 61 62 6c 65 20 |a more p|ortable |
|000002d0| 77 61 79 20 6f 66 20 75 | 73 69 6e 67 20 6f 70 65 |way of u|sing ope|
|000002e0| 72 61 74 69 6e 67 20 73 | 79 73 74 65 6d 0a 28 4f |rating s|ystem.(O|
|000002f0| 53 29 20 64 65 70 65 6e | 64 65 6e 74 20 66 75 6e |S) depen|dent fun|
|00000300| 63 74 69 6f 6e 61 6c 69 | 74 79 20 74 68 61 6e 20 |ctionali|ty than |
|00000310| 69 6d 70 6f 72 74 69 6e | 67 20 61 6e 20 4f 53 20 |importin|g an OS |
|00000320| 64 65 70 65 6e 64 65 6e | 74 20 62 75 69 6c 74 2d |dependen|t built-|
|00000330| 69 6e 0a 6d 6f 64 75 6c | 65 20 6c 69 6b 65 20 70 |in.modul|e like p|
|00000340| 6f 73 69 78 2e 0a 0a 3c | 50 3e 0a 57 68 65 6e 20 |osix...<|P>.When |
|00000350| 74 68 65 20 6f 70 74 69 | 6f 6e 61 6c 20 62 75 69 |the opti|onal bui|
|00000360| 6c 74 2d 69 6e 20 6d 6f | 64 75 6c 65 20 70 6f 73 |lt-in mo|dule pos|
|00000370| 69 78 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 2c |ix is av|ailable,|
|00000380| 20 74 68 69 73 0a 6d 6f | 64 75 6c 65 20 65 78 70 | this.mo|dule exp|
|00000390| 6f 72 74 73 20 74 68 65 | 20 73 61 6d 65 20 66 75 |orts the| same fu|
|000003a0| 6e 63 74 69 6f 6e 73 20 | 61 6e 64 20 64 61 74 61 |nctions |and data|
|000003b0| 20 61 73 20 70 6f 73 69 | 78 3b 20 6f 74 68 65 72 | as posi|x; other|
|000003c0| 77 69 73 65 2c 0a 69 74 | 20 73 65 61 72 63 68 65 |wise,.it| searche|
|000003d0| 73 20 66 6f 72 20 61 6e | 20 4f 53 20 64 65 70 65 |s for an| OS depe|
|000003e0| 6e 64 65 6e 74 20 62 75 | 69 6c 74 2d 69 6e 20 6d |ndent bu|ilt-in m|
|000003f0| 6f 64 75 6c 65 20 6c 69 | 6b 65 20 6d 61 63 20 61 |odule li|ke mac a|
|00000400| 6e 64 0a 65 78 70 6f 72 | 74 73 20 74 68 65 20 73 |nd.expor|ts the s|
|00000410| 61 6d 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 61 6e |ame func|tions an|
|00000420| 64 20 64 61 74 61 20 61 | 73 20 66 6f 75 6e 64 20 |d data a|s found |
|00000430| 74 68 65 72 65 2e 20 20 | 54 68 65 20 64 65 73 69 |there. |The desi|
|00000440| 67 6e 20 6f 66 20 61 6c | 6c 0a 50 79 74 68 6f 6e |gn of al|l.Python|
|00000450| 27 73 20 62 75 69 6c 74 | 2d 69 6e 20 4f 53 20 64 |'s built|-in OS d|
|00000460| 65 70 65 6e 64 65 6e 74 | 20 6d 6f 64 75 6c 65 73 |ependent| modules|
|00000470| 20 69 73 20 73 75 63 68 | 20 74 68 61 74 20 61 73 | is such| that as|
|00000480| 20 6c 6f 6e 67 20 61 73 | 20 74 68 65 20 73 61 6d | long as| the sam|
|00000490| 65 0a 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |e.functi|onality |
|000004a0| 69 73 20 61 76 61 69 6c | 61 62 6c 65 2c 20 69 74 |is avail|able, it|
|000004b0| 20 75 73 65 73 20 74 68 | 65 20 73 61 6d 65 20 69 | uses th|e same i|
|000004c0| 6e 74 65 72 66 61 63 65 | 3b 20 65 2e 67 2e 2c 20 |nterface|; e.g., |
|000004d0| 74 68 65 0a 66 75 6e 63 | 74 69 6f 6e 20 6f 73 2e |the.func|tion os.|
|000004e0| 73 74 61 74 28 66 69 6c | 65 29 20 72 65 74 75 72 |stat(fil|e) retur|
|000004f0| 6e 73 20 73 74 61 74 20 | 69 6e 66 6f 20 61 62 6f |ns stat |info abo|
|00000500| 75 74 20 61 20 66 69 6c | 65 20 69 6e 20 61 0a 66 |ut a fil|e in a.f|
|00000510| 6f 72 6d 61 74 20 63 6f | 6d 70 61 74 69 62 6c 65 |ormat co|mpatible|
|00000520| 20 77 69 74 68 20 74 68 | 65 20 50 4f 53 49 58 20 | with th|e POSIX |
|00000530| 69 6e 74 65 72 66 61 63 | 65 2e 0a 0a 3c 50 3e 0a |interfac|e...<P>.|
|00000540| 45 78 74 65 6e 73 69 6f | 6e 73 20 70 65 63 75 6c |Extensio|ns pecul|
|00000550| 69 61 72 20 74 6f 20 61 | 20 70 61 72 74 69 63 75 |iar to a| particu|
|00000560| 6c 61 72 20 4f 53 20 61 | 72 65 20 61 6c 73 6f 20 |lar OS a|re also |
|00000570| 61 76 61 69 6c 61 62 6c | 65 20 74 68 72 6f 75 67 |availabl|e throug|
|00000580| 68 20 74 68 65 0a 6f 73 | 20 6d 6f 64 75 6c 65 2c |h the.os| module,|
|00000590| 20 62 75 74 20 75 73 69 | 6e 67 20 74 68 65 6d 20 | but usi|ng them |
|000005a0| 69 73 20 6f 66 20 63 6f | 75 72 73 65 20 61 20 74 |is of co|urse a t|
|000005b0| 68 72 65 61 74 20 74 6f | 20 70 6f 72 74 61 62 69 |hreat to| portabi|
|000005c0| 6c 69 74 79 21 0a 0a 3c | 50 3e 0a 4e 6f 74 65 20 |lity!..<|P>.Note |
|000005d0| 74 68 61 74 20 61 66 74 | 65 72 20 74 68 65 20 66 |that aft|er the f|
|000005e0| 69 72 73 74 20 74 69 6d | 65 20 6f 73 20 69 73 20 |irst tim|e os is |
|000005f0| 69 6d 70 6f 72 74 65 64 | 2c 20 74 68 65 72 65 20 |imported|, there |
|00000600| 69 73 20 3c 49 3e 6e 6f | 3c 2f 49 3e 0a 70 65 72 |is <I>no|</I>.per|
|00000610| 66 6f 72 6d 61 6e 63 65 | 20 70 65 6e 61 6c 74 79 |formance| penalty|
|00000620| 20 69 6e 20 75 73 69 6e | 67 20 66 75 6e 63 74 69 | in usin|g functi|
|00000630| 6f 6e 73 20 66 72 6f 6d | 20 6f 73 20 69 6e 73 74 |ons from| os inst|
|00000640| 65 61 64 20 6f 66 0a 64 | 69 72 65 63 74 6c 79 20 |ead of.d|irectly |
|00000650| 66 72 6f 6d 20 74 68 65 | 20 4f 53 20 64 65 70 65 |from the| OS depe|
|00000660| 6e 64 65 6e 74 20 62 75 | 69 6c 74 2d 69 6e 20 6d |ndent bu|ilt-in m|
|00000670| 6f 64 75 6c 65 2c 20 73 | 6f 20 74 68 65 72 65 20 |odule, s|o there |
|00000680| 73 68 6f 75 6c 64 20 62 | 65 0a 3c 49 3e 6e 6f 3c |should b|e.<I>no<|
|00000690| 2f 49 3e 20 72 65 61 73 | 6f 6e 20 6e 6f 74 20 74 |/I> reas|on not t|
|000006a0| 6f 20 75 73 65 20 6f 73 | 21 0a 0a 3c 50 3e 0a 49 |o use os|!..<P>.I|
|000006b0| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 77 68 |n additi|on to wh|
|000006c0| 61 74 65 76 65 72 20 74 | 68 65 20 63 6f 72 72 65 |atever t|he corre|
|000006d0| 63 74 20 4f 53 20 64 65 | 70 65 6e 64 65 6e 74 20 |ct OS de|pendent |
|000006e0| 6d 6f 64 75 6c 65 20 65 | 78 70 6f 72 74 73 2c 20 |module e|xports, |
|000006f0| 74 68 65 0a 66 6f 6c 6c | 6f 77 69 6e 67 20 76 61 |the.foll|owing va|
|00000700| 72 69 61 62 6c 65 73 20 | 61 6e 64 20 66 75 6e 63 |riables |and func|
|00000710| 74 69 6f 6e 73 20 61 72 | 65 20 61 6c 77 61 79 73 |tions ar|e always|
|00000720| 20 65 78 70 6f 72 74 65 | 64 20 62 79 20 6f 73 3a | exporte|d by os:|
|00000730| 0a 0a 3c 50 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |..<P>..<|P>.<BR>.|
|00000740| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000750| 69 67 68 74 3a 20 31 39 | 36 2e 32 35 65 78 3b 20 |ight: 19|6.25ex; |
|00000760| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00000770| 2d 30 2e 35 37 65 78 3b | 20 22 20 53 52 43 3d 22 |-0.57ex;| " SRC="|
|00000780| 69 6d 67 31 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img1.png|". ALT="|
|00000790| 5c 62 65 67 69 6e 7b 64 | 61 74 61 64 65 73 63 7d |\begin{d|atadesc}|
|000007a0| 7b 6e 61 6d 65 7d 0a 54 | 68 65 20 6e 61 6d 65 20 |{name}.T|he name |
|000007b0| 6f 66 20 74 68 65 20 4f | 53 20 64 65 70 65 6e 64 |of the O|S depend|
|000007c0| 65 6e 74 20 6d 6f 64 75 | 6c 65 20 69 6d 70 6f 72 |ent modu|le impor|
|000007d0| 74 65 64 2e 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ted. The| followi|
|000007e0| 2e 2e 2e 0a 2e 2e 2e 69 | 73 74 65 72 65 64 3a 20 |.......i|stered: |
|000007f0| 5c 63 6f 64 65 7b 27 70 | 6f 73 69 78 27 7d 2c 20 |\code{'p|osix'}, |
|00000800| 5c 63 6f 64 65 7b 27 6e | 74 27 7d 2c 0a 5c 63 6f |\code{'n|t'},.\co|
|00000810| 64 65 7b 27 64 6f 73 27 | 7d 2c 20 5c 63 6f 64 65 |de{'dos'|}, \code|
|00000820| 7b 27 6d 61 63 27 7d 2e | 0a 5c 65 6e 64 7b 64 61 |{'mac'}.|.\end{da|
|00000830| 74 61 64 65 73 63 7d 22 | 3e 0a 3c 42 52 3e 0a 0a |tadesc}"|>.<BR>..|
|00000840| 3c 50 3e 0a 3c 42 52 3e | 0a 3c 49 4d 47 0a 20 20 |<P>.<BR>|.<IMG. |
|00000850| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 32 |STYLE="h|eight: 2|
|00000860| 2e 31 37 65 78 3b 20 76 | 65 72 74 69 63 61 6c 2d |.17ex; v|ertical-|
|00000870| 61 6c 69 67 6e 3a 20 31 | 37 36 2e 35 35 65 78 3b |align: 1|76.55ex;|
|00000880| 20 22 20 53 52 43 3d 22 | 69 6d 67 32 2e 70 6e 67 | " SRC="|img2.png|
|00000890| 22 0a 20 41 4c 54 3d 22 | 5c 62 65 67 69 6e 7b 64 |". ALT="|\begin{d|
|000008a0| 61 74 61 64 65 73 63 7d | 7b 70 61 74 68 7d 0a 54 |atadesc}|{path}.T|
|000008b0| 68 65 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |he corre|sponding|
|000008c0| 20 4f 53 20 64 65 70 65 | 6e 64 65 6e 74 20 73 74 | OS depe|ndent st|
|000008d0| 61 6e 64 61 72 64 20 6d | 6f 64 75 6c 65 20 66 6f |andard m|odule fo|
|000008e0| 72 20 70 61 74 68 6e 61 | 2e 2e 2e 0a 2e 2e 2e 65 |r pathna|.......e|
|000008f0| 6e 74 20 74 6f 20 62 75 | 74 0a 6d 6f 72 65 20 70 |nt to bu|t.more p|
|00000900| 6f 72 74 61 62 6c 65 20 | 74 68 61 6e 20 5c 63 6f |ortable |than \co|
|00000910| 64 65 7b 70 6f 73 69 78 | 70 61 74 68 2e 73 70 6c |de{posix|path.spl|
|00000920| 69 74 28 5c 76 61 72 7b | 66 69 6c 65 7d 29 7d 2e |it(\var{|file})}.|
|00000930| 0a 5c 65 6e 64 7b 64 61 | 74 61 64 65 73 63 7d 22 |.\end{da|tadesc}"|
|00000940| 3e 0a 3c 42 52 3e 0a 0a | 3c 50 3e 0a 3c 42 52 3e |>.<BR>..|<P>.<BR>|
|00000950| 0a 3c 49 4d 47 0a 20 20 | 53 54 59 4c 45 3d 22 68 |.<IMG. |STYLE="h|
|00000960| 65 69 67 68 74 3a 20 32 | 2e 33 38 65 78 3b 20 76 |eight: 2|.38ex; v|
|00000970| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|00000980| 37 36 2e 34 30 65 78 3b | 20 22 20 53 52 43 3d 22 |76.40ex;| " SRC="|
|00000990| 69 6d 67 33 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img3.png|". ALT="|
|000009a0| 5c 62 65 67 69 6e 7b 64 | 61 74 61 64 65 73 63 7d |\begin{d|atadesc}|
|000009b0| 7b 63 75 72 64 69 72 7d | 0a 54 68 65 20 63 6f 6e |{curdir}|.The con|
|000009c0| 73 74 61 6e 74 20 73 74 | 72 69 6e 67 20 75 73 65 |stant st|ring use|
|000009d0| 64 20 62 79 20 74 68 65 | 20 4f 53 20 74 6f 20 72 |d by the| OS to r|
|000009e0| 65 66 65 72 20 74 6f 20 | 74 68 65 20 63 75 72 72 |efer to |the curr|
|000009f0| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2c 0a 65 |ent dire|ctory,.e|
|00000a00| 2e 67 2e 20 5c 63 6f 64 | 65 7b 27 2e 27 7d 20 66 |.g. \cod|e{'.'} f|
|00000a10| 6f 72 20 50 4f 53 49 58 | 20 6f 72 20 5c 63 6f 64 |or POSIX| or \cod|
|00000a20| 65 7b 27 3a 27 7d 20 66 | 6f 72 20 74 68 65 20 4d |e{':'} f|or the M|
|00000a30| 61 63 2e 0a 5c 65 6e 64 | 7b 64 61 74 61 64 65 73 |ac..\end|{datades|
|00000a40| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|00000a50| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00000a60| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 37 65 78 |="height|: 2.17ex|
|00000a70| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00000a80| 3a 20 31 37 36 2e 36 38 | 65 78 3b 20 22 20 53 52 |: 176.68|ex; " SR|
|00000a90| 43 3d 22 69 6d 67 34 2e | 70 6e 67 22 0a 20 41 4c |C="img4.|png". AL|
|00000aa0| 54 3d 22 5c 62 65 67 69 | 6e 7b 64 61 74 61 64 65 |T="\begi|n{datade|
|00000ab0| 73 63 7d 7b 70 61 72 64 | 69 72 7d 0a 54 68 65 20 |sc}{pard|ir}.The |
|00000ac0| 63 6f 6e 73 74 61 6e 74 | 20 73 74 72 69 6e 67 20 |constant| string |
|00000ad0| 75 73 65 64 20 62 79 20 | 74 68 65 20 4f 53 20 74 |used by |the OS t|
|00000ae0| 6f 20 72 65 66 65 72 20 | 74 6f 20 74 68 65 20 70 |o refer |to the p|
|00000af0| 61 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2c |arent di|rectory,|
|00000b00| 0a 65 2e 67 2e 20 5c 63 | 6f 64 65 7b 27 2e 2e 27 |.e.g. \c|ode{'..'|
|00000b10| 7d 20 66 6f 72 20 50 4f | 53 49 58 20 6f 72 20 5c |} for PO|SIX or \|
|00000b20| 63 6f 64 65 7b 27 3a 3a | 27 7d 20 66 6f 72 20 74 |code{'::|'} for t|
|00000b30| 68 65 20 4d 61 63 2e 0a | 5c 65 6e 64 7b 64 61 74 |he Mac..|\end{dat|
|00000b40| 61 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |adesc}">|.<BR>..<|
|00000b50| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00000b60| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00000b70| 31 37 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |17ex; ve|rtical-a|
|00000b80| 6c 69 67 6e 3a 20 31 37 | 36 2e 35 35 65 78 3b 20 |lign: 17|6.55ex; |
|00000b90| 22 20 53 52 43 3d 22 69 | 6d 67 35 2e 70 6e 67 22 |" SRC="i|mg5.png"|
|00000ba0| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 64 61 |. ALT="\|begin{da|
|00000bb0| 74 61 64 65 73 63 7d 7b | 73 65 70 7d 0a 54 68 65 |tadesc}{|sep}.The|
|00000bc0| 20 63 68 61 72 61 63 74 | 65 72 20 75 73 65 64 20 | charact|er used |
|00000bd0| 62 79 20 74 68 65 20 4f | 53 20 74 6f 20 73 65 70 |by the O|S to sep|
|00000be0| 61 72 61 74 65 20 70 61 | 74 68 6e 61 6d 65 20 63 |arate pa|thname c|
|00000bf0| 6f 6d 70 6f 6e 65 6e 2e | 2e 2e 0a 2e 2e 2e 6c 69 |omponen.|......li|
|00000c00| 74 28 29 7d 20 61 6e 64 | 20 5c 63 6f 64 65 7b 6f |t()} and| \code{o|
|00000c10| 73 2e 70 61 74 68 2e 6a | 6f 69 6e 28 29 7d 2d 2d |s.path.j|oin()}--|
|00000c20| 2d 62 75 74 20 69 74 20 | 69 73 0a 6f 63 63 61 73 |-but it |is.occas|
|00000c30| 69 6f 6e 61 6c 6c 79 20 | 75 73 65 66 75 6c 2e 0a |ionally |useful..|
|00000c40| 5c 65 6e 64 7b 64 61 74 | 61 64 65 73 63 7d 22 3e |\end{dat|adesc}">|
|00000c50| 0a 3c 42 52 3e 0a 0a 3c | 50 3e 0a 3c 42 52 3e 0a |.<BR>..<|P>.<BR>.|
|00000c60| 3c 49 4d 47 0a 20 20 53 | 54 59 4c 45 3d 22 68 65 |<IMG. S|TYLE="he|
|00000c70| 69 67 68 74 3a 20 32 2e | 33 38 65 78 3b 20 76 65 |ight: 2.|38ex; ve|
|00000c80| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 31 37 |rtical-a|lign: 17|
|00000c90| 36 2e 32 37 65 78 3b 20 | 22 20 53 52 43 3d 22 69 |6.27ex; |" SRC="i|
|00000ca0| 6d 67 36 2e 70 6e 67 22 | 0a 20 41 4c 54 3d 22 5c |mg6.png"|. ALT="\|
|00000cb0| 62 65 67 69 6e 7b 64 61 | 74 61 64 65 73 63 7d 7b |begin{da|tadesc}{|
|00000cc0| 70 61 74 68 73 65 70 7d | 0a 54 68 65 20 63 68 61 |pathsep}|.The cha|
|00000cd0| 72 61 63 74 65 72 20 63 | 6f 6e 76 65 6e 74 69 6f |racter c|onventio|
|00000ce0| 6e 61 6c 6c 79 20 75 73 | 65 64 20 62 79 20 74 68 |nally us|ed by th|
|00000cf0| 65 20 4f 53 20 74 6f 20 | 73 65 70 61 72 61 74 2e |e OS to |separat.|
|00000d00| 2e 2e 0a 2e 2e 2e 64 65 | 7b 5c 24 50 41 54 48 7d |......de|{\$PATH}|
|00000d10| 29 2c 20 65 2e 67 2e 5c | 20 5c 63 6f 64 65 7b 27 |), e.g.\| \code{'|
|00000d20| 3a 27 7d 20 66 6f 72 20 | 50 4f 53 49 58 20 6f 72 |:'} for |POSIX or|
|00000d30| 0a 5c 63 6f 64 65 7b 27 | 3b 27 7d 20 66 6f 72 20 |.\code{'|;'} for |
|00000d40| 4d 53 2d 44 4f 53 2e 0a | 5c 65 6e 64 7b 64 61 74 |MS-DOS..|\end{dat|
|00000d50| 61 64 65 73 63 7d 22 3e | 0a 3c 42 52 3e 0a 0a 3c |adesc}">|.<BR>..<|
|00000d60| 50 3e 0a 3c 42 52 3e 0a | 3c 49 4d 47 0a 20 20 53 |P>.<BR>.|<IMG. S|
|00000d70| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00000d80| 33 38 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |38ex; ve|rtical-a|
|00000d90| 6c 69 67 6e 3a 20 31 37 | 36 2e 32 37 65 78 3b 20 |lign: 17|6.27ex; |
|00000da0| 22 20 53 52 43 3d 22 69 | 6d 67 37 2e 70 6e 67 22 |" SRC="i|mg7.png"|
|00000db0| 0a 20 41 4c 54 3d 22 5c | 62 65 67 69 6e 7b 64 61 |. ALT="\|begin{da|
|00000dc0| 74 61 64 65 73 63 7d 7b | 64 65 66 70 61 74 68 7d |tadesc}{|defpath}|
|00000dd0| 0a 54 68 65 20 64 65 66 | 61 75 6c 74 20 73 65 61 |.The def|ault sea|
|00000de0| 72 63 68 20 70 61 74 68 | 20 75 73 65 64 20 62 79 |rch path| used by|
|00000df0| 20 5c 63 6f 64 65 7b 6f | 73 2e 65 78 65 63 2a 70 | \code{o|s.exec*p|
|00000e00| 2a 28 29 7d 20 69 66 20 | 74 68 65 20 65 6e 76 69 |*()} if |the envi|
|00000e10| 72 6f 6e 6d 65 6e 74 0a | 64 6f 65 73 6e 27 74 20 |ronment.|doesn't |
|00000e20| 68 61 76 65 20 61 20 5c | 63 6f 64 65 7b 27 50 41 |have a \|code{'PA|
|00000e30| 54 48 27 7d 20 6b 65 79 | 2e 0a 5c 65 6e 64 7b 64 |TH'} key|..\end{d|
|00000e40| 61 74 61 64 65 73 63 7d | 22 3e 0a 3c 42 52 3e 0a |atadesc}|">.<BR>.|
|00000e50| 0a 3c 50 3e 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |.<P>.<BR|>.<IMG. |
|00000e60| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000e70| 32 2e 33 38 65 78 3b 20 | 76 65 72 74 69 63 61 6c |2.38ex; |vertical|
|00000e80| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 32 37 65 78 |-align: |176.27ex|
|00000e90| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 38 2e 70 6e |; " SRC=|"img8.pn|
|00000ea0| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000eb0| 66 75 6e 63 64 65 73 63 | 7d 7b 65 78 65 63 6c 7d |funcdesc|}{execl}|
|00000ec0| 7b 70 61 74 68 5c 2c 20 | 61 72 67 30 5c 2c 20 61 |{path\, |arg0\, a|
|00000ed0| 72 67 31 5c 2c 20 2e 2e | 2e 7d 0a 54 68 69 73 20 |rg1\, ..|.}.This |
|00000ee0| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |is equiv|alent to|
|00000ef0| 0a 5c 63 6f 64 65 7b 6f | 73 2e 65 78 65 63 76 28 |.\code{o|s.execv(|
|00000f00| 5c 76 61 72 7b 70 61 74 | 68 7d 2c 20 28 5c 76 61 |\var{pat|h}, (\va|
|00000f10| 72 7b 61 72 67 30 7d 2c | 20 5c 76 61 72 7b 61 72 |r{arg0},| \var{ar|
|00000f20| 67 31 7d 2c 20 2e 2e 2e | 29 29 7d 2e 0a 5c 65 6e |g1}, ...|))}..\en|
|00000f30| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00000f40| 52 3e 0a 0a 3c 50 3e 0a | 3c 42 52 3e 0a 3c 49 4d |R>..<P>.|<BR>.<IM|
|00000f50| 47 0a 20 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |G. STYL|E="heigh|
|00000f60| 74 3a 20 32 2e 33 38 65 | 78 3b 20 76 65 72 74 69 |t: 2.38e|x; verti|
|00000f70| 63 61 6c 2d 61 6c 69 67 | 6e 3a 20 31 37 36 2e 32 |cal-alig|n: 176.2|
|00000f80| 37 65 78 3b 20 22 20 53 | 52 43 3d 22 69 6d 67 39 |7ex; " S|RC="img9|
|00000f90| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 5c 62 65 67 |.png". A|LT="\beg|
|00000fa0| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 65 78 65 |in{funcd|esc}{exe|
|00000fb0| 63 6c 65 7d 7b 70 61 74 | 68 5c 2c 20 61 72 67 30 |cle}{pat|h\, arg0|
|00000fc0| 5c 2c 20 61 72 67 31 5c | 2c 20 2e 2e 2e 5c 2c 20 |\, arg1\|, ...\, |
|00000fd0| 65 6e 76 7d 0a 54 68 69 | 73 20 69 73 20 65 71 75 |env}.Thi|s is equ|
|00000fe0| 69 76 61 6c 65 6e 74 20 | 74 6f 0a 5c 2e 2e 2e 0a |ivalent |to.\....|
|00000ff0| 2e 2e 2e 6f 73 2e 65 78 | 65 63 76 65 28 5c 76 61 |...os.ex|ecve(\va|
|00001000| 72 7b 70 61 74 68 7d 2c | 20 28 5c 76 61 72 7b 61 |r{path},| (\var{a|
|00001010| 72 67 30 7d 2c 20 5c 76 | 61 72 7b 61 72 67 31 7d |rg0}, \v|ar{arg1}|
|00001020| 2c 20 2e 2e 2e 29 2c 20 | 5c 76 61 72 7b 65 6e 76 |, ...), |\var{env|
|00001030| 7d 29 7d 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |})}..\en|d{funcde|
|00001040| 73 63 7d 22 3e 0a 3c 42 | 52 3e 0a 0a 3c 50 3e 0a |sc}">.<B|R>..<P>.|
|00001050| 3c 42 52 3e 0a 3c 49 4d | 47 0a 20 20 53 54 59 4c |<BR>.<IM|G. STYL|
|00001060| 45 3d 22 68 65 69 67 68 | 74 3a 20 32 2e 33 38 65 |E="heigh|t: 2.38e|
|00001070| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|00001080| 6e 3a 20 31 37 36 2e 32 | 37 65 78 3b 20 22 20 53 |n: 176.2|7ex; " S|
|00001090| 52 43 3d 22 69 6d 67 31 | 30 2e 70 6e 67 22 0a 20 |RC="img1|0.png". |
|000010a0| 41 4c 54 3d 22 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |ALT="\be|gin{func|
|000010b0| 64 65 73 63 7d 7b 65 78 | 65 63 6c 70 7d 7b 70 61 |desc}{ex|eclp}{pa|
|000010c0| 74 68 5c 2c 20 61 72 67 | 30 5c 2c 20 61 72 67 31 |th\, arg|0\, arg1|
|000010d0| 5c 2c 20 2e 2e 2e 7d 0a | 54 68 69 73 20 69 73 20 |\, ...}.|This is |
|000010e0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 0a 5c 63 |equivale|nt to.\c|
|000010f0| 6f 64 65 7b 6f 73 2e 65 | 78 65 63 76 70 28 5c 76 |ode{os.e|xecvp(\v|
|00001100| 61 72 7b 70 61 74 68 7d | 2c 20 28 5c 76 61 72 7b |ar{path}|, (\var{|
|00001110| 61 72 67 30 7d 2c 20 5c | 76 61 72 7b 61 72 67 31 |arg0}, \|var{arg1|
|00001120| 7d 2c 20 2e 2e 2e 29 29 | 7d 2e 0a 5c 65 6e 64 7b |}, ...))|}..\end{|
|00001130| 66 75 6e 63 64 65 73 63 | 7d 22 3e 0a 3c 42 52 3e |funcdesc|}">.<BR>|
|00001140| 0a 0a 3c 50 3e 0a 3c 42 | 52 3e 0a 3c 49 4d 47 0a |..<P>.<B|R>.<IMG.|
|00001150| 20 20 53 54 59 4c 45 3d | 22 68 65 69 67 68 74 3a | STYLE=|"height:|
|00001160| 20 32 2e 33 38 65 78 3b | 20 76 65 72 74 69 63 61 | 2.38ex;| vertica|
|00001170| 6c 2d 61 6c 69 67 6e 3a | 20 31 37 36 2e 32 37 65 |l-align:| 176.27e|
|00001180| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 31 2e |x; " SRC|="img11.|
|00001190| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000011a0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 65 78 65 63 |n{funcde|sc}{exec|
|000011b0| 76 70 7d 7b 70 61 74 68 | 5c 2c 20 61 72 67 73 7d |vp}{path|\, args}|
|000011c0| 0a 54 68 69 73 20 69 73 | 20 6c 69 6b 65 20 5c 63 |.This is| like \c|
|000011d0| 6f 64 65 7b 6f 73 2e 65 | 78 65 63 76 28 5c 76 61 |ode{os.e|xecv(\va|
|000011e0| 72 7b 70 61 74 68 7d 2c | 20 5c 76 2e 2e 2e 0a 2e |r{path},| \v.....|
|000011f0| 2e 2e 73 2e 20 54 68 65 | 20 64 69 72 65 63 74 6f |..s. The| directo|
|00001200| 72 79 20 6c 69 73 74 20 | 69 73 20 6f 62 74 61 69 |ry list |is obtai|
|00001210| 6e 65 64 20 66 72 6f 6d | 0a 5c 63 6f 64 65 7b 6f |ned from|.\code{o|
|00001220| 73 2e 65 6e 76 69 72 6f | 6e 5b 27 50 41 54 48 27 |s.enviro|n['PATH'|
|00001230| 5d 7d 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |]}..\end|{funcdes|
|00001240| 63 7d 22 3e 0a 3c 42 52 | 3e 0a 0a 3c 50 3e 0a 3c |c}">.<BR|>..<P>.<|
|00001250| 42 52 3e 0a 3c 49 4d 47 | 0a 20 20 53 54 59 4c 45 |BR>.<IMG|. STYLE|
|00001260| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 33 38 65 78 |="height|: 2.38ex|
|00001270| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00001280| 3a 20 31 37 36 2e 32 37 | 65 78 3b 20 22 20 53 52 |: 176.27|ex; " SR|
|00001290| 43 3d 22 69 6d 67 31 32 | 2e 70 6e 67 22 0a 20 41 |C="img12|.png". A|
|000012a0| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |LT="\beg|in{funcd|
|000012b0| 65 73 63 7d 7b 65 78 65 | 63 76 70 65 7d 7b 70 61 |esc}{exe|cvpe}{pa|
|000012c0| 74 68 5c 2c 20 61 72 67 | 73 5c 2c 20 65 6e 76 7d |th\, arg|s\, env}|
|000012d0| 0a 54 68 69 73 20 69 73 | 20 61 20 63 72 6f 73 73 |.This is| a cross|
|000012e0| 20 62 65 74 77 65 65 6e | 20 5c 63 6f 64 65 7b 6f | between| \code{o|
|000012f0| 73 2e 65 78 2e 2e 2e 0a | 2e 2e 2e 29 7d 2e 0a 54 |s.ex....|...)}..T|
|00001300| 68 65 20 64 69 72 65 63 | 74 6f 72 79 20 6c 69 73 |he direc|tory lis|
|00001310| 74 20 69 73 20 6f 62 74 | 61 69 6e 65 64 20 66 72 |t is obt|ained fr|
|00001320| 6f 6d 20 5c 63 6f 64 65 | 7b 5c 76 61 72 7b 65 6e |om \code|{\var{en|
|00001330| 76 7d 5b 27 50 41 54 48 | 27 5d 7d 2e 0a 5c 65 6e |v}['PATH|']}..\en|
|00001340| 64 7b 66 75 6e 63 64 65 | 73 63 7d 22 3e 0a 3c 42 |d{funcde|sc}">.<B|
|00001350| 52 3e 0a 0a 3c 50 3e 0a | 28 54 68 65 20 66 75 6e |R>..<P>.|(The fun|
|00001360| 63 74 69 6f 6e 73 20 6f | 73 2e 65 78 65 63 76 28 |ctions o|s.execv(|
|00001370| 29 20 61 6e 64 20 65 78 | 65 63 76 65 28 29 20 61 |) and ex|ecve() a|
|00001380| 72 65 20 6e 6f 74 0a 64 | 6f 63 75 6d 65 6e 74 65 |re not.d|ocumente|
|00001390| 64 20 68 65 72 65 2c 20 | 73 69 6e 63 65 20 74 68 |d here, |since th|
|000013a0| 65 79 20 61 72 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |ey are i|mplement|
|000013b0| 65 64 20 62 79 20 74 68 | 65 20 4f 53 20 64 65 70 |ed by th|e OS dep|
|000013c0| 65 6e 64 65 6e 74 0a 6d | 6f 64 75 6c 65 2e 20 20 |endent.m|odule. |
|000013d0| 49 66 20 74 68 65 20 4f | 53 20 64 65 70 65 6e 64 |If the O|S depend|
|000013e0| 65 6e 74 20 6d 6f 64 75 | 6c 65 20 64 6f 65 73 6e |ent modu|le doesn|
|000013f0| 27 74 20 64 65 66 69 6e | 65 20 65 69 74 68 65 72 |'t defin|e either|
|00001400| 20 6f 66 20 74 68 65 73 | 65 2c 0a 74 68 65 20 66 | of thes|e,.the f|
|00001410| 75 6e 63 74 69 6f 6e 73 | 20 74 68 61 74 20 72 65 |unctions| that re|
|00001420| 6c 79 20 6f 6e 20 69 74 | 20 77 69 6c 6c 20 72 61 |ly on it| will ra|
|00001430| 69 73 65 20 61 6e 20 65 | 78 63 65 70 74 69 6f 6e |ise an e|xception|
|00001440| 2e 20 20 54 68 65 79 20 | 61 72 65 0a 64 6f 63 75 |. They |are.docu|
|00001450| 6d 65 6e 74 65 64 20 69 | 6e 20 74 68 65 20 73 65 |mented i|n the se|
|00001460| 63 74 69 6f 6e 20 6f 6e | 20 6d 6f 64 75 6c 65 20 |ction on| module |
|00001470| 70 6f 73 69 78 2c 20 74 | 6f 67 65 74 68 65 72 20 |posix, t|ogether |
|00001480| 77 69 74 68 20 61 6c 6c | 0a 6f 74 68 65 72 20 66 |with all|.other f|
|00001490| 75 6e 63 74 69 6f 6e 73 | 20 74 68 61 74 20 6f 73 |unctions| that os|
|000014a0| 20 69 6d 70 6f 72 74 73 | 20 66 72 6f 6d 20 74 68 | imports| from th|
|000014b0| 65 20 4f 53 20 64 65 70 | 65 6e 64 65 6e 74 20 6d |e OS dep|endent m|
|000014c0| 6f 64 75 6c 65 2e 29 0a | 0a 3c 48 52 3e 0a 0a 3c |odule.).|.<HR>..<|
|000014d0| 2f 42 4f 44 59 3e 0a 3c | 2f 48 54 4d 4c 3e 0a |/BODY>.<|/HTML>. |
+--------+-------------------------+-------------------------+--------+--------+