home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / d / libc / libc-5.0 / libc-5
Tape Archive  |  1995-05-18  |  7.2 MB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory ./libc/, mode 40755 , uid 1676 , gid 334 , size 0 , seconds 5757003643, user hjl, group isl default
98% file data default
41% TrID Sybase iAnywhere database files default (weak)
36% TrID TAR - Tape ARchive (GNU) default
21% TrID TAR - Tape ARchive (directory) default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU) default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2e 2f 6c 69 62 63 2f 00 | 00 00 00 00 00 00 00 00 |./libc/.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 31 36 |.... 407|55 . 16|
|00000070| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 37 35 37 30 30 33 | 0 | 5757003|
|00000090| 36 34 33 20 20 20 37 36 | 37 33 00 20 35 00 00 00 |643 76|73. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 2e 2f 6c 69 62 63 2f 61 | 73 73 65 72 74 2f 00 00 |./libc/a|ssert/..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 31 36 |.... 407|55 . 16|
|00000270| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 37 35 37 30 30 33 | 0 | 5757003|
|00000290| 31 32 32 20 20 31 31 31 | 36 34 00 20 35 00 00 00 |122 111|64. 5...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 2e 2f 6c 69 62 63 2f 61 | 73 73 65 72 74 2f 61 73 |./libc/a|ssert/as|
|00000410| 73 65 72 74 2d 70 65 72 | 72 2e 63 00 00 00 00 00 |sert-per|r.c.....|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00000470| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00000480| 20 20 20 33 34 30 34 20 | 20 35 37 33 32 34 32 36 | 3404 | 5732426|
|00000490| 37 30 32 20 20 31 33 37 | 30 33 00 20 30 00 00 00 |702 137|03. 0...|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00000610| 20 31 39 39 34 2c 20 31 | 39 39 35 20 46 72 65 65 | 1994, 1|995 Free|
|00000620| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00000630| 74 69 6f 6e 2c 20 49 6e | 63 2e 0a 54 68 69 73 20 |tion, In|c..This |
|00000640| 66 69 6c 65 20 69 73 20 | 70 61 72 74 20 6f 66 20 |file is |part of |
|00000650| 74 68 65 20 47 4e 55 20 | 43 20 4c 69 62 72 61 72 |the GNU |C Librar|
|00000660| 79 2e 0a 0a 54 68 65 20 | 47 4e 55 20 43 20 4c 69 |y...The |GNU C Li|
|00000670| 62 72 61 72 79 20 69 73 | 20 66 72 65 65 20 73 6f |brary is| free so|
|00000680| 66 74 77 61 72 65 3b 20 | 79 6f 75 20 63 61 6e 20 |ftware; |you can |
|00000690| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 69 74 20 |redistri|bute it |
|000006a0| 61 6e 64 2f 6f 72 0a 6d | 6f 64 69 66 79 20 69 74 |and/or.m|odify it|
|000006b0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000006c0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 4c 69 62 72 | of the |GNU Libr|
|000006d0| 61 72 79 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |ary Gene|ral Publ|
|000006e0| 69 63 20 4c 69 63 65 6e | 73 65 20 61 73 0a 70 75 |ic Licen|se as.pu|
|000006f0| 62 6c 69 73 68 65 64 20 | 62 79 20 74 68 65 20 46 |blished |by the F|
|00000700| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|00000710| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|00000720| 76 65 72 73 69 6f 6e 20 | 32 20 6f 66 20 74 68 65 |version |2 of the|
|00000730| 0a 4c 69 63 65 6e 73 65 | 2c 20 6f 72 20 28 61 74 |.License|, or (at|
|00000740| 20 79 6f 75 72 20 6f 70 | 74 69 6f 6e 29 20 61 6e | your op|tion) an|
|00000750| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|00000760| 0a 0a 54 68 65 20 47 4e | 55 20 43 20 4c 69 62 72 |..The GN|U C Libr|
|00000770| 61 72 79 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ary is d|istribut|
|00000780| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|00000790| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|000007a0| 73 65 66 75 6c 2c 0a 62 | 75 74 20 57 49 54 48 4f |seful,.b|ut WITHO|
|000007b0| 55 54 20 41 4e 59 20 57 | 41 52 52 41 4e 54 59 3b |UT ANY W|ARRANTY;|
|000007c0| 20 77 69 74 68 6f 75 74 | 20 65 76 65 6e 20 74 68 | without| even th|
|000007d0| 65 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |e implie|d warran|
|000007e0| 74 79 20 6f 66 0a 4d 45 | 52 43 48 41 4e 54 41 42 |ty of.ME|RCHANTAB|
|000007f0| 49 4c 49 54 59 20 6f 72 | 20 46 49 54 4e 45 53 53 |ILITY or| FITNESS|
|00000800| 20 46 4f 52 20 41 20 50 | 41 52 54 49 43 55 4c 41 | FOR A P|ARTICULA|
|00000810| 52 20 50 55 52 50 4f 53 | 45 2e 20 20 53 65 65 20 |R PURPOS|E. See |
|00000820| 74 68 65 20 47 4e 55 0a | 4c 69 62 72 61 72 79 20 |the GNU.|Library |
|00000830| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00000840| 69 63 65 6e 73 65 20 66 | 6f 72 20 6d 6f 72 65 20 |icense f|or more |
|00000850| 64 65 74 61 69 6c 73 2e | 0a 0a 59 6f 75 20 73 68 |details.|..You sh|
|00000860| 6f 75 6c 64 20 68 61 76 | 65 20 72 65 63 65 69 76 |ould hav|e receiv|
|00000870| 65 64 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ed a cop|y of the|
|00000880| 20 47 4e 55 20 4c 69 62 | 72 61 72 79 20 47 65 6e | GNU Lib|rary Gen|
|00000890| 65 72 61 6c 20 50 75 62 | 6c 69 63 0a 4c 69 63 65 |eral Pub|lic.Lice|
|000008a0| 6e 73 65 20 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |nse alon|g with t|
|000008b0| 68 65 20 47 4e 55 20 43 | 20 4c 69 62 72 61 72 79 |he GNU C| Library|
|000008c0| 3b 20 73 65 65 20 74 68 | 65 20 66 69 6c 65 20 43 |; see th|e file C|
|000008d0| 4f 50 59 49 4e 47 2e 4c | 49 42 2e 20 20 49 66 0a |OPYING.L|IB. If.|
|000008e0| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |not, wri|te to th|
|000008f0| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00000900| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00000910| 2c 20 36 37 35 20 4d 61 | 73 73 20 41 76 65 2c 0a |, 675 Ma|ss Ave,.|
|00000920| 43 61 6d 62 72 69 64 67 | 65 2c 20 4d 41 20 30 32 |Cambridg|e, MA 02|
|00000930| 31 33 39 2c 20 55 53 41 | 2e 20 20 2a 2f 0a 0a 23 |139, USA|. */..#|
|00000940| 69 6e 63 6c 75 64 65 20 | 3c 61 73 73 65 72 74 2e |include |<assert.|
|00000950| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00000960| 69 6f 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |io.h>.#i|nclude <|
|00000970| 73 74 72 69 6e 67 2e 68 | 3e 0a 23 69 6e 63 6c 75 |string.h|>.#inclu|
|00000980| 64 65 20 3c 73 79 73 64 | 65 70 2e 68 3e 0a 0a 0a |de <sysd|ep.h>...|
|00000990| 65 78 74 65 72 6e 20 63 | 6f 6e 73 74 20 63 68 61 |extern c|onst cha|
|000009a0| 72 20 2a 5f 5f 61 73 73 | 65 72 74 5f 70 72 6f 67 |r *__ass|ert_prog|
|000009b0| 72 61 6d 5f 6e 61 6d 65 | 3b 20 2f 2a 20 49 6e 20 |ram_name|; /* In |
|000009c0| 61 73 73 65 72 74 2e 63 | 2e 20 20 2a 2f 0a 0a 2f |assert.c|. */../|
|000009d0| 2a 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 2c |* This f|unction,|
|000009e0| 20 77 68 65 6e 20 70 61 | 73 73 65 64 20 61 6e 20 | when pa|ssed an |
|000009f0| 65 72 72 6f 72 20 6e 75 | 6d 62 65 72 2c 20 61 20 |error nu|mber, a |
|00000a00| 66 69 6c 65 6e 61 6d 65 | 2c 20 61 6e 64 20 61 20 |filename|, and a |
|00000a10| 6c 69 6e 65 0a 20 20 20 | 6e 75 6d 62 65 72 2c 20 |line. |number, |
|00000a20| 70 72 69 6e 74 73 20 61 | 20 6d 65 73 73 61 67 65 |prints a| message|
|00000a30| 20 6f 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | on the |standard|
|00000a40| 20 65 72 72 6f 72 20 73 | 74 72 65 61 6d 20 6f 66 | error s|tream of|
|00000a50| 20 74 68 65 20 66 6f 72 | 6d 3a 0a 20 20 20 09 61 | the for|m:. .a|
|00000a60| 2e 63 3a 31 30 3a 20 66 | 6f 6f 62 61 72 3a 20 55 |.c:10: f|oobar: U|
|00000a70| 6e 65 78 70 65 63 74 65 | 64 20 65 72 72 6f 72 3a |nexpecte|d error:|
|00000a80| 20 43 6f 6d 70 75 74 65 | 72 20 62 6f 75 67 68 74 | Compute|r bought|
|00000a90| 20 74 68 65 20 66 61 72 | 6d 0a 20 20 20 49 74 20 | the far|m. It |
|00000aa0| 74 68 65 6e 20 61 62 6f | 72 74 73 20 70 72 6f 67 |then abo|rts prog|
|00000ab0| 72 61 6d 20 65 78 65 63 | 75 74 69 6f 6e 20 76 69 |ram exec|ution vi|
|00000ac0| 61 20 61 20 63 61 6c 6c | 20 74 6f 20 60 61 62 6f |a a call| to `abo|
|00000ad0| 72 74 27 2e 20 20 2a 2f | 0a 0a 23 69 66 64 65 66 |rt'. */|..#ifdef|
|00000ae0| 20 46 41 54 41 4c 5f 50 | 52 45 50 41 52 45 5f 49 | FATAL_P|REPARE_I|
|00000af0| 4e 43 4c 55 44 45 0a 23 | 69 6e 63 6c 75 64 65 20 |NCLUDE.#|include |
|00000b00| 46 41 54 41 4c 5f 50 52 | 45 50 41 52 45 5f 49 4e |FATAL_PR|EPARE_IN|
|00000b10| 43 4c 55 44 45 0a 23 65 | 6e 64 69 66 0a 0a 76 6f |CLUDE.#e|ndif..vo|
|00000b20| 69 64 0a 5f 5f 61 73 73 | 65 72 74 5f 70 65 72 72 |id.__ass|ert_perr|
|00000b30| 6f 72 5f 66 61 69 6c 20 | 28 69 6e 74 20 65 72 72 |or_fail |(int err|
|00000b40| 6e 75 6d 2c 0a 09 09 20 | 20 20 20 20 20 63 6f 6e |num,... | con|
|00000b50| 73 74 20 63 68 61 72 20 | 2a 66 69 6c 65 2c 20 75 |st char |*file, u|
|00000b60| 6e 73 69 67 6e 65 64 20 | 69 6e 74 20 6c 69 6e 65 |nsigned |int line|
|00000b70| 2c 0a 09 09 20 20 20 20 | 20 20 63 6f 6e 73 74 20 |,... | const |
|00000b80| 63 68 61 72 20 2a 66 75 | 6e 63 74 69 6f 6e 29 0a |char *fu|nction).|
|00000b90| 7b 0a 23 69 66 64 65 66 | 20 46 41 54 41 4c 5f 50 |{.#ifdef| FATAL_P|
|00000ba0| 52 45 50 41 52 45 0a 20 | 20 46 41 54 41 4c 5f 50 |REPARE. | FATAL_P|
|00000bb0| 52 45 50 41 52 45 3b 0a | 23 65 6e 64 69 66 0a 0a |REPARE;.|#endif..|
|00000bc0| 20 20 2f 2a 20 50 72 69 | 6e 74 20 74 68 65 20 6d | /* Pri|nt the m|
|00000bd0| 65 73 73 61 67 65 2e 20 | 20 2a 2f 0a 20 20 28 76 |essage. | */. (v|
|00000be0| 6f 69 64 29 20 66 70 72 | 69 6e 74 66 20 28 73 74 |oid) fpr|intf (st|
|00000bf0| 64 65 72 72 2c 20 22 25 | 73 25 73 25 73 3a 25 75 |derr, "%|s%s%s:%u|
|00000c00| 3a 20 25 73 25 73 55 6e | 65 78 70 65 63 74 65 64 |: %s%sUn|expected|
|00000c10| 20 65 72 72 6f 72 3a 20 | 25 73 2e 5c 6e 22 2c 0a | error: |%s.\n",.|
|00000c20| 09 09 20 20 5f 5f 61 73 | 73 65 72 74 5f 70 72 6f |.. __as|sert_pro|
|00000c30| 67 72 61 6d 5f 6e 61 6d | 65 20 3f 20 5f 5f 61 73 |gram_nam|e ? __as|
|00000c40| 73 65 72 74 5f 70 72 6f | 67 72 61 6d 5f 6e 61 6d |sert_pro|gram_nam|
|00000c50| 65 20 3a 20 22 22 2c 0a | 09 09 20 20 5f 5f 61 73 |e : "",.|.. __as|
|00000c60| 73 65 72 74 5f 70 72 6f | 67 72 61 6d 5f 6e 61 6d |sert_pro|gram_nam|
|00000c70| 65 20 3f 20 22 3a 20 22 | 20 3a 20 22 22 2c 0a 09 |e ? ": "| : "",..|
|00000c80| 09 20 20 66 69 6c 65 2c | 20 6c 69 6e 65 2c 0a 09 |. file,| line,..|
|00000c90| 09 20 20 66 75 6e 63 74 | 69 6f 6e 20 3f 20 66 75 |. funct|ion ? fu|
|00000ca0| 6e 63 74 69 6f 6e 20 3a | 20 22 22 2c 20 66 75 6e |nction :| "", fun|
|00000cb0| 63 74 69 6f 6e 20 3f 20 | 22 3a 20 22 20 3a 20 22 |ction ? |": " : "|
|00000cc0| 22 2c 0a 09 09 20 20 73 | 74 72 65 72 72 6f 72 20 |",... s|trerror |
|00000cd0| 28 65 72 72 6e 75 6d 29 | 29 3b 0a 20 20 28 76 6f |(errnum)|);. (vo|
|00000ce0| 69 64 29 20 66 66 6c 75 | 73 68 20 28 73 74 64 65 |id) fflu|sh (stde|
|00000cf0| 72 72 29 3b 0a 0a 20 20 | 61 62 6f 72 74 20 28 29 |rr);.. |abort ()|
|00000d00| 3b 0a 7d 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 2e 2f 6c 69 62 63 2f 61 | 73 73 65 72 74 2f 61 73 |./libc/a|ssert/as|
|00000e10| 73 65 72 74 2e 63 00 00 | 00 00 00 00 00 00 00 00 |sert.c..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00000e70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00000e80| 20 20 20 34 34 31 32 20 | 20 35 37 33 32 34 32 36 | 4412 | 5732426|
|00000e90| 37 30 33 20 20 31 32 37 | 33 36 00 20 30 00 00 00 |703 127|36. 0...|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00000f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001000| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00001010| 20 31 39 39 31 2c 20 31 | 39 39 34 2c 20 31 39 39 | 1991, 1|994, 199|
|00001020| 35 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |5 Free S|oftware |
|00001030| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00001040| 0a 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 70 61 |.This fi|le is pa|
|00001050| 72 74 20 6f 66 20 74 68 | 65 20 47 4e 55 20 43 20 |rt of th|e GNU C |
|00001060| 4c 69 62 72 61 72 79 2e | 0a 0a 54 68 65 20 47 4e |Library.|..The GN|
|00001070| 55 20 43 20 4c 69 62 72 | 61 72 79 20 69 73 20 66 |U C Libr|ary is f|
|00001080| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00001090| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|000010a0| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 0a 6d 6f 64 |te it an|d/or.mod|
|000010b0| 69 66 79 20 69 74 20 75 | 6e 64 65 72 20 74 68 65 |ify it u|nder the|
|000010c0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|000010d0| 55 20 4c 69 62 72 61 72 | 79 20 47 65 6e 65 72 61 |U Librar|y Genera|
|000010e0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|000010f0| 20 61 73 0a 70 75 62 6c | 69 73 68 65 64 20 62 79 | as.publ|ished by|
|00001100| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00001110| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00001120| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 32 20 |ither ve|rsion 2 |
|00001130| 6f 66 20 74 68 65 0a 4c | 69 63 65 6e 73 65 2c 20 |of the.L|icense, |
|00001140| 6f 72 20 28 61 74 20 79 | 6f 75 72 20 6f 70 74 69 |or (at y|our opti|
|00001150| 6f 6e 29 20 61 6e 79 20 | 6c 61 74 65 72 20 76 65 |on) any |later ve|
|00001160| 72 73 69 6f 6e 2e 0a 0a | 54 68 65 20 47 4e 55 20 |rsion...|The GNU |
|00001170| 43 20 4c 69 62 72 61 72 | 79 20 69 73 20 64 69 73 |C Librar|y is dis|
|00001180| 74 72 69 62 75 74 65 64 | 20 69 6e 20 74 68 65 20 |tributed| in the |
|00001190| 68 6f 70 65 20 74 68 61 | 74 20 69 74 20 77 69 6c |hope tha|t it wil|
|000011a0| 6c 20 62 65 20 75 73 65 | 66 75 6c 2c 0a 62 75 74 |l be use|ful,.but|
|000011b0| 20 57 49 54 48 4f 55 54 | 20 41 4e 59 20 57 41 52 | WITHOUT| ANY WAR|
|000011c0| 52 41 4e 54 59 3b 20 77 | 69 74 68 6f 75 74 20 65 |RANTY; w|ithout e|
|000011d0| 76 65 6e 20 74 68 65 20 | 69 6d 70 6c 69 65 64 20 |ven the |implied |
|000011e0| 77 61 72 72 61 6e 74 79 | 20 6f 66 0a 4d 45 52 43 |warranty| of.MERC|
|000011f0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00001200| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00001210| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00001220| 20 20 53 65 65 20 74 68 | 65 20 47 4e 55 0a 4c 69 | See th|e GNU.Li|
|00001230| 62 72 61 72 79 20 47 65 | 6e 65 72 61 6c 20 50 75 |brary Ge|neral Pu|
|00001240| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 66 6f 72 |blic Lic|ense for|
|00001250| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0a 0a | more de|tails...|
|00001260| 59 6f 75 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |You shou|ld have |
|00001270| 72 65 63 65 69 76 65 64 | 20 61 20 63 6f 70 79 20 |received| a copy |
|00001280| 6f 66 20 74 68 65 20 47 | 4e 55 20 4c 69 62 72 61 |of the G|NU Libra|
|00001290| 72 79 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |ry Gener|al Publi|
|000012a0| 63 0a 4c 69 63 65 6e 73 | 65 20 61 6c 6f 6e 67 20 |c.Licens|e along |
|000012b0| 77 69 74 68 20 74 68 65 | 20 47 4e 55 20 43 20 4c |with the| GNU C L|
|000012c0| 69 62 72 61 72 79 3b 20 | 73 65 65 20 74 68 65 20 |ibrary; |see the |
|000012d0| 66 69 6c 65 20 43 4f 50 | 59 49 4e 47 2e 4c 49 42 |file COP|YING.LIB|
|000012e0| 2e 20 20 49 66 0a 6e 6f | 74 2c 20 77 72 69 74 65 |. If.no|t, write|
|000012f0| 20 74 6f 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 | to the |Free Sof|
|00001300| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00001310| 2c 20 49 6e 63 2e 2c 20 | 36 37 35 20 4d 61 73 73 |, Inc., |675 Mass|
|00001320| 20 41 76 65 2c 0a 43 61 | 6d 62 72 69 64 67 65 2c | Ave,.Ca|mbridge,|
|00001330| 20 4d 41 20 30 32 31 33 | 39 2c 20 55 53 41 2e 20 | MA 0213|9, USA. |
|00001340| 20 2a 2f 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 61 | */..#in|clude <a|
|00001350| 6e 73 69 64 65 63 6c 2e | 68 3e 0a 23 69 6e 63 6c |nsidecl.|h>.#incl|
|00001360| 75 64 65 20 3c 61 73 73 | 65 72 74 2e 68 3e 0a 23 |ude <ass|ert.h>.#|
|00001370| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00001380| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 6c |>.#inclu|de <stdl|
|00001390| 69 62 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ib.h>.#i|nclude <|
|000013a0| 73 79 73 64 65 70 2e 68 | 3e 0a 0a 0a 43 4f 4e 53 |sysdep.h|>...CONS|
|000013b0| 54 20 63 68 61 72 20 2a | 5f 5f 61 73 73 65 72 74 |T char *|__assert|
|000013c0| 5f 70 72 6f 67 72 61 6d | 5f 6e 61 6d 65 3b 0a 0a |_program|_name;..|
|000013d0| 2f 2a 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |/* This |function|
|000013e0| 2c 20 77 68 65 6e 20 70 | 61 73 73 65 64 20 61 20 |, when p|assed a |
|000013f0| 73 74 72 69 6e 67 20 63 | 6f 6e 74 61 69 6e 69 6e |string c|ontainin|
|00001400| 67 20 61 6e 20 61 73 73 | 65 72 74 65 64 0a 20 20 |g an ass|erted. |
|00001410| 20 65 78 70 72 65 73 73 | 69 6f 6e 2c 20 61 20 66 | express|ion, a f|
|00001420| 69 6c 65 6e 61 6d 65 2c | 20 61 6e 64 20 61 20 6c |ilename,| and a l|
|00001430| 69 6e 65 20 6e 75 6d 62 | 65 72 2c 20 70 72 69 6e |ine numb|er, prin|
|00001440| 74 73 20 61 20 6d 65 73 | 73 61 67 65 0a 20 20 20 |ts a mes|sage. |
|00001450| 6f 6e 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |on the s|tandard |
|00001460| 65 72 72 6f 72 20 73 74 | 72 65 61 6d 20 6f 66 20 |error st|ream of |
|00001470| 74 68 65 20 66 6f 72 6d | 3a 0a 20 20 20 09 61 2e |the form|:. .a.|
|00001480| 63 3a 31 30 3a 20 66 6f | 6f 62 61 72 3a 20 41 73 |c:10: fo|obar: As|
|00001490| 73 65 72 74 69 6f 6e 20 | 60 61 20 3d 3d 20 62 27 |sertion |`a == b'|
|000014a0| 20 66 61 69 6c 65 64 2e | 0a 20 20 20 49 74 20 74 | failed.|. It t|
|000014b0| 68 65 6e 20 61 62 6f 72 | 74 73 20 70 72 6f 67 72 |hen abor|ts progr|
|000014c0| 61 6d 20 65 78 65 63 75 | 74 69 6f 6e 20 76 69 61 |am execu|tion via|
|000014d0| 20 61 20 63 61 6c 6c 20 | 74 6f 20 60 61 62 6f 72 | a call |to `abor|
|000014e0| 74 27 2e 20 20 2a 2f 0a | 0a 23 69 66 64 65 66 20 |t'. */.|.#ifdef |
|000014f0| 46 41 54 41 4c 5f 50 52 | 45 50 41 52 45 5f 49 4e |FATAL_PR|EPARE_IN|
|00001500| 43 4c 55 44 45 0a 23 69 | 6e 63 6c 75 64 65 20 46 |CLUDE.#i|nclude F|
|00001510| 41 54 41 4c 5f 50 52 45 | 50 41 52 45 5f 49 4e 43 |ATAL_PRE|PARE_INC|
|00001520| 4c 55 44 45 0a 23 65 6e | 64 69 66 0a 0a 76 6f 69 |LUDE.#en|dif..voi|
|00001530| 64 0a 44 45 46 55 4e 28 | 5f 5f 61 73 73 65 72 74 |d.DEFUN(|__assert|
|00001540| 5f 66 61 69 6c 2c 20 28 | 61 73 73 65 72 74 69 6f |_fail, (|assertio|
|00001550| 6e 2c 20 66 69 6c 65 2c | 20 6c 69 6e 65 2c 20 66 |n, file,| line, f|
|00001560| 75 6e 63 74 69 6f 6e 29 | 2c 0a 20 20 20 20 20 20 |unction)|,. |
|00001570| 43 4f 4e 53 54 20 63 68 | 61 72 20 2a 61 73 73 65 |CONST ch|ar *asse|
|00001580| 72 74 69 6f 6e 20 41 4e | 44 0a 20 20 20 20 20 20 |rtion AN|D. |
|00001590| 43 4f 4e 53 54 20 63 68 | 61 72 20 2a 66 69 6c 65 |CONST ch|ar *file|
|000015a0| 20 41 4e 44 20 75 6e 73 | 69 67 6e 65 64 20 69 6e | AND uns|igned in|
|000015b0| 74 20 6c 69 6e 65 20 41 | 4e 44 20 43 4f 4e 53 54 |t line A|ND CONST|
|000015c0| 20 63 68 61 72 20 2a 66 | 75 6e 63 74 69 6f 6e 29 | char *f|unction)|
|000015d0| 20 20 20 20 20 20 0a 7b | 0a 23 69 66 64 65 66 20 | .{|.#ifdef |
|000015e0| 46 41 54 41 4c 5f 50 52 | 45 50 41 52 45 0a 20 20 |FATAL_PR|EPARE. |
|000015f0| 46 41 54 41 4c 5f 50 52 | 45 50 41 52 45 3b 0a 23 |FATAL_PR|EPARE;.#|
|00001600| 65 6e 64 69 66 0a 0a 20 | 20 2f 2a 20 50 72 69 6e |endif.. | /* Prin|
|00001610| 74 20 74 68 65 20 6d 65 | 73 73 61 67 65 2e 20 20 |t the me|ssage. |
|00001620| 2a 2f 0a 20 20 28 76 6f | 69 64 29 20 66 70 72 69 |*/. (vo|id) fpri|
|00001630| 6e 74 66 20 28 73 74 64 | 65 72 72 2c 20 22 25 73 |ntf (std|err, "%s|
|00001640| 25 73 25 73 3a 25 75 3a | 20 25 73 25 73 41 73 73 |%s%s:%u:| %s%sAss|
|00001650| 65 72 74 69 6f 6e 20 60 | 25 73 27 20 66 61 69 6c |ertion `|%s' fail|
|00001660| 65 64 2e 5c 6e 22 2c 0a | 09 09 20 20 5f 5f 61 73 |ed.\n",.|.. __as|
|00001670| 73 65 72 74 5f 70 72 6f | 67 72 61 6d 5f 6e 61 6d |sert_pro|gram_nam|
|00001680| 65 20 3f 20 5f 5f 61 73 | 73 65 72 74 5f 70 72 6f |e ? __as|sert_pro|
|00001690| 67 72 61 6d 5f 6e 61 6d | 65 20 3a 20 22 22 2c 0a |gram_nam|e : "",.|
|000016a0| 09 09 20 20 5f 5f 61 73 | 73 65 72 74 5f 70 72 6f |.. __as|sert_pro|
|000016b0| 67 72 61 6d 5f 6e 61 6d | 65 20 3f 20 22 3a 20 22 |gram_nam|e ? ": "|
|000016c0| 20 3a 20 22 22 2c 0a 09 | 09 20 20 66 69 6c 65 2c | : "",..|. file,|
|000016d0| 20 6c 69 6e 65 2c 0a 09 | 09 20 20 66 75 6e 63 74 | line,..|. funct|
|000016e0| 69 6f 6e 20 3f 20 66 75 | 6e 63 74 69 6f 6e 20 3a |ion ? fu|nction :|
|000016f0| 20 22 22 2c 20 66 75 6e | 63 74 69 6f 6e 20 3f 20 | "", fun|ction ? |
|00001700| 22 3a 20 22 20 3a 20 22 | 22 2c 0a 09 09 20 20 61 |": " : "|",... a|
|00001710| 73 73 65 72 74 69 6f 6e | 29 3b 0a 20 20 28 76 6f |ssertion|);. (vo|
|00001720| 69 64 29 20 66 66 6c 75 | 73 68 20 28 73 74 64 65 |id) fflu|sh (stde|
|00001730| 72 72 29 3b 0a 0a 20 20 | 61 62 6f 72 74 20 28 29 |rr);.. |abort ()|
|00001740| 3b 0a 7d 0a 0a 23 69 66 | 64 65 66 09 48 41 56 45 |;.}..#if|def.HAVE|
|00001750| 5f 47 4e 55 5f 4c 44 0a | 0a 23 69 6e 63 6c 75 64 |_GNU_LD.|.#includ|
|00001760| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 0a 73 74 |e <strin|g.h>..st|
|00001770| 61 74 69 63 20 76 6f 69 | 64 0a 44 45 46 55 4e 28 |atic voi|d.DEFUN(|
|00001780| 73 65 74 5f 70 72 6f 67 | 6e 61 6d 65 2c 20 28 61 |set_prog|name, (a|
|00001790| 72 67 63 2c 20 61 72 67 | 76 2c 20 65 6e 76 70 29 |rgc, arg|v, envp)|
|000017a0| 2c 0a 20 20 20 20 20 20 | 69 6e 74 20 61 72 67 63 |,. |int argc|
|000017b0| 20 41 4e 44 20 63 68 61 | 72 20 2a 2a 61 72 67 76 | AND cha|r **argv|
|000017c0| 20 41 4e 44 20 63 68 61 | 72 20 2a 2a 65 6e 76 70 | AND cha|r **envp|
|000017d0| 29 0a 7b 0a 20 20 63 68 | 61 72 20 2a 70 3b 0a 0a |).{. ch|ar *p;..|
|000017e0| 20 20 69 66 20 28 61 72 | 67 76 20 26 26 20 61 72 | if (ar|gv && ar|
|000017f0| 67 76 5b 30 5d 29 0a 20 | 20 20 20 7b 0a 20 20 20 |gv[0]). | {. |
|00001800| 20 20 20 70 20 3d 20 73 | 74 72 72 63 68 72 20 28 | p = s|trrchr (|
|00001810| 61 72 67 76 5b 30 5d 2c | 20 27 2f 27 29 3b 0a 20 |argv[0],| '/');. |
|00001820| 20 20 20 20 20 69 66 20 | 28 70 20 3d 3d 20 4e 55 | if |(p == NU|
|00001830| 4c 4c 29 0a 09 5f 5f 61 | 73 73 65 72 74 5f 70 72 |LL)..__a|ssert_pr|
|00001840| 6f 67 72 61 6d 5f 6e 61 | 6d 65 20 3d 20 61 72 67 |ogram_na|me = arg|
|00001850| 76 5b 30 5d 3b 0a 20 20 | 20 20 20 20 65 6c 73 65 |v[0];. | else|
|00001860| 0a 09 5f 5f 61 73 73 65 | 72 74 5f 70 72 6f 67 72 |..__asse|rt_progr|
|00001870| 61 6d 5f 6e 61 6d 65 20 | 3d 20 70 20 2b 20 31 3b |am_name |= p + 1;|
|00001880| 0a 20 20 20 20 7d 0a 0a | 20 20 28 76 6f 69 64 29 |. }..| (void)|
|00001890| 20 26 73 65 74 5f 70 72 | 6f 67 6e 61 6d 65 3b 09 | &set_pr|ogname;.|
|000018a0| 09 2f 2a 20 41 76 6f 69 | 64 20 22 64 65 66 69 6e |./* Avoi|d "defin|
|000018b0| 65 64 20 62 75 74 20 6e | 6f 74 20 75 73 65 64 22 |ed but n|ot used"|
|000018c0| 20 77 61 72 6e 69 6e 67 | 2e 20 20 2a 2f 0a 7d 0a | warning|. */.}.|
|000018d0| 0a 74 65 78 74 5f 73 65 | 74 5f 65 6c 65 6d 65 6e |.text_se|t_elemen|
|000018e0| 74 20 28 5f 5f 6c 69 62 | 63 5f 73 75 62 69 6e 69 |t (__lib|c_subini|
|000018f0| 74 2c 20 73 65 74 5f 70 | 72 6f 67 6e 61 6d 65 29 |t, set_p|rogname)|
|00001900| 3b 0a 0a 23 65 6e 64 69 | 66 0a 00 00 00 00 00 00 |;..#endi|f.......|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 2e 2f 6c 69 62 63 2f 61 | 73 73 65 72 74 2f 61 73 |./libc/a|ssert/as|
|00001a10| 73 65 72 74 2e 68 00 00 | 00 00 00 00 00 00 00 00 |sert.h..|........|
|00001a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00001a70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00001a80| 20 20 20 35 34 35 35 20 | 20 35 37 33 32 34 32 36 | 5455 | 5732426|
|00001a90| 37 30 33 20 20 31 32 37 | 35 33 00 20 30 00 00 00 |703 127|53. 0...|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00001c10| 20 31 39 39 31 2c 20 31 | 39 39 32 2c 20 31 39 39 | 1991, 1|992, 199|
|00001c20| 34 2c 20 31 39 39 35 20 | 46 72 65 65 20 53 6f 66 |4, 1995 |Free Sof|
|00001c30| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00001c40| 2c 20 49 6e 63 2e 0a 54 | 68 69 73 20 66 69 6c 65 |, Inc..T|his file|
|00001c50| 20 69 73 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 | is part| of the |
|00001c60| 47 4e 55 20 43 20 4c 69 | 62 72 61 72 79 2e 0a 0a |GNU C Li|brary...|
|00001c70| 54 68 65 20 47 4e 55 20 | 43 20 4c 69 62 72 61 72 |The GNU |C Librar|
|00001c80| 79 20 69 73 20 66 72 65 | 65 20 73 6f 66 74 77 61 |y is fre|e softwa|
|00001c90| 72 65 3b 20 79 6f 75 20 | 63 61 6e 20 72 65 64 69 |re; you |can redi|
|00001ca0| 73 74 72 69 62 75 74 65 | 20 69 74 20 61 6e 64 2f |stribute| it and/|
|00001cb0| 6f 72 0a 6d 6f 64 69 66 | 79 20 69 74 20 75 6e 64 |or.modif|y it und|
|00001cc0| 65 72 20 74 68 65 20 74 | 65 72 6d 73 20 6f 66 20 |er the t|erms of |
|00001cd0| 74 68 65 20 47 4e 55 20 | 4c 69 62 72 61 72 79 20 |the GNU |Library |
|00001ce0| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00001cf0| 69 63 65 6e 73 65 20 61 | 73 0a 70 75 62 6c 69 73 |icense a|s.publis|
|00001d00| 68 65 64 20 62 79 20 74 | 68 65 20 46 72 65 65 20 |hed by t|he Free |
|00001d10| 53 6f 66 74 77 61 72 65 | 20 46 6f 75 6e 64 61 74 |Software| Foundat|
|00001d20| 69 6f 6e 3b 20 65 69 74 | 68 65 72 20 76 65 72 73 |ion; eit|her vers|
|00001d30| 69 6f 6e 20 32 20 6f 66 | 20 74 68 65 0a 4c 69 63 |ion 2 of| the.Lic|
|00001d40| 65 6e 73 65 2c 20 6f 72 | 20 28 61 74 20 79 6f 75 |ense, or| (at you|
|00001d50| 72 20 6f 70 74 69 6f 6e | 29 20 61 6e 79 20 6c 61 |r option|) any la|
|00001d60| 74 65 72 20 76 65 72 73 | 69 6f 6e 2e 0a 0a 54 68 |ter vers|ion...Th|
|00001d70| 65 20 47 4e 55 20 43 20 | 4c 69 62 72 61 72 79 20 |e GNU C |Library |
|00001d80| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00001d90| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00001da0| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00001db0| 6c 2c 0a 62 75 74 20 57 | 49 54 48 4f 55 54 20 41 |l,.but W|ITHOUT A|
|00001dc0| 4e 59 20 57 41 52 52 41 | 4e 54 59 3b 20 77 69 74 |NY WARRA|NTY; wit|
|00001dd0| 68 6f 75 74 20 65 76 65 | 6e 20 74 68 65 20 69 6d |hout eve|n the im|
|00001de0| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 20 6f |plied wa|rranty o|
|00001df0| 66 0a 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |f.MERCHA|NTABILIT|
|00001e00| 59 20 6f 72 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |Y or FIT|NESS FOR|
|00001e10| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|00001e20| 52 50 4f 53 45 2e 20 20 | 53 65 65 20 74 68 65 20 |RPOSE. |See the |
|00001e30| 47 4e 55 0a 4c 69 62 72 | 61 72 79 20 47 65 6e 65 |GNU.Libr|ary Gene|
|00001e40| 72 61 6c 20 50 75 62 6c | 69 63 20 4c 69 63 65 6e |ral Publ|ic Licen|
|00001e50| 73 65 20 66 6f 72 20 6d | 6f 72 65 20 64 65 74 61 |se for m|ore deta|
|00001e60| 69 6c 73 2e 0a 0a 59 6f | 75 20 73 68 6f 75 6c 64 |ils...Yo|u should|
|00001e70| 20 68 61 76 65 20 72 65 | 63 65 69 76 65 64 20 61 | have re|ceived a|
|00001e80| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 47 4e 55 | copy of| the GNU|
|00001e90| 20 4c 69 62 72 61 72 79 | 20 47 65 6e 65 72 61 6c | Library| General|
|00001ea0| 20 50 75 62 6c 69 63 0a | 4c 69 63 65 6e 73 65 20 | Public.|License |
|00001eb0| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 65 20 47 |along wi|th the G|
|00001ec0| 4e 55 20 43 20 4c 69 62 | 72 61 72 79 3b 20 73 65 |NU C Lib|rary; se|
|00001ed0| 65 20 74 68 65 20 66 69 | 6c 65 20 43 4f 50 59 49 |e the fi|le COPYI|
|00001ee0| 4e 47 2e 4c 49 42 2e 20 | 20 49 66 0a 6e 6f 74 2c |NG.LIB. | If.not,|
|00001ef0| 20 77 72 69 74 65 20 74 | 6f 20 74 68 65 2c 20 31 | write t|o the, 1|
|00001f00| 39 39 32 20 46 72 65 65 | 20 53 6f 66 74 77 61 72 |992 Free| Softwar|
|00001f10| 65 20 46 6f 75 6e 64 61 | 74 69 6f 6e 2c 20 49 6e |e Founda|tion, In|
|00001f20| 63 2e 2c 20 36 37 35 20 | 4d 61 73 73 20 41 76 65 |c., 675 |Mass Ave|
|00001f30| 2c 0a 43 61 6d 62 72 69 | 64 67 65 2c 20 4d 41 20 |,.Cambri|dge, MA |
|00001f40| 30 32 31 33 39 2c 20 55 | 53 41 2e 20 20 2a 2f 0a |02139, U|SA. */.|
|00001f50| 0a 2f 2a 0a 20 2a 09 41 | 4e 53 49 20 53 74 61 6e |./*. *.A|NSI Stan|
|00001f60| 64 61 72 64 3a 20 34 2e | 32 20 44 49 41 47 4e 4f |dard: 4.|2 DIAGNO|
|00001f70| 53 54 49 43 53 09 3c 61 | 73 73 65 72 74 2e 68 3e |STICS.<a|ssert.h>|
|00001f80| 0a 20 2a 2f 0a 0a 23 69 | 66 64 65 66 09 5f 41 53 |. */..#i|fdef._AS|
|00001f90| 53 45 52 54 5f 48 0a 0a | 23 75 6e 64 65 66 09 5f |SERT_H..|#undef._|
|00001fa0| 41 53 53 45 52 54 5f 48 | 0a 23 75 6e 64 65 66 09 |ASSERT_H|.#undef.|
|00001fb0| 61 73 73 65 72 74 0a 0a | 23 65 6e 64 69 66 20 2f |assert..|#endif /|
|00001fc0| 2a 20 61 73 73 65 72 74 | 2e 68 09 2a 2f 0a 0a 23 |* assert|.h.*/..#|
|00001fd0| 64 65 66 69 6e 65 09 5f | 41 53 53 45 52 54 5f 48 |define._|ASSERT_H|
|00001fe0| 09 31 0a 23 69 6e 63 6c | 75 64 65 20 3c 66 65 61 |.1.#incl|ude <fea|
|00001ff0| 74 75 72 65 73 2e 68 3e | 0a 0a 2f 2a 20 76 6f 69 |tures.h>|../* voi|
|00002000| 64 20 61 73 73 65 72 74 | 20 28 69 6e 74 20 65 78 |d assert| (int ex|
|00002010| 70 72 65 73 73 69 6f 6e | 29 3b 0a 0a 20 20 20 49 |pression|);.. I|
|00002020| 66 20 4e 44 45 42 55 47 | 20 69 73 20 64 65 66 69 |f NDEBUG| is defi|
|00002030| 6e 65 64 2c 20 64 6f 20 | 6e 6f 74 68 69 6e 67 2e |ned, do |nothing.|
|00002040| 0a 20 20 20 49 66 20 6e | 6f 74 2c 20 61 6e 64 20 |. If n|ot, and |
|00002050| 45 58 50 52 45 53 53 49 | 4f 4e 20 69 73 20 7a 65 |EXPRESSI|ON is ze|
|00002060| 72 6f 2c 20 70 72 69 6e | 74 20 61 6e 20 65 72 72 |ro, prin|t an err|
|00002070| 6f 72 20 6d 65 73 73 61 | 67 65 20 61 6e 64 20 61 |or messa|ge and a|
|00002080| 62 6f 72 74 2e 20 20 2a | 2f 0a 0a 23 69 66 64 65 |bort. *|/..#ifde|
|00002090| 66 09 4e 44 45 42 55 47 | 0a 0a 23 64 65 66 69 6e |f.NDEBUG|..#defin|
|000020a0| 65 09 61 73 73 65 72 74 | 28 65 78 70 72 29 09 09 |e.assert|(expr)..|
|000020b0| 28 28 76 6f 69 64 29 20 | 30 29 0a 0a 2f 2a 20 76 |((void) |0)../* v|
|000020c0| 6f 69 64 20 61 73 73 65 | 72 74 5f 70 65 72 72 6f |oid asse|rt_perro|
|000020d0| 72 20 28 69 6e 74 20 65 | 72 72 6e 75 6d 29 3b 0a |r (int e|rrnum);.|
|000020e0| 0a 20 20 20 49 66 20 4e | 44 45 42 55 47 20 69 73 |. If N|DEBUG is|
|000020f0| 20 64 65 66 69 6e 65 64 | 2c 20 64 6f 20 6e 6f 74 | defined|, do not|
|00002100| 68 69 6e 67 2e 20 20 49 | 66 20 6e 6f 74 2c 20 61 |hing. I|f not, a|
|00002110| 6e 64 20 45 52 52 4e 55 | 4d 20 69 73 20 6e 6f 74 |nd ERRNU|M is not|
|00002120| 20 7a 65 72 6f 2c 20 70 | 72 69 6e 74 20 61 6e 0a | zero, p|rint an.|
|00002130| 20 20 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 | error| message|
|00002140| 20 77 69 74 68 20 74 68 | 65 20 65 72 72 6f 72 20 | with th|e error |
|00002150| 74 65 78 74 20 66 6f 72 | 20 45 52 52 4e 55 4d 20 |text for| ERRNUM |
|00002160| 61 6e 64 20 61 62 6f 72 | 74 2e 0a 20 20 20 28 54 |and abor|t.. (T|
|00002170| 68 69 73 20 69 73 20 61 | 20 47 4e 55 20 65 78 74 |his is a| GNU ext|
|00002180| 65 6e 73 69 6f 6e 2e 29 | 20 2a 2f 0a 0a 23 69 66 |ension.)| */..#if|
|00002190| 64 65 66 09 5f 5f 55 53 | 45 5f 47 4e 55 0a 23 64 |def.__US|E_GNU.#d|
|000021a0| 65 66 69 6e 65 09 61 73 | 73 65 72 74 5f 70 65 72 |efine.as|sert_per|
|000021b0| 72 6f 72 28 65 72 72 6e | 75 6d 29 09 28 28 76 6f |ror(errn|um).((vo|
|000021c0| 69 64 29 20 30 29 0a 23 | 65 6e 64 69 66 0a 0a 23 |id) 0).#|endif..#|
|000021d0| 65 6c 73 65 20 2f 2a 20 | 4e 6f 74 20 4e 44 45 42 |else /* |Not NDEB|
|000021e0| 55 47 2e 20 20 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |UG. */.|.#includ|
|000021f0| 65 20 3c 73 79 73 2f 63 | 64 65 66 73 2e 68 3e 0a |e <sys/c|defs.h>.|
|00002200| 0a 5f 5f 42 45 47 49 4e | 5f 44 45 43 4c 53 0a 0a |.__BEGIN|_DECLS..|
|00002210| 2f 2a 20 54 68 69 73 20 | 70 72 69 6e 74 73 20 61 |/* This |prints a|
|00002220| 6e 20 22 41 73 73 65 72 | 74 69 6f 6e 20 66 61 69 |n "Asser|tion fai|
|00002230| 6c 65 64 22 20 6d 65 73 | 73 61 67 65 20 61 6e 64 |led" mes|sage and|
|00002240| 20 61 62 6f 72 74 73 2e | 20 20 2a 2f 0a 65 78 74 | aborts.| */.ext|
|00002250| 65 72 6e 20 76 6f 69 64 | 20 5f 5f 61 73 73 65 72 |ern void| __asser|
|00002260| 74 5f 66 61 69 6c 20 5f | 5f 50 20 28 28 5f 5f 63 |t_fail _|_P ((__c|
|00002270| 6f 6e 73 74 20 63 68 61 | 72 20 2a 5f 5f 61 73 73 |onst cha|r *__ass|
|00002280| 65 72 74 69 6f 6e 2c 0a | 09 09 09 09 5f 5f 63 6f |ertion,.|....__co|
|00002290| 6e 73 74 20 63 68 61 72 | 20 2a 5f 5f 66 69 6c 65 |nst char| *__file|
|000022a0| 2c 0a 09 09 09 09 75 6e | 73 69 67 6e 65 64 20 69 |,.....un|signed i|
|000022b0| 6e 74 20 5f 5f 6c 69 6e | 65 2c 0a 09 09 09 09 5f |nt __lin|e,....._|
|000022c0| 5f 63 6f 6e 73 74 20 63 | 68 61 72 20 2a 5f 5f 66 |_const c|har *__f|
|000022d0| 75 6e 63 74 69 6f 6e 29 | 29 0a 20 20 20 20 20 5f |unction)|). _|
|000022e0| 5f 61 74 74 72 69 62 75 | 74 65 5f 5f 20 28 28 5f |_attribu|te__ ((_|
|000022f0| 5f 6e 6f 72 65 74 75 72 | 6e 5f 5f 29 29 3b 0a 0a |_noretur|n__));..|
|00002300| 2f 2a 20 4c 69 6b 65 77 | 69 73 65 2c 20 62 75 74 |/* Likew|ise, but|
|00002310| 20 70 72 69 6e 74 73 20 | 74 68 65 20 65 72 72 6f | prints |the erro|
|00002320| 72 20 74 65 78 74 20 66 | 6f 72 20 45 52 52 4e 55 |r text f|or ERRNU|
|00002330| 4d 2e 20 20 2a 2f 0a 65 | 78 74 65 72 6e 20 76 6f |M. */.e|xtern vo|
|00002340| 69 64 20 5f 5f 61 73 73 | 65 72 74 5f 70 65 72 72 |id __ass|ert_perr|
|00002350| 6f 72 5f 66 61 69 6c 20 | 5f 5f 50 20 28 28 69 6e |or_fail |__P ((in|
|00002360| 74 20 5f 5f 65 72 72 6e | 75 6d 2c 0a 09 09 09 09 |t __errn|um,.....|
|00002370| 20 20 20 20 20 20 20 5f | 5f 63 6f 6e 73 74 20 63 | _|_const c|
|00002380| 68 61 72 20 2a 5f 5f 66 | 69 6c 65 2c 0a 09 09 09 |har *__f|ile,....|
|00002390| 09 20 20 20 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |. |unsigned|
|000023a0| 20 69 6e 74 20 5f 5f 6c | 69 6e 65 2c 0a 09 09 09 | int __l|ine,....|
|000023b0| 09 20 20 20 20 20 20 20 | 5f 5f 63 6f 6e 73 74 20 |. |__const |
|000023c0| 63 68 61 72 20 2a 5f 5f | 66 75 6e 63 74 69 6f 6e |char *__|function|
|000023d0| 29 29 0a 20 20 20 20 20 | 5f 5f 61 74 74 72 69 62 |)). |__attrib|
|000023e0| 75 74 65 5f 5f 20 28 28 | 5f 5f 6e 6f 72 65 74 75 |ute__ ((|__noretu|
|000023f0| 72 6e 5f 5f 29 29 3b 0a | 0a 5f 5f 45 4e 44 5f 44 |rn__));.|.__END_D|
|00002400| 45 43 4c 53 0a 0a 23 64 | 65 66 69 6e 65 09 61 73 |ECLS..#d|efine.as|
|00002410| 73 65 72 74 28 65 78 70 | 72 29 09 09 09 09 09 09 |sert(exp|r)......|
|00002420| 09 20 20 20 20 20 20 5c | 0a 20 20 28 28 76 6f 69 |. \|. ((voi|
|00002430| 64 29 20 28 28 65 78 70 | 72 29 20 7c 7c 09 09 09 |d) ((exp|r) ||...|
|00002440| 09 09 09 09 20 20 20 20 | 20 20 5c 0a 09 20 20 20 |.... | \.. |
|00002450| 28 5f 5f 61 73 73 65 72 | 74 5f 66 61 69 6c 20 28 |(__asser|t_fail (|
|00002460| 5f 5f 53 54 52 49 4e 47 | 28 65 78 70 72 29 2c 09 |__STRING|(expr),.|
|00002470| 09 09 09 20 20 20 20 20 | 20 5c 0a 09 09 09 20 20 |... | \.... |
|00002480| 20 5f 5f 46 49 4c 45 5f | 5f 2c 20 5f 5f 4c 49 4e | __FILE_|_, __LIN|
|00002490| 45 5f 5f 2c 20 5f 5f 41 | 53 53 45 52 54 5f 46 55 |E__, __A|SSERT_FU|
|000024a0| 4e 43 54 49 4f 4e 29 2c | 20 30 29 29 29 0a 0a 23 |NCTION),| 0)))..#|
|000024b0| 69 66 64 65 66 09 5f 5f | 55 53 45 5f 47 4e 55 0a |ifdef.__|USE_GNU.|
|000024c0| 23 64 65 66 69 6e 65 20 | 61 73 73 65 72 74 5f 70 |#define |assert_p|
|000024d0| 65 72 72 6f 72 28 65 72 | 72 6e 75 6d 29 09 09 09 |error(er|rnum)...|
|000024e0| 09 09 09 20 20 20 20 20 | 20 5c 0a 20 20 28 28 76 |... | \. ((v|
|000024f0| 6f 69 64 29 20 28 28 65 | 72 72 6e 75 6d 29 20 26 |oid) ((e|rrnum) &|
|00002500| 26 20 28 5f 5f 61 73 73 | 65 72 74 5f 70 65 72 72 |& (__ass|ert_perr|
|00002510| 6f 72 5f 66 61 69 6c 20 | 28 28 65 72 72 6e 75 6d |or_fail |((errnum|
|00002520| 29 2c 09 09 09 20 20 20 | 20 20 20 5c 0a 09 09 09 |),... | \....|
|00002530| 09 09 20 20 20 20 20 20 | 5f 5f 46 49 4c 45 5f 5f |.. |__FILE__|
|00002540| 2c 20 5f 5f 4c 49 4e 45 | 5f 5f 2c 09 20 20 20 20 |, __LINE|__,. |
|00002550| 20 20 5c 0a 09 09 09 09 | 09 20 20 20 20 20 20 5f | \.....|. _|
|00002560| 5f 41 53 53 45 52 54 5f | 46 55 4e 43 54 49 4f 4e |_ASSERT_|FUNCTION|
|00002570| 29 2c 20 30 29 29 29 0a | 23 65 6e 64 69 66 0a 0a |), 0))).|#endif..|
|00002580| 2f 2a 20 56 65 72 73 69 | 6f 6e 20 32 2e 34 20 61 |/* Versi|on 2.4 a|
|00002590| 6e 64 20 6c 61 74 65 72 | 20 6f 66 20 47 43 43 20 |nd later| of GCC |
|000025a0| 64 65 66 69 6e 65 20 61 | 20 6d 61 67 69 63 61 6c |define a| magical|
|000025b0| 20 76 61 72 69 61 62 6c | 65 20 60 5f 5f 50 52 45 | variabl|e `__PRE|
|000025c0| 54 54 59 5f 46 55 4e 43 | 54 49 4f 4e 5f 5f 27 0a |TTY_FUNC|TION__'.|
|000025d0| 20 20 20 77 68 69 63 68 | 20 63 6f 6e 74 61 69 6e | which| contain|
|000025e0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|000025f0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 63 75 72 72 65 |e functi|on curre|
|00002600| 6e 74 6c 79 20 62 65 69 | 6e 67 20 64 65 66 69 6e |ntly bei|ng defin|
|00002610| 65 64 2e 0a 20 20 20 54 | 68 69 73 20 69 73 20 62 |ed.. T|his is b|
|00002620| 72 6f 6b 65 6e 20 69 6e | 20 47 2b 2b 20 62 65 66 |roken in| G++ bef|
|00002630| 6f 72 65 20 76 65 72 73 | 69 6f 6e 20 32 2e 36 2e |ore vers|ion 2.6.|
|00002640| 20 20 2a 2f 0a 23 69 66 | 20 28 21 64 65 66 69 6e | */.#if| (!defin|
|00002650| 65 64 20 28 5f 5f 47 4e | 55 43 5f 5f 29 20 7c 7c |ed (__GN|UC__) |||
|00002660| 20 5f 5f 47 4e 55 43 5f | 5f 20 3c 20 32 20 7c 7c | __GNUC_|_ < 2 |||
|00002670| 20 5c 0a 20 20 20 20 20 | 5f 5f 47 4e 55 43 5f 4d | \. |__GNUC_M|
|00002680| 49 4e 4f 52 5f 5f 20 3c | 20 28 64 65 66 69 6e 65 |INOR__ <| (define|
|00002690| 64 20 28 5f 5f 63 70 6c | 75 73 70 6c 75 73 29 20 |d (__cpl|usplus) |
|000026a0| 3f 20 36 20 3a 20 34 29 | 29 0a 23 64 65 66 69 6e |? 6 : 4)|).#defin|
|000026b0| 65 20 5f 5f 41 53 53 45 | 52 54 5f 46 55 4e 43 54 |e __ASSE|RT_FUNCT|
|000026c0| 49 4f 4e 09 28 28 5f 5f | 63 6f 6e 73 74 20 63 68 |ION.((__|const ch|
|000026d0| 61 72 20 2a 29 20 30 29 | 0a 23 65 6c 73 65 0a 23 |ar *) 0)|.#else.#|
|000026e0| 64 65 66 69 6e 65 20 5f | 5f 41 53 53 45 52 54 5f |define _|_ASSERT_|
|000026f0| 46 55 4e 43 54 49 4f 4e | 09 5f 5f 50 52 45 54 54 |FUNCTION|.__PRETT|
|00002700| 59 5f 46 55 4e 43 54 49 | 4f 4e 5f 5f 0a 23 65 6e |Y_FUNCTI|ON__.#en|
|00002710| 64 69 66 0a 0a 0a 23 65 | 6e 64 69 66 20 2f 2a 20 |dif...#e|ndif /* |
|00002720| 4e 44 45 42 55 47 2e 20 | 20 2a 2f 0a 0a 00 00 00 |NDEBUG. | */.....|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 00 00 00 00 00 |./libc/b|sd/.....|
|00002810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 20 31 36 |.... 407|55 . 16|
|00002870| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00002880| 20 20 20 20 20 20 30 20 | 20 35 37 35 37 30 30 33 | 0 | 5757003|
|00002890| 31 32 33 20 20 31 30 34 | 33 34 00 20 35 00 00 00 |123 104|34. 5...|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 4d 61 6b 65 66 |./libc/b|sd/Makef|
|00002a10| 69 6c 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ile.....|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00002a70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00002a80| 20 20 20 20 35 33 33 20 | 20 35 37 32 31 33 30 33 | 533 | 5721303|
|00002a90| 32 33 35 20 20 31 32 31 | 35 30 00 20 30 00 00 00 |235 121|50. 0...|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 23 0a 23 20 54 68 69 73 | 20 69 73 20 4d 61 6b 65 |#.# This| is Make|
|00002c10| 66 69 6c 65 20 6f 66 20 | 62 73 64 20 6c 69 62 20 |file of |bsd lib |
|00002c20| 66 6f 72 20 4c 69 6e 75 | 78 2e 0a 23 0a 0a 54 4f |for Linu|x..#..TO|
|00002c30| 50 44 49 52 3d 2e 2e 0a | 0a 69 6e 63 6c 75 64 65 |PDIR=...|.include|
|00002c40| 20 24 28 54 4f 50 44 49 | 52 29 2f 4d 61 6b 65 63 | $(TOPDI|R)/Makec|
|00002c50| 6f 6e 66 69 67 0a 69 6e | 63 6c 75 64 65 20 24 28 |onfig.in|clude $(|
|00002c60| 54 4f 50 44 49 52 29 2f | 4d 61 6b 65 72 75 6c 65 |TOPDIR)/|Makerule|
|00002c70| 73 0a 0a 49 4e 43 5f 43 | 46 4c 41 47 53 3d 20 2d |s..INC_C|FLAGS= -|
|00002c80| 49 2e 20 2d 49 24 28 54 | 4f 50 44 49 52 29 0a 0a |I. -I$(T|OPDIR)..|
|00002c90| 44 49 52 53 3a 3d 0a 0a | 53 52 43 53 20 3d 20 73 |DIRS:=..|SRCS = s|
|00002ca0| 65 74 65 6e 76 2e 63 20 | 66 74 69 6d 65 2e 63 20 |etenv.c |ftime.c |
|00002cb0| 70 73 69 67 6e 61 6c 2e | 63 20 6d 6b 73 74 65 6d |psignal.|c mkstem|
|00002cc0| 70 2e 63 20 73 69 67 69 | 6e 74 2e 63 20 72 65 61 |p.c sigi|nt.c rea|
|00002cd0| 6c 70 61 74 68 2e 63 0a | 41 53 4d 53 3d 20 24 28 |lpath.c.|ASMS= $(|
|00002ce0| 53 52 43 53 3a 2e 63 3d | 2e 73 29 0a 4f 42 4a 53 |SRCS:.c=|.s).OBJS|
|00002cf0| 3d 20 24 28 53 52 43 53 | 3a 2e 63 3d 2e 6f 29 0a |= $(SRCS|:.c=.o).|
|00002d00| 41 4c 49 41 53 45 53 3d | 0a 0a 69 6e 63 6c 75 64 |ALIASES=|..includ|
|00002d10| 65 20 24 28 54 4f 50 44 | 49 52 29 2f 4d 61 6b 65 |e $(TOPD|IR)/Make|
|00002d20| 74 61 72 67 65 74 73 0a | 0a 66 6f 6f 3a 0a 09 65 |targets.|.foo:..e|
|00002d30| 63 68 6f 20 24 28 45 4c | 46 5f 53 54 41 54 49 43 |cho $(EL|F_STATIC|
|00002d40| 5f 44 49 52 29 0a 09 65 | 63 68 6f 20 24 28 53 54 |_DIR)..e|cho $(ST|
|00002d50| 41 54 49 43 5f 44 49 52 | 29 0a 0a 00 00 00 00 00 |ATIC_DIR|).......|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 66 74 69 6d 65 |./libc/b|sd/ftime|
|00002e10| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00002e70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00002e80| 20 20 20 31 31 30 37 20 | 20 35 37 32 31 33 30 33 | 1107 | 5721303|
|00002e90| 32 33 35 20 20 31 31 37 | 37 36 00 20 30 00 00 00 |235 117|76. 0...|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 2f 2a 20 20 42 65 7a 65 | 72 6b 65 6c 65 79 20 63 |/* Beze|rkeley c|
|00003010| 6f 6d 70 61 74 69 62 6c | 65 20 66 74 69 6d 65 28 |ompatibl|e ftime(|
|00003020| 33 43 29 2e 0a 20 20 20 | 20 54 68 69 73 20 63 61 |3C).. | This ca|
|00003030| 6c 6c 20 69 73 20 64 65 | 70 72 65 63 61 74 65 64 |ll is de|precated|
|00003040| 2c 20 75 73 65 20 67 65 | 74 74 69 6d 65 6f 66 64 |, use ge|ttimeofd|
|00003050| 61 79 28 32 29 20 69 6e | 20 6e 65 77 20 63 6f 64 |ay(2) in| new cod|
|00003060| 65 2e 0a 20 20 20 20 57 | 65 20 75 73 65 20 74 68 |e.. W|e use th|
|00003070| 65 20 42 65 7a 65 72 6b | 65 6c 65 79 20 67 65 74 |e Bezerk|eley get|
|00003080| 74 69 6d 65 6f 66 64 61 | 79 28 32 29 20 63 61 6c |timeofda|y(2) cal|
|00003090| 6c 20 69 6e 20 74 68 65 | 20 69 6d 70 6c 65 6d 65 |l in the| impleme|
|000030a0| 6e 74 61 74 69 6f 6e 2c | 20 61 73 0a 20 20 20 20 |ntation,| as. |
|000030b0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 77 61 79 20 |there is| no way |
|000030c0| 74 6f 20 67 65 74 20 6d | 69 6c 6c 69 73 65 63 6f |to get m|illiseco|
|000030d0| 6e 64 20 72 65 73 6f 6c | 75 74 69 6f 6e 20 69 6e |nd resol|ution in|
|000030e0| 20 50 4f 53 49 58 20 28 | 6c 6f 73 65 2c 20 6c 6f | POSIX (|lose, lo|
|000030f0| 73 65 29 2e 20 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |se). */.|.#includ|
|00003100| 65 20 3c 73 79 73 2f 74 | 79 70 65 73 2e 68 3e 0a |e <sys/t|ypes.h>.|
|00003110| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 69 |#include| <sys/ti|
|00003120| 6d 65 62 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |meb.h>.#|include |
|00003130| 3c 73 79 73 2f 74 69 6d | 65 2e 68 3e 0a 0a 69 6e |<sys/tim|e.h>..in|
|00003140| 74 0a 66 74 69 6d 65 28 | 73 74 72 75 63 74 20 74 |t.ftime(|struct t|
|00003150| 69 6d 65 62 20 2a 74 62 | 29 0a 7b 0a 20 20 73 74 |imeb *tb|).{. st|
|00003160| 72 75 63 74 20 74 69 6d | 65 76 61 6c 20 74 76 3b |ruct tim|eval tv;|
|00003170| 0a 20 20 73 74 72 75 63 | 74 20 74 69 6d 65 7a 6f |. struc|t timezo|
|00003180| 6e 65 20 74 7a 3b 0a 0a | 20 20 69 66 20 28 5f 5f |ne tz;..| if (__|
|00003190| 67 65 74 74 69 6d 65 6f | 66 64 61 79 28 26 74 76 |gettimeo|fday(&tv|
|000031a0| 2c 20 26 74 7a 29 20 3c | 20 30 20 29 0a 20 20 20 |, &tz) <| 0 ). |
|000031b0| 20 72 65 74 75 72 6e 20 | 2d 31 3b 0a 20 20 74 62 | return |-1;. tb|
|000031c0| 2d 3e 74 69 6d 65 20 3d | 20 74 76 2e 74 76 5f 73 |->time =| tv.tv_s|
|000031d0| 65 63 3b 0a 20 20 74 62 | 2d 3e 6d 69 6c 6c 69 74 |ec;. tb|->millit|
|000031e0| 6d 20 3d 20 74 76 2e 74 | 76 5f 75 73 65 63 2f 31 |m = tv.t|v_usec/1|
|000031f0| 30 30 30 3b 20 0a 20 20 | 74 62 2d 3e 74 69 6d 65 |000; . |tb->time|
|00003200| 7a 6f 6e 65 20 3d 20 74 | 7a 2e 74 7a 5f 6d 69 6e |zone = t|z.tz_min|
|00003210| 75 74 65 73 77 65 73 74 | 3b 0a 20 20 74 62 2d 3e |uteswest|;. tb->|
|00003220| 64 73 74 66 6c 61 67 20 | 3d 20 74 7a 2e 74 7a 5f |dstflag |= tz.tz_|
|00003230| 64 73 74 74 69 6d 65 3b | 0a 20 20 72 65 74 75 72 |dsttime;|. retur|
|00003240| 6e 20 30 3b 0a 7d 0a 00 | 00 00 00 00 00 00 00 00 |n 0;.}..|........|
|00003250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 6d 6b 73 74 65 |./libc/b|sd/mkste|
|00003410| 6d 70 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |mp.c....|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00003470| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00003480| 20 20 20 33 36 31 30 20 | 20 35 37 32 31 33 30 33 | 3610 | 5721303|
|00003490| 32 33 35 20 20 31 32 33 | 35 33 00 20 30 00 00 00 |235 123|53. 0...|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00003610| 20 31 39 39 31 2c 20 31 | 39 39 32 2c 20 31 39 39 | 1991, 1|992, 199|
|00003620| 33 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |3 Free S|oftware |
|00003630| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00003640| 0a 54 68 69 73 20 66 69 | 6c 65 20 69 73 20 70 61 |.This fi|le is pa|
|00003650| 72 74 20 6f 66 20 74 68 | 65 20 47 4e 55 20 43 20 |rt of th|e GNU C |
|00003660| 4c 69 62 72 61 72 79 2e | 0a 0a 54 68 65 20 47 4e |Library.|..The GN|
|00003670| 55 20 43 20 4c 69 62 72 | 61 72 79 20 69 73 20 66 |U C Libr|ary is f|
|00003680| 72 65 65 20 73 6f 66 74 | 77 61 72 65 3b 20 79 6f |ree soft|ware; yo|
|00003690| 75 20 63 61 6e 20 72 65 | 64 69 73 74 72 69 62 75 |u can re|distribu|
|000036a0| 74 65 20 69 74 20 61 6e | 64 2f 6f 72 0a 6d 6f 64 |te it an|d/or.mod|
|000036b0| 69 66 79 20 69 74 20 75 | 6e 64 65 72 20 74 68 65 |ify it u|nder the|
|000036c0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|000036d0| 55 20 4c 69 62 72 61 72 | 79 20 47 65 6e 65 72 61 |U Librar|y Genera|
|000036e0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|000036f0| 20 61 73 0a 70 75 62 6c | 69 73 68 65 64 20 62 79 | as.publ|ished by|
|00003700| 20 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 | the Fre|e Softwa|
|00003710| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00003720| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 32 20 |ither ve|rsion 2 |
|00003730| 6f 66 20 74 68 65 0a 4c | 69 63 65 6e 73 65 2c 20 |of the.L|icense, |
|00003740| 6f 72 20 28 61 74 20 79 | 6f 75 72 20 6f 70 74 69 |or (at y|our opti|
|00003750| 6f 6e 29 20 61 6e 79 20 | 6c 61 74 65 72 20 76 65 |on) any |later ve|
|00003760| 72 73 69 6f 6e 2e 0a 0a | 54 68 65 20 47 4e 55 20 |rsion...|The GNU |
|00003770| 43 20 4c 69 62 72 61 72 | 79 20 69 73 20 64 69 73 |C Librar|y is dis|
|00003780| 74 72 69 62 75 74 65 64 | 20 69 6e 20 74 68 65 20 |tributed| in the |
|00003790| 68 6f 70 65 20 74 68 61 | 74 20 69 74 20 77 69 6c |hope tha|t it wil|
|000037a0| 6c 20 62 65 20 75 73 65 | 66 75 6c 2c 0a 62 75 74 |l be use|ful,.but|
|000037b0| 20 57 49 54 48 4f 55 54 | 20 41 4e 59 20 57 41 52 | WITHOUT| ANY WAR|
|000037c0| 52 41 4e 54 59 3b 20 77 | 69 74 68 6f 75 74 20 65 |RANTY; w|ithout e|
|000037d0| 76 65 6e 20 74 68 65 20 | 69 6d 70 6c 69 65 64 20 |ven the |implied |
|000037e0| 77 61 72 72 61 6e 74 79 | 20 6f 66 0a 4d 45 52 43 |warranty| of.MERC|
|000037f0| 48 41 4e 54 41 42 49 4c | 49 54 59 20 6f 72 20 46 |HANTABIL|ITY or F|
|00003800| 49 54 4e 45 53 53 20 46 | 4f 52 20 41 20 50 41 52 |ITNESS F|OR A PAR|
|00003810| 54 49 43 55 4c 41 52 20 | 50 55 52 50 4f 53 45 2e |TICULAR |PURPOSE.|
|00003820| 20 20 53 65 65 20 74 68 | 65 20 47 4e 55 0a 4c 69 | See th|e GNU.Li|
|00003830| 62 72 61 72 79 20 47 65 | 6e 65 72 61 6c 20 50 75 |brary Ge|neral Pu|
|00003840| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 66 6f 72 |blic Lic|ense for|
|00003850| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0a 0a | more de|tails...|
|00003860| 59 6f 75 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |You shou|ld have |
|00003870| 72 65 63 65 69 76 65 64 | 20 61 20 63 6f 70 79 20 |received| a copy |
|00003880| 6f 66 20 74 68 65 20 47 | 4e 55 20 4c 69 62 72 61 |of the G|NU Libra|
|00003890| 72 79 20 47 65 6e 65 72 | 61 6c 20 50 75 62 6c 69 |ry Gener|al Publi|
|000038a0| 63 0a 4c 69 63 65 6e 73 | 65 20 61 6c 6f 6e 67 20 |c.Licens|e along |
|000038b0| 77 69 74 68 20 74 68 65 | 20 47 4e 55 20 43 20 4c |with the| GNU C L|
|000038c0| 69 62 72 61 72 79 3b 20 | 73 65 65 20 74 68 65 20 |ibrary; |see the |
|000038d0| 66 69 6c 65 20 43 4f 50 | 59 49 4e 47 2e 4c 49 42 |file COP|YING.LIB|
|000038e0| 2e 20 20 49 66 0a 6e 6f | 74 2c 20 77 72 69 74 65 |. If.no|t, write|
|000038f0| 20 74 6f 20 74 68 65 20 | 46 72 65 65 20 53 6f 66 | to the |Free Sof|
|00003900| 74 77 61 72 65 20 46 6f | 75 6e 64 61 74 69 6f 6e |tware Fo|undation|
|00003910| 2c 20 49 6e 63 2e 2c 20 | 36 37 35 20 4d 61 73 73 |, Inc., |675 Mass|
|00003920| 20 41 76 65 2c 0a 43 61 | 6d 62 72 69 64 67 65 2c | Ave,.Ca|mbridge,|
|00003930| 20 4d 41 20 30 32 31 33 | 39 2c 20 55 53 41 2e 20 | MA 0213|9, USA. |
|00003940| 20 2a 2f 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 61 | */..#in|clude <a|
|00003950| 6e 73 69 64 65 63 6c 2e | 68 3e 0a 23 69 6e 63 6c |nsidecl.|h>.#incl|
|00003960| 75 64 65 20 3c 73 74 72 | 69 6e 67 2e 68 3e 0a 23 |ude <str|ing.h>.#|
|00003970| 69 6e 63 6c 75 64 65 20 | 3c 65 72 72 6e 6f 2e 68 |include |<errno.h|
|00003980| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 75 6e 69 73 |>.#inclu|de <unis|
|00003990| 74 64 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |td.h>.#i|nclude <|
|000039a0| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|000039b0| 65 20 3c 66 63 6e 74 6c | 2e 68 3e 0a 23 69 6e 63 |e <fcntl|.h>.#inc|
|000039c0| 6c 75 64 65 20 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude <sy|s/types.|
|000039d0| 68 3e 0a 0a 2f 2a 20 52 | 65 74 75 72 6e 20 61 20 |h>../* R|eturn a |
|000039e0| 66 69 6c 65 20 64 65 73 | 63 72 69 70 74 6f 72 20 |file des|criptor |
|000039f0| 77 69 74 68 20 61 20 75 | 6e 69 71 75 65 20 74 65 |with a u|nique te|
|00003a00| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 20 6e 61 6d |mporary |file nam|
|00003a10| 65 20 66 72 6f 6d 0a 20 | 20 20 54 45 4d 50 4c 41 |e from. | TEMPLA|
|00003a20| 54 45 2e 20 54 68 65 20 | 6c 61 73 74 20 73 69 78 |TE. The |last six|
|00003a30| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 66 20 54 | charact|ers of T|
|00003a40| 45 4d 50 4c 41 54 45 20 | 6d 75 73 74 20 62 65 20 |EMPLATE |must be |
|00003a50| 22 58 58 58 58 58 58 22 | 3b 0a 20 20 20 74 68 65 |"XXXXXX"|;. the|
|00003a60| 79 20 61 72 65 20 72 65 | 70 6c 61 63 65 64 20 77 |y are re|placed w|
|00003a70| 69 74 68 20 61 20 73 74 | 72 69 6e 67 20 74 68 61 |ith a st|ring tha|
|00003a80| 74 20 6d 61 6b 65 73 20 | 74 68 65 20 66 69 6c 65 |t makes |the file|
|00003a90| 6e 61 6d 65 20 75 6e 69 | 71 75 65 2e 0a 20 20 20 |name uni|que.. |
|00003aa0| 52 65 74 75 72 6e 20 2d | 31 20 69 66 20 6e 6f 20 |Return -|1 if no |
|00003ab0| 73 75 69 74 61 62 6c 65 | 20 66 69 6c 65 20 63 6f |suitable| file co|
|00003ac0| 75 6c 64 20 62 65 20 63 | 72 65 61 74 65 64 2e 20 |uld be c|reated. |
|00003ad0| 2a 2f 0a 69 6e 74 0a 44 | 45 46 55 4e 28 6d 6b 73 |*/.int.D|EFUN(mks|
|00003ae0| 74 65 6d 70 2c 20 28 74 | 65 6d 70 6c 61 74 65 29 |temp, (t|emplate)|
|00003af0| 2c 20 63 68 61 72 20 2a | 74 65 6d 70 6c 61 74 65 |, char *|template|
|00003b00| 29 0a 7b 0a 20 20 73 74 | 61 74 69 63 20 43 4f 4e |).{. st|atic CON|
|00003b10| 53 54 20 63 68 61 72 20 | 6c 65 74 74 65 72 73 5b |ST char |letters[|
|00003b20| 5d 0a 20 20 20 20 3d 20 | 22 61 62 63 64 65 66 67 |]. = |"abcdefg|
|00003b30| 68 69 6a 6b 6c 6d 6e 6f | 70 71 72 73 74 75 76 77 |hijklmno|pqrstuvw|
|00003b40| 78 79 7a 41 42 43 44 45 | 46 47 48 49 4a 4b 4c 4d |xyzABCDE|FGHIJKLM|
|00003b50| 4e 4f 50 51 52 53 54 55 | 56 57 58 59 5a 30 31 32 |NOPQRSTU|VWXYZ012|
|00003b60| 33 34 35 36 37 38 39 22 | 3b 0a 20 20 43 4f 4e 53 |3456789"|;. CONS|
|00003b70| 54 20 63 68 61 72 20 2a | 70 74 72 20 3d 20 6c 65 |T char *|ptr = le|
|00003b80| 74 74 65 72 73 3b 0a 20 | 20 70 69 64 5f 74 20 70 |tters;. | pid_t p|
|00003b90| 69 64 20 3d 20 5f 5f 67 | 65 74 70 69 64 28 29 3b |id = __g|etpid();|
|00003ba0| 0a 20 20 69 6e 74 20 66 | 64 3b 0a 20 20 73 69 7a |. int f|d;. siz|
|00003bb0| 65 5f 74 20 6c 65 6e 3b | 0a 0a 20 20 6c 65 6e 20 |e_t len;|.. len |
|00003bc0| 3d 20 73 74 72 6c 65 6e | 28 74 65 6d 70 6c 61 74 |= strlen|(templat|
|00003bd0| 65 29 3b 0a 20 20 69 66 | 20 28 6c 65 6e 20 3c 20 |e);. if| (len < |
|00003be0| 36 20 7c 7c 20 73 74 72 | 63 6d 70 28 26 74 65 6d |6 || str|cmp(&tem|
|00003bf0| 70 6c 61 74 65 5b 6c 65 | 6e 20 2d 20 36 5d 2c 20 |plate[le|n - 6], |
|00003c00| 22 58 58 58 58 58 58 22 | 29 29 0a 20 20 20 20 7b |"XXXXXX"|)). {|
|00003c10| 0a 20 20 20 20 20 20 65 | 72 72 6e 6f 20 3d 20 45 |. e|rrno = E|
|00003c20| 49 4e 56 41 4c 3b 0a 20 | 20 20 20 20 20 72 65 74 |INVAL;. | ret|
|00003c30| 75 72 6e 20 2d 31 3b 0a | 20 20 20 20 7d 0a 0a 20 |urn -1;.| }.. |
|00003c40| 20 69 66 20 28 73 70 72 | 69 6e 74 66 20 28 26 74 | if (spr|intf (&t|
|00003c50| 65 6d 70 6c 61 74 65 5b | 6c 65 6e 20 2d 20 35 5d |emplate[|len - 5]|
|00003c60| 2c 20 22 25 2e 35 75 22 | 2c 0a 20 20 09 20 28 75 |, "%.5u"|,. . (u|
|00003c70| 6e 73 69 67 6e 65 64 20 | 69 6e 74 29 20 70 69 64 |nsigned |int) pid|
|00003c80| 20 25 20 31 30 30 30 30 | 30 29 20 21 3d 20 35 29 | % 10000|0) != 5)|
|00003c90| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 2d 31 3b 0a |. ret|urn -1;.|
|00003ca0| 0a 20 20 77 68 69 6c 65 | 20 28 2a 70 74 72 20 21 |. while| (*ptr !|
|00003cb0| 3d 20 27 5c 30 27 29 20 | 7b 0a 20 20 20 20 74 65 |= '\0') |{. te|
|00003cc0| 6d 70 6c 61 74 65 5b 6c | 65 6e 20 2d 20 36 5d 20 |mplate[l|en - 6] |
|00003cd0| 3d 20 2a 70 74 72 2b 2b | 3b 0a 20 20 20 20 2f 2a |= *ptr++|;. /*|
|00003ce0| 20 4d 61 6b 65 20 73 75 | 72 65 20 60 74 65 6d 70 | Make su|re `temp|
|00003cf0| 6c 61 74 65 27 20 64 6f | 65 73 6e 27 74 20 65 78 |late' do|esn't ex|
|00003d00| 69 73 74 2e 20 2a 2f 0a | 20 20 20 20 66 64 20 3d |ist. */.| fd =|
|00003d10| 20 5f 5f 6f 70 65 6e 20 | 28 74 65 6d 70 6c 61 74 | __open |(templat|
|00003d20| 65 2c 20 4f 5f 52 44 57 | 52 20 7c 20 4f 5f 43 52 |e, O_RDW|R | O_CR|
|00003d30| 45 41 54 20 7c 20 4f 5f | 45 58 43 4c 2c 20 30 36 |EAT | O_|EXCL, 06|
|00003d40| 36 36 29 3b 0a 20 20 20 | 20 69 66 20 28 66 64 20 |66);. | if (fd |
|00003d50| 3e 3d 20 30 20 7c 7c 20 | 65 72 72 6e 6f 20 21 3d |>= 0 || |errno !=|
|00003d60| 20 45 45 58 49 53 54 29 | 20 72 65 74 75 72 6e 20 | EEXIST)| return |
|00003d70| 66 64 3b 0a 20 20 7d 0a | 0a 20 20 72 65 74 75 72 |fd;. }.|. retur|
|00003d80| 6e 20 2d 31 3b 0a 7d 0a | 00 00 00 00 00 00 00 00 |n -1;.}.|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 70 73 69 67 6e |./libc/b|sd/psign|
|00003e10| 61 6c 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |al.c....|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00003e70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00003e80| 20 20 20 33 37 32 37 20 | 20 35 37 32 31 33 30 33 | 3727 | 5721303|
|00003e90| 32 33 35 20 20 31 32 33 | 34 31 00 20 30 00 00 00 |235 123|41. 0...|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00004010| 20 31 39 39 31 2c 20 31 | 39 39 32 20 46 72 65 65 | 1991, 1|992 Free|
|00004020| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00004030| 74 69 6f 6e 2c 20 49 6e | 63 2e 0a 54 68 69 73 20 |tion, In|c..This |
|00004040| 66 69 6c 65 20 69 73 20 | 70 61 72 74 20 6f 66 20 |file is |part of |
|00004050| 74 68 65 20 47 4e 55 20 | 43 20 4c 69 62 72 61 72 |the GNU |C Librar|
|00004060| 79 2e 0a 0a 54 68 65 20 | 47 4e 55 20 43 20 4c 69 |y...The |GNU C Li|
|00004070| 62 72 61 72 79 20 69 73 | 20 66 72 65 65 20 73 6f |brary is| free so|
|00004080| 66 74 77 61 72 65 3b 20 | 79 6f 75 20 63 61 6e 20 |ftware; |you can |
|00004090| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 69 74 20 |redistri|bute it |
|000040a0| 61 6e 64 2f 6f 72 0a 6d | 6f 64 69 66 79 20 69 74 |and/or.m|odify it|
|000040b0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|000040c0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 4c 69 62 72 | of the |GNU Libr|
|000040d0| 61 72 79 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |ary Gene|ral Publ|
|000040e0| 69 63 20 4c 69 63 65 6e | 73 65 20 61 73 0a 70 75 |ic Licen|se as.pu|
|000040f0| 62 6c 69 73 68 65 64 20 | 62 79 20 74 68 65 20 46 |blished |by the F|
|00004100| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|00004110| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|00004120| 76 65 72 73 69 6f 6e 20 | 32 20 6f 66 20 74 68 65 |version |2 of the|
|00004130| 0a 4c 69 63 65 6e 73 65 | 2c 20 6f 72 20 28 61 74 |.License|, or (at|
|00004140| 20 79 6f 75 72 20 6f 70 | 74 69 6f 6e 29 20 61 6e | your op|tion) an|
|00004150| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|00004160| 0a 0a 54 68 65 20 47 4e | 55 20 43 20 4c 69 62 72 |..The GN|U C Libr|
|00004170| 61 72 79 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ary is d|istribut|
|00004180| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|00004190| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|000041a0| 73 65 66 75 6c 2c 0a 62 | 75 74 20 57 49 54 48 4f |seful,.b|ut WITHO|
|000041b0| 55 54 20 41 4e 59 20 57 | 41 52 52 41 4e 54 59 3b |UT ANY W|ARRANTY;|
|000041c0| 20 77 69 74 68 6f 75 74 | 20 65 76 65 6e 20 74 68 | without| even th|
|000041d0| 65 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |e implie|d warran|
|000041e0| 74 79 20 6f 66 0a 4d 45 | 52 43 48 41 4e 54 41 42 |ty of.ME|RCHANTAB|
|000041f0| 49 4c 49 54 59 20 6f 72 | 20 46 49 54 4e 45 53 53 |ILITY or| FITNESS|
|00004200| 20 46 4f 52 20 41 20 50 | 41 52 54 49 43 55 4c 41 | FOR A P|ARTICULA|
|00004210| 52 20 50 55 52 50 4f 53 | 45 2e 20 20 53 65 65 20 |R PURPOS|E. See |
|00004220| 74 68 65 20 47 4e 55 0a | 4c 69 62 72 61 72 79 20 |the GNU.|Library |
|00004230| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00004240| 69 63 65 6e 73 65 20 66 | 6f 72 20 6d 6f 72 65 20 |icense f|or more |
|00004250| 64 65 74 61 69 6c 73 2e | 0a 0a 59 6f 75 20 73 68 |details.|..You sh|
|00004260| 6f 75 6c 64 20 68 61 76 | 65 20 72 65 63 65 69 76 |ould hav|e receiv|
|00004270| 65 64 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ed a cop|y of the|
|00004280| 20 47 4e 55 20 4c 69 62 | 72 61 72 79 20 47 65 6e | GNU Lib|rary Gen|
|00004290| 65 72 61 6c 20 50 75 62 | 6c 69 63 0a 4c 69 63 65 |eral Pub|lic.Lice|
|000042a0| 6e 73 65 20 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |nse alon|g with t|
|000042b0| 68 65 20 47 4e 55 20 43 | 20 4c 69 62 72 61 72 79 |he GNU C| Library|
|000042c0| 3b 20 73 65 65 20 74 68 | 65 20 66 69 6c 65 20 43 |; see th|e file C|
|000042d0| 4f 50 59 49 4e 47 2e 4c | 49 42 2e 20 20 49 66 0a |OPYING.L|IB. If.|
|000042e0| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |not, wri|te to th|
|000042f0| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00004300| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00004310| 2c 20 36 37 35 20 4d 61 | 73 73 20 41 76 65 2c 0a |, 675 Ma|ss Ave,.|
|00004320| 43 61 6d 62 72 69 64 67 | 65 2c 20 4d 41 20 30 32 |Cambridg|e, MA 02|
|00004330| 31 33 39 2c 20 55 53 41 | 2e 20 20 2a 2f 0a 0a 23 |139, USA|. */..#|
|00004340| 69 6e 63 6c 75 64 65 20 | 3c 61 6e 73 69 64 65 63 |include |<ansidec|
|00004350| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|00004360| 74 64 69 6f 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |tdio.h>.|#include|
|00004370| 20 3c 73 69 67 6e 61 6c | 2e 68 3e 0a 0a 0a 23 69 | <signal|.h>...#i|
|00004380| 66 20 21 64 65 66 69 6e | 65 64 28 48 41 56 45 5f |f !defin|ed(HAVE_|
|00004390| 47 4e 55 5f 4c 44 29 20 | 26 26 20 21 64 65 66 69 |GNU_LD) |&& !defi|
|000043a0| 6e 65 64 20 28 5f 5f 45 | 4c 46 5f 5f 29 0a 23 64 |ned (__E|LF__).#d|
|000043b0| 65 66 69 6e 65 09 5f 73 | 79 73 5f 73 69 67 6c 69 |efine._s|ys_sigli|
|000043c0| 73 74 09 73 79 73 5f 73 | 69 67 6c 69 73 74 0a 23 |st.sys_s|iglist.#|
|000043d0| 65 6e 64 69 66 0a 0a 23 | 69 66 20 4e 4c 53 0a 23 |endif..#|if NLS.#|
|000043e0| 69 6e 63 6c 75 64 65 20 | 22 6e 6c 5f 74 79 70 65 |include |"nl_type|
|000043f0| 73 2e 68 22 0a 23 65 6e | 64 69 66 0a 0a 23 69 66 |s.h".#en|dif..#if|
|00004400| 6e 64 65 66 20 6c 69 6e | 75 78 0a 2f 2a 20 44 65 |ndef lin|ux./* De|
|00004410| 66 69 6e 65 64 20 69 6e | 20 73 79 73 5f 73 69 67 |fined in| sys_sig|
|00004420| 6c 69 73 74 2e 63 2e 20 | 20 2a 2f 0a 65 78 74 65 |list.c. | */.exte|
|00004430| 72 6e 20 43 4f 4e 53 54 | 20 63 68 61 72 20 2a 43 |rn CONST| char *C|
|00004440| 4f 4e 53 54 20 5f 73 79 | 73 5f 73 69 67 6c 69 73 |ONST _sy|s_siglis|
|00004450| 74 5b 5d 3b 0a 23 65 6e | 64 69 66 0a 0a 2f 2a 20 |t[];.#en|dif../* |
|00004460| 50 72 69 6e 74 20 6f 75 | 74 20 6f 6e 20 73 74 64 |Print ou|t on std|
|00004470| 65 72 72 20 61 20 6c 69 | 6e 65 20 63 6f 6e 73 69 |err a li|ne consi|
|00004480| 73 74 69 6e 67 20 6f 66 | 20 74 68 65 20 74 65 73 |sting of| the tes|
|00004490| 74 20 69 6e 20 53 2c 20 | 61 20 63 6f 6c 6f 6e 2c |t in S, |a colon,|
|000044a0| 20 61 20 73 70 61 63 65 | 2c 0a 20 20 20 61 20 6d | a space|,. a m|
|000044b0| 65 73 73 61 67 65 20 64 | 65 73 63 72 69 62 69 6e |essage d|escribin|
|000044c0| 67 20 74 68 65 20 6d 65 | 61 6e 69 6e 67 20 6f 66 |g the me|aning of|
|000044d0| 20 74 68 65 20 73 69 67 | 6e 61 6c 20 6e 75 6d 62 | the sig|nal numb|
|000044e0| 65 72 20 53 49 47 20 61 | 6e 64 20 61 20 6e 65 77 |er SIG a|nd a new|
|000044f0| 6c 69 6e 65 2e 0a 20 20 | 20 49 66 20 53 20 69 73 |line.. | If S is|
|00004500| 20 4e 55 4c 4c 20 6f 72 | 20 22 22 2c 20 74 68 65 | NULL or| "", the|
|00004510| 20 63 6f 6c 6f 6e 20 61 | 6e 64 20 73 70 61 63 65 | colon a|nd space|
|00004520| 20 61 72 65 20 6f 6d 69 | 74 74 65 64 2e 20 20 2a | are omi|tted. *|
|00004530| 2f 0a 76 6f 69 64 0a 44 | 45 46 55 4e 28 70 73 69 |/.void.D|EFUN(psi|
|00004540| 67 6e 61 6c 2c 20 28 73 | 69 67 2c 20 73 29 2c 20 |gnal, (s|ig, s), |
|00004550| 69 6e 74 20 73 69 67 20 | 41 4e 44 20 72 65 67 69 |int sig |AND regi|
|00004560| 73 74 65 72 20 43 4f 4e | 53 54 20 63 68 61 72 20 |ster CON|ST char |
|00004570| 2a 73 29 0a 7b 0a 20 20 | 43 4f 4e 53 54 20 63 68 |*s).{. |CONST ch|
|00004580| 61 72 20 2a 63 6f 6c 6f | 6e 3b 0a 0a 23 69 66 20 |ar *colo|n;..#if |
|00004590| 4e 4c 53 0a 20 20 6c 69 | 62 63 5f 6e 6c 73 5f 69 |NLS. li|bc_nls_i|
|000045a0| 6e 69 74 28 29 3b 0a 23 | 65 6e 64 69 66 0a 0a 20 |nit();.#|endif.. |
|000045b0| 20 69 66 20 28 73 20 3d | 3d 20 4e 55 4c 4c 20 7c | if (s =|= NULL ||
|000045c0| 7c 20 73 20 3d 3d 20 27 | 5c 30 27 29 0a 20 20 20 || s == '|\0'). |
|000045d0| 20 73 20 3d 20 63 6f 6c | 6f 6e 20 3d 20 22 22 3b | s = col|on = "";|
|000045e0| 0a 20 20 65 6c 73 65 0a | 20 20 20 20 63 6f 6c 6f |. else.| colo|
|000045f0| 6e 20 3d 20 22 3a 20 22 | 3b 0a 0a 20 20 69 66 20 |n = ": "|;.. if |
|00004600| 28 73 69 67 20 3e 3d 20 | 30 20 26 26 20 73 69 67 |(sig >= |0 && sig|
|00004610| 20 3c 20 4e 53 49 47 29 | 0a 23 69 66 20 4e 4c 53 | < NSIG)|.#if NLS|
|00004620| 0a 20 20 20 20 28 76 6f | 69 64 29 20 66 70 72 69 |. (vo|id) fpri|
|00004630| 6e 74 66 28 73 74 64 65 | 72 72 2c 20 22 25 73 25 |ntf(stde|rr, "%s%|
|00004640| 73 25 73 5c 6e 22 2c 20 | 73 2c 20 63 6f 6c 6f 6e |s%s\n", |s, colon|
|00004650| 2c 0a 09 20 20 20 63 61 | 74 67 65 74 73 28 5f 6c |,.. ca|tgets(_l|
|00004660| 69 62 63 5f 63 61 74 2c | 20 53 69 67 6e 61 6c 4c |ibc_cat,| SignalL|
|00004670| 69 73 74 53 65 74 2c 20 | 73 69 67 20 2b 31 2c 20 |istSet, |sig +1, |
|00004680| 28 63 68 61 72 20 2a 29 | 20 5f 73 79 73 5f 73 69 |(char *)| _sys_si|
|00004690| 67 6c 69 73 74 5b 73 69 | 67 5d 29 29 3b 0a 23 65 |glist[si|g]));.#e|
|000046a0| 6c 73 65 0a 20 20 20 20 | 28 76 6f 69 64 29 20 66 |lse. |(void) f|
|000046b0| 70 72 69 6e 74 66 28 73 | 74 64 65 72 72 2c 20 22 |printf(s|tderr, "|
|000046c0| 25 73 25 73 25 73 5c 6e | 22 2c 20 73 2c 20 63 6f |%s%s%s\n|", s, co|
|000046d0| 6c 6f 6e 2c 20 5f 73 79 | 73 5f 73 69 67 6c 69 73 |lon, _sy|s_siglis|
|000046e0| 74 5b 73 69 67 5d 29 3b | 0a 23 65 6e 64 69 66 0a |t[sig]);|.#endif.|
|000046f0| 20 20 65 6c 73 65 0a 23 | 69 66 20 4e 4c 53 0a 20 | else.#|if NLS. |
|00004700| 20 20 20 28 76 6f 69 64 | 29 20 66 70 72 69 6e 74 | (void|) fprint|
|00004710| 66 28 73 74 64 65 72 72 | 2c 20 22 25 73 25 73 25 |f(stderr|, "%s%s%|
|00004720| 73 20 25 64 5c 6e 22 2c | 20 73 2c 20 63 6f 6c 6f |s %d\n",| s, colo|
|00004730| 6e 2c 0a 09 09 20 20 20 | 63 61 74 67 65 74 73 28 |n,... |catgets(|
|00004740| 5f 6c 69 62 63 5f 63 61 | 74 2c 20 53 69 67 6e 61 |_libc_ca|t, Signa|
|00004750| 6c 4c 69 73 74 53 65 74 | 2c 20 31 2c 20 20 22 55 |lListSet|, 1, "U|
|00004760| 6e 6b 6e 6f 77 6e 20 73 | 69 67 6e 61 6c 22 29 2c |nknown s|ignal"),|
|00004770| 0a 09 09 20 20 20 73 69 | 67 29 3b 0a 23 65 6c 73 |... si|g);.#els|
|00004780| 65 0a 20 20 20 20 28 76 | 6f 69 64 29 20 66 70 72 |e. (v|oid) fpr|
|00004790| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|000047a0| 25 73 25 73 20 25 64 5c | 6e 22 2c 20 73 2c 20 63 |%s%s %d\|n", s, c|
|000047b0| 6f 6c 6f 6e 2c 20 22 55 | 6e 6b 6e 6f 77 6e 20 73 |olon, "U|nknown s|
|000047c0| 69 67 6e 61 6c 22 2c 20 | 73 69 67 29 3b 0a 23 65 |ignal", |sig);.#e|
|000047d0| 6e 64 69 66 0a 7d 0a 00 | 00 00 00 00 00 00 00 00 |ndif.}..|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 72 65 61 6c 70 |./libc/b|sd/realp|
|00004810| 61 74 68 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ath.c...|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00004870| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00004880| 20 20 20 37 35 35 36 20 | 20 35 37 32 31 33 30 33 | 7556 | 5721303|
|00004890| 32 33 35 20 20 31 32 35 | 31 30 00 20 30 00 00 00 |235 125|10. 0...|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 2f 2a 0a 20 2a 20 72 65 | 61 6c 70 61 74 68 2e 63 |/*. * re|alpath.c|
|00004a10| 20 2d 2d 20 63 61 6e 6f | 6e 69 63 61 6c 69 7a 65 | -- cano|nicalize|
|00004a20| 20 70 61 74 68 6e 61 6d | 65 20 62 79 20 72 65 6d | pathnam|e by rem|
|00004a30| 6f 76 69 6e 67 20 73 79 | 6d 6c 69 6e 6b 73 0a 20 |oving sy|mlinks. |
|00004a40| 2a 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |* Copyri|ght (C) |
|00004a50| 31 39 39 33 20 52 69 63 | 6b 20 53 6c 61 64 6b 65 |1993 Ric|k Sladke|
|00004a60| 79 20 3c 6a 72 73 40 77 | 6f 72 6c 64 2e 73 74 64 |y <jrs@w|orld.std|
|00004a70| 2e 63 6f 6d 3e 0a 20 2a | 0a 20 2a 20 54 68 69 73 |.com>. *|. * This|
|00004a80| 20 70 72 6f 67 72 61 6d | 20 69 73 20 66 72 65 65 | program| is free|
|00004a90| 20 73 6f 66 74 77 61 72 | 65 3b 20 79 6f 75 20 63 | softwar|e; you c|
|00004aa0| 61 6e 20 72 65 64 69 73 | 74 72 69 62 75 74 65 20 |an redis|tribute |
|00004ab0| 69 74 20 61 6e 64 2f 6f | 72 20 6d 6f 64 69 66 79 |it and/o|r modify|
|00004ac0| 0a 20 2a 20 69 74 20 75 | 6e 64 65 72 20 74 68 65 |. * it u|nder the|
|00004ad0| 20 74 65 72 6d 73 20 6f | 66 20 74 68 65 20 47 4e | terms o|f the GN|
|00004ae0| 55 20 4c 69 62 72 61 72 | 79 20 50 75 62 6c 69 63 |U Librar|y Public|
|00004af0| 20 4c 69 63 65 6e 73 65 | 20 61 73 20 70 75 62 6c | License| as publ|
|00004b00| 69 73 68 65 64 20 62 79 | 0a 20 2a 20 74 68 65 20 |ished by|. * the |
|00004b10| 46 72 65 65 20 53 6f 66 | 74 77 61 72 65 20 46 6f |Free Sof|tware Fo|
|00004b20| 75 6e 64 61 74 69 6f 6e | 3b 20 65 69 74 68 65 72 |undation|; either|
|00004b30| 20 76 65 72 73 69 6f 6e | 20 32 2c 20 6f 72 20 28 | version| 2, or (|
|00004b40| 61 74 20 79 6f 75 72 20 | 6f 70 74 69 6f 6e 29 0a |at your |option).|
|00004b50| 20 2a 20 61 6e 79 20 6c | 61 74 65 72 20 76 65 72 | * any l|ater ver|
|00004b60| 73 69 6f 6e 2e 0a 20 2a | 0a 20 2a 20 54 68 69 73 |sion.. *|. * This|
|00004b70| 20 70 72 6f 67 72 61 6d | 20 69 73 20 64 69 73 74 | program| is dist|
|00004b80| 72 69 62 75 74 65 64 20 | 69 6e 20 74 68 65 20 68 |ributed |in the h|
|00004b90| 6f 70 65 20 74 68 61 74 | 20 69 74 20 77 69 6c 6c |ope that| it will|
|00004ba0| 20 62 65 20 75 73 65 66 | 75 6c 2c 0a 20 2a 20 62 | be usef|ul,. * b|
|00004bb0| 75 74 20 57 49 54 48 4f | 55 54 20 41 4e 59 20 57 |ut WITHO|UT ANY W|
|00004bc0| 41 52 52 41 4e 54 59 3b | 20 77 69 74 68 6f 75 74 |ARRANTY;| without|
|00004bd0| 20 65 76 65 6e 20 74 68 | 65 20 69 6d 70 6c 69 65 | even th|e implie|
|00004be0| 64 20 77 61 72 72 61 6e | 74 79 20 6f 66 0a 20 2a |d warran|ty of. *|
|00004bf0| 20 4d 45 52 43 48 41 4e | 54 41 42 49 4c 49 54 59 | MERCHAN|TABILITY|
|00004c00| 20 6f 72 20 46 49 54 4e | 45 53 53 20 46 4f 52 20 | or FITN|ESS FOR |
|00004c10| 41 20 50 41 52 54 49 43 | 55 4c 41 52 20 50 55 52 |A PARTIC|ULAR PUR|
|00004c20| 50 4f 53 45 2e 20 20 53 | 65 65 20 74 68 65 0a 20 |POSE. S|ee the. |
|00004c30| 2a 20 47 4e 55 20 4c 69 | 62 72 61 72 79 20 50 75 |* GNU Li|brary Pu|
|00004c40| 62 6c 69 63 20 4c 69 63 | 65 6e 73 65 20 66 6f 72 |blic Lic|ense for|
|00004c50| 20 6d 6f 72 65 20 64 65 | 74 61 69 6c 73 2e 0a 20 | more de|tails.. |
|00004c60| 2a 2f 0a 0a 23 69 66 64 | 65 66 20 48 41 56 45 5f |*/..#ifd|ef HAVE_|
|00004c70| 43 4f 4e 46 49 47 5f 48 | 0a 23 69 6e 63 6c 75 64 |CONFIG_H|.#includ|
|00004c80| 65 20 3c 63 6f 6e 66 69 | 67 2e 68 3e 0a 23 65 6e |e <confi|g.h>.#en|
|00004c90| 64 69 66 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |dif..#in|clude <s|
|00004ca0| 79 73 2f 74 79 70 65 73 | 2e 68 3e 0a 23 69 66 20 |ys/types|.h>.#if |
|00004cb0| 64 65 66 69 6e 65 64 28 | 48 41 56 45 5f 55 4e 49 |defined(|HAVE_UNI|
|00004cc0| 53 54 44 5f 48 29 20 7c | 7c 20 64 65 66 69 6e 65 |STD_H) ||| define|
|00004cd0| 64 28 53 54 44 43 5f 48 | 45 41 44 45 52 53 29 0a |d(STDC_H|EADERS).|
|00004ce0| 23 69 6e 63 6c 75 64 65 | 20 3c 75 6e 69 73 74 64 |#include| <unistd|
|00004cf0| 2e 68 3e 0a 23 65 6e 64 | 69 66 0a 23 69 6e 63 6c |.h>.#end|if.#incl|
|00004d00| 75 64 65 20 3c 73 74 64 | 69 6f 2e 68 3e 0a 23 69 |ude <std|io.h>.#i|
|00004d10| 66 64 65 66 20 48 41 56 | 45 5f 53 54 52 49 4e 47 |fdef HAV|E_STRING|
|00004d20| 5f 48 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |_H.#incl|ude <str|
|00004d30| 69 6e 67 2e 68 3e 0a 23 | 65 6c 73 65 0a 23 69 6e |ing.h>.#|else.#in|
|00004d40| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 73 2e 68 |clude <s|trings.h|
|00004d50| 3e 0a 23 65 6e 64 69 66 | 0a 23 69 66 64 65 66 20 |>.#endif|.#ifdef |
|00004d60| 5f 50 4f 53 49 58 5f 56 | 45 52 53 49 4f 4e 0a 23 |_POSIX_V|ERSION.#|
|00004d70| 69 6e 63 6c 75 64 65 20 | 3c 6c 69 6d 69 74 73 2e |include |<limits.|
|00004d80| 68 3e 09 09 09 2f 2a 20 | 66 6f 72 20 50 41 54 48 |h>.../* |for PATH|
|00004d90| 5f 4d 41 58 20 2a 2f 0a | 23 65 6c 73 65 0a 23 69 |_MAX */.|#else.#i|
|00004da0| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 70 61 72 61 |nclude <|sys/para|
|00004db0| 6d 2e 68 3e 09 09 09 2f | 2a 20 66 6f 72 20 4d 41 |m.h>.../|* for MA|
|00004dc0| 58 50 41 54 48 4c 45 4e | 20 2a 2f 0a 23 65 6e 64 |XPATHLEN| */.#end|
|00004dd0| 69 66 0a 23 69 6e 63 6c | 75 64 65 20 3c 65 72 72 |if.#incl|ude <err|
|00004de0| 6e 6f 2e 68 3e 0a 23 69 | 66 6e 64 65 66 20 53 54 |no.h>.#i|fndef ST|
|00004df0| 44 43 5f 48 45 41 44 45 | 52 53 0a 65 78 74 65 72 |DC_HEADE|RS.exter|
|00004e00| 6e 20 69 6e 74 20 65 72 | 72 6e 6f 3b 0a 23 65 6e |n int er|rno;.#en|
|00004e10| 64 69 66 0a 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |dif..#in|clude <s|
|00004e20| 79 73 2f 73 74 61 74 2e | 68 3e 09 09 09 2f 2a 20 |ys/stat.|h>.../* |
|00004e30| 66 6f 72 20 53 5f 49 46 | 4c 4e 4b 20 2a 2f 0a 0a |for S_IF|LNK */..|
|00004e40| 23 69 66 6e 64 65 66 20 | 50 41 54 48 5f 4d 41 58 |#ifndef |PATH_MAX|
|00004e50| 0a 23 69 66 64 65 66 20 | 5f 50 4f 53 49 58 5f 56 |.#ifdef |_POSIX_V|
|00004e60| 45 52 53 49 4f 4e 0a 23 | 64 65 66 69 6e 65 20 50 |ERSION.#|define P|
|00004e70| 41 54 48 5f 4d 41 58 20 | 5f 50 4f 53 49 58 5f 50 |ATH_MAX |_POSIX_P|
|00004e80| 41 54 48 5f 4d 41 58 0a | 23 65 6c 73 65 0a 23 69 |ATH_MAX.|#else.#i|
|00004e90| 66 64 65 66 20 4d 41 58 | 50 41 54 48 4c 45 4e 0a |fdef MAX|PATHLEN.|
|00004ea0| 23 64 65 66 69 6e 65 20 | 50 41 54 48 5f 4d 41 58 |#define |PATH_MAX|
|00004eb0| 20 4d 41 58 50 41 54 48 | 4c 45 4e 0a 23 65 6c 73 | MAXPATH|LEN.#els|
|00004ec0| 65 0a 23 64 65 66 69 6e | 65 20 50 41 54 48 5f 4d |e.#defin|e PATH_M|
|00004ed0| 41 58 20 31 30 32 34 0a | 23 65 6e 64 69 66 0a 23 |AX 1024.|#endif.#|
|00004ee0| 65 6e 64 69 66 0a 23 65 | 6e 64 69 66 0a 0a 23 64 |endif.#e|ndif..#d|
|00004ef0| 65 66 69 6e 65 20 4d 41 | 58 5f 52 45 41 44 4c 49 |efine MA|X_READLI|
|00004f00| 4e 4b 53 20 33 32 0a 0a | 23 69 66 64 65 66 20 5f |NKS 32..|#ifdef _|
|00004f10| 5f 53 54 44 43 5f 5f 0a | 63 68 61 72 20 2a 72 65 |_STDC__.|char *re|
|00004f20| 61 6c 70 61 74 68 28 63 | 6f 6e 73 74 20 63 68 61 |alpath(c|onst cha|
|00004f30| 72 20 2a 70 61 74 68 2c | 20 63 68 61 72 20 72 65 |r *path,| char re|
|00004f40| 73 6f 6c 76 65 64 5f 70 | 61 74 68 20 5b 5d 29 0a |solved_p|ath []).|
|00004f50| 23 65 6c 73 65 0a 63 68 | 61 72 20 2a 72 65 61 6c |#else.ch|ar *real|
|00004f60| 70 61 74 68 28 70 61 74 | 68 2c 20 72 65 73 6f 6c |path(pat|h, resol|
|00004f70| 76 65 64 5f 70 61 74 68 | 29 0a 63 6f 6e 73 74 20 |ved_path|).const |
|00004f80| 63 68 61 72 20 2a 70 61 | 74 68 3b 0a 63 68 61 72 |char *pa|th;.char|
|00004f90| 20 72 65 73 6f 6c 76 65 | 64 5f 70 61 74 68 20 5b | resolve|d_path [|
|00004fa0| 5d 3b 0a 23 65 6e 64 69 | 66 0a 7b 0a 09 63 68 61 |];.#endi|f.{..cha|
|00004fb0| 72 20 63 6f 70 79 5f 70 | 61 74 68 5b 50 41 54 48 |r copy_p|ath[PATH|
|00004fc0| 5f 4d 41 58 5d 3b 0a 09 | 63 68 61 72 20 6c 69 6e |_MAX];..|char lin|
|00004fd0| 6b 5f 70 61 74 68 5b 50 | 41 54 48 5f 4d 41 58 5d |k_path[P|ATH_MAX]|
|00004fe0| 3b 0a 09 63 68 61 72 20 | 2a 6e 65 77 5f 70 61 74 |;..char |*new_pat|
|00004ff0| 68 20 3d 20 72 65 73 6f | 6c 76 65 64 5f 70 61 74 |h = reso|lved_pat|
|00005000| 68 3b 0a 09 63 68 61 72 | 20 2a 6d 61 78 5f 70 61 |h;..char| *max_pa|
|00005010| 74 68 3b 0a 09 69 6e 74 | 20 72 65 61 64 6c 69 6e |th;..int| readlin|
|00005020| 6b 73 20 3d 20 30 3b 0a | 09 69 6e 74 20 6e 3b 0a |ks = 0;.|.int n;.|
|00005030| 0a 09 2f 2a 20 4d 61 6b | 65 20 61 20 63 6f 70 79 |../* Mak|e a copy|
|00005040| 20 6f 66 20 74 68 65 20 | 73 6f 75 72 63 65 20 70 | of the |source p|
|00005050| 61 74 68 20 73 69 6e 63 | 65 20 77 65 20 6d 61 79 |ath sinc|e we may|
|00005060| 20 6e 65 65 64 20 74 6f | 20 6d 6f 64 69 66 79 20 | need to| modify |
|00005070| 69 74 2e 20 2a 2f 0a 09 | 73 74 72 63 70 79 28 63 |it. */..|strcpy(c|
|00005080| 6f 70 79 5f 70 61 74 68 | 2c 20 70 61 74 68 29 3b |opy_path|, path);|
|00005090| 0a 09 70 61 74 68 20 3d | 20 63 6f 70 79 5f 70 61 |..path =| copy_pa|
|000050a0| 74 68 3b 0a 09 6d 61 78 | 5f 70 61 74 68 20 3d 20 |th;..max|_path = |
|000050b0| 63 6f 70 79 5f 70 61 74 | 68 20 2b 20 50 41 54 48 |copy_pat|h + PATH|
|000050c0| 5f 4d 41 58 20 2d 20 32 | 3b 0a 09 2f 2a 20 49 66 |_MAX - 2|;../* If|
|000050d0| 20 69 74 27 73 20 61 20 | 72 65 6c 61 74 69 76 65 | it's a |relative|
|000050e0| 20 70 61 74 68 6e 61 6d | 65 20 75 73 65 20 67 65 | pathnam|e use ge|
|000050f0| 74 77 64 20 66 6f 72 20 | 73 74 61 72 74 65 72 73 |twd for |starters|
|00005100| 2e 20 2a 2f 0a 09 69 66 | 20 28 2a 70 61 74 68 20 |. */..if| (*path |
|00005110| 21 3d 20 27 2f 27 29 20 | 7b 0a 23 69 66 64 65 66 |!= '/') |{.#ifdef|
|00005120| 20 48 41 56 45 5f 47 45 | 54 43 57 44 0a 09 09 67 | HAVE_GE|TCWD...g|
|00005130| 65 74 63 77 64 28 6e 65 | 77 5f 70 61 74 68 2c 20 |etcwd(ne|w_path, |
|00005140| 50 41 54 48 5f 4d 41 58 | 20 2d 20 31 29 3b 0a 23 |PATH_MAX| - 1);.#|
|00005150| 65 6c 73 65 0a 09 09 67 | 65 74 77 64 28 6e 65 77 |else...g|etwd(new|
|00005160| 5f 70 61 74 68 29 3b 0a | 23 65 6e 64 69 66 0a 09 |_path);.|#endif..|
|00005170| 09 6e 65 77 5f 70 61 74 | 68 20 2b 3d 20 73 74 72 |.new_pat|h += str|
|00005180| 6c 65 6e 28 6e 65 77 5f | 70 61 74 68 29 3b 0a 09 |len(new_|path);..|
|00005190| 09 69 66 20 28 6e 65 77 | 5f 70 61 74 68 5b 2d 31 |.if (new|_path[-1|
|000051a0| 5d 20 21 3d 20 27 2f 27 | 29 0a 09 09 09 2a 6e 65 |] != '/'|)....*ne|
|000051b0| 77 5f 70 61 74 68 2b 2b | 20 3d 20 27 2f 27 3b 0a |w_path++| = '/';.|
|000051c0| 09 7d 0a 09 65 6c 73 65 | 20 7b 0a 09 09 2a 6e 65 |.}..else| {...*ne|
|000051d0| 77 5f 70 61 74 68 2b 2b | 20 3d 20 27 2f 27 3b 0a |w_path++| = '/';.|
|000051e0| 09 09 70 61 74 68 2b 2b | 3b 0a 09 7d 0a 09 2f 2a |..path++|;..}../*|
|000051f0| 20 45 78 70 61 6e 64 20 | 65 61 63 68 20 73 6c 61 | Expand |each sla|
|00005200| 73 68 2d 73 65 70 61 72 | 61 74 65 64 20 70 61 74 |sh-separ|ated pat|
|00005210| 68 6e 61 6d 65 20 63 6f | 6d 70 6f 6e 65 6e 74 2e |hname co|mponent.|
|00005220| 20 2a 2f 0a 09 77 68 69 | 6c 65 20 28 2a 70 61 74 | */..whi|le (*pat|
|00005230| 68 20 21 3d 20 27 5c 30 | 27 29 20 7b 0a 09 09 2f |h != '\0|') {.../|
|00005240| 2a 20 49 67 6e 6f 72 65 | 20 73 74 72 61 79 20 22 |* Ignore| stray "|
|00005250| 2f 22 2e 20 2a 2f 0a 09 | 09 69 66 20 28 2a 70 61 |/". */..|.if (*pa|
|00005260| 74 68 20 3d 3d 20 27 2f | 27 29 20 7b 0a 09 09 09 |th == '/|') {....|
|00005270| 70 61 74 68 2b 2b 3b 0a | 09 09 09 63 6f 6e 74 69 |path++;.|...conti|
|00005280| 6e 75 65 3b 0a 09 09 7d | 0a 09 09 69 66 20 28 2a |nue;...}|...if (*|
|00005290| 70 61 74 68 20 3d 3d 20 | 27 2e 27 29 20 7b 0a 09 |path == |'.') {..|
|000052a0| 09 09 2f 2a 20 49 67 6e | 6f 72 65 20 22 2e 22 2e |../* Ign|ore ".".|
|000052b0| 20 2a 2f 0a 09 09 09 69 | 66 20 28 70 61 74 68 5b | */....i|f (path[|
|000052c0| 31 5d 20 3d 3d 20 27 5c | 30 27 20 7c 7c 20 70 61 |1] == '\|0' || pa|
|000052d0| 74 68 5b 31 5d 20 3d 3d | 20 27 2f 27 29 20 7b 0a |th[1] ==| '/') {.|
|000052e0| 09 09 09 09 70 61 74 68 | 2b 2b 3b 0a 09 09 09 09 |....path|++;.....|
|000052f0| 63 6f 6e 74 69 6e 75 65 | 3b 0a 09 09 09 7d 0a 09 |continue|;....}..|
|00005300| 09 09 69 66 20 28 70 61 | 74 68 5b 31 5d 20 3d 3d |..if (pa|th[1] ==|
|00005310| 20 27 2e 27 29 20 7b 0a | 09 09 09 09 69 66 20 28 | '.') {.|....if (|
|00005320| 70 61 74 68 5b 32 5d 20 | 3d 3d 20 27 5c 30 27 20 |path[2] |== '\0' |
|00005330| 7c 7c 20 70 61 74 68 5b | 32 5d 20 3d 3d 20 27 2f ||| path[|2] == '/|
|00005340| 27 29 20 7b 0a 09 09 09 | 09 09 70 61 74 68 20 2b |') {....|..path +|
|00005350| 3d 20 32 3b 0a 09 09 09 | 09 09 2f 2a 20 49 67 6e |= 2;....|../* Ign|
|00005360| 6f 72 65 20 22 2e 2e 22 | 20 61 74 20 72 6f 6f 74 |ore ".."| at root|
|00005370| 2e 20 2a 2f 0a 09 09 09 | 09 09 69 66 20 28 6e 65 |. */....|..if (ne|
|00005380| 77 5f 70 61 74 68 20 3d | 3d 20 72 65 73 6f 6c 76 |w_path =|= resolv|
|00005390| 65 64 5f 70 61 74 68 20 | 2b 20 31 29 0a 09 09 09 |ed_path |+ 1)....|
|000053a0| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 09 09 |...conti|nue;....|
|000053b0| 09 09 2f 2a 20 48 61 6e | 64 6c 65 20 22 2e 2e 22 |../* Han|dle ".."|
|000053c0| 20 62 79 20 62 61 63 6b | 69 6e 67 20 75 70 2e 20 | by back|ing up. |
|000053d0| 2a 2f 0a 09 09 09 09 09 | 77 68 69 6c 65 20 28 28 |*/......|while ((|
|000053e0| 2d 2d 6e 65 77 5f 70 61 | 74 68 29 5b 2d 31 5d 20 |--new_pa|th)[-1] |
|000053f0| 21 3d 20 27 2f 27 29 0a | 09 09 09 09 09 09 3b 0a |!= '/').|......;.|
|00005400| 09 09 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0a 09 |.....con|tinue;..|
|00005410| 09 09 09 7d 0a 09 09 09 | 7d 0a 09 09 7d 0a 09 09 |...}....|}...}...|
|00005420| 2f 2a 20 53 61 66 65 6c | 79 20 63 6f 70 79 20 74 |/* Safel|y copy t|
|00005430| 68 65 20 6e 65 78 74 20 | 70 61 74 68 6e 61 6d 65 |he next |pathname|
|00005440| 20 63 6f 6d 70 6f 6e 65 | 6e 74 2e 20 2a 2f 0a 09 | compone|nt. */..|
|00005450| 09 77 68 69 6c 65 20 28 | 2a 70 61 74 68 20 21 3d |.while (|*path !=|
|00005460| 20 27 5c 30 27 20 26 26 | 20 2a 70 61 74 68 20 21 | '\0' &&| *path !|
|00005470| 3d 20 27 2f 27 29 20 7b | 0a 09 09 09 69 66 20 28 |= '/') {|....if (|
|00005480| 70 61 74 68 20 3e 20 6d | 61 78 5f 70 61 74 68 29 |path > m|ax_path)|
|00005490| 20 7b 0a 09 09 09 09 65 | 72 72 6e 6f 20 3d 20 45 | {.....e|rrno = E|
|000054a0| 4e 41 4d 45 54 4f 4f 4c | 4f 4e 47 3b 0a 09 09 09 |NAMETOOL|ONG;....|
|000054b0| 09 72 65 74 75 72 6e 20 | 4e 55 4c 4c 3b 0a 09 09 |.return |NULL;...|
|000054c0| 09 7d 0a 09 09 09 2a 6e | 65 77 5f 70 61 74 68 2b |.}....*n|ew_path+|
|000054d0| 2b 20 3d 20 2a 70 61 74 | 68 2b 2b 3b 0a 09 09 7d |+ = *pat|h++;...}|
|000054e0| 0a 23 69 66 64 65 66 20 | 53 5f 49 46 4c 4e 4b 0a |.#ifdef |S_IFLNK.|
|000054f0| 09 09 2f 2a 20 50 72 6f | 74 65 63 74 20 61 67 61 |../* Pro|tect aga|
|00005500| 69 6e 73 74 20 69 6e 66 | 69 6e 69 74 65 20 6c 6f |inst inf|inite lo|
|00005510| 6f 70 73 2e 20 2a 2f 0a | 09 09 69 66 20 28 72 65 |ops. */.|..if (re|
|00005520| 61 64 6c 69 6e 6b 73 2b | 2b 20 3e 20 4d 41 58 5f |adlinks+|+ > MAX_|
|00005530| 52 45 41 44 4c 49 4e 4b | 53 29 20 7b 0a 09 09 09 |READLINK|S) {....|
|00005540| 65 72 72 6e 6f 20 3d 20 | 45 4c 4f 4f 50 3b 0a 09 |errno = |ELOOP;..|
|00005550| 09 09 72 65 74 75 72 6e | 20 4e 55 4c 4c 3b 0a 09 |..return| NULL;..|
|00005560| 09 7d 0a 09 09 2f 2a 20 | 53 65 65 20 69 66 20 6c |.}.../* |See if l|
|00005570| 61 74 65 73 74 20 70 61 | 74 68 6e 61 6d 65 20 63 |atest pa|thname c|
|00005580| 6f 6d 70 6f 6e 65 6e 74 | 20 69 73 20 61 20 73 79 |omponent| is a sy|
|00005590| 6d 6c 69 6e 6b 2e 20 2a | 2f 0a 09 09 2a 6e 65 77 |mlink. *|/...*new|
|000055a0| 5f 70 61 74 68 20 3d 20 | 27 5c 30 27 3b 0a 09 09 |_path = |'\0';...|
|000055b0| 6e 20 3d 20 72 65 61 64 | 6c 69 6e 6b 28 72 65 73 |n = read|link(res|
|000055c0| 6f 6c 76 65 64 5f 70 61 | 74 68 2c 20 6c 69 6e 6b |olved_pa|th, link|
|000055d0| 5f 70 61 74 68 2c 20 50 | 41 54 48 5f 4d 41 58 20 |_path, P|ATH_MAX |
|000055e0| 2d 20 31 29 3b 0a 09 09 | 69 66 20 28 6e 20 3c 20 |- 1);...|if (n < |
|000055f0| 30 29 20 7b 0a 09 09 09 | 2f 2a 20 45 49 4e 56 41 |0) {....|/* EINVA|
|00005600| 4c 20 6d 65 61 6e 73 20 | 74 68 65 20 66 69 6c 65 |L means |the file|
|00005610| 20 65 78 69 73 74 73 20 | 62 75 74 20 69 73 6e 27 | exists |but isn'|
|00005620| 74 20 61 20 73 79 6d 6c | 69 6e 6b 2e 20 2a 2f 0a |t a syml|ink. */.|
|00005630| 09 09 09 69 66 20 28 65 | 72 72 6e 6f 20 21 3d 20 |...if (e|rrno != |
|00005640| 45 49 4e 56 41 4c 29 0a | 09 09 09 09 72 65 74 75 |EINVAL).|....retu|
|00005650| 72 6e 20 4e 55 4c 4c 3b | 0a 09 09 7d 0a 09 09 65 |rn NULL;|...}...e|
|00005660| 6c 73 65 20 7b 0a 09 09 | 09 2f 2a 20 4e 6f 74 65 |lse {...|./* Note|
|00005670| 3a 20 72 65 61 64 6c 69 | 6e 6b 20 64 6f 65 73 6e |: readli|nk doesn|
|00005680| 27 74 20 61 64 64 20 74 | 68 65 20 6e 75 6c 6c 20 |'t add t|he null |
|00005690| 62 79 74 65 2e 20 2a 2f | 0a 09 09 09 6c 69 6e 6b |byte. */|....link|
|000056a0| 5f 70 61 74 68 5b 6e 5d | 20 3d 20 27 5c 30 27 3b |_path[n]| = '\0';|
|000056b0| 0a 09 09 09 69 66 20 28 | 2a 6c 69 6e 6b 5f 70 61 |....if (|*link_pa|
|000056c0| 74 68 20 3d 3d 20 27 2f | 27 29 0a 09 09 09 09 2f |th == '/|')...../|
|000056d0| 2a 20 53 74 61 72 74 20 | 6f 76 65 72 20 66 6f 72 |* Start |over for|
|000056e0| 20 61 6e 20 61 62 73 6f | 6c 75 74 65 20 73 79 6d | an abso|lute sym|
|000056f0| 6c 69 6e 6b 2e 20 2a 2f | 0a 09 09 09 09 6e 65 77 |link. */|.....new|
|00005700| 5f 70 61 74 68 20 3d 20 | 72 65 73 6f 6c 76 65 64 |_path = |resolved|
|00005710| 5f 70 61 74 68 3b 0a 09 | 09 09 65 6c 73 65 0a 09 |_path;..|..else..|
|00005720| 09 09 09 2f 2a 20 4f 74 | 68 65 72 77 69 73 65 20 |.../* Ot|herwise |
|00005730| 62 61 63 6b 20 75 70 20 | 6f 76 65 72 20 74 68 69 |back up |over thi|
|00005740| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 2e 20 2a 2f 0a |s compon|ent. */.|
|00005750| 09 09 09 09 77 68 69 6c | 65 20 28 2a 28 2d 2d 6e |....whil|e (*(--n|
|00005760| 65 77 5f 70 61 74 68 29 | 20 21 3d 20 27 2f 27 29 |ew_path)| != '/')|
|00005770| 0a 09 09 09 09 09 3b 0a | 09 09 09 2f 2a 20 53 61 |......;.|.../* Sa|
|00005780| 66 65 20 73 65 78 20 63 | 68 65 63 6b 2e 20 2a 2f |fe sex c|heck. */|
|00005790| 0a 09 09 09 69 66 20 28 | 73 74 72 6c 65 6e 28 70 |....if (|strlen(p|
|000057a0| 61 74 68 29 20 2b 20 6e | 20 3e 3d 20 50 41 54 48 |ath) + n| >= PATH|
|000057b0| 5f 4d 41 58 29 20 7b 0a | 09 09 09 09 65 72 72 6e |_MAX) {.|....errn|
|000057c0| 6f 20 3d 20 45 4e 41 4d | 45 54 4f 4f 4c 4f 4e 47 |o = ENAM|ETOOLONG|
|000057d0| 3b 0a 09 09 09 09 72 65 | 74 75 72 6e 20 4e 55 4c |;.....re|turn NUL|
|000057e0| 4c 3b 0a 09 09 09 7d 0a | 09 09 09 2f 2a 20 49 6e |L;....}.|.../* In|
|000057f0| 73 65 72 74 20 73 79 6d | 6c 69 6e 6b 20 63 6f 6e |sert sym|link con|
|00005800| 74 65 6e 74 73 20 69 6e | 74 6f 20 70 61 74 68 2e |tents in|to path.|
|00005810| 20 2a 2f 0a 09 09 09 73 | 74 72 63 61 74 28 6c 69 | */....s|trcat(li|
|00005820| 6e 6b 5f 70 61 74 68 2c | 20 70 61 74 68 29 3b 0a |nk_path,| path);.|
|00005830| 09 09 09 73 74 72 63 70 | 79 28 63 6f 70 79 5f 70 |...strcp|y(copy_p|
|00005840| 61 74 68 2c 20 6c 69 6e | 6b 5f 70 61 74 68 29 3b |ath, lin|k_path);|
|00005850| 0a 09 09 09 70 61 74 68 | 20 3d 20 63 6f 70 79 5f |....path| = copy_|
|00005860| 70 61 74 68 3b 0a 09 09 | 7d 0a 23 65 6e 64 69 66 |path;...|}.#endif|
|00005870| 20 2f 2a 20 53 5f 49 46 | 4c 4e 4b 20 2a 2f 0a 09 | /* S_IF|LNK */..|
|00005880| 09 2a 6e 65 77 5f 70 61 | 74 68 2b 2b 20 3d 20 27 |.*new_pa|th++ = '|
|00005890| 2f 27 3b 0a 09 7d 0a 09 | 2f 2a 20 44 65 6c 65 74 |/';..}..|/* Delet|
|000058a0| 65 20 74 72 61 69 6c 69 | 6e 67 20 73 6c 61 73 68 |e traili|ng slash|
|000058b0| 20 62 75 74 20 64 6f 6e | 27 74 20 77 68 6f 6d 70 | but don|'t whomp|
|000058c0| 20 61 20 6c 6f 6e 65 20 | 73 6c 61 73 68 2e 20 2a | a lone |slash. *|
|000058d0| 2f 0a 09 69 66 20 28 6e | 65 77 5f 70 61 74 68 20 |/..if (n|ew_path |
|000058e0| 21 3d 20 72 65 73 6f 6c | 76 65 64 5f 70 61 74 68 |!= resol|ved_path|
|000058f0| 20 2b 20 31 20 26 26 20 | 6e 65 77 5f 70 61 74 68 | + 1 && |new_path|
|00005900| 5b 2d 31 5d 20 3d 3d 20 | 27 2f 27 29 0a 09 09 6e |[-1] == |'/')...n|
|00005910| 65 77 5f 70 61 74 68 2d | 2d 3b 0a 09 2f 2a 20 4d |ew_path-|-;../* M|
|00005920| 61 6b 65 20 73 75 72 65 | 20 69 74 27 73 20 6e 75 |ake sure| it's nu|
|00005930| 6c 6c 20 74 65 72 6d 69 | 6e 61 74 65 64 2e 20 2a |ll termi|nated. *|
|00005940| 2f 0a 09 2a 6e 65 77 5f | 70 61 74 68 20 3d 20 27 |/..*new_|path = '|
|00005950| 5c 30 27 3b 0a 09 72 65 | 74 75 72 6e 20 72 65 73 |\0';..re|turn res|
|00005960| 6f 6c 76 65 64 5f 70 61 | 74 68 3b 0a 7d 0a 00 00 |olved_pa|th;.}...|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 2e 2f 6c 69 62 63 2f 62 | 73 64 2f 73 65 74 65 6e |./libc/b|sd/seten|
|00005a10| 76 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |v.c.....|........|
|00005a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 20 31 36 |....1006|44 . 16|
|00005a70| 37 36 20 00 20 20 20 33 | 33 34 20 00 20 20 20 20 |76 . 3|34 . |
|00005a80| 20 20 20 37 32 34 30 20 | 20 35 37 32 31 34 30 34 | 7240 | 5721404|
|00005a90| 30 30 34 20 20 31 32 31 | 37 36 00 20 30 00 00 00 |004 121|76. 0...|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 75 73 74 61 72 20 20 | 00 68 6a 6c 00 00 00 00 |.ustar |.hjl....|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 69 73 6c 00 00 00 00 |........|.isl....|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 2f 2a 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |/* Copyr|ight (C)|
|00005c10| 20 31 39 39 32 2c 20 31 | 39 39 35 20 46 72 65 65 | 1992, 1|995 Free|
|00005c20| 20 53 6f 66 74 77 61 72 | 65 20 46 6f 75 6e 64 61 | Softwar|e Founda|
|00005c30| 74 69 6f 6e 2c 20 49 6e | 63 2e 0a 54 68 69 73 20 |tion, In|c..This |
|00005c40| 66 69 6c 65 20 69 73 20 | 70 61 72 74 20 6f 66 20 |file is |part of |
|00005c50| 74 68 65 20 47 4e 55 20 | 43 20 4c 69 62 72 61 72 |the GNU |C Librar|
|00005c60| 79 2e 0a 0a 54 68 65 20 | 47 4e 55 20 43 20 4c 69 |y...The |GNU C Li|
|00005c70| 62 72 61 72 79 20 69 73 | 20 66 72 65 65 20 73 6f |brary is| free so|
|00005c80| 66 74 77 61 72 65 3b 20 | 79 6f 75 20 63 61 6e 20 |ftware; |you can |
|00005c90| 72 65 64 69 73 74 72 69 | 62 75 74 65 20 69 74 20 |redistri|bute it |
|00005ca0| 61 6e 64 2f 6f 72 0a 6d | 6f 64 69 66 79 20 69 74 |and/or.m|odify it|
|00005cb0| 20 75 6e 64 65 72 20 74 | 68 65 20 74 65 72 6d 73 | under t|he terms|
|00005cc0| 20 6f 66 20 74 68 65 20 | 47 4e 55 20 4c 69 62 72 | of the |GNU Libr|
|00005cd0| 61 72 79 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |ary Gene|ral Publ|
|00005ce0| 69 63 20 4c 69 63 65 6e | 73 65 20 61 73 0a 70 75 |ic Licen|se as.pu|
|00005cf0| 62 6c 69 73 68 65 64 20 | 62 79 20 74 68 65 20 46 |blished |by the F|
|00005d00| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|00005d10| 6e 64 61 74 69 6f 6e 3b | 20 65 69 74 68 65 72 20 |ndation;| either |
|00005d20| 76 65 72 73 69 6f 6e 20 | 32 20 6f 66 20 74 68 65 |version |2 of the|
|00005d30| 0a 4c 69 63 65 6e 73 65 | 2c 20 6f 72 20 28 61 74 |.License|, or (at|
|00005d40| 20 79 6f 75 72 20 6f 70 | 74 69 6f 6e 29 20 61 6e | your op|tion) an|
|00005d50| 79 20 6c 61 74 65 72 20 | 76 65 72 73 69 6f 6e 2e |y later |version.|
|00005d60| 0a 0a 54 68 65 20 47 4e | 55 20 43 20 4c 69 62 72 |..The GN|U C Libr|
|00005d70| 61 72 79 20 69 73 20 64 | 69 73 74 72 69 62 75 74 |ary is d|istribut|
|00005d80| 65 64 20 69 6e 20 74 68 | 65 20 68 6f 70 65 20 74 |ed in th|e hope t|
|00005d90| 68 61 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 75 |hat it w|ill be u|
|00005da0| 73 65 66 75 6c 2c 0a 62 | 75 74 20 57 49 54 48 4f |seful,.b|ut WITHO|
|00005db0| 55 54 20 41 4e 59 20 57 | 41 52 52 41 4e 54 59 3b |UT ANY W|ARRANTY;|
|00005dc0| 20 77 69 74 68 6f 75 74 | 20 65 76 65 6e 20 74 68 | without| even th|
|00005dd0| 65 20 69 6d 70 6c 69 65 | 64 20 77 61 72 72 61 6e |e implie|d warran|
|00005de0| 74 79 20 6f 66 0a 4d 45 | 52 43 48 41 4e 54 41 42 |ty of.ME|RCHANTAB|
|00005df0| 49 4c 49 54 59 20 6f 72 | 20 46 49 54 4e 45 53 53 |ILITY or| FITNESS|
|00005e00| 20 46 4f 52 20 41 20 50 | 41 52 54 49 43 55 4c 41 | FOR A P|ARTICULA|
|00005e10| 52 20 50 55 52 50 4f 53 | 45 2e 20 20 53 65 65 20 |R PURPOS|E. See |
|00005e20| 74 68 65 20 47 4e 55 0a | 4c 69 62 72 61 72 79 20 |the GNU.|Library |
|00005e30| 47 65 6e 65 72 61 6c 20 | 50 75 62 6c 69 63 20 4c |General |Public L|
|00005e40| 69 63 65 6e 73 65 20 66 | 6f 72 20 6d 6f 72 65 20 |icense f|or more |
|00005e50| 64 65 74 61 69 6c 73 2e | 0a 0a 59 6f 75 20 73 68 |details.|..You sh|
|00005e60| 6f 75 6c 64 20 68 61 76 | 65 20 72 65 63 65 69 76 |ould hav|e receiv|
|00005e70| 65 64 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ed a cop|y of the|
|00005e80| 20 47 4e 55 20 4c 69 62 | 72 61 72 79 20 47 65 6e | GNU Lib|rary Gen|
|00005e90| 65 72 61 6c 20 50 75 62 | 6c 69 63 0a 4c 69 63 65 |eral Pub|lic.Lice|
|00005ea0| 6e 73 65 20 61 6c 6f 6e | 67 20 77 69 74 68 20 74 |nse alon|g with t|
|00005eb0| 68 65 20 47 4e 55 20 43 | 20 4c 69 62 72 61 72 79 |he GNU C| Library|
|00005ec0| 3b 20 73 65 65 20 74 68 | 65 20 66 69 6c 65 20 43 |; see th|e file C|
|00005ed0| 4f 50 59 49 4e 47 2e 4c | 49 42 2e 20 20 49 66 0a |OPYING.L|IB. If.|
|00005ee0| 6e 6f 74 2c 20 77 72 69 | 74 65 20 74 6f 20 74 68 |not, wri|te to th|
|00005ef0| 65 20 46 72 65 65 20 53 | 6f 66 74 77 61 72 65 20 |e Free S|oftware |
|00005f00| 46 6f 75 6e 64 61 74 69 | 6f 6e 2c 20 49 6e 63 2e |Foundati|on, Inc.|
|00005f10| 2c 20 36 37 35 20 4d 61 | 73 73 20 41 76 65 2c 0a |, 675 Ma|ss Ave,.|
|00005f20| 43 61 6d 62 72 69 64 67 | 65 2c 20 4d 41 20 30 32 |Cambridg|e, MA 02|
|00005f30| 31 33 39 2c 20 55 53 41 | 2e 20 20 2a 2f 0a 0a 23 |139, USA|. */..#|
|00005f40| 69 6e 63 6c 75 64 65 20 | 3c 61 6e 73 69 64 65 63 |include |<ansidec|
|00005f50| 6c 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |l.h>.#in|clude <s|
|00005f60| 74 64 6c 69 62 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |tdlib.h>|.#includ|
|00005f70| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 23 69 6e |e <strin|g.h>.#in|
|00005f80| 63 6c 75 64 65 20 3c 75 | 6e 69 73 74 64 2e 68 3e |clude <u|nistd.h>|
|00005f90| 0a 0a 23 69 66 6e 64 65 | 66 09 48 41 56 45 5f 47 |..#ifnde|f.HAVE_G|
|00005fa0| 4e 55 5f 4c 44 0a 23 64 | 65 66 69 6e 65 09 5f 5f |NU_LD.#d|efine.__|
|00005fb0| 65 6e 76 69 72 6f 6e 09 | 65 6e 76 69 72 6f 6e 0a |environ.|environ.|
|00005fc0| 23 65 6e 64 69 66 0a 0a | 23 69 66 20 64 65 66 69 |#endif..|#if defi|
|00005fd0| 6e 65 64 28 5f 52 45 45 | 4e 54 52 45 4e 54 29 20 |ned(_REE|NTRENT) |
|00005fe0| 7c 7c 20 64 65 66 69 6e | 65 64 28 5f 54 48 52 45 ||| defin|ed(_THRE|
|00005ff0| 41 44 5f 53 41 46 45 29 | 0a 23 20 69 6e 63 6c 75 |AD_SAFE)|.# inclu|
|00006000| 64 65 20 3c 70 74 68 72 | 65 61 64 2e 68 3e 0a 0a |de <pthr|ead.h>..|
|00006010| 2f 2a 20 57 65 20 6e 65 | 65 64 20 74 6f 20 69 6e |/* We ne|ed to in|
|00006020| 69 74 69 61 6c 69 7a 65 | 20 74 68 65 20 6d 75 74 |itialize| the mut|
|00006030| 65 78 2e 20 20 46 6f 72 | 20 74 68 69 73 20 77 65 |ex. For| this we|
|00006040| 20 75 73 65 20 61 20 6d | 65 74 68 6f 64 20 70 72 | use a m|ethod pr|
|00006050| 6f 76 69 64 65 64 0a 20 | 20 20 62 79 20 70 74 68 |ovided. | by pth|
|00006060| 72 65 61 64 20 66 75 6e | 63 74 69 6f 6e 20 27 70 |read fun|ction 'p|
|00006070| 74 68 72 65 61 64 5f 6f | 6e 63 65 27 2e 20 20 46 |thread_o|nce'. F|
|00006080| 6f 72 20 74 68 69 73 20 | 77 65 20 6e 65 65 64 20 |or this |we need |
|00006090| 61 20 6f 6e 63 65 20 62 | 6c 6f 63 6b 2e 20 20 2a |a once b|lock. *|
|000060a0| 2f 0a 73 74 61 74 69 63 | 20 70 74 68 72 65 61 64 |/.static| pthread|
|000060b0| 5f 6f 6e 63 65 5f 5f 74 | 20 5f 6f 6e 63 65 5f 62 |_once__t| _once_b|
|000060c0| 6c 6f 63 6b 20 3d 20 70 | 74 68 72 65 61 64 5f 6f |lock = p|thread_o|
|000060d0| 6e 63 65 5f 69 6e 69 74 | 3b 0a 0a 2f 2a 20 54 68 |nce_init|;../* Th|
|000060e0| 69 73 20 69 73 20 74 68 | 65 20 6d 75 74 65 78 20 |is is th|e mutex |
|000060f0| 77 68 69 63 68 20 70 72 | 6f 74 65 63 74 73 20 74 |which pr|otects t|
|00006100| 68 65 20 67 6c 6f 62 61 | 6c 20 65 6e 76 69 72 6f |he globa|l enviro|
|00006110| 6e 6d 65 6e 74 20 6f 66 | 20 73 69 6d 75 6c 74 61 |nment of| simulta|
|00006120| 6e 65 6f 75 73 0a 20 20 | 20 6d 6f 64 69 66 69 63 |neous. | modific|
|00006130| 61 74 69 6f 6e 73 2e 20 | 20 2a 2f 0a 73 74 61 74 |ations. | */.stat|
|00006140| 69 63 20 70 74 68 72 65 | 61 64 5f 6d 75 74 65 78 |ic pthre|ad_mutex|
|00006150| 5f 74 20 5f 73 65 74 65 | 6e 76 5f 6d 75 74 65 78 |_t _sete|nv_mutex|
|00006160| 3b 0a 0a 73 74 61 74 69 | 63 20 76 6f 69 64 0a 44 |;..stati|c void.D|
|00006170| 45 46 55 4e 5f 56 4f 49 | 44 28 5f 69 6e 69 74 5f |EFUN_VOI|D(_init_|
|00006180| 73 65 74 65 6e 76 5f 6d | 75 74 65 78 29 0a 7b 0a |setenv_m|utex).{.|
|00006190| 20 20 70 74 68 72 65 61 | 64 5f 6d 75 74 65 78 5f | pthrea|d_mutex_|
|000061a0| 69 6e 69 74 28 26 5f 73 | 65 74 65 6e 76 5f 6d 75 |init(&_s|etenv_mu|
|000061b0| 74 65 78 2c 20 70 74 68 | 72 65 61 64 5f 6d 75 74 |tex, pth|read_mut|
|000061c0| 65 78 61 74 74 72 5f 64 | 65 66 61 75 6c 74 29 3b |exattr_d|efault);|
|000061d0| 0a 7d 0a 0a 23 20 64 65 | 66 69 6e 65 20 4c 4f 43 |.}..# de|fine LOC|
|000061e0| 4b 28 29 20 5c 0a 20 20 | 20 64 6f 20 7b 20 70 74 |K() \. | do { pt|
|000061f0| 68 72 65 61 64 5f 6f 6e | 63 65 28 26 5f 6f 6e 63 |hread_on|ce(&_onc|
|00006200| 65 5f 62 6c 6f 63 6b 2c | 20 5f 69 6e 69 74 5f 73 |e_block,| _init_s|
|00006210| 65 74 65 6e 76 5f 6d 75 | 74 65 78 29 3b 0a 20 20 |etenv_mu|tex);. |
|00006220| 20 20 20 20 20 20 70 74 | 68 72 65 61 64 5f 6d 75 | pt|hread_mu|
|00006230| 74 65 78 5f 6c 6f 63 6b | 28 26 5f 73 65 74 65 6e |tex_lock|(&_seten|
|00006240| 76 5f 6d 75 74 65 78 29 | 3b 20 7d 20 77 68 69 6c |v_mutex)|; } whil|
|00006250| 65 20 28 30 29 0a 23 20 | 64 65 66 69 6e 65 20 55 |e (0).# |define U|
|00006260| 4e 4c 4f 43 4b 28 29 20 | 70 74 68 72 65 61 64 5f |NLOCK() |pthread_|
|00006270| 6d 75 74 65 78 5f 75 6e | 6c 6f 63 6b 28 26 5f 73 |mutex_un|lock(&_s|
|00006280| 65 74 65 6e 76 5f 6d 75 | 74 65 78 29 0a 0a 23 65 |etenv_mu|tex)..#e|
|00006290| 6c 73 65 20 2f 2a 20 21 | 5f 52 45 45 4e 54 52 45 |lse /* !|_REENTRE|
|000062a0| 4e 54 20 26 26 20 21 5f | 54 48 52 45 41 44 5f 53 |NT && !_|THREAD_S|
|000062b0| 41 46 45 20 2a 2f 0a 0a | 23 20 64 65 66 69 6e 65 |AFE */..|# define|
|000062c0| 20 4c 4f 43 4b 28 29 0a | 23 20 64 65 66 69 6e 65 | LOCK().|# define|
|000062d0| 20 55 4e 4c 4f 43 4b 28 | 29 0a 0a 23 65 6e 64 69 | UNLOCK(|)..#endi|
|000062e0| 66 20 2f 2a 20 5f 52 45 | 45 4e 54 52 45 4e 54 20 |f /* _RE|ENTRENT |
|000062f0| 7c 7c 20 5f 54 48 52 45 | 41 44 5f 53 41 46 45 20 ||| _THRE|AD_SAFE |
|00006300| 2a 2f 0a 0a 69 6e 74 0a | 44 45 46 55 4e 28 73 65 |*/..int.|DEFUN(se|
|00006310| 74 65 6e 76 2c 20 28 6e | 61 6d 65 2c 20 76 61 6c |tenv, (n|ame, val|
|00006320| 75 65 2c 20 72 65 70 6c | 61 63 65 29 2c 0a 20 20 |ue, repl|ace),. |
|00006330| 20 20 20 20 43 4f 4e 53 | 54 20 63 68 61 72 20 2a | CONS|T char *|
|00006340| 6e 61 6d 65 20 41 4e 44 | 20 43 4f 4e 53 54 20 63 |name AND| CONST c|
|00006350| 68 61 72 20 2a 76 61 6c | 75 65 20 41 4e 44 20 69 |har *val|ue AND i|
|00006360| 6e 74 20 72 65 70 6c 61 | 63 65 29 0a 7b 0a 20 20 |nt repla|ce).{. |
|00006370| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 2a |register| char **|
|00006380| 65 70 3b 0a 20 20 72 65 | 67 69 73 74 65 72 20 73 |ep;. re|gister s|
|00006390| 69 7a 65 5f 74 20 73 69 | 7a 65 3b 0a 20 20 43 4f |ize_t si|ze;. CO|
|000063a0| 4e 53 54 20 73 69 7a 65 | 5f 74 20 6e 61 6d 65 6c |NST size|_t namel|
|000063b0| 65 6e 20 3d 20 73 74 72 | 6c 65 6e 20 28 6e 61 6d |en = str|len (nam|
|000063c0| 65 29 3b 0a 20 20 43 4f | 4e 53 54 20 73 69 7a 65 |e);. CO|NST size|
|000063d0| 5f 74 20 76 61 6c 6c 65 | 6e 20 3d 20 73 74 72 6c |_t valle|n = strl|
|000063e0| 65 6e 20 28 76 61 6c 75 | 65 29 3b 0a 20 20 69 6e |en (valu|e);. in|
|000063f0| 74 20 72 65 73 75 6c 74 | 20 3d 20 30 3b 0a 0a 20 |t result| = 0;.. |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.