mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-29 03:45:02 +01:00
Compare commits
3123
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95b66175a3 | ||
|
|
21a9168142 | ||
|
|
f79b5d7b4e | ||
|
|
d2ac0794b6 | ||
|
|
f679ee58a1 | ||
|
|
d146ffcd70 | ||
|
|
50dd249ff2 | ||
|
|
ce070a231e | ||
|
|
f08c57b743 | ||
|
|
806b696bda | ||
|
|
88669d7e76 | ||
|
|
45a32c826e | ||
|
|
1538bd7196 | ||
|
|
b94c2a8456 | ||
|
|
24819dfae6 | ||
|
|
fa82ebeccf | ||
|
|
bd708d5e35 | ||
|
|
ed58a67988 | ||
|
|
0bad08ed98 | ||
|
|
8f97227182 | ||
|
|
e9073a0a1d | ||
|
|
e85bfb7c5d | ||
|
|
2275791a58 | ||
|
|
f885fadf09 | ||
|
|
37c577255c | ||
|
|
5dab24749c | ||
|
|
fd5392c48d | ||
|
|
84b06bc81a | ||
|
|
5ee29c69ba | ||
|
|
db9a0a9613 | ||
|
|
6cf72244e5 | ||
|
|
5ba0739a24 | ||
|
|
f093f64e1b | ||
|
|
7d26afd360 | ||
|
|
fe9ab80f3c | ||
|
|
24797bfa88 | ||
|
|
ee79220c87 | ||
|
|
938f42a690 | ||
|
|
4a3e619048 | ||
|
|
911b2b4e6f | ||
|
|
cfbe635f8e | ||
|
|
71be27409e | ||
|
|
b708943b22 | ||
|
|
20a7a90213 | ||
|
|
b81d7f330a | ||
|
|
4fc19a7cc3 | ||
|
|
b0e6f7baa8 | ||
|
|
72f777784d | ||
|
|
4aa4038e99 | ||
|
|
de43ac3c73 | ||
|
|
3d2b5d3d9b | ||
|
|
e3c0ee2101 | ||
|
|
8857668bd3 | ||
|
|
a5f91f98bd | ||
|
|
18b61ffcf4 | ||
|
|
66c958c770 | ||
|
|
483f113534 | ||
|
|
d27a27016a | ||
|
|
d9188b3909 | ||
|
|
4514d3cda2 | ||
|
|
b3e2ee6ec4 | ||
|
|
d97fd2c1e7 | ||
|
|
6d93c26728 | ||
|
|
4ebd34b205 | ||
|
|
8fbfdc72cb | ||
|
|
b7d4f10dad | ||
|
|
5a8de2aec5 | ||
|
|
132278444b | ||
|
|
ee721a09d3 | ||
|
|
9117dd171b | ||
|
|
5f3015c3bd | ||
|
|
4bb2b94267 | ||
|
|
cf6ead55c8 | ||
|
|
0ab55dfca2 | ||
|
|
604f2003e4 | ||
|
|
f60d177fcf | ||
|
|
4b94c4d561 | ||
|
|
60152fd230 | ||
|
|
bd2b22f9da | ||
|
|
88f3f68f0b | ||
|
|
d8d9fcb67c | ||
|
|
3eaae8e498 | ||
|
|
49d747cacc | ||
|
|
438c3db78c | ||
|
|
2cb24c3c00 | ||
|
|
3f73857adf | ||
|
|
a91679b9f3 | ||
|
|
110bbbb972 | ||
|
|
2b364efe54 | ||
|
|
8be19deb4c | ||
|
|
8a59cbfe07 | ||
|
|
527b07d556 | ||
|
|
e8cc66a626 | ||
|
|
3874d671e0 | ||
|
|
adc76b8895 | ||
|
|
73dc329806 | ||
|
|
0e9f19d8aa | ||
|
|
472b621990 | ||
|
|
6e2c102ae1 | ||
|
|
539c8db0d8 | ||
|
|
a97c61f7a2 | ||
|
|
1f8807d283 | ||
|
|
53b6bdd138 | ||
|
|
4fa6606d60 | ||
|
|
ba39198138 | ||
|
|
c073ac0841 | ||
|
|
b6732eede4 | ||
|
|
bf4ee2f0fc | ||
|
|
618547e832 | ||
|
|
a78977ec5d | ||
|
|
4d01971996 | ||
|
|
f11780d654 | ||
|
|
fef49ae1b8 | ||
|
|
fb53305b39 | ||
|
|
4f72061603 | ||
|
|
da991c5bb8 | ||
|
|
0395b10b55 | ||
|
|
04ac22c254 | ||
|
|
66efb86d51 | ||
|
|
670f74bf0c | ||
|
|
7da55eded9 | ||
|
|
202eb0eeb1 | ||
|
|
ec50325e25 | ||
|
|
3cfee405f8 | ||
|
|
078c68c47f | ||
|
|
ec5296f4f0 | ||
|
|
7509804433 | ||
|
|
5dd54e5e91 | ||
|
|
f7c35593a8 | ||
|
|
cf572da1fe | ||
|
|
34f937162f | ||
|
|
c609e0c8df | ||
|
|
8b34ac9cfa | ||
|
|
aab4673db2 | ||
|
|
84637f89f2 | ||
|
|
a6446f386b | ||
|
|
42487bdd21 | ||
|
|
491a4a3d96 | ||
|
|
8b4d9bd896 | ||
|
|
5c4936cf92 | ||
|
|
89a195026f | ||
|
|
14fa10a9f7 | ||
|
|
cc99ed2cf0 | ||
|
|
69c57b185c | ||
|
|
efcf2affbe | ||
|
|
0f5268be8e | ||
|
|
5584981aa0 | ||
|
|
dbe7a5bde1 | ||
|
|
3ffea809b1 | ||
|
|
337dc04a90 | ||
|
|
4c2f91dcc4 | ||
|
|
2ceaee9419 | ||
|
|
ede95f98ce | ||
|
|
5e9be4258e | ||
|
|
2855e0437a | ||
|
|
87ca7569fb | ||
|
|
5447f18ee2 | ||
|
|
80f3543fbf | ||
|
|
a9267e9cc5 | ||
|
|
743780d418 | ||
|
|
9d63bf5fb8 | ||
|
|
d60b22bb8d | ||
|
|
e4653f2aee | ||
|
|
261b828a18 | ||
|
|
a3e8860c3f | ||
|
|
c958734edc | ||
|
|
2ed0c8b014 | ||
|
|
e1dafa5619 | ||
|
|
c67e0c3e21 | ||
|
|
3026b81692 | ||
|
|
83cb6761a1 | ||
|
|
87c7af1eb5 | ||
|
|
c9168f59f0 | ||
|
|
ad3059481c | ||
|
|
8b3fc09d69 | ||
|
|
28b17a7357 | ||
|
|
e9ed2d9e58 | ||
|
|
afe640f62a | ||
|
|
1edf6e57fe | ||
|
|
303999599a | ||
|
|
bd345a6847 | ||
|
|
16c46ddeb1 | ||
|
|
4aa75d8e89 | ||
|
|
f9ac6ce951 | ||
|
|
1abbc7e638 | ||
|
|
06081ff9aa | ||
|
|
ffc3058832 | ||
|
|
4e4527d08f | ||
|
|
da293e2616 | ||
|
|
ad8ae08198 | ||
|
|
68381a26cc | ||
|
|
4a9109434d | ||
|
|
c86bc6f8f0 | ||
|
|
d205a6a83f | ||
|
|
ba64e486f6 | ||
|
|
e223cc395d | ||
|
|
6f34a5269f | ||
|
|
3f8ecc006e | ||
|
|
ac2598c6c4 | ||
|
|
09a510cb6c | ||
|
|
48f5fdffe2 | ||
|
|
a6b889c518 | ||
|
|
4795697b3e | ||
|
|
24527a9225 | ||
|
|
6c1428b383 | ||
|
|
68d980cbc6 | ||
|
|
a57994cc66 | ||
|
|
9a19552514 | ||
|
|
4beeaece61 | ||
|
|
a03a3dfac9 | ||
|
|
058bfe4aa5 | ||
|
|
9cb36cbaac | ||
|
|
1d33142eed | ||
|
|
b7c5bc5cb6 | ||
|
|
6b82e09364 | ||
|
|
33c196c2f5 | ||
|
|
448679fc3a | ||
|
|
3b699a595c | ||
|
|
d31de57f41 | ||
|
|
4822dd837c | ||
|
|
540077bd30 | ||
|
|
635c19efb6 | ||
|
|
cde646b3a7 | ||
|
|
163ff400ce | ||
|
|
f458046329 | ||
|
|
069bcbca98 | ||
|
|
ecba379d49 | ||
|
|
452cdb93be | ||
|
|
2295a53329 | ||
|
|
552ca95fd8 | ||
|
|
ef99e83ff3 | ||
|
|
4983422dcd | ||
|
|
9ecccba5c2 | ||
|
|
a973ad2c65 | ||
|
|
7b861157e5 | ||
|
|
ee7b601efd | ||
|
|
a3f35d15db | ||
|
|
a5a00036aa | ||
|
|
e29c1ac30c | ||
|
|
cf59f0d227 | ||
|
|
6146d4e99b | ||
|
|
27444a8131 | ||
|
|
58e0851411 | ||
|
|
0a3be3af1f | ||
|
|
7bb87ebe36 | ||
|
|
20fa32b5ea | ||
|
|
cafb0fd054 | ||
|
|
7042dffb4a | ||
|
|
ac724a2473 | ||
|
|
15c11a8df4 | ||
|
|
f73a632628 | ||
|
|
6f500b940f | ||
|
|
5464a1398e | ||
|
|
04aee08aff | ||
|
|
f1e8b33bc8 | ||
|
|
f3f5841b4a | ||
|
|
04f2f25097 | ||
|
|
41b11ee998 | ||
|
|
fb07674849 | ||
|
|
3cb3366ab9 | ||
|
|
76c86094de | ||
|
|
77ddaa5b36 | ||
|
|
e3d9ec204a | ||
|
|
9d09e08b3c | ||
|
|
794d65904a | ||
|
|
2d71c76d2c | ||
|
|
d5ee4959a7 | ||
|
|
344d037068 | ||
|
|
b37764d749 | ||
|
|
fde09f3999 | ||
|
|
18276eff25 | ||
|
|
aefeaa1173 | ||
|
|
539896c96e | ||
|
|
65b3eb750b | ||
|
|
bf15b94ee6 | ||
|
|
a7b98b79a3 | ||
|
|
25b046d76e | ||
|
|
e291a8bf9a | ||
|
|
eb9ca9b92c | ||
|
|
6da37b7c99 | ||
|
|
e2c2af9a8c | ||
|
|
f77c73b170 | ||
|
|
a7d111f4db | ||
|
|
9a646f2063 | ||
|
|
283ffdcfac | ||
|
|
d4d195bb16 | ||
|
|
241ade09d5 | ||
|
|
87887d5259 | ||
|
|
caab4d70db | ||
|
|
2217c68da0 | ||
|
|
f78845da53 | ||
|
|
4310cfca49 | ||
|
|
e2e66a17d2 | ||
|
|
7b8db215fb | ||
|
|
958e50a67a | ||
|
|
c359b67cbf | ||
|
|
ec688f4a08 | ||
|
|
5ad7146f13 | ||
|
|
342ef5b9c8 | ||
|
|
902d99e95f | ||
|
|
f7eee400b0 | ||
|
|
8faa3f1dea | ||
|
|
3e4fc7e650 | ||
|
|
d5586588a8 | ||
|
|
a2fbc4d7b8 | ||
|
|
e84e0e513d | ||
|
|
23aed28a31 | ||
|
|
1f05bcd029 | ||
|
|
f794d7b72e | ||
|
|
a19f80c311 | ||
|
|
61dbde6cd1 | ||
|
|
2abaeea173 | ||
|
|
b610f0484c | ||
|
|
13bb7b9673 | ||
|
|
712a73e5eb | ||
|
|
b140eb280d | ||
|
|
0d6d26445e | ||
|
|
de334427d2 | ||
|
|
9e4e7b6054 | ||
|
|
a6d2b31c56 | ||
|
|
e819e61bd4 | ||
|
|
e67cead019 | ||
|
|
1a6d720884 | ||
|
|
641b786f0a | ||
|
|
2d039c6cc8 | ||
|
|
6bb8f59ee3 | ||
|
|
28585dd79d | ||
|
|
929aae7785 | ||
|
|
6cb66086a5 | ||
|
|
52316cb669 | ||
|
|
dcfa7b888e | ||
|
|
33cda32e1c | ||
|
|
2172e2dd1e | ||
|
|
e425bd5ea4 | ||
|
|
8d59e16612 | ||
|
|
8ba2edb1db | ||
|
|
db89da9393 | ||
|
|
a133c12535 | ||
|
|
c3d9cb0e86 | ||
|
|
2308e29ba2 | ||
|
|
7672e8959a | ||
|
|
8d3f9906c5 | ||
|
|
408c25a375 | ||
|
|
64374b70af | ||
|
|
cb277ac3c8 | ||
|
|
dafa9879c0 | ||
|
|
a7e1dce45e | ||
|
|
adeccdae56 | ||
|
|
23ebbd6970 | ||
|
|
72cd9b52e1 | ||
|
|
50c7e17a79 | ||
|
|
412643fd6d | ||
|
|
0646dedea9 | ||
|
|
645f328369 | ||
|
|
d1639eab00 | ||
|
|
6e7ee0c1b0 | ||
|
|
35e9f60480 | ||
|
|
cceaff95bb | ||
|
|
5a6cc9f5b8 | ||
|
|
4f671d7bcd | ||
|
|
ac1a1af858 | ||
|
|
96e16e6318 | ||
|
|
aa3eed96a7 | ||
|
|
df0364737a | ||
|
|
7cbb9e7329 | ||
|
|
b35e3fd591 | ||
|
|
966bc22633 | ||
|
|
c7e75e4336 | ||
|
|
763e66fe44 | ||
|
|
652358464f | ||
|
|
490ad6c767 | ||
|
|
2808685fc2 | ||
|
|
e5afe1bbd6 | ||
|
|
f18e98762e | ||
|
|
78878b5fb8 | ||
|
|
5a151dc465 | ||
|
|
aefa67d3f6 | ||
|
|
4b1b5f0c80 | ||
|
|
6ee19db093 | ||
|
|
2601736e6d | ||
|
|
83a78fed8e | ||
|
|
f33c2f1179 | ||
|
|
a215beeb4a | ||
|
|
3bcff1d67d | ||
|
|
842e8a5143 | ||
|
|
68d5aaad30 | ||
|
|
491263fec4 | ||
|
|
7dfc9a6c3c | ||
|
|
766e63f64b | ||
|
|
d43907184d | ||
|
|
951224d030 | ||
|
|
acb1b3e7e7 | ||
|
|
b062f88fb6 | ||
|
|
2541c81d15 | ||
|
|
0ad1b36eac | ||
|
|
21f0ce2d9e | ||
|
|
15c7e8bf52 | ||
|
|
186af8fda4 | ||
|
|
46c8a44a4c | ||
|
|
c41baf82a2 | ||
|
|
4064fa406c | ||
|
|
2af84c38f6 | ||
|
|
c5f92dcd0b | ||
|
|
014691e9da | ||
|
|
4c616886db | ||
|
|
7925bd10e5 | ||
|
|
218fcb2a12 | ||
|
|
ea685a9504 | ||
|
|
c880d1c3fb | ||
|
|
cecdd31889 | ||
|
|
11a7f3f908 | ||
|
|
05946bf5d1 | ||
|
|
3a411d362a | ||
|
|
d6ee2c7ee0 | ||
|
|
721471916a | ||
|
|
4dacc0a232 | ||
|
|
5353beeaf1 | ||
|
|
06dd32898a | ||
|
|
7d05e404d9 | ||
|
|
22d60b9d4d | ||
|
|
fbb7ff7788 | ||
|
|
b879286ad4 | ||
|
|
0dfaae48fe | ||
|
|
8289d13071 | ||
|
|
5850744002 | ||
|
|
d27e66afe9 | ||
|
|
2f7ed923c1 | ||
|
|
2d8951a051 | ||
|
|
7208f7da58 | ||
|
|
fa41e8ecbe | ||
|
|
2135867696 | ||
|
|
64824728db | ||
|
|
52a33963d4 | ||
|
|
562dd54075 | ||
|
|
591bb8b4b1 | ||
|
|
298ca8e363 | ||
|
|
07aff0ee33 | ||
|
|
0603e2d515 | ||
|
|
a2bf7e60fb | ||
|
|
922bdb6089 | ||
|
|
9c3bdda794 | ||
|
|
27cf02b4cf | ||
|
|
b1ce4b344f | ||
|
|
e321b3e873 | ||
|
|
53beafafc2 | ||
|
|
6cef80226a | ||
|
|
c5820a69f3 | ||
|
|
327f2d0a90 | ||
|
|
ca455cf9d7 | ||
|
|
b3f7f293ee | ||
|
|
b5d1606c18 | ||
|
|
2a15cb9a8f | ||
|
|
d93e123f62 | ||
|
|
67028271f1 | ||
|
|
871334506e | ||
|
|
754bfb6067 | ||
|
|
d7509ec6d4 | ||
|
|
b35f2c2f9a | ||
|
|
03ffc533f0 | ||
|
|
477a48941c | ||
|
|
b4196747f4 | ||
|
|
6c35d1f02a | ||
|
|
0732efb715 | ||
|
|
b3af28516a | ||
|
|
92d33529c7 | ||
|
|
2e167ceaa6 | ||
|
|
ad14096ab5 | ||
|
|
3baeebae3c | ||
|
|
26f8db6806 | ||
|
|
1b1c081827 | ||
|
|
1bee748688 | ||
|
|
f25ab3f571 | ||
|
|
a0683e0cdd | ||
|
|
d2c864a65a | ||
|
|
6d742d26b6 | ||
|
|
7408e84fc6 | ||
|
|
c97edb527a | ||
|
|
e30252b5ca | ||
|
|
55e902f9e2 | ||
|
|
20aea8afdc | ||
|
|
4a3285b44e | ||
|
|
6e340edf00 | ||
|
|
eb69720b0c | ||
|
|
428c4cf8bf | ||
|
|
3932765b29 | ||
|
|
736908cd90 | ||
|
|
cd4cc56df0 | ||
|
|
6af47c09ec | ||
|
|
cdd7c9a25d | ||
|
|
014865a885 | ||
|
|
bf3ac0df12 | ||
|
|
e736e9c249 | ||
|
|
3d7caa8c6a | ||
|
|
8df3b5fcbf | ||
|
|
622a6a4113 | ||
|
|
21a695e665 | ||
|
|
ca35880b03 | ||
|
|
013feb26d2 | ||
|
|
2c449f0911 | ||
|
|
4d1c414403 | ||
|
|
1f3e0bf4cb | ||
|
|
d7729627d4 | ||
|
|
5ac4756cd7 | ||
|
|
75c4c34b81 | ||
|
|
28d3934047 | ||
|
|
920282a631 | ||
|
|
701ac83834 | ||
|
|
162d7e2418 | ||
|
|
313b05c498 | ||
|
|
01b75c0024 | ||
|
|
727ebe49ba | ||
|
|
1466d87eda | ||
|
|
0b2b15452a | ||
|
|
b74bc82a00 | ||
|
|
ce3cf99c46 | ||
|
|
3aa7c0b523 | ||
|
|
f4061e06a4 | ||
|
|
6480260e65 | ||
|
|
065d7a1c62 | ||
|
|
3b1dc8dc11 | ||
|
|
97a8168533 | ||
|
|
63ea0e74a4 | ||
|
|
2e9e189c7c | ||
|
|
f05810df70 | ||
|
|
6601a957c2 | ||
|
|
01269919af | ||
|
|
734c0c19ef | ||
|
|
beb00ced8e | ||
|
|
6cb9e33bbb | ||
|
|
a320c4932b | ||
|
|
0aac22672f | ||
|
|
c07eac88c8 | ||
|
|
72c7c6df77 | ||
|
|
6cf06919a0 | ||
|
|
0d4be6ca72 | ||
|
|
733cfb9bb8 | ||
|
|
cb460d650f | ||
|
|
6367fe8072 | ||
|
|
c3424cd871 | ||
|
|
5a24da17a7 | ||
|
|
1c2b24e948 | ||
|
|
1324ef9143 | ||
|
|
70d839b759 | ||
|
|
291ce9d9a3 | ||
|
|
36f99fcc36 | ||
|
|
6d6434e793 | ||
|
|
dc76fc7f98 | ||
|
|
5b0cfa351d | ||
|
|
a0bc9f84c4 | ||
|
|
e0289248f1 | ||
|
|
9f674266a7 | ||
|
|
66c6293482 | ||
|
|
d2e84f2808 | ||
|
|
43b4ceb226 | ||
|
|
51cddf2d26 | ||
|
|
993fbaf726 | ||
|
|
5b17c66859 | ||
|
|
73ac47a262 | ||
|
|
fd0aafd577 | ||
|
|
afcd9d9b16 | ||
|
|
62f9114960 | ||
|
|
e298b4a9c2 | ||
|
|
16253f541d | ||
|
|
3653eb467c | ||
|
|
6c3e83d3ae | ||
|
|
dec2349be0 | ||
|
|
12f2852b67 | ||
|
|
a2483209ea | ||
|
|
46de6f9b51 | ||
|
|
1a0a467b2b | ||
|
|
cef7a77d87 | ||
|
|
632da78512 | ||
|
|
fbd2533d62 | ||
|
|
b9f1e07817 | ||
|
|
b908a7017e | ||
|
|
e6989a19cf | ||
|
|
f2e45911e4 | ||
|
|
bc7aba4d8b | ||
|
|
a0af358cab | ||
|
|
6fb3275346 | ||
|
|
9f918aee67 | ||
|
|
f21b767cf0 | ||
|
|
534868f7e8 | ||
|
|
dace61020a | ||
|
|
01af8b9c01 | ||
|
|
0c55543a21 | ||
|
|
76d702ac87 | ||
|
|
f015efc65b | ||
|
|
fd94d842e3 | ||
|
|
59ce00d12b | ||
|
|
8bac3c358e | ||
|
|
029dcaf2e5 | ||
|
|
550be9779a | ||
|
|
792c207aa2 | ||
|
|
1e8398d0df | ||
|
|
ed4c88b1d5 | ||
|
|
243fd3e79a | ||
|
|
71d0614efb | ||
|
|
d869e46220 | ||
|
|
0575a75788 | ||
|
|
6929275e82 | ||
|
|
1cea839607 | ||
|
|
190a915090 | ||
|
|
90638faa1f | ||
|
|
03bcc3402c | ||
|
|
6af7e6d637 | ||
|
|
6de777acf5 | ||
|
|
feb65cb027 | ||
|
|
407b54fd05 | ||
|
|
2fa4719ed4 | ||
|
|
1e359daeb4 | ||
|
|
c235c061fb | ||
|
|
9feb160f29 | ||
|
|
cb20acb3b8 | ||
|
|
7521aec722 | ||
|
|
9408676622 | ||
|
|
a1fde92e0c | ||
|
|
3a39895236 | ||
|
|
4e97723090 | ||
|
|
1ed5167061 | ||
|
|
7143f5f3f2 | ||
|
|
cd6b1bf7af | ||
|
|
74efa25380 | ||
|
|
9a41f0e081 | ||
|
|
085c0b8eca | ||
|
|
5770110f26 | ||
|
|
db7e1c2a6c | ||
|
|
d3263cd569 | ||
|
|
a3a781424a | ||
|
|
74c1d25376 | ||
|
|
161d9c3e34 | ||
|
|
f19047ea50 | ||
|
|
233785b9b9 | ||
|
|
aafeb4047a | ||
|
|
9f00e664c0 | ||
|
|
2f340cec8e | ||
|
|
cc36f4f11f | ||
|
|
f27bc428c5 | ||
|
|
e62e0a9cd5 | ||
|
|
cdac4fc88d | ||
|
|
46f18e0a84 | ||
|
|
506507f08d | ||
|
|
dd4fe77199 | ||
|
|
885366f8ef | ||
|
|
d8acbb659c | ||
|
|
3ba684834e | ||
|
|
910d07b46f | ||
|
|
7ce4840b98 | ||
|
|
21a88d2aca | ||
|
|
3d0513eb64 | ||
|
|
c4d84e573b | ||
|
|
a86a6e2ee9 | ||
|
|
02a575f96d | ||
|
|
33b8b7d63a | ||
|
|
ad351aa0fa | ||
|
|
b936d091ae | ||
|
|
454941b570 | ||
|
|
cb577245cb | ||
|
|
e4591b2fa9 | ||
|
|
ad8f2c5634 | ||
|
|
ec72e8eac1 | ||
|
|
15aa8bbf6e | ||
|
|
e349036c87 | ||
|
|
412c4bd52a | ||
|
|
740f4fdd92 | ||
|
|
b432275ccc | ||
|
|
1e136bb59b | ||
|
|
7d33adacfc | ||
|
|
49b674e404 | ||
|
|
2f846027d7 | ||
|
|
55dfa970e9 | ||
|
|
eb147da479 | ||
|
|
055eefe377 | ||
|
|
9961cc24c4 | ||
|
|
da926b324c | ||
|
|
b6c0616c29 | ||
|
|
fc2381faa1 | ||
|
|
3744cb12b8 | ||
|
|
7c7601318f | ||
|
|
c58546b6e8 | ||
|
|
bca25aca16 | ||
|
|
d654db57fd | ||
|
|
8c789ce6f1 | ||
|
|
dead352686 | ||
|
|
487f5e8626 | ||
|
|
4af5a7d002 | ||
|
|
0f73cb6fbc | ||
|
|
7a86eaebc6 | ||
|
|
5ff2fc8acc | ||
|
|
87fef19de6 | ||
|
|
b3f0d6573d | ||
|
|
d5c1447353 | ||
|
|
d5778a710e | ||
|
|
7d82445973 | ||
|
|
f710e88f14 | ||
|
|
80f51f71d5 | ||
|
|
d8b0e6145c | ||
|
|
2f74839692 | ||
|
|
8c16e00393 | ||
|
|
ef602f288b | ||
|
|
739cc4994b | ||
|
|
45c6141c08 | ||
|
|
a1fd592756 | ||
|
|
58d8819dad | ||
|
|
a6248a578b | ||
|
|
c7d1714833 | ||
|
|
f4c3a13a6e | ||
|
|
fa130747f5 | ||
|
|
d7a2ce56b3 | ||
|
|
9f508664ec | ||
|
|
79642eb1d5 | ||
|
|
fb70d80533 | ||
|
|
9527403b34 | ||
|
|
c1224d2453 | ||
|
|
4cb6b0566a | ||
|
|
88efa09f14 | ||
|
|
8fb558fe22 | ||
|
|
9dbcc22226 | ||
|
|
991e337734 | ||
|
|
d7e6040dd6 | ||
|
|
0439300080 | ||
|
|
2e5860ca13 | ||
|
|
23e43883f9 | ||
|
|
d3ba7f2755 | ||
|
|
80a7328e64 | ||
|
|
2de062a5d6 | ||
|
|
c4564a0846 | ||
|
|
b555909025 | ||
|
|
12a0106037 | ||
|
|
cc0baf1126 | ||
|
|
2086e2380b | ||
|
|
eac5ae87c9 | ||
|
|
2caa3c7ec7 | ||
|
|
6a93dd96e2 | ||
|
|
43c2f5b8b9 | ||
|
|
612784615f | ||
|
|
07a6122da8 | ||
|
|
c2556ef3bb | ||
|
|
66a7bbebff | ||
|
|
cab3b1cc45 | ||
|
|
0731ee16d2 | ||
|
|
93282a50b8 | ||
|
|
4e0902ecb1 | ||
|
|
f59ac23959 | ||
|
|
6bfb7c23f6 | ||
|
|
14294751ca | ||
|
|
41bc14717a | ||
|
|
dbfbe0991b | ||
|
|
987d42d1d9 | ||
|
|
de503836d7 | ||
|
|
c16dffe008 | ||
|
|
190d09596b | ||
|
|
975ecd4e44 | ||
|
|
75215af3a4 | ||
|
|
63a0d06723 | ||
|
|
6ba9a03def | ||
|
|
42099f1985 | ||
|
|
1a7da473da | ||
|
|
ce4f6eab05 | ||
|
|
0dcd847817 | ||
|
|
2d53fa24bc | ||
|
|
8185204e06 | ||
|
|
c84686f2fe | ||
|
|
e4589052b7 | ||
|
|
e77642a7d4 | ||
|
|
7215b3e587 | ||
|
|
b49a589fbd | ||
|
|
25e5aa7122 | ||
|
|
ba8f5a28fc | ||
|
|
2686524e26 | ||
|
|
16124dd4d8 | ||
|
|
fae58f29bf | ||
|
|
73fa0bd618 | ||
|
|
2cdd42ccc0 | ||
|
|
b513302589 | ||
|
|
a49c296607 | ||
|
|
36f098b747 | ||
|
|
3ff1999702 | ||
|
|
e5a7e22bf0 | ||
|
|
c7efd09df3 | ||
|
|
b5a190847f | ||
|
|
05e0e2a035 | ||
|
|
9b63e77d39 | ||
|
|
d91b51a381 | ||
|
|
9b43fd1d20 | ||
|
|
ca431b5b3f | ||
|
|
849c9a9907 | ||
|
|
2e7e860033 | ||
|
|
c493950755 | ||
|
|
46aa4c86cb | ||
|
|
37456e2c56 | ||
|
|
5629e5d986 | ||
|
|
1a7c7795ae | ||
|
|
2763415aa7 | ||
|
|
240ac5a208 | ||
|
|
3d90a70e17 | ||
|
|
b0c3f4c6ae | ||
|
|
a2e9dbda21 | ||
|
|
717c94ce15 | ||
|
|
1a58ada4d0 | ||
|
|
d265b9ab3e | ||
|
|
be526c8cd4 | ||
|
|
1e3cb17908 | ||
|
|
722f695479 | ||
|
|
3ef85769b6 | ||
|
|
b4e1904a54 | ||
|
|
a686be61fc | ||
|
|
34f27258c4 | ||
|
|
a22e146e91 | ||
|
|
9f9121a48a | ||
|
|
6664127189 | ||
|
|
e50f132dab | ||
|
|
9c14b9d60f | ||
|
|
1c0ab20825 | ||
|
|
dee399a6f9 | ||
|
|
fcce2c9c3b | ||
|
|
5bd0d24864 | ||
|
|
ab5b89e884 | ||
|
|
4d10866172 | ||
|
|
b3d60a9e86 | ||
|
|
d29fd12d7d | ||
|
|
09b1aa831d | ||
|
|
f1e6abb452 | ||
|
|
b781c00d72 | ||
|
|
a8b6c5dc10 | ||
|
|
a004a3217f | ||
|
|
04042f8a99 | ||
|
|
67035a68d5 | ||
|
|
551c64f766 | ||
|
|
ef33836f21 | ||
|
|
a8ca7e86be | ||
|
|
c8d3b74023 | ||
|
|
85ed071988 | ||
|
|
6c4df54e91 | ||
|
|
8ee67de88d | ||
|
|
fb82164a44 | ||
|
|
2ec296b2f4 | ||
|
|
e70043e74a | ||
|
|
e326ccd99e | ||
|
|
985c94d740 | ||
|
|
e97ee948df | ||
|
|
4806c3b763 | ||
|
|
d93a6ba8b3 | ||
|
|
04cdd79934 | ||
|
|
985f4cbc11 | ||
|
|
e145ffa4ba | ||
|
|
fe874e21b6 | ||
|
|
d06b1bfae6 | ||
|
|
cc1922f9c8 | ||
|
|
e682184fae | ||
|
|
0330ff20d9 | ||
|
|
85fe572bcd | ||
|
|
c1273ab0d2 | ||
|
|
e1d0e58079 | ||
|
|
53624e94f1 | ||
|
|
56f0dfd16e | ||
|
|
4a04b7e53c | ||
|
|
fb5974780c | ||
|
|
9c51dc33c2 | ||
|
|
1c0b99dade | ||
|
|
af5ad159ff | ||
|
|
e14ae26bdb | ||
|
|
f6f16d1894 | ||
|
|
bcbbf719a8 | ||
|
|
e3e6bbd6c1 | ||
|
|
129ec01ab6 | ||
|
|
cf65d7238e | ||
|
|
8e5b4b7228 | ||
|
|
10a0a6c691 | ||
|
|
2158e8d2ac | ||
|
|
67dacb093c | ||
|
|
b2fb2490bf | ||
|
|
7374211ae1 | ||
|
|
24c252656d | ||
|
|
b1b992e40d | ||
|
|
70d3135c69 | ||
|
|
b4d39651f8 | ||
|
|
07e798e8a3 | ||
|
|
2261fa0be1 | ||
|
|
a4cc7f4b09 | ||
|
|
91a42e4408 | ||
|
|
b4ae091bf1 | ||
|
|
00445d9a5b | ||
|
|
310895245a | ||
|
|
e970871785 | ||
|
|
61c67a1217 | ||
|
|
7744cb4ebd | ||
|
|
fb43d43394 | ||
|
|
d1763d119d | ||
|
|
4cfa33f038 | ||
|
|
8d9622c3c9 | ||
|
|
66e34790dc | ||
|
|
1d9738f844 | ||
|
|
92f4c0ce84 | ||
|
|
1e5009096a | ||
|
|
935b3a313c | ||
|
|
04be3b2317 | ||
|
|
377ebd813c | ||
|
|
1805b0603c | ||
|
|
1321af36c3 | ||
|
|
b0c14abb8e | ||
|
|
0d86498d34 | ||
|
|
9cdc1be394 | ||
|
|
71c1288a19 | ||
|
|
ca4d247b09 | ||
|
|
5af0a1725f | ||
|
|
21a9ec614a | ||
|
|
74f2655fd9 | ||
|
|
57ba83dfce | ||
|
|
2dead96ff3 | ||
|
|
f64f13befd | ||
|
|
1c77f6284f | ||
|
|
44425c8879 | ||
|
|
65be1f35bf | ||
|
|
7b63e34bea | ||
|
|
2631f8007f | ||
|
|
fec1ddfe5d | ||
|
|
854e5b87a4 | ||
|
|
8b140cc754 | ||
|
|
e24dccc870 | ||
|
|
a2d1368129 | ||
|
|
9cc691db5c | ||
|
|
fb3dfe55f8 | ||
|
|
0c3900b51c | ||
|
|
5c65c476da | ||
|
|
dd1b601f5a | ||
|
|
0e9b5b4dee | ||
|
|
d009bf39da | ||
|
|
173160ff04 | ||
|
|
cd8a873ba8 | ||
|
|
c86f973ea7 | ||
|
|
6f51dd62b2 | ||
|
|
0bd789315d | ||
|
|
c5e964b9c5 | ||
|
|
62a0144f81 | ||
|
|
1dd5073864 | ||
|
|
364287184c | ||
|
|
8fa950ecaf | ||
|
|
e80901d631 | ||
|
|
f89ede28f4 | ||
|
|
ad423c383c | ||
|
|
88e3d55425 | ||
|
|
881ad77662 | ||
|
|
3c0f3c1ee9 | ||
|
|
eb6bde4037 | ||
|
|
4ac0bf5406 | ||
|
|
16639c2c16 | ||
|
|
167855d31d | ||
|
|
46691eb9d8 | ||
|
|
8592baea6d | ||
|
|
baa0a2e1ce | ||
|
|
aaf4de8255 | ||
|
|
03a4ce00c3 | ||
|
|
e77f4eacc9 | ||
|
|
ae94e14fdd | ||
|
|
5e7d2837f9 | ||
|
|
50b12e912f | ||
|
|
0af28e9283 | ||
|
|
e588909218 | ||
|
|
f7705ac1e9 | ||
|
|
482892fcb4 | ||
|
|
a098ebeaf9 | ||
|
|
f03e8f3e57 | ||
|
|
0e1d9fe707 | ||
|
|
38d94ef317 | ||
|
|
cb81b9e53f | ||
|
|
660422417d | ||
|
|
8b6cbc8e12 | ||
|
|
d9db2132d0 | ||
|
|
8d1b11d33c | ||
|
|
ab44076735 | ||
|
|
f30c2d09c4 | ||
|
|
2c555e4f1a | ||
|
|
84cb66dcae | ||
|
|
6b81d495cc | ||
|
|
65c146f937 | ||
|
|
2740d93865 | ||
|
|
63db378a26 | ||
|
|
4cf5702563 | ||
|
|
6dcf27befc | ||
|
|
6204e88d2a | ||
|
|
ff2d4a6612 | ||
|
|
547a90c0d5 | ||
|
|
62b482e8da | ||
|
|
79beccb985 | ||
|
|
5693556bca | ||
|
|
8de10f6d18 | ||
|
|
45984731dd | ||
|
|
7b9a62ea21 | ||
|
|
02acb6c49c | ||
|
|
ae38c4b199 | ||
|
|
d428a4b284 | ||
|
|
f287ca6aaa | ||
|
|
fc7807d266 | ||
|
|
395a4bcf59 | ||
|
|
f2bdedc432 | ||
|
|
fdca560121 | ||
|
|
02a1f33dd3 | ||
|
|
f29096316f | ||
|
|
9bc63d5d71 | ||
|
|
e2e273a558 | ||
|
|
1f4a4cf7e4 | ||
|
|
ad79c5fdaa | ||
|
|
52bc0f17f0 | ||
|
|
3c50b19b46 | ||
|
|
c83ec7c18c | ||
|
|
93294191b5 | ||
|
|
b8cb053796 | ||
|
|
d9391d60a9 | ||
|
|
73a0bfddbb | ||
|
|
767c375f9c | ||
|
|
27c55448ae | ||
|
|
6819f91559 | ||
|
|
38ca348910 | ||
|
|
b3dce7919c | ||
|
|
3b1e46d52d | ||
|
|
0445a11d70 | ||
|
|
5444c305a6 | ||
|
|
5d236b351a | ||
|
|
73a7bd0fad | ||
|
|
0517605bd8 | ||
|
|
1b7a8ba9fb | ||
|
|
4d2b8b0cb7 | ||
|
|
c9907737be | ||
|
|
52d420ba99 | ||
|
|
44f1f16583 | ||
|
|
2c32415aa5 | ||
|
|
b910f9f584 | ||
|
|
e0f44d8ea6 | ||
|
|
efcc214848 | ||
|
|
e954be3560 | ||
|
|
124be570c8 | ||
|
|
4acbacbf19 | ||
|
|
cb15545a43 | ||
|
|
302c9157a9 | ||
|
|
20021e11c7 | ||
|
|
f243c7fc5d | ||
|
|
66eeac3dea | ||
|
|
6e3e4e0955 | ||
|
|
efd9ff49c0 | ||
|
|
361c3b4198 | ||
|
|
57cc2adeb7 | ||
|
|
683bc49e47 | ||
|
|
fd3374a739 | ||
|
|
ff755ca072 | ||
|
|
4e82845941 | ||
|
|
84f7f79739 | ||
|
|
6eb78d60c2 | ||
|
|
e3fb95be71 | ||
|
|
556ee612e5 | ||
|
|
95ae1807d9 | ||
|
|
1db99c554d | ||
|
|
525c53b3ec | ||
|
|
9c97b85b3c | ||
|
|
23a8527027 | ||
|
|
30b2cc2b1b | ||
|
|
c66f09b6a3 | ||
|
|
b267deb4c5 | ||
|
|
8471da2f8f | ||
|
|
adfc96dfd5 | ||
|
|
23ceeef060 | ||
|
|
b3582060b0 | ||
|
|
814cb5b910 | ||
|
|
88a5eacca9 | ||
|
|
99504fb4e4 | ||
|
|
27763d6d8a | ||
|
|
76ea369c73 | ||
|
|
404ec9caa3 | ||
|
|
447695c26b | ||
|
|
1d62962b11 | ||
|
|
7e2b49dd8d | ||
|
|
1af88191c0 | ||
|
|
b88c111087 | ||
|
|
da3e600964 | ||
|
|
9515cf0b15 | ||
|
|
f1e7747dd5 | ||
|
|
65869d0828 | ||
|
|
e35b6d2d67 | ||
|
|
c1c5295bb2 | ||
|
|
12d7c718f2 | ||
|
|
2e866bdb54 | ||
|
|
57a15a2aa7 | ||
|
|
fd9c6ac960 | ||
|
|
8af71c651f | ||
|
|
5336463792 | ||
|
|
1e09e5bdbf | ||
|
|
0b56e0673e | ||
|
|
d35bc7e328 | ||
|
|
d81830504d | ||
|
|
334a8b8c19 | ||
|
|
2548e94bf7 | ||
|
|
d7ae2737b6 | ||
|
|
085c2f151e | ||
|
|
2767e2eeea | ||
|
|
934cf4eeb4 | ||
|
|
cf4724914d | ||
|
|
e336171dc1 | ||
|
|
1140eaf333 | ||
|
|
46923adada | ||
|
|
71a3f8f1bd | ||
|
|
8a7b85eafe | ||
|
|
418f30eb6d | ||
|
|
5c0822d911 | ||
|
|
2e5559a9ee | ||
|
|
221b016f86 | ||
|
|
f51d972eda | ||
|
|
5315cd21e3 | ||
|
|
a078966dee | ||
|
|
ce7a7394ee | ||
|
|
ab20a5df0b | ||
|
|
46f43ee8a4 | ||
|
|
1c005bf789 | ||
|
|
f7f588cbec | ||
|
|
71383a1a73 | ||
|
|
2232ea795e | ||
|
|
b9572e1d0c | ||
|
|
76c92e50b7 | ||
|
|
b07152c2b0 | ||
|
|
1442749f62 | ||
|
|
bbab5af811 | ||
|
|
a021374b82 | ||
|
|
480d43780d | ||
|
|
4f0d5513ca | ||
|
|
fe0e3377f5 | ||
|
|
47bd995ad7 | ||
|
|
9c875d9f49 | ||
|
|
0bbc124081 | ||
|
|
b508227023 | ||
|
|
a74632b4e0 | ||
|
|
57750d9b19 | ||
|
|
5e7e17f1ee | ||
|
|
0e2e931499 | ||
|
|
7dc2f8b338 | ||
|
|
93e116a75d | ||
|
|
48ffbb042b | ||
|
|
a7ace46a44 | ||
|
|
af0ef8eea2 | ||
|
|
a7e03f4755 | ||
|
|
74e75f855c | ||
|
|
0ed832a5a5 | ||
|
|
ef5d0da3b9 | ||
|
|
6e7e1e81eb | ||
|
|
c821eb485c | ||
|
|
2ba3a677f9 | ||
|
|
3b78646819 | ||
|
|
c080068bf4 | ||
|
|
c6b074e9c0 | ||
|
|
6af9aa044c | ||
|
|
9b0287d02f | ||
|
|
645d8a83e6 | ||
|
|
f07ebb62ea | ||
|
|
b34ff0f84d | ||
|
|
cfa6e9077d | ||
|
|
3ad0fccd05 | ||
|
|
ec225d7313 | ||
|
|
c19360290d | ||
|
|
b108a0bd5d | ||
|
|
fa8055d766 | ||
|
|
5c0b3a8493 | ||
|
|
a1f7e01e87 | ||
|
|
f87930345e | ||
|
|
9b3cc4d8a9 | ||
|
|
08ca3972f3 | ||
|
|
05c94159a6 | ||
|
|
8841389ba9 | ||
|
|
029cb871c6 | ||
|
|
159c47d6bb | ||
|
|
9b14c24177 | ||
|
|
be225210cf | ||
|
|
353d376929 | ||
|
|
a060cf8674 | ||
|
|
af20c42255 | ||
|
|
285aec4be4 | ||
|
|
f8c1ca120d | ||
|
|
98e3c339d5 | ||
|
|
1822af0b19 | ||
|
|
c66dddb0b1 | ||
|
|
c499c3953a | ||
|
|
3d8719929d | ||
|
|
a76093b068 | ||
|
|
ecd4e6393a | ||
|
|
fbdfe6cfbf | ||
|
|
afaba402ee | ||
|
|
d25af4c96e | ||
|
|
027e33e1f7 | ||
|
|
6edbf2a534 | ||
|
|
045ade9166 | ||
|
|
db905d03f0 | ||
|
|
e7acc121a2 | ||
|
|
b56b6f1294 | ||
|
|
4474bc8244 | ||
|
|
cda3c22ce5 | ||
|
|
2fc56184a7 | ||
|
|
5a3e30a66b | ||
|
|
3d22e6a7cf | ||
|
|
c62a6476fb | ||
|
|
26b656890c | ||
|
|
815cd824bf | ||
|
|
33d0449485 | ||
|
|
94df5a8d5b | ||
|
|
7ce8a424e8 | ||
|
|
b76ad9ff28 | ||
|
|
f741481677 | ||
|
|
e78cbdfa07 | ||
|
|
9a2bf9599e | ||
|
|
7925c9901c | ||
|
|
085f0c8a53 | ||
|
|
e658b9c185 | ||
|
|
ca4b414c7b | ||
|
|
24b298fe9a | ||
|
|
06b816a9d8 | ||
|
|
8683d822f8 | ||
|
|
df05d108e3 | ||
|
|
93ba63597f | ||
|
|
352827a8ea | ||
|
|
ca13ea54b3 | ||
|
|
443b7ee41b | ||
|
|
f913a59011 | ||
|
|
cc64368d73 | ||
|
|
27516d4c8b | ||
|
|
84cb365772 | ||
|
|
9d9e357c5e | ||
|
|
eaf1b7be8f | ||
|
|
bb20c765b8 | ||
|
|
5b5cd0d201 | ||
|
|
129b306d00 | ||
|
|
6595512435 | ||
|
|
23ce36f885 | ||
|
|
453eff22bc | ||
|
|
7bdfdec9c0 | ||
|
|
4b30cf18ce | ||
|
|
a09226bba3 | ||
|
|
b2e059338f | ||
|
|
cf3e1daa3d | ||
|
|
d17d950b3b | ||
|
|
01c7d0f68b | ||
|
|
cb4d28ad2a | ||
|
|
d3d40d6aae | ||
|
|
c414bef8bb | ||
|
|
7f7d250b5f | ||
|
|
a1e60e042a | ||
|
|
d7134afc47 | ||
|
|
141f4393fe | ||
|
|
7800e53de7 | ||
|
|
3c353147a1 | ||
|
|
1b909317e8 | ||
|
|
502d1984bf | ||
|
|
bc0ea602a4 | ||
|
|
1609559230 | ||
|
|
870010a55d | ||
|
|
324c6add0e | ||
|
|
f173e370fa | ||
|
|
e9e5d16b88 | ||
|
|
9234d22cc3 | ||
|
|
88aa7456e2 | ||
|
|
1d935d7bc3 | ||
|
|
bbe3b23726 | ||
|
|
33a5a01f1b | ||
|
|
26ccfeff7a | ||
|
|
8c9d8ce4b8 | ||
|
|
d8c231517a | ||
|
|
0568ea0d2a | ||
|
|
33a5f2e68e | ||
|
|
8bd133c816 | ||
|
|
09afa73f83 | ||
|
|
bfebe9e467 | ||
|
|
268cf3d588 | ||
|
|
dd38ad52d1 | ||
|
|
a892a02aed | ||
|
|
dc84c70cb8 | ||
|
|
befa68afd3 | ||
|
|
de1d9be7d0 | ||
|
|
a5e8bedc5a | ||
|
|
4707ded303 | ||
|
|
b13951d29e | ||
|
|
5c6c3376c6 | ||
|
|
6c830cc7f9 | ||
|
|
05276d135a | ||
|
|
140a9c19a0 | ||
|
|
843724d3d0 | ||
|
|
dec4b7aef6 | ||
|
|
c8f119883f | ||
|
|
dd29bd4fb0 | ||
|
|
2fa6f14da1 | ||
|
|
0064e6b3b6 | ||
|
|
cb916c1f38 | ||
|
|
65d6800f17 | ||
|
|
33a5d9d948 | ||
|
|
896f45b4ed | ||
|
|
b7b37d2099 | ||
|
|
7da863dc25 | ||
|
|
32e09a111e | ||
|
|
578a086c41 | ||
|
|
55e4da0b7d | ||
|
|
4cc7a0f0c3 | ||
|
|
9bf57627ee | ||
|
|
8f13751bcc | ||
|
|
7026d8da48 | ||
|
|
5f5939e751 | ||
|
|
79dd6b9dc0 | ||
|
|
ce41fbb4b9 | ||
|
|
1830995bf9 | ||
|
|
1248da34d4 | ||
|
|
420fee292a | ||
|
|
bdef1d1965 | ||
|
|
da9be79356 | ||
|
|
493d6a0dec | ||
|
|
df09afe043 | ||
|
|
15e3a583fd | ||
|
|
462fac9c68 | ||
|
|
6486e9db80 | ||
|
|
143a8a7fe1 | ||
|
|
c8a978d1f3 | ||
|
|
5bdb3c8b56 | ||
|
|
c5ed7cd9fa | ||
|
|
712d120ca9 | ||
|
|
8512dd1f60 | ||
|
|
000de18dad | ||
|
|
03db2997c3 | ||
|
|
0a88588e3e | ||
|
|
b09d5dbb8f | ||
|
|
63308da72a | ||
|
|
5e8f9ce585 | ||
|
|
796bd8bf6e | ||
|
|
e4a091227f | ||
|
|
6168b728f5 | ||
|
|
45bf2f08fa | ||
|
|
8358267a40 | ||
|
|
d3c17c74e2 | ||
|
|
12d367dd29 | ||
|
|
174689d853 | ||
|
|
a6c0065435 | ||
|
|
d738bdb73a | ||
|
|
963c4e4a4f | ||
|
|
5b259a5e08 | ||
|
|
3c56d9fa6d | ||
|
|
b49116e407 | ||
|
|
bbf0f0c73f | ||
|
|
d693f65c2f | ||
|
|
67a5262989 | ||
|
|
d024026477 | ||
|
|
3694001918 | ||
|
|
05108e5cb6 | ||
|
|
561a7318e2 | ||
|
|
75609b5b87 | ||
|
|
215c2c6dda | ||
|
|
1f96f1b269 | ||
|
|
cbd9fd89ef | ||
|
|
829e66ff5f | ||
|
|
45517834bd | ||
|
|
c3cf4947ba | ||
|
|
9873a7e9bc | ||
|
|
17e9468629 | ||
|
|
82b04f8442 | ||
|
|
a89b5cb8ab | ||
|
|
5ca8318b57 | ||
|
|
639b6fc0a5 | ||
|
|
536ad3ea79 | ||
|
|
88c370dffa | ||
|
|
897ba78098 | ||
|
|
7ec8fc48b0 | ||
|
|
c749bd6e74 | ||
|
|
894ec265c9 | ||
|
|
cb6efea151 | ||
|
|
c46c60d264 | ||
|
|
42688aef00 | ||
|
|
063a5bd12c | ||
|
|
9cd69ea883 | ||
|
|
911bc45f47 | ||
|
|
1778c9bd2c | ||
|
|
358eeff570 | ||
|
|
9981b91cc4 | ||
|
|
53616a70c3 | ||
|
|
1557704800 | ||
|
|
b161c7ad27 | ||
|
|
338b26306d | ||
|
|
3f4ca2de5c | ||
|
|
296c601b45 | ||
|
|
99429694a4 | ||
|
|
70ebb9cb36 | ||
|
|
ae1acdba2e | ||
|
|
95644767c5 | ||
|
|
cbcb11e08e | ||
|
|
57143f3c8d | ||
|
|
c2e8cf81ac | ||
|
|
ff9e61eb57 | ||
|
|
91bc3a3e31 | ||
|
|
afb082a415 | ||
|
|
a2ab4bb2bf | ||
|
|
b6d90f2b77 | ||
|
|
b1bb0c441f | ||
|
|
da29049ba5 | ||
|
|
2e33d44c0f | ||
|
|
5bdcd310f6 | ||
|
|
11f3f3cd20 | ||
|
|
b9f60d10a1 | ||
|
|
f4b4eb47c5 | ||
|
|
889a50a45f | ||
|
|
4b6a53f316 | ||
|
|
414209db7c | ||
|
|
e7bcf2a04f | ||
|
|
b20df097d3 | ||
|
|
0ff36d7151 | ||
|
|
a79ee00664 | ||
|
|
c84580aaa0 | ||
|
|
2fb24b4b1d | ||
|
|
b07160254c | ||
|
|
2340fc3916 | ||
|
|
3c28dfbe95 | ||
|
|
a4b302f726 | ||
|
|
cf2a1052b7 | ||
|
|
d5cbe77c9e | ||
|
|
4b8a4c48f5 | ||
|
|
ba41a82208 | ||
|
|
5ed04b4e84 | ||
|
|
fbdaac74be | ||
|
|
342a6fb1bf | ||
|
|
e497d697fa | ||
|
|
5a667a4b35 | ||
|
|
0cc0babb77 | ||
|
|
1255258cfc | ||
|
|
1da671d87c | ||
|
|
8ea94cce42 | ||
|
|
cf15fe8d40 | ||
|
|
23949b6ee8 | ||
|
|
bb530930d9 | ||
|
|
ae953937e1 | ||
|
|
3e83eef908 | ||
|
|
8c0eb26b8f | ||
|
|
1121b712c5 | ||
|
|
01aa757517 | ||
|
|
28801d8a51 | ||
|
|
e3ef61e87f | ||
|
|
eb34b52a3a | ||
|
|
9df87923d9 | ||
|
|
3c85ff2d98 | ||
|
|
5df5c35e86 | ||
|
|
98b9422ae3 | ||
|
|
4fa918711d | ||
|
|
54a6feacd2 | ||
|
|
41c637f831 | ||
|
|
6b6bd4ea62 | ||
|
|
0050bff193 | ||
|
|
b0025d0931 | ||
|
|
9c0558a269 | ||
|
|
a9cd70d9f7 | ||
|
|
0e480efce6 | ||
|
|
1bdb0c08ee | ||
|
|
22349a8ca5 | ||
|
|
5b7c438d0f | ||
|
|
2934376fd7 | ||
|
|
387e3f62d1 | ||
|
|
8ce877ea7d | ||
|
|
9cf455aaa5 | ||
|
|
3623a71d8b | ||
|
|
8c801b6376 | ||
|
|
aa4bb97695 | ||
|
|
35d97a9e61 | ||
|
|
27493a5edc | ||
|
|
0a2165b40c | ||
|
|
2cf5dd837d | ||
|
|
abbb1c1afe | ||
|
|
46b4f2e7b0 | ||
|
|
d3e34dbb59 | ||
|
|
56741a081d | ||
|
|
879fd82504 | ||
|
|
0c2177ea58 | ||
|
|
6440ac243f | ||
|
|
a2090eb847 | ||
|
|
ed1f57f9a0 | ||
|
|
7f8ac6aa1a | ||
|
|
493e5a5a8f | ||
|
|
84cc83712b | ||
|
|
963ea596a7 | ||
|
|
f574fdf66c | ||
|
|
02e2d6b705 | ||
|
|
69f6c35e6a | ||
|
|
7fdca09f79 | ||
|
|
a8ab6074bb | ||
|
|
3e6d9e9e9c | ||
|
|
be40226a6b | ||
|
|
44da6e4afd | ||
|
|
b8280542c5 | ||
|
|
cc2377eb0e | ||
|
|
1ee6e2823d | ||
|
|
7f8b578479 | ||
|
|
0292124f79 | ||
|
|
17536ff55d | ||
|
|
bb602b4be5 | ||
|
|
47332048c3 | ||
|
|
b26150537d | ||
|
|
84588e0912 | ||
|
|
261835d9a8 | ||
|
|
34519663c2 | ||
|
|
54fd837c68 | ||
|
|
1b19c67bf4 | ||
|
|
389d195aaa | ||
|
|
5dfadf47d3 | ||
|
|
16460baaf0 | ||
|
|
a216f0308a | ||
|
|
a5229afc6c | ||
|
|
cc2ab1e13c | ||
|
|
1d909eeabd | ||
|
|
1c0a002bf3 | ||
|
|
c976e350fb | ||
|
|
db6b0d3582 | ||
|
|
1494cae800 | ||
|
|
0e1cf8e36c | ||
|
|
1daf575af6 | ||
|
|
b6b4607cdd | ||
|
|
3c9c967631 | ||
|
|
2de0667d03 | ||
|
|
2a8d6e5d91 | ||
|
|
55ed0029f6 | ||
|
|
1a92ca98f2 | ||
|
|
c9e5fc7b7a | ||
|
|
9520c6e4b8 | ||
|
|
97adcdaa3f | ||
|
|
0ab2e4b338 | ||
|
|
1280baf755 | ||
|
|
95778a3035 | ||
|
|
3a397712e4 | ||
|
|
85e35a4756 | ||
|
|
d55e3d33f5 | ||
|
|
f0195efdc4 | ||
|
|
411b24a0d0 | ||
|
|
94fc0783ff | ||
|
|
ad1f72b440 | ||
|
|
8a9d9e56be | ||
|
|
21653cb97c | ||
|
|
04538516ac | ||
|
|
29d321b5ab | ||
|
|
97aa7e5221 | ||
|
|
d103000886 | ||
|
|
8cb72df8aa | ||
|
|
2e7f80b849 | ||
|
|
664f264f9b | ||
|
|
19a29d88c2 | ||
|
|
da9c90fd01 | ||
|
|
65c974e762 | ||
|
|
e64853e80b | ||
|
|
d7d1e6403f | ||
|
|
eb6ffe6ef7 | ||
|
|
a564378015 | ||
|
|
49ce1aca5f | ||
|
|
0810d179fa | ||
|
|
524909f177 | ||
|
|
46ab13df54 | ||
|
|
e37b880bd5 | ||
|
|
340c11ee28 | ||
|
|
83a9cfa09d | ||
|
|
01f8b8aa1c | ||
|
|
f2246e8db9 | ||
|
|
a0d6c372fa | ||
|
|
6654ca29e9 | ||
|
|
e8ebe2308b | ||
|
|
a08697a4c3 | ||
|
|
6284b48915 | ||
|
|
52083bfec0 | ||
|
|
dd18481e46 | ||
|
|
2ba8043a8d | ||
|
|
99fb2d6dd1 | ||
|
|
f88d4eeedf | ||
|
|
9fc5b9bdde | ||
|
|
14dff51593 | ||
|
|
ef5adff921 | ||
|
|
235d4dee7f | ||
|
|
ab50cfd70b | ||
|
|
7a5f51eadc | ||
|
|
3ef84d17f9 | ||
|
|
4ef9c5b002 | ||
|
|
ceb8154d1c | ||
|
|
0482db90be | ||
|
|
5e007daf51 | ||
|
|
8073928b42 | ||
|
|
1ec95b81f2 | ||
|
|
a1e83538f6 | ||
|
|
49ea47d685 | ||
|
|
ee4c1e56ab | ||
|
|
3795ddeff6 | ||
|
|
ab90fea96b | ||
|
|
157288d366 | ||
|
|
c3c3ba4f59 | ||
|
|
c296277c1d | ||
|
|
d31157003b | ||
|
|
426ca56de1 | ||
|
|
ba7fcc2c02 | ||
|
|
966549ce5b | ||
|
|
c72da07aed | ||
|
|
fdd0c57b01 | ||
|
|
b15315a699 | ||
|
|
2c3044640e | ||
|
|
726b036e26 | ||
|
|
c13180b6a0 | ||
|
|
4e759a51ed | ||
|
|
6b95f492b8 | ||
|
|
59d1cd6d18 | ||
|
|
7d97390e24 | ||
|
|
5cb64c3dd5 | ||
|
|
f416d31767 | ||
|
|
ae8e46245f | ||
|
|
14791dcf9e | ||
|
|
ae9a28ea86 | ||
|
|
8139c33495 | ||
|
|
e645221cca | ||
|
|
11b16e0b5f | ||
|
|
4d0f48d313 | ||
|
|
553426e83b | ||
|
|
5cbcf1d710 | ||
|
|
2fb1472555 | ||
|
|
959c1c300c | ||
|
|
e713d840dd | ||
|
|
f8686cf6df | ||
|
|
d0cc99345f | ||
|
|
83942493e1 | ||
|
|
6189f6970b | ||
|
|
b47837c71e | ||
|
|
ce9acbfe9b | ||
|
|
83086f21f4 | ||
|
|
48ab02f708 | ||
|
|
5361be8c3c | ||
|
|
2a386443d8 | ||
|
|
ddc56328a7 | ||
|
|
e1144dc72b | ||
|
|
08bd7550de | ||
|
|
a424fb1209 | ||
|
|
16735098be | ||
|
|
91e63a068d | ||
|
|
3f842b3f9b | ||
|
|
8a48fd791b | ||
|
|
7e53192819 | ||
|
|
871ec2968f | ||
|
|
4c932cdd1b | ||
|
|
785c330256 | ||
|
|
c0753ad684 | ||
|
|
9de9ccb3a2 | ||
|
|
ab3fd57237 | ||
|
|
f38d0b5e37 | ||
|
|
11057593c1 | ||
|
|
7dfb554e73 | ||
|
|
63d6c71e6e | ||
|
|
2f86ba6203 | ||
|
|
7f5c2799af | ||
|
|
b8a421cb03 | ||
|
|
627294a8b8 | ||
|
|
b5b6335a64 | ||
|
|
9826c7254f | ||
|
|
74174270e3 | ||
|
|
5364ddbaed | ||
|
|
a7063cd377 | ||
|
|
e132426e55 | ||
|
|
9281f80d33 | ||
|
|
fcbe885f3e | ||
|
|
e8406d0911 | ||
|
|
d2df983a39 | ||
|
|
ab95abbe5d | ||
|
|
00b220c466 | ||
|
|
b8bea516b7 | ||
|
|
b9f3209a2c | ||
|
|
cf1f33d440 | ||
|
|
68f26b5fd7 | ||
|
|
a3e515e062 | ||
|
|
2e183215bc | ||
|
|
f1f1b4b6e5 | ||
|
|
9ce4c57499 | ||
|
|
c32200b239 | ||
|
|
43fda83167 | ||
|
|
90b7a4a0b8 | ||
|
|
12e75133a0 | ||
|
|
e650bc6ac9 | ||
|
|
1e91a7d75b | ||
|
|
ef2728b6b7 | ||
|
|
12c55b4d4d | ||
|
|
be82e9fdb6 | ||
|
|
08eec301cf | ||
|
|
c0e25c8d7d | ||
|
|
6368c19417 | ||
|
|
ce9c6cd70c | ||
|
|
7694772ed2 | ||
|
|
1ed48d4191 | ||
|
|
17a8496b49 | ||
|
|
29cba9e58c | ||
|
|
d27b7b62e2 | ||
|
|
a841376b32 | ||
|
|
19b916b10e | ||
|
|
c81065f199 | ||
|
|
881b87a07c | ||
|
|
182da0df25 | ||
|
|
b4f8389ab2 | ||
|
|
732c6d9d94 | ||
|
|
41042d9ff7 | ||
|
|
e360fedee0 | ||
|
|
949cb28bdb | ||
|
|
f56efde542 | ||
|
|
7bb8a2294d | ||
|
|
a53ad5a283 | ||
|
|
6dc3ca6ec6 | ||
|
|
156ce8a520 | ||
|
|
a715202c54 | ||
|
|
b2b97bae44 | ||
|
|
ddc81f7629 | ||
|
|
e8af1c59f1 | ||
|
|
20e8a26e5f | ||
|
|
c4c52a2b9d | ||
|
|
a75c15bd23 | ||
|
|
ffb1eb5804 | ||
|
|
2673d214ce | ||
|
|
ec7e867937 | ||
|
|
e076d80eea | ||
|
|
4e0ab57fdd | ||
|
|
4a0eba1e56 | ||
|
|
c000725d18 | ||
|
|
3c854924e7 | ||
|
|
983fcaead5 | ||
|
|
d4223c3ff8 | ||
|
|
82f24f8d62 | ||
|
|
ef03c4d436 | ||
|
|
18a3196ff8 | ||
|
|
fe79593cd4 | ||
|
|
5b9137d76a | ||
|
|
011900324c | ||
|
|
31f6ea3211 | ||
|
|
10dac66425 | ||
|
|
cafbafde03 | ||
|
|
2c0e775278 | ||
|
|
b6a5549243 | ||
|
|
9aa8e0fee6 | ||
|
|
d3be7d37ea | ||
|
|
2589f597e2 | ||
|
|
10e8e7dc86 | ||
|
|
779a78f185 | ||
|
|
89ab5bc7f7 | ||
|
|
72cda6fbff | ||
|
|
36af3b3b36 | ||
|
|
618e3470d2 | ||
|
|
cdd618b97c | ||
|
|
65a105cd4c | ||
|
|
dc2b07f121 | ||
|
|
58bb0f6dba | ||
|
|
80e8079d74 | ||
|
|
5906ff8223 | ||
|
|
7dbc3e67ad | ||
|
|
f4b17d6dbf | ||
|
|
efa3ef68f0 | ||
|
|
257c74eeba | ||
|
|
f32b9c1276 | ||
|
|
1f3ce7cfab | ||
|
|
48deac08f8 | ||
|
|
5049a17c0c | ||
|
|
861f6791e9 | ||
|
|
f3f2cf899c | ||
|
|
1690d5f3ca | ||
|
|
12dc924ede | ||
|
|
3f8559f2c1 | ||
|
|
4f1d0db9b8 | ||
|
|
cd50789984 | ||
|
|
b56db3ce74 | ||
|
|
d8916dfa94 | ||
|
|
1d853e0278 | ||
|
|
37dce6013c | ||
|
|
a5dade3161 | ||
|
|
cd797cd1d1 | ||
|
|
0f77736b12 | ||
|
|
7284e9c511 | ||
|
|
550e118e5c | ||
|
|
094a721e79 | ||
|
|
7ef75d7080 | ||
|
|
f51f831513 | ||
|
|
c2058aa3a2 | ||
|
|
5faba491d5 | ||
|
|
f70efa90e5 | ||
|
|
b974d08d1b | ||
|
|
06fe59e2b8 | ||
|
|
5d6d000083 | ||
|
|
40b4cff1e3 | ||
|
|
577f36d355 | ||
|
|
30d8d5d9ae | ||
|
|
1abb184f19 | ||
|
|
2f03886ea9 | ||
|
|
16d7ebe154 | ||
|
|
70f329d274 | ||
|
|
cd2db9a07a | ||
|
|
9fca4e6198 | ||
|
|
57e93dac9f | ||
|
|
774981f635 | ||
|
|
857dfe36ba | ||
|
|
fa8ab7bdb7 | ||
|
|
119dd04a49 | ||
|
|
c36a6e818e | ||
|
|
c21f229b1c | ||
|
|
d7974d70b4 | ||
|
|
0849640c84 | ||
|
|
e308440fbe | ||
|
|
a596d1b9a8 | ||
|
|
9bc36673a6 | ||
|
|
74c6489ee4 | ||
|
|
34e0dfbebd | ||
|
|
159277267f | ||
|
|
4013c192db | ||
|
|
6f5bf21d4c | ||
|
|
9c430dc9e0 | ||
|
|
7f5bb23c1d | ||
|
|
2c1dcebca0 | ||
|
|
ff1ccc214a | ||
|
|
f205c08ed7 | ||
|
|
3340ad9555 | ||
|
|
2d7e995f19 | ||
|
|
9ce8d0bb72 | ||
|
|
99942795f9 | ||
|
|
fb6a4dd2e8 | ||
|
|
166bd14069 | ||
|
|
dad6974375 | ||
|
|
552e825471 | ||
|
|
8a6d679711 | ||
|
|
9f5f72c1bb | ||
|
|
cd3ebfe5e5 | ||
|
|
0799333e0b | ||
|
|
cfd785510c | ||
|
|
174c306986 | ||
|
|
f60053da85 | ||
|
|
fbae4ec7fb | ||
|
|
b00a49e958 | ||
|
|
edb7bd3156 | ||
|
|
81938d5d76 | ||
|
|
b70dbf495c | ||
|
|
f29858feba | ||
|
|
483cf72739 | ||
|
|
ea546a1f1f | ||
|
|
782b714711 | ||
|
|
b2a910033b | ||
|
|
0cd752ea8a | ||
|
|
28484af338 | ||
|
|
833e5d2257 | ||
|
|
9933533dc2 | ||
|
|
48e57556de | ||
|
|
6dedb13947 | ||
|
|
238f9b7dd0 | ||
|
|
140f888527 | ||
|
|
8bd164d620 | ||
|
|
3b32f6d842 | ||
|
|
d2921d9fea | ||
|
|
e86a2fbc7e | ||
|
|
806e9cd433 | ||
|
|
9a0963757a | ||
|
|
883b3f8663 | ||
|
|
f9e7dd5c6b | ||
|
|
263a4b4fcb | ||
|
|
bea00f1312 | ||
|
|
c5d86155da | ||
|
|
cb9561125c | ||
|
|
eebaa02362 | ||
|
|
22108b216f | ||
|
|
a414eb273e | ||
|
|
9e820d889f | ||
|
|
148c7080c0 | ||
|
|
3044a91778 | ||
|
|
6582bc4dfa | ||
|
|
561b4afb4a | ||
|
|
bff5f5e9ff | ||
|
|
01354234e6 | ||
|
|
efe458a7c4 | ||
|
|
32d1c96f75 | ||
|
|
feea34744e | ||
|
|
30a6af8e2b | ||
|
|
282efc9d57 | ||
|
|
28f6bdbca3 | ||
|
|
3802441141 | ||
|
|
99ab5f9f12 | ||
|
|
392089096e | ||
|
|
68b4856657 | ||
|
|
d3c89bfbce | ||
|
|
de9827e51a | ||
|
|
0e107273cb | ||
|
|
5130136da2 | ||
|
|
176b584210 | ||
|
|
d0040adc10 | ||
|
|
d758acbc3f | ||
|
|
7c72ea24db | ||
|
|
ff2c8bafac | ||
|
|
6209f9d777 | ||
|
|
7e3c485bcc | ||
|
|
c3a35572c8 | ||
|
|
da76281b14 | ||
|
|
ac3805bdee | ||
|
|
ba717f79bf | ||
|
|
8a5fe16cbb | ||
|
|
0bd758d7d5 | ||
|
|
1659592ee6 | ||
|
|
f99bb843f1 | ||
|
|
0c372da7c9 | ||
|
|
ba3b16ea02 | ||
|
|
503fca79e1 | ||
|
|
cc8cea4826 | ||
|
|
3814e6b78b | ||
|
|
7d94c76ec5 | ||
|
|
e00d9114b6 | ||
|
|
678616e527 | ||
|
|
d38c3cbc12 | ||
|
|
ca2103a614 | ||
|
|
e7ca423fe0 | ||
|
|
bd701cf40f | ||
|
|
69ed1a71e3 | ||
|
|
98b5c8dea1 | ||
|
|
edd0aeb8f3 | ||
|
|
931e379f46 | ||
|
|
419ca6d279 | ||
|
|
2c753e2cc1 | ||
|
|
d77c7d1472 | ||
|
|
b774015379 | ||
|
|
2d5c51edc3 | ||
|
|
65746ad47e | ||
|
|
1eb260ee1e | ||
|
|
0a24fcb8f9 | ||
|
|
ca062ca80d | ||
|
|
faee93bd7d | ||
|
|
9f1ca3844b | ||
|
|
2645473437 | ||
|
|
f29b7aea15 | ||
|
|
ecb10c04b7 | ||
|
|
9d1e1b0ad3 | ||
|
|
8c27535398 | ||
|
|
fbab7e4d80 | ||
|
|
4cf98c18cb | ||
|
|
867c3565c2 | ||
|
|
39689f1c5d | ||
|
|
2b22286fcb | ||
|
|
2d4d61b81a | ||
|
|
2f2586aacd | ||
|
|
6fb473b90e | ||
|
|
9c9f7ea1e4 | ||
|
|
e5788a473a | ||
|
|
92d56714ef | ||
|
|
2592eaca75 | ||
|
|
ac63a0c967 | ||
|
|
c7dbfe0332 | ||
|
|
1ea4417ced | ||
|
|
1b9bccd0cc | ||
|
|
75c1be25a2 | ||
|
|
3bbbe6b7ef | ||
|
|
6650be41b1 | ||
|
|
2e95bd0c67 | ||
|
|
86a65428fe | ||
|
|
d9571ed8a5 | ||
|
|
11ec640422 | ||
|
|
abc2381afa | ||
|
|
24b830ed24 | ||
|
|
430ac1d361 | ||
|
|
4132422021 | ||
|
|
5362f6b42b | ||
|
|
c0fdc5b847 | ||
|
|
8e609311ba | ||
|
|
4254a8549e | ||
|
|
3559ae1620 | ||
|
|
985016df61 | ||
|
|
952d84b29e | ||
|
|
75041d7f7f | ||
|
|
d46b8718f9 | ||
|
|
6f76ce454f | ||
|
|
4ecc64c0ad | ||
|
|
4fa6e4dd5f | ||
|
|
02e37ff0f8 | ||
|
|
e5775fee46 | ||
|
|
36b54522b4 | ||
|
|
49de41d385 | ||
|
|
1ad113bf2c | ||
|
|
01a8b32b6a | ||
|
|
5df3954c1f | ||
|
|
e66b342c7c | ||
|
|
3381275516 | ||
|
|
7e75b0b630 | ||
|
|
15ae3e4d1e | ||
|
|
e3489fceb3 | ||
|
|
57d01597d0 | ||
|
|
fb67aa3749 | ||
|
|
a0bda0f5bb | ||
|
|
d6c584f9bb | ||
|
|
3eb7dab076 | ||
|
|
1bbb6817e1 | ||
|
|
d9f154fdd9 | ||
|
|
6c0f31a2fa | ||
|
|
54fd83ca16 | ||
|
|
b312d96d21 | ||
|
|
7f8cc5bddd | ||
|
|
db14669dfb | ||
|
|
7ae0a3a64b | ||
|
|
dffc6f5a6c | ||
|
|
a888b1470b | ||
|
|
d5ef92bb50 | ||
|
|
e1d8bd1cb6 | ||
|
|
e32c95398d | ||
|
|
eb348e2c64 | ||
|
|
105a2f694b | ||
|
|
0916e63b1c | ||
|
|
5d82586d67 | ||
|
|
4d59829c7e | ||
|
|
e297c6daac | ||
|
|
f8537798d9 | ||
|
|
3c435e3d23 | ||
|
|
f95be760ca | ||
|
|
51a97c79a2 | ||
|
|
7f09705be8 | ||
|
|
42ec5893d2 | ||
|
|
cc33cd784d | ||
|
|
74db67661f | ||
|
|
ed1b8a496e | ||
|
|
798ec714a5 | ||
|
|
b13d573bb4 | ||
|
|
2a4fe462a8 | ||
|
|
c08f6e3494 | ||
|
|
15373f4c17 | ||
|
|
39c6e69a5b | ||
|
|
fe0fa91dc2 | ||
|
|
2bdcd69789 | ||
|
|
2fb41f7910 | ||
|
|
457d150b2c | ||
|
|
de6c2f62c6 | ||
|
|
d2d3c68499 | ||
|
|
828a769ad5 | ||
|
|
671ee62092 | ||
|
|
810f9a85d1 | ||
|
|
1ca485ba96 | ||
|
|
e9c5d959f0 | ||
|
|
7783e42d53 | ||
|
|
15be79db1f | ||
|
|
95ef5ab1f5 | ||
|
|
c95e2a4d95 | ||
|
|
9633eb3045 | ||
|
|
9bf7b30ef4 | ||
|
|
d16bb0abff | ||
|
|
193c8cfeb6 | ||
|
|
bca46faf18 | ||
|
|
3dfc68bf7c | ||
|
|
8406b927e4 | ||
|
|
c492cac214 | ||
|
|
3fdde84590 | ||
|
|
bbec084968 | ||
|
|
823616a7a1 | ||
|
|
564481b143 | ||
|
|
a564fe048b | ||
|
|
a90add14bb | ||
|
|
e0815bb3dd | ||
|
|
5d60b0d803 | ||
|
|
c0793ebe10 | ||
|
|
6ba639da10 | ||
|
|
ce58188b0b | ||
|
|
af17b95444 | ||
|
|
5edc3e6661 | ||
|
|
4bdd80f6dd | ||
|
|
03f05a0035 | ||
|
|
77db442628 | ||
|
|
aba46bf6b0 | ||
|
|
cfcd2a898e | ||
|
|
7cd714d4b2 | ||
|
|
86485a0c81 | ||
|
|
2639d9b4b5 | ||
|
|
969434ddc7 | ||
|
|
d7ca24962c | ||
|
|
a360f78b6d | ||
|
|
df760bb31a | ||
|
|
aa9b171377 | ||
|
|
250a316728 | ||
|
|
451580f68a | ||
|
|
4973bd8d87 | ||
|
|
e135c7dac2 | ||
|
|
35dc68d1b9 | ||
|
|
c6b3c9f414 | ||
|
|
0e20ee28ae | ||
|
|
ab47f846ed | ||
|
|
9716063943 | ||
|
|
45b85c325b | ||
|
|
1d3cdd87fb | ||
|
|
0b41984099 | ||
|
|
3f1433e54c | ||
|
|
5291bb6d33 | ||
|
|
02430d3bb7 | ||
|
|
392783eb09 | ||
|
|
72bd75223e | ||
|
|
b4d78d8182 | ||
|
|
4370d18303 | ||
|
|
1ae21ad605 | ||
|
|
d253a26a86 | ||
|
|
f18d406879 | ||
|
|
695cbc763d | ||
|
|
b2fad66833 | ||
|
|
6cb0350862 | ||
|
|
593ce86a8f | ||
|
|
a475101277 | ||
|
|
5a5c688432 | ||
|
|
f37c3d0edb | ||
|
|
ea0aba3406 | ||
|
|
e320ec3a92 | ||
|
|
cb1953555f | ||
|
|
c6b278cf6d | ||
|
|
a2a7d7d2f0 | ||
|
|
4475681252 | ||
|
|
06f5b9fcca | ||
|
|
03a7c56259 | ||
|
|
781e3f24dd | ||
|
|
bd25a249aa | ||
|
|
e0c356382f | ||
|
|
4a1311072d | ||
|
|
74fcfc52e5 | ||
|
|
1c5ec6fc36 | ||
|
|
61d2b0edb2 | ||
|
|
cdc2a0c6d1 | ||
|
|
91c68d8f0a | ||
|
|
776f998eec | ||
|
|
9edfd19475 | ||
|
|
5b4377ec86 | ||
|
|
2720bd6991 | ||
|
|
f9d7405c20 | ||
|
|
6d07a06635 | ||
|
|
f0d0d7c8b6 | ||
|
|
f60953b5e3 | ||
|
|
778ebffe52 | ||
|
|
bd81653b2e | ||
|
|
7f4fe40b49 | ||
|
|
3b798d9bc8 | ||
|
|
f3c1c42ab1 | ||
|
|
1375a07aa6 | ||
|
|
47795419ca | ||
|
|
c66b78f9d7 | ||
|
|
a42a809f7b | ||
|
|
a44b33653e | ||
|
|
ce3371c6f8 | ||
|
|
5a3b741542 | ||
|
|
e3228e50a5 | ||
|
|
738cdc5cab | ||
|
|
6ee3d5e1d6 | ||
|
|
7fd379f055 | ||
|
|
4314b011ae | ||
|
|
b80e4f442a | ||
|
|
225beade92 | ||
|
|
8f67fba8f2 | ||
|
|
d9d495a566 | ||
|
|
ba28e471af | ||
|
|
a607ecb7a6 | ||
|
|
5dc7c2a17c | ||
|
|
ae0ad6d383 | ||
|
|
1fd044f59e | ||
|
|
d7503f8337 | ||
|
|
b95a1533be | ||
|
|
db8b02b7ab | ||
|
|
fbc52f5109 | ||
|
|
718b5ca0ee | ||
|
|
3ce40bc9e9 | ||
|
|
6b46eb2063 | ||
|
|
19fddd40a0 | ||
|
|
21af0f6bd3 | ||
|
|
1d21e829d7 | ||
|
|
7463799021 | ||
|
|
1d30d9a889 | ||
|
|
28096945c4 | ||
|
|
98375250dd | ||
|
|
59718857c7 | ||
|
|
7cbcabad63 | ||
|
|
2619071025 | ||
|
|
68829d454b | ||
|
|
6a8d044d0e | ||
|
|
327b9826ff | ||
|
|
348a9c8117 | ||
|
|
7b1a6c4756 | ||
|
|
92f8c8ef19 | ||
|
|
cd18c7bc51 | ||
|
|
71cab00d41 | ||
|
|
546f59f7b6 | ||
|
|
5878aff7fd | ||
|
|
e159d6868d | ||
|
|
efad87929d | ||
|
|
d1de837000 | ||
|
|
8b6a2ea3bd | ||
|
|
819f7db65a | ||
|
|
d7d8654b2c | ||
|
|
15e9e67906 | ||
|
|
40f2dabf78 | ||
|
|
6b39712eff | ||
|
|
4324a26b46 | ||
|
|
e484f4f382 | ||
|
|
289a730b2f | ||
|
|
de96dc35ad | ||
|
|
b71a4eaed2 | ||
|
|
717cddd0af | ||
|
|
4f818d470e | ||
|
|
e5ce396858 | ||
|
|
49e1e4909e | ||
|
|
f6bb3b675d | ||
|
|
db53871ecf | ||
|
|
ad09c0a554 | ||
|
|
f73ee0ff91 | ||
|
|
260701507a | ||
|
|
8b442691e8 | ||
|
|
c2a80f02c0 | ||
|
|
65cf18a7dd | ||
|
|
b4fcb901bd | ||
|
|
4985d29fbb | ||
|
|
b5f363083e | ||
|
|
fe31407b64 | ||
|
|
0985bbdfe6 | ||
|
|
c118356479 | ||
|
|
bb4d8b3afd | ||
|
|
7cdc23ad5b | ||
|
|
55aaaf05ef | ||
|
|
ee1c267a9c | ||
|
|
2ec944faf1 | ||
|
|
45b1a2125b | ||
|
|
891d76f905 | ||
|
|
a4e0455592 | ||
|
|
da3141419e | ||
|
|
123d1744bb | ||
|
|
bfdfbb2b15 | ||
|
|
2e83bb21c9 | ||
|
|
6db7e392f2 | ||
|
|
7238cbb481 | ||
|
|
6ca1b66ffd | ||
|
|
6a06013b97 | ||
|
|
8742cbb352 | ||
|
|
7ed1f523f7 | ||
|
|
0d76b58cd6 | ||
|
|
e3d5102fe1 | ||
|
|
65bc8706c8 | ||
|
|
a8c93ca12a | ||
|
|
d6e51e019d | ||
|
|
2223caa99f | ||
|
|
b1304bfd19 | ||
|
|
699cda0c71 | ||
|
|
81cd0aae88 | ||
|
|
b8fde9d290 | ||
|
|
200d0483b9 | ||
|
|
2124bd8eab | ||
|
|
c3385c8686 | ||
|
|
feb8a01f20 | ||
|
|
a504276fb2 | ||
|
|
32fbed19a1 | ||
|
|
14c55d75fd | ||
|
|
a77bd38468 | ||
|
|
2bf3c0b3f6 | ||
|
|
172bce96e3 | ||
|
|
dd84a1d30f | ||
|
|
872711df52 | ||
|
|
9f893d6c97 | ||
|
|
4157f6edcb | ||
|
|
cfd8444392 | ||
|
|
b6b01994bd | ||
|
|
ee41216cbe | ||
|
|
35f642bd55 | ||
|
|
b6abecae06 | ||
|
|
228f50a90c | ||
|
|
4a796f06ac | ||
|
|
0bcbf149b4 | ||
|
|
13aea08e0c | ||
|
|
7eb72cf359 | ||
|
|
4e05a3de30 | ||
|
|
8af9c62eb0 | ||
|
|
fa75e25aec | ||
|
|
dcceb2660b | ||
|
|
d5e8280444 | ||
|
|
bfdb5d891a | ||
|
|
c884e41723 | ||
|
|
772a77e1ac | ||
|
|
eafa9c7566 | ||
|
|
ad5b9fec49 | ||
|
|
4eeffb65ce | ||
|
|
3ef095ffe3 | ||
|
|
246ab928c6 | ||
|
|
611dae3a12 | ||
|
|
6f9ab47031 | ||
|
|
df35aaa33b | ||
|
|
5ab2dfb5d8 | ||
|
|
5b0ee2ab36 | ||
|
|
0a62806f6b | ||
|
|
af499912db | ||
|
|
1f3240a32a | ||
|
|
f7cbad04bf | ||
|
|
36e8f74b1e | ||
|
|
da86ea4472 | ||
|
|
db91ad74bc | ||
|
|
4da65bc9b3 | ||
|
|
71ceda0656 | ||
|
|
d0e5f1f593 | ||
|
|
51ad2ea740 | ||
|
|
b18ad4ba0b | ||
|
|
5d340b06c4 | ||
|
|
107b33801f | ||
|
|
018a24737e | ||
|
|
5ddc60ea2b | ||
|
|
319b34a9c9 | ||
|
|
952db856b5 | ||
|
|
0e830819ad | ||
|
|
d4899e9c97 | ||
|
|
3be996d524 | ||
|
|
b97623a625 | ||
|
|
7d6c967676 | ||
|
|
397f751272 | ||
|
|
ec920f94ab | ||
|
|
ff3d6122c4 | ||
|
|
1389908db6 | ||
|
|
604d831520 | ||
|
|
e9fd5fef68 | ||
|
|
a868f939e0 | ||
|
|
4b76112f26 | ||
|
|
d1b0d0c6d9 | ||
|
|
ff546a50ab | ||
|
|
47027d79cd | ||
|
|
bfe485986c | ||
|
|
c14c8fe4e6 | ||
|
|
4dae6a150e | ||
|
|
5c8fe205a5 | ||
|
|
409bb431bc | ||
|
|
259847d5db | ||
|
|
dfbc6f3388 | ||
|
|
00f5d38350 | ||
|
|
cebb1dcecd | ||
|
|
490167d689 | ||
|
|
fbb40e75d2 | ||
|
|
09ac249ef7 | ||
|
|
1ee2531df8 | ||
|
|
33bddb1e66 | ||
|
|
bd2d092451 | ||
|
|
a0ae9f3400 | ||
|
|
63ef6da358 | ||
|
|
c1efe1a7aa | ||
|
|
56716806d4 | ||
|
|
9f96cfef2f | ||
|
|
fd59174ccb | ||
|
|
cc306f9408 | ||
|
|
7a764a6800 | ||
|
|
dbc226137e | ||
|
|
b6801abea7 | ||
|
|
f738826414 | ||
|
|
03dbac95c3 | ||
|
|
0eb7eaa632 | ||
|
|
b705d08004 | ||
|
|
f97c5958a2 | ||
|
|
12b72c70a0 | ||
|
|
e5f2ef17e5 | ||
|
|
0ff8f3d2c4 | ||
|
|
11f89ed0e0 | ||
|
|
300e24ec35 | ||
|
|
93935ca99f | ||
|
|
a973d65e4f | ||
|
|
2de6494775 | ||
|
|
400a3633eb | ||
|
|
344714e322 | ||
|
|
36a22dbe51 | ||
|
|
0d57deb0bc | ||
|
|
c40e1c00ba | ||
|
|
4e6814830f | ||
|
|
22430cc58a | ||
|
|
20f62f09ec | ||
|
|
d978b087d9 | ||
|
|
cd566dac74 | ||
|
|
0973a32841 | ||
|
|
e8bd4f1361 | ||
|
|
f5785ca0ab | ||
|
|
6fdaca7c44 | ||
|
|
d0d8ccdd08 | ||
|
|
352f2bb8c8 | ||
|
|
13b3843ba5 | ||
|
|
8494e988e1 | ||
|
|
244be89431 | ||
|
|
a1277f0b9d | ||
|
|
41ad1c84ba | ||
|
|
bc761f5a62 | ||
|
|
091606bec5 | ||
|
|
24823bbd6a | ||
|
|
2d6ca4979d | ||
|
|
21b8126232 | ||
|
|
293edbf45b | ||
|
|
acfd73794a | ||
|
|
a951c04a08 | ||
|
|
0ecc45f30e | ||
|
|
c4edc884ff | ||
|
|
d461a255ef | ||
|
|
827772f392 | ||
|
|
a1f15600aa | ||
|
|
235010a817 | ||
|
|
01f4653e65 | ||
|
|
f7d63871f4 | ||
|
|
8d94d81122 | ||
|
|
4c12d38788 | ||
|
|
2c3a92aa44 | ||
|
|
a9a7df608a | ||
|
|
2076ecc165 | ||
|
|
3c65ef4cf9 | ||
|
|
851493d66b | ||
|
|
c53360c149 | ||
|
|
a2431f20ef | ||
|
|
a130ff662d | ||
|
|
281be13915 | ||
|
|
47145019aa | ||
|
|
bf3c8f5e1b | ||
|
|
b18453a70b | ||
|
|
4b83f1272b | ||
|
|
d099d73420 | ||
|
|
7fcfedaeed | ||
|
|
5101d8e5ff | ||
|
|
6f8a5af786 | ||
|
|
e83411e836 | ||
|
|
d72611b036 | ||
|
|
f83c32c1ca | ||
|
|
ca485b2bbe | ||
|
|
787e4a854f | ||
|
|
341f45add4 | ||
|
|
86f878b9a2 | ||
|
|
607e29377c | ||
|
|
ee7914bcba | ||
|
|
cdb4e2bcdd | ||
|
|
ff605c853b | ||
|
|
b9bb994e5b | ||
|
|
37507da696 | ||
|
|
cf2c71ccd4 | ||
|
|
b361783b23 | ||
|
|
a01dd05958 | ||
|
|
7c14b26854 | ||
|
|
08fd7397a0 | ||
|
|
7f381b2fd3 | ||
|
|
c352974b02 | ||
|
|
cce8945e38 | ||
|
|
47f4c561ee | ||
|
|
efaa2f692c | ||
|
|
92be9b42e0 | ||
|
|
c2083b304c | ||
|
|
731a1bfd00 | ||
|
|
0442cb0f42 | ||
|
|
1b4489f342 | ||
|
|
a3d0962245 | ||
|
|
93d696bca0 | ||
|
|
bee9e75030 | ||
|
|
a51b295909 | ||
|
|
8cd4bc44a0 | ||
|
|
b47cf6dc98 | ||
|
|
4fdc6a094b | ||
|
|
4a0808cd28 | ||
|
|
c2df88a75b | ||
|
|
572e6beeb8 | ||
|
|
35d887f954 | ||
|
|
2664ff3a46 | ||
|
|
46a4b415e3 | ||
|
|
64819486c8 | ||
|
|
e46151db81 | ||
|
|
bfcde9886a | ||
|
|
cc664844db | ||
|
|
f644bd77c0 | ||
|
|
c6e418e951 | ||
|
|
3f6b2fbf6e | ||
|
|
0f869314ab | ||
|
|
006716326b | ||
|
|
8e56dca7a2 | ||
|
|
1c6c0683a7 | ||
|
|
4f5dc35253 | ||
|
|
55de927aac | ||
|
|
99e6642e40 | ||
|
|
199463994b | ||
|
|
de467b4f75 | ||
|
|
1df0d1d1fb | ||
|
|
dff536952c | ||
|
|
a1be26da45 | ||
|
|
41922368e8 | ||
|
|
a696d2f1d7 | ||
|
|
f5af1a5782 | ||
|
|
19ec4961c7 | ||
|
|
d04d9b359e | ||
|
|
7fed7336ac | ||
|
|
94c02651c0 | ||
|
|
e3e5e6ff69 | ||
|
|
91394b07d4 | ||
|
|
3b778235e0 | ||
|
|
2a43f3492c | ||
|
|
74553924d2 | ||
|
|
dcd1f4359b | ||
|
|
b1eb380805 | ||
|
|
1b9532a4ac | ||
|
|
dee1d1c08b | ||
|
|
b72710abc8 | ||
|
|
835f34e8c1 | ||
|
|
86e2d733c7 | ||
|
|
38284b1179 | ||
|
|
986dfbf46d | ||
|
|
7dc004c39f | ||
|
|
e6dac1726a | ||
|
|
8500b8bc5d | ||
|
|
37ccf4a537 | ||
|
|
e4075b0678 | ||
|
|
8bb8061ffa | ||
|
|
93217c53c3 | ||
|
|
41b5c720a7 | ||
|
|
c1c4cd6142 | ||
|
|
7b6c9f6e28 | ||
|
|
75c36b3df4 | ||
|
|
a4222cae8a | ||
|
|
b88a14b0b4 | ||
|
|
b0f22ca7f6 | ||
|
|
250df70c33 | ||
|
|
e71844d478 | ||
|
|
6374bf48db | ||
|
|
26b6d2da4b | ||
|
|
d273685eba | ||
|
|
718eb9f32c | ||
|
|
d2a7a79701 | ||
|
|
2a0f830619 | ||
|
|
5132f8be42 | ||
|
|
2bfbbd168e | ||
|
|
00dea007f9 | ||
|
|
29d9570c3c | ||
|
|
1dc0d228c7 | ||
|
|
5943544452 | ||
|
|
25502ef4a6 | ||
|
|
0f65f2bec3 | ||
|
|
2531aa1d7a | ||
|
|
4d1c8b7117 | ||
|
|
3908bcdade | ||
|
|
ba3955753a | ||
|
|
6471e57bbc | ||
|
|
1981f1a016 | ||
|
|
79ce3583c4 | ||
|
|
cde091948a | ||
|
|
8acfd8b9eb | ||
|
|
1ec0dd90b0 | ||
|
|
0f97ffd2bb | ||
|
|
aadfc9703f | ||
|
|
3ab8ee7cc4 | ||
|
|
1114e11649 | ||
|
|
9c3591f9f8 | ||
|
|
abf7e48576 | ||
|
|
28f51a944b | ||
|
|
e0f76cccd7 | ||
|
|
e0f6c99051 | ||
|
|
9bfc124881 | ||
|
|
456bc0e053 | ||
|
|
159b78f998 | ||
|
|
cb959c1653 | ||
|
|
df26558a10 | ||
|
|
e8d12112e3 | ||
|
|
ec7c88e98e | ||
|
|
b17a06575d | ||
|
|
39a230145a | ||
|
|
845616cbd7 | ||
|
|
c53ea396aa | ||
|
|
15583d1583 | ||
|
|
077ce9e075 | ||
|
|
3bf6cb3795 | ||
|
|
71f74e3e1d | ||
|
|
f34e97b27d | ||
|
|
cc042886b9 | ||
|
|
5090f23460 | ||
|
|
ccf6b3f17d | ||
|
|
8e0677d6f4 | ||
|
|
f90509e3de | ||
|
|
635e2ca932 | ||
|
|
f8c7bf320a | ||
|
|
30eb504e34 | ||
|
|
2752e5e8db | ||
|
|
0c0edec059 | ||
|
|
6dafc05107 | ||
|
|
b1825ac7ce | ||
|
|
2c7ce2c0b1 | ||
|
|
df58912a11 | ||
|
|
9aa90d8e89 | ||
|
|
24cb5a5d33 | ||
|
|
85e19c1880 | ||
|
|
40ae4344e1 | ||
|
|
7c6750ba69 | ||
|
|
504d1f85cd | ||
|
|
19115570d2 | ||
|
|
539f336c27 | ||
|
|
69df4b3b54 | ||
|
|
3ea35a825a | ||
|
|
8864ff8143 | ||
|
|
8251328bea | ||
|
|
bf52c269bf | ||
|
|
6d4b53ea2f | ||
|
|
641b924ce2 | ||
|
|
341dc955c8 | ||
|
|
50e3135104 | ||
|
|
9875566efd | ||
|
|
4fd4c0c25f | ||
|
|
0dc54e6ef3 | ||
|
|
3e23a6b14f | ||
|
|
aa36fbf059 | ||
|
|
2bbaac6a58 | ||
|
|
7936a54e1a | ||
|
|
e947fb8dcf | ||
|
|
75f025e4ba | ||
|
|
c55a0fda97 | ||
|
|
6ebb7aac7c | ||
|
|
8aa83df477 | ||
|
|
27b9da5771 | ||
|
|
1390b0dc9e | ||
|
|
5e043c9b64 | ||
|
|
1d6b7f4f37 | ||
|
|
0021dea42b | ||
|
|
43938609f2 | ||
|
|
806c6b6bd1 | ||
|
|
2a717c8ef0 | ||
|
|
2ff74cba13 | ||
|
|
be12f2a8c4 | ||
|
|
bcc00ea4fe | ||
|
|
2b737adce2 | ||
|
|
6912e16eec | ||
|
|
829b963ad1 | ||
|
|
cb47727963 | ||
|
|
c6e4f2e0e4 | ||
|
|
c5f0e53278 | ||
|
|
64b96a0ab9 | ||
|
|
d9e0176647 | ||
|
|
22e190c74b | ||
|
|
eacfc5b2b7 | ||
|
|
5110fb0b57 | ||
|
|
3d34903c42 | ||
|
|
030dd5b9d5 | ||
|
|
7234f711d6 | ||
|
|
56e0c1b6d3 | ||
|
|
6f2df13a35 | ||
|
|
64e5ecce66 | ||
|
|
19951d84e2 | ||
|
|
576c18b472 | ||
|
|
749e16e2f8 | ||
|
|
6a602e1006 | ||
|
|
eb5938b3e5 | ||
|
|
03076e6c2f | ||
|
|
3fbd714cc9 | ||
|
|
ba225dfd39 | ||
|
|
e1dc25e975 | ||
|
|
61856de05b | ||
|
|
05ae2208cc | ||
|
|
79a435d37d | ||
|
|
db3a1d549b | ||
|
|
179e28e36c | ||
|
|
33be082330 | ||
|
|
705433bb43 | ||
|
|
9e54c2eb4b | ||
|
|
9827af4c65 | ||
|
|
038d5b11bf | ||
|
|
446a109788 | ||
|
|
3ccf40314e | ||
|
|
9b96b353b1 | ||
|
|
6192382cc3 | ||
|
|
42273597ca | ||
|
|
89e2cbe2d8 | ||
|
|
20e8927a0b | ||
|
|
7dbb38e5c9 | ||
|
|
eedd2adf74 | ||
|
|
8080929a21 | ||
|
|
372d11fcb8 | ||
|
|
e12590d45e | ||
|
|
ed85c193fa | ||
|
|
f2a25b130a | ||
|
|
40809811ac | ||
|
|
f9df96ce14 | ||
|
|
5d3dfa55b7 | ||
|
|
ddcec0c935 | ||
|
|
77b2bce580 | ||
|
|
9368b61dff | ||
|
|
01ff46e957 | ||
|
|
7753a4ff8f | ||
|
|
949f43d363 | ||
|
|
ba0ffec63e | ||
|
|
2053f18c52 | ||
|
|
096eea9580 | ||
|
|
0a93446fc9 | ||
|
|
8096eaa23f | ||
|
|
871f8f2402 | ||
|
|
203420a408 | ||
|
|
42858bc5dc | ||
|
|
a64a6eb73a | ||
|
|
a9d5a8af83 | ||
|
|
95afc49c69 | ||
|
|
ef2717bd1a | ||
|
|
a509f2baa2 | ||
|
|
7097fa3fcc | ||
|
|
9656b239f5 | ||
|
|
94b60387fe | ||
|
|
1c09a1e032 | ||
|
|
98cd737c7c | ||
|
|
97531b18b2 | ||
|
|
e64e577639 | ||
|
|
c07b9adb1e | ||
|
|
ea2636a4f1 | ||
|
|
a81d83c4a9 | ||
|
|
fa9a4b898a | ||
|
|
1fb4031962 | ||
|
|
44212f2579 | ||
|
|
cc47380497 | ||
|
|
bede6b85a8 | ||
|
|
149182d3a4 | ||
|
|
d4e8b5a759 | ||
|
|
70024b9986 | ||
|
|
bc0ea8a56f | ||
|
|
b01d93dc4c | ||
|
|
c5307c8c00 | ||
|
|
6017c6eeb4 | ||
|
|
6c2a45560a | ||
|
|
9c8a5de263 | ||
|
|
4ae86e2573 | ||
|
|
4d1cb90883 | ||
|
|
5b8b376328 | ||
|
|
9138915773 | ||
|
|
10a03405b0 | ||
|
|
69427a0a0a | ||
|
|
fdf613101b | ||
|
|
d6de65481c | ||
|
|
b46cd9f735 | ||
|
|
6e63eaba65 | ||
|
|
34802ec8fa | ||
|
|
2d52962f5f | ||
|
|
690f943d84 | ||
|
|
51ec5e12b8 | ||
|
|
6b4f8e1f85 | ||
|
|
ef9b3f37b5 | ||
|
|
333a2b5971 | ||
|
|
94f53de816 | ||
|
|
7b2290ba2d | ||
|
|
7eb927e138 | ||
|
|
b3f5b52ed2 | ||
|
|
21be55d7c5 | ||
|
|
6ff86f3768 | ||
|
|
68b162decf | ||
|
|
102e46da02 | ||
|
|
ece716c52f | ||
|
|
b4c1ced1b8 | ||
|
|
86e0a635f5 | ||
|
|
d495322c09 | ||
|
|
d3f20f9d3e | ||
|
|
47b2989dd9 | ||
|
|
3a0000d1c2 | ||
|
|
74b28707d3 | ||
|
|
876b19c29e | ||
|
|
d0b928913b | ||
|
|
a66da6ca70 | ||
|
|
fde5f79c13 | ||
|
|
3f503d0462 | ||
|
|
bb00d52f67 | ||
|
|
a307b5d173 | ||
|
|
d2e58cb2be | ||
|
|
d800b746ae | ||
|
|
085a120b9a | ||
|
|
34ea9d678e | ||
|
|
b1b528c400 | ||
|
|
781ffb8d57 | ||
|
|
387c637dd5 | ||
|
|
4eda9d1152 | ||
|
|
658ff59e28 | ||
|
|
3b5e8ff942 | ||
|
|
02bfb1dd9a | ||
|
|
66b48f99a4 | ||
|
|
57def4f658 | ||
|
|
d4bcf12bf7 | ||
|
|
bfb3af199e | ||
|
|
c13013245d | ||
|
|
24a1d23843 | ||
|
|
02daa126c4 | ||
|
|
fc2866c839 | ||
|
|
234baacdab | ||
|
|
29f9063b61 | ||
|
|
2ade633172 | ||
|
|
d7d1d3874a | ||
|
|
fcb29a1474 | ||
|
|
3f3f445bd5 | ||
|
|
81f011cc3f | ||
|
|
373f79de3f | ||
|
|
7ffc7c093a | ||
|
|
0ac38d6117 | ||
|
|
59a945cbac | ||
|
|
13b0ce83ca | ||
|
|
8628f8d024 | ||
|
|
e8bd89d9f7 | ||
|
|
4a9fd85bf6 | ||
|
|
f3859c5bca | ||
|
|
04697e4baf | ||
|
|
8d15dfacb4 | ||
|
|
105935406a | ||
|
|
6aa293c419 | ||
|
|
75fe8f2ef8 | ||
|
|
b4800da0e1 | ||
|
|
f3f3c39b10 | ||
|
|
69abd966e6 | ||
|
|
bded1e134a | ||
|
|
f5d2e6eca6 | ||
|
|
fbfbead8da | ||
|
|
465e2892ab | ||
|
|
92be3a5a74 | ||
|
|
c7f9abca58 | ||
|
|
d31fbb15e0 | ||
|
|
e389af2874 | ||
|
|
348fbc7337 | ||
|
|
3afdd8d1d0 | ||
|
|
be70a2ea60 | ||
|
|
5f58e9ea0b | ||
|
|
5f4af4e6fb | ||
|
|
b34b7c803d | ||
|
|
3a4c9efab8 | ||
|
|
1f0ebe423f | ||
|
|
00b1febb5d | ||
|
|
8afb7bc24f | ||
|
|
496badda6d | ||
|
|
1b7ea40cda | ||
|
|
9c0c0e1679 | ||
|
|
c8c3aaa473 | ||
|
|
4b2e0a44a5 | ||
|
|
c89a609275 | ||
|
|
434fc4d31b | ||
|
|
9439c24cd1 | ||
|
|
1c3d6f234f | ||
|
|
99c916a936 | ||
|
|
46396cf220 | ||
|
|
9d894450ac | ||
|
|
973c478f70 | ||
|
|
3a1b21169d | ||
|
|
d8c1178077 | ||
|
|
4c397ee92b | ||
|
|
e1a0d6a03f | ||
|
|
9ede1684a6 | ||
|
|
ddb07f71e6 | ||
|
|
e330d442a8 | ||
|
|
97d97ffbf5 | ||
|
|
1308cef2f8 | ||
|
|
590b505a0e | ||
|
|
e28bca9e91 | ||
|
|
d8b38c218f | ||
|
|
c701169a62 | ||
|
|
80eca0a4ae | ||
|
|
4a3ad92e56 | ||
|
|
c128d0f0d8 | ||
|
|
dcf568e0cc | ||
|
|
7628121836 | ||
|
|
e4c78cb757 | ||
|
|
0bb2f6e0a6 | ||
|
|
3078e45e58 | ||
|
|
e03e2e9d48 | ||
|
|
adbc3b1151 | ||
|
|
0c308e0d5f | ||
|
|
acfebd302b | ||
|
|
cb493a4954 | ||
|
|
fca6553859 | ||
|
|
8407c41935 | ||
|
|
e1c2234c83 | ||
|
|
df8754fbcf | ||
|
|
048e703337 | ||
|
|
d8d8652248 | ||
|
|
6f5f2cb57d | ||
|
|
6dae1017f7 | ||
|
|
b7b3f1099e | ||
|
|
16d7782804 | ||
|
|
d0a0dab62b | ||
|
|
aca277dc65 | ||
|
|
bd3eb31c11 | ||
|
|
a967b76e76 | ||
|
|
96ddf27cca | ||
|
|
f3120dab30 | ||
|
|
c6d4553b2e | ||
|
|
55a7d0ebfe | ||
|
|
cec9523d96 | ||
|
|
b5210be97a | ||
|
|
4e1ba7492c | ||
|
|
5a6a0320d6 | ||
|
|
513baaf768 | ||
|
|
2557ffa5ad | ||
|
|
7de6b2074f | ||
|
|
139b650c2c | ||
|
|
bd1f61604c | ||
|
|
90ba11f6d5 | ||
|
|
ad25dba192 | ||
|
|
e1ab69c8cc | ||
|
|
804d7abecf | ||
|
|
30691f8b05 | ||
|
|
b726277245 | ||
|
|
2a5264e1d6 | ||
|
|
ee6a127ac5 | ||
|
|
d99e457ef6 | ||
|
|
a4e6fbb107 | ||
|
|
1f73d5d9e2 | ||
|
|
c2ab390008 | ||
|
|
48b3430472 | ||
|
|
3ca93691cd | ||
|
|
7963e369cb | ||
|
|
45fd906371 | ||
|
|
29417690fe | ||
|
|
580bb49dcf | ||
|
|
f802850cf5 | ||
|
|
311acf9934 | ||
|
|
5403781400 | ||
|
|
0e6bdf81e8 | ||
|
|
f76dd96876 | ||
|
|
6465fa58bd | ||
|
|
cec3b4f452 | ||
|
|
e8a7173de2 | ||
|
|
ba862318f8 | ||
|
|
7b3c2ce2ca | ||
|
|
672d78d57a | ||
|
|
2b7f9bf670 | ||
|
|
1ada62dd1a | ||
|
|
5035c9e703 | ||
|
|
8d10cf576f | ||
|
|
4bfba7976d | ||
|
|
b9c6c4c25f | ||
|
|
1dfc0b9c14 | ||
|
|
2b356edc62 | ||
|
|
aa838e3828 | ||
|
|
667d5c4277 | ||
|
|
bc58be694f | ||
|
|
140a431f1d | ||
|
|
ff22054259 | ||
|
|
3a65a3324f | ||
|
|
0689914d5b | ||
|
|
1f47b4c653 | ||
|
|
51fbdd8cc6 | ||
|
|
1412a24e10 | ||
|
|
f86245bda7 | ||
|
|
f986cc537b | ||
|
|
1130347c0d | ||
|
|
5c85749b4b | ||
|
|
4624bdaff1 | ||
|
|
096841941a | ||
|
|
8781d1d5a2 | ||
|
|
832bb0cd6e | ||
|
|
0096ba6e8e | ||
|
|
d1b33a0ce9 | ||
|
|
81a6bd7e7b | ||
|
|
987734934d | ||
|
|
29a53a6a3e | ||
|
|
a84203ca83 | ||
|
|
227997559f | ||
|
|
4834f0a82a | ||
|
|
815dbf8902 | ||
|
|
f9e7653b57 | ||
|
|
a4c1f42fd9 | ||
|
|
1e72a39aad | ||
|
|
a5d7031781 | ||
|
|
76fa314dd8 | ||
|
|
2609a67214 | ||
|
|
b71661dea6 | ||
|
|
cb36ab0892 | ||
|
|
5fc18bae0d | ||
|
|
711faa97c1 | ||
|
|
668af9eab3 | ||
|
|
05fe90fd56 | ||
|
|
f2dadae42c | ||
|
|
21e8b4e9b6 | ||
|
|
6b412e17f7 | ||
|
|
645259b64b | ||
|
|
2c65b0f445 | ||
|
|
303e965973 | ||
|
|
21ec5d57a1 | ||
|
|
8bf99afffa | ||
|
|
e2567457c4 | ||
|
|
53bb664490 | ||
|
|
e84b0e25a8 | ||
|
|
3d9498fefb | ||
|
|
c3f5ce2c89 | ||
|
|
92795a754e | ||
|
|
4111408ce8 | ||
|
|
c9a97e01f9 | ||
|
|
bd215737ce | ||
|
|
baa6809233 | ||
|
|
fca87d1f87 | ||
|
|
eada637063 | ||
|
|
753ea67a0d | ||
|
|
ba91714311 | ||
|
|
9d3c6ae56f | ||
|
|
c1bec91561 | ||
|
|
fdd8ac1c99 | ||
|
|
1a347167ba | ||
|
|
34afec3448 | ||
|
|
c10fde9ae8 | ||
|
|
7c9e33390b | ||
|
|
f03160b6be | ||
|
|
5c000bc56b | ||
|
|
0248af23c7 | ||
|
|
5587b10cba | ||
|
|
16f6001dcd | ||
|
|
0d70227a37 | ||
|
|
f04955eda7 | ||
|
|
4f92d8ca37 | ||
|
|
5ebf1bdc90 | ||
|
|
f7544289df | ||
|
|
d44632d227 | ||
|
|
bd5cb03d53 | ||
|
|
a40616facd | ||
|
|
5a0e741321 | ||
|
|
34e01a6a8c | ||
|
|
3f3c16a281 | ||
|
|
02e87fb04d | ||
|
|
f9f16bab83 | ||
|
|
c05223252e | ||
|
|
97e4a62f6c | ||
|
|
79281b8c46 | ||
|
|
d2665f6e47 | ||
|
|
7259dc4d1c | ||
|
|
44a0b9c913 | ||
|
|
b927236735 | ||
|
|
5efdce9dae | ||
|
|
563e7ab749 | ||
|
|
316393ca3a | ||
|
|
774dae5241 | ||
|
|
baf8971320 | ||
|
|
2c1d5d5334 | ||
|
|
91b2b3245b | ||
|
|
1e5ab4abda | ||
|
|
3827a84454 | ||
|
|
dd519d5db7 | ||
|
|
4014897ab8 | ||
|
|
07bde7804e | ||
|
|
518eb64df0 | ||
|
|
8d1b112c08 | ||
|
|
dd6e44fc25 | ||
|
|
01f27c1983 | ||
|
|
4fabc0dda0 | ||
|
|
1a7bd87aea | ||
|
|
ab166bf533 | ||
|
|
7576049b44 | ||
|
|
96649a11ba | ||
|
|
22e8c93e84 | ||
|
|
de6956e773 | ||
|
|
6f06384e3b | ||
|
|
9cb180ee2b | ||
|
|
c04d342795 | ||
|
|
0d6dc7d62f | ||
|
|
b45093ebf1 | ||
|
|
8f5ebac6b6 | ||
|
|
d3f0a04c01 | ||
|
|
a7cfa8509d | ||
|
|
0c5455ea41 | ||
|
|
542cc0cc3a | ||
|
|
6975473a84 | ||
|
|
7028cf659a | ||
|
|
a377ec823d | ||
|
|
9535cfa20b | ||
|
|
3cc39485dc | ||
|
|
be7ed497b5 | ||
|
|
1ba8c062ea | ||
|
|
f94f5633e2 | ||
|
|
241f5848a6 | ||
|
|
790391cd43 | ||
|
|
3630e2ac9d | ||
|
|
bbe047c6c8 | ||
|
|
6dfa0f0826 | ||
|
|
67004a5a11 | ||
|
|
cfdbac8e6f | ||
|
|
1d88f7b6a4 | ||
|
|
e63077627d | ||
|
|
66efb5dc47 | ||
|
|
8c99299542 | ||
|
|
32dff0fc6d | ||
|
|
74e25a17db | ||
|
|
a7379d76a6 | ||
|
|
5a19f7969c | ||
|
|
921c0f0d9e | ||
|
|
fe5e8620cc | ||
|
|
965421b54d | ||
|
|
0f50fb4bd6 | ||
|
|
a546571623 | ||
|
|
80fe0eb6c3 | ||
|
|
9e1207e68d | ||
|
|
cc8134f09c | ||
|
|
fad75284cb | ||
|
|
2e722a4135 | ||
|
|
826e078aaf | ||
|
|
af43be1171 | ||
|
|
0246864aa4 | ||
|
|
1de895fa49 | ||
|
|
ca1af3ff24 | ||
|
|
07ae59ab4b | ||
|
|
0093c1988a | ||
|
|
0a58c7c043 | ||
|
|
d7170388da | ||
|
|
f7cd9a9848 | ||
|
|
2803a9eac5 | ||
|
|
adba700527 | ||
|
|
611b2d774f | ||
|
|
f8195b2b9a | ||
|
|
f1c135a3ca | ||
|
|
0498ced479 | ||
|
|
1cb5db813f | ||
|
|
edf370bf6d | ||
|
|
efcca0aff1 | ||
|
|
b4b03ff370 | ||
|
|
1a85394192 | ||
|
|
f9424f4ad4 | ||
|
|
825cb47018 | ||
|
|
c34bd31f6f | ||
|
|
a89f0c33cc | ||
|
|
b680f5d735 | ||
|
|
701af9441f | ||
|
|
d5c8c609ec | ||
|
|
71a7c1fda3 | ||
|
|
987f9b4452 | ||
|
|
ca77c19193 | ||
|
|
a1af27d25d | ||
|
|
1a7998233f | ||
|
|
1d62b489cc | ||
|
|
9fb8b86a16 | ||
|
|
f644a7c83f | ||
|
|
dd5bb3d1a8 | ||
|
|
49fa85ded8 | ||
|
|
f5ee59a1d5 | ||
|
|
5768cfc933 | ||
|
|
7c4208e9ef | ||
|
|
abe33d0f51 | ||
|
|
2b03fcd7bb | ||
|
|
44fe3d3ca9 | ||
|
|
0d38a3f3db | ||
|
|
846e8c5723 | ||
|
|
36064a6b24 | ||
|
|
93e23a2faf | ||
|
|
eb5b2da2f9 | ||
|
|
f1d8ddb4e7 | ||
|
|
080ea059c6 | ||
|
|
57e49685d4 | ||
|
|
33ea35f28c | ||
|
|
0072a2d595 | ||
|
|
24ced61308 | ||
|
|
452f949ede | ||
|
|
656209045f | ||
|
|
b497ecc823 | ||
|
|
514cfadcaa | ||
|
|
07f3fa6afa | ||
|
|
b1421c5fb2 | ||
|
|
d5c983603e | ||
|
|
2f42479640 | ||
|
|
dc8a0f913a | ||
|
|
7c8bf61583 | ||
|
|
bd5d5a5a7b | ||
|
|
8a4502c8d5 |
No files matched your search
@@ -1,16 +1,13 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.109.2.3 1997/04/11 16:57:40 asami Exp $
|
||||
# $Id: Makefile,v 1.109.2.32 1998/06/29 10:15:32 jkh Exp $
|
||||
#
|
||||
# Make command line options:
|
||||
# -DCLOBBER will remove /usr/include
|
||||
# -DMAKE_LOCAL to add ./local to the SUBDIR list
|
||||
# -DMAKE_PORTS to add ./ports to the SUBDIR list
|
||||
# -DMAKE_EBONES to build eBones (KerberosIV)
|
||||
# -DALLLANG to build documentation for all languages
|
||||
# (where available -- see share/doc/Makefile)
|
||||
# -DMAKE_KERBEROS4 to build KerberosIV
|
||||
#
|
||||
# -DNOCLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir
|
||||
# -DNOCLEAN do not clean at all
|
||||
# -DNOTOOLS do not rebuild any tools first
|
||||
# -DNOCRYPT will prevent building of crypt versions
|
||||
# -DNOLKM do not build loadable kernel modules
|
||||
# -DNOOBJDIR do not run ``${MAKE} obj''
|
||||
@@ -19,11 +16,15 @@
|
||||
# -DNOGAMES do not go into games subdir
|
||||
# -DNOSHARE do not go into share subdir
|
||||
# -DNOINFO do not make or install info files
|
||||
# -DNOLIBC_R do not build libc_r.
|
||||
# -DNOPERL do not make or install perl
|
||||
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
|
||||
|
||||
#
|
||||
# The intended user-driven targets are:
|
||||
# world - rebuild *everything*, including glue to help do upgrades.
|
||||
# reinstall - use an existing (eg: NFS mounted) build to do an update.
|
||||
# buildworld - rebuild *everything*, including glue to help do upgrades
|
||||
# installworld- install everything built by "buildworld"
|
||||
# world - buildworld + installworld
|
||||
# update - convenient way to update your source tree (eg: sup/cvs)
|
||||
# most - build user commands, no libraries or include files
|
||||
# installmost - install user commands, no libraries or include files
|
||||
@@ -32,10 +33,20 @@
|
||||
# /usr/share/mk. These include:
|
||||
# obj depend all install clean cleandepend cleanobj
|
||||
|
||||
.if (!make(world)) && (!make(buildworld)) && (!make(installworld))
|
||||
.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk
|
||||
.endif
|
||||
|
||||
# Put initial settings here.
|
||||
SUBDIR=
|
||||
|
||||
# We must do share/info early so that installation of info `dir'
|
||||
# entries works correctly. Do it first since it is less likely to
|
||||
# grow dependencies on include and lib than vice versa.
|
||||
.if exists(share/info)
|
||||
SUBDIR+= share/info
|
||||
.endif
|
||||
|
||||
# We must do include and lib first so that the perl *.ph generation
|
||||
# works correctly as it uses the header files installed by this.
|
||||
.if exists(include)
|
||||
@@ -54,8 +65,8 @@ SUBDIR+= games
|
||||
.if exists(gnu)
|
||||
SUBDIR+= gnu
|
||||
.endif
|
||||
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
||||
SUBDIR+= eBones
|
||||
.if exists(kerberosIV) && exists(crypto) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
||||
SUBDIR+= kerberosIV
|
||||
.endif
|
||||
.if exists(libexec)
|
||||
SUBDIR+= libexec
|
||||
@@ -89,11 +100,12 @@ SUBDIR+= etc
|
||||
|
||||
# These are last, since it is nice to at least get the base system
|
||||
# rebuilt before you do them.
|
||||
.if defined(MAKE_LOCAL) & exists(local) & exists(local/Makefile)
|
||||
SUBDIR+= local
|
||||
.if defined(LOCAL_DIRS)
|
||||
.for _DIR in ${LOCAL_DIRS}
|
||||
.if exists(${_DIR}) & exists(${_DIR}/Makefile)
|
||||
SUBDIR+= ${_DIR}
|
||||
.endif
|
||||
.if defined(MAKE_PORTS) & exists(ports) & exists(ports/Makefile)
|
||||
SUBDIR+= ports
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
# Handle -DNOOBJDIR, -DNOCLEAN and -DNOCLEANDIR
|
||||
@@ -113,8 +125,8 @@ CLEANDIR= cleandir
|
||||
.endif
|
||||
.endif
|
||||
|
||||
SUP?= sup
|
||||
SUPFLAGS?= -v
|
||||
SUP?= cvsup
|
||||
SUPFLAGS?= -g -L 2 -P -
|
||||
|
||||
#
|
||||
# While building tools for bootstrapping, we dont need to waste time on
|
||||
@@ -135,87 +147,14 @@ world:
|
||||
@echo "make world started on `LC_TIME=C date`"
|
||||
@echo "--------------------------------------------------------------"
|
||||
.if target(pre-world)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Making 'pre-world' target"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} pre-world
|
||||
@echo
|
||||
.endif
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Making hierarchy"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} hierarchy
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/share/mk"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} mk
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Cleaning up the source tree"
|
||||
@echo "--------------------------------------------------------------"
|
||||
.if defined(NOCLEAN)
|
||||
@echo "Not cleaning anything! I sure hope you know what you are doing!"
|
||||
.else
|
||||
cd ${.CURDIR} && ${MAKE} ${CLEANDIR}
|
||||
.endif
|
||||
@echo
|
||||
.if !defined(NOOBJDIR)
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding the obj tree"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} obj
|
||||
@echo
|
||||
.endif
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding bootstrap tools"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} bootstrap
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding tools necessary to build the include files"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} include-tools
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/include"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} includes
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding tools needed to build the libraries"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} lib-tools
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/lib"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} libraries
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding sgml tools, symorder, groff and zic(8)"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} build-tools
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding dependencies"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} depend
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Building everything.."
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} all
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Installing everything.."
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} install
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding man page indexes"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
||||
cd ${.CURDIR} && ${MAKE} buildworld
|
||||
cd ${.CURDIR} && ${MAKE} -B installworld
|
||||
.if target(post-world)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@@ -228,6 +167,146 @@ world:
|
||||
@echo "make world completed on `LC_TIME=C date`"
|
||||
@echo "--------------------------------------------------------------"
|
||||
|
||||
.if defined(MAKEOBJDIRPREFIX)
|
||||
WORLDTMP= ${MAKEOBJDIRPREFIX}${.CURDIR}/tmp
|
||||
.else
|
||||
WORLDTMP= /usr/obj${.CURDIR}/tmp
|
||||
.endif
|
||||
STRICTTMPPATH= ${WORLDTMP}/sbin:${WORLDTMP}/usr/sbin:${WORLDTMP}/bin:${WORLDTMP}/usr/bin
|
||||
TMPPATH= ${STRICTTMPPATH}:${PATH}
|
||||
|
||||
# XXX COMPILER_PATH is needed for finding cc1, ld and as
|
||||
# XXX GCC_EXEC_PREFIX is for *crt.o. It is probably unnecssary now
|
||||
# tbat LIBRARY_PATH is set. We still can't use -nostdlib, since gcc
|
||||
# wouldn't link *crt.o or libgcc if it were used.
|
||||
# XXX LD_LIBRARY_PATH is for ld.so. It is also used by ld, although we don't
|
||||
# want that - all compile-time library paths should be resolved by gcc.
|
||||
# It fails for set[ug]id executables (are any used?).
|
||||
COMPILER_ENV= BISON_SIMPLE=${WORLDTMP}/usr/share/misc/bison.simple \
|
||||
COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
|
||||
GCC_EXEC_PREFIX=${WORLDTMP}/usr/lib/ \
|
||||
LD_LIBRARY_PATH=${WORLDTMP}${SHLIBDIR} \
|
||||
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib
|
||||
|
||||
BMAKEENV= PATH=${TMPPATH} ${COMPILER_ENV} NOEXTRADEPEND=t
|
||||
XMAKEENV= PATH=${STRICTTMPPATH} ${COMPILER_ENV} \
|
||||
CC='cc -nostdinc' # XXX -nostdlib
|
||||
|
||||
# used to compile and install 'make' in temporary build tree
|
||||
IBMAKE= ${BMAKEENV} ${MAKE} DESTDIR=${WORLDTMP}
|
||||
# bootstrap make
|
||||
BMAKE= ${BMAKEENV} ${WORLDTMP}/usr/bin/${MAKE} DESTDIR=${WORLDTMP}
|
||||
# cross make used for compilation
|
||||
XMAKE= ${XMAKEENV} ${WORLDTMP}/usr/bin/${MAKE} DESTDIR=${WORLDTMP}
|
||||
# cross make used for final installation
|
||||
IXMAKE= ${XMAKEENV} ${WORLDTMP}/usr/bin/${MAKE}
|
||||
|
||||
#
|
||||
# buildworld
|
||||
#
|
||||
# Attempt to rebuild the entire system, with reasonable chance of
|
||||
# success, regardless of how old your existing system is.
|
||||
#
|
||||
buildworld:
|
||||
.if !defined(NOCLEAN)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Cleaning up the temporary build tree"
|
||||
@echo "--------------------------------------------------------------"
|
||||
mkdir -p ${WORLDTMP}
|
||||
chflags -R noschg ${WORLDTMP}/
|
||||
rm -rf ${WORLDTMP}
|
||||
.endif
|
||||
.if !defined(NOTOOLS)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Making make"
|
||||
@echo "--------------------------------------------------------------"
|
||||
mkdir -p ${WORLDTMP}/usr/bin
|
||||
.if !defined(NOCLEAN) || !defined(NOOBJDIR)
|
||||
cd ${.CURDIR}/usr.bin/make && \
|
||||
${IBMAKE} -I${.CURDIR}/share/mk ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
cd ${.CURDIR}/usr.bin/make && \
|
||||
${IBMAKE} -I${.CURDIR}/share/mk depend && \
|
||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} all && \
|
||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} install && \
|
||||
${IBMAKE} -I${.CURDIR}/share/mk ${MK_FLAGS} clean cleandepend
|
||||
.endif
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Making hierarchy"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} hierarchy
|
||||
.if !defined(NOCLEAN)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Cleaning up the obj tree"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} par-${CLEANDIR}
|
||||
.endif
|
||||
.if !defined(NOOBJDIR)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding the obj tree"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} par-obj
|
||||
.endif
|
||||
.if !defined(NOTOOLS)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding bootstrap tools"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} bootstrap
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding tools necessary to build the include files"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} include-tools
|
||||
.endif
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/include"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && SHARED=symlinks ${BMAKE} includes
|
||||
.if !defined(NOTOOLS)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding tools needed to build the libraries"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} lib-tools
|
||||
.endif
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/lib"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} libraries
|
||||
.if !defined(NOTOOLS)
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding all other tools needed to build the world"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${BMAKE} build-tools
|
||||
.endif
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding dependencies"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${XMAKE} ${.MAKEFLAGS} par-depend
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Building everything.."
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${XMAKE} all
|
||||
|
||||
#
|
||||
# installworld
|
||||
#
|
||||
# Installs everything compiled by a 'buildworld'.
|
||||
#
|
||||
installworld:
|
||||
cd ${.CURDIR} && ${IXMAKE} reinstall
|
||||
|
||||
#
|
||||
# reinstall
|
||||
#
|
||||
@@ -242,21 +321,20 @@ reinstall:
|
||||
cd ${.CURDIR} && ${MAKE} hierarchy
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding /usr/share/mk"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} mk
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Installing everything.."
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ${MAKE} install
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Re-scanning the shared libraries.."
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && ldconfig -R
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Rebuilding man page indexes"
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR}/share/man && ${MAKE} makedb
|
||||
|
||||
|
||||
#
|
||||
# update
|
||||
#
|
||||
@@ -266,7 +344,7 @@ reinstall:
|
||||
update:
|
||||
.if defined(SUP_UPDATE)
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo "Running sup"
|
||||
@echo "Running ${SUP}"
|
||||
@echo "--------------------------------------------------------------"
|
||||
@${SUP} ${SUPFLAGS} ${SUPFILE}
|
||||
.if defined(SUPFILE1)
|
||||
@@ -280,10 +358,9 @@ update:
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo "Updating /usr/src from cvs repository" ${CVSROOT}
|
||||
@echo "--------------------------------------------------------------"
|
||||
cd ${.CURDIR} && cvs -q update -P -d
|
||||
cd ${.CURDIR} && cvs -q update -P -d -r RELENG_2_2
|
||||
.endif
|
||||
|
||||
|
||||
#
|
||||
# most
|
||||
#
|
||||
@@ -301,8 +378,8 @@ most:
|
||||
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} all
|
||||
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} all
|
||||
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} all
|
||||
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} most
|
||||
#.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/kerberosIV && ${MAKE} ${.MAKEFLAGS} most
|
||||
#.endif
|
||||
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} most
|
||||
@@ -326,8 +403,8 @@ installmost:
|
||||
cd ${.CURDIR}/gnu/libexec && ${MAKE} ${.MAKEFLAGS} install
|
||||
cd ${.CURDIR}/gnu/usr.bin && ${MAKE} ${.MAKEFLAGS} install
|
||||
cd ${.CURDIR}/gnu/usr.sbin && ${MAKE} ${.MAKEFLAGS} install
|
||||
#.if defined(MAKE_EBONES) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/eBones && ${MAKE} ${.MAKEFLAGS} installmost
|
||||
#.if defined(MAKE_KERBEROS4) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/kerberos4 && ${MAKE} ${.MAKEFLAGS} installmost
|
||||
#.endif
|
||||
#.if !defined(NOSECURE) && !defined(NOCRYPT)
|
||||
# cd ${.CURDIR}/secure && ${MAKE} ${.MAKEFLAGS} installmost
|
||||
@@ -350,34 +427,43 @@ installmost:
|
||||
hierarchy:
|
||||
cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
|
||||
|
||||
#
|
||||
# mk - update the /usr/share/mk makefiles.
|
||||
#
|
||||
mk:
|
||||
cd ${.CURDIR}/share/mk && ${MAKE} install
|
||||
|
||||
#
|
||||
# bootstrap - [re]build tools needed to run the actual build, this includes
|
||||
# tools needed by 'make depend', as some tools are needed to generate source
|
||||
# for the dependency information to be gathered from.
|
||||
#
|
||||
bootstrap:
|
||||
.if defined(DESTDIR)
|
||||
rm -f ${DESTDIR}/usr/src/sys
|
||||
ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src
|
||||
cd ${.CURDIR}/include && find -dx . | cpio -dump ${DESTDIR}/usr/include
|
||||
cd ${.CURDIR}/include && make symlinks
|
||||
.endif
|
||||
cd ${.CURDIR}/usr.bin/make && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/xinstall && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/lex && ${MAKE} bootstrap && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} -DNOLIB all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} -DNOLIB all && \
|
||||
${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
|
||||
.if !defined(NOOBJDIR)
|
||||
cd ${.CURDIR}/usr.bin/lex && ${MAKE} obj
|
||||
.endif
|
||||
|
||||
#
|
||||
# include-tools - generally the same as 'bootstrap', except that it's for
|
||||
# things that are specifically needed to generate include files.
|
||||
#
|
||||
# XXX should be merged with bootstrap, it's not worth keeeping them seperate
|
||||
# XXX should be merged with bootstrap, it's not worth keeeping them separate.
|
||||
# Well, maybe it is now. We force 'cleandepend' here to avoid dependencies
|
||||
# on cleaned away headers in ${WORLDTMP}.
|
||||
#
|
||||
include-tools:
|
||||
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} depend all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/rpcgen && ${MAKE} -B cleandepend depend && \
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
|
||||
#
|
||||
# includes - possibly generate and install the include files.
|
||||
@@ -388,25 +474,31 @@ includes:
|
||||
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
|
||||
-p ${DESTDIR}/usr/include
|
||||
.endif
|
||||
cd ${.CURDIR}/include/rpcsvc && ${MAKE} all
|
||||
cd ${.CURDIR}/include && ${MAKE} install
|
||||
cd ${.CURDIR}/include && ${MAKE} -B all install
|
||||
cd ${.CURDIR}/gnu/include && ${MAKE} install
|
||||
cd ${.CURDIR}/gnu/lib/libreadline && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libregex && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
|
||||
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
||||
cd ${.CURDIR}/eBones/include && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/eBones/lib/libkrb && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/eBones/lib/libkadm && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libstdc++ && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libg++ && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/gnu/lib/libdialog && ${MAKE} beforeinstall
|
||||
.if exists(kerberosIV) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
||||
cd ${.CURDIR}/kerberosIV/lib/libacl && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/kerberosIV/lib/libkadm && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/kerberosIV/lib/libkafs && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/kerberosIV/lib/libkdb && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/kerberosIV/lib/libkrb && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/kerberosIV/lib/libtelnet && ${MAKE} beforeinstall
|
||||
.else
|
||||
cd ${.CURDIR}/lib/libtelnet && ${MAKE} beforeinstall
|
||||
.endif
|
||||
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libalias && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libc && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libcurses && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libedit && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libftpio && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libmd && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libncurses && ${MAKE} beforeinstall
|
||||
.if !defined(WANT_CSRG_LIBM)
|
||||
cd ${.CURDIR}/lib/msun && ${MAKE} beforeinstall
|
||||
@@ -414,42 +506,37 @@ includes:
|
||||
cd ${.CURDIR}/lib/libpcap && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/librpcsvc && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libskey && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libtcl && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libtermcap && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libcom_err && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libss && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libscsi && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libutil && ${MAKE} beforeinstall
|
||||
cd ${.CURDIR}/lib/libz && ${MAKE} beforeinstall
|
||||
|
||||
#
|
||||
# lib-tools - build tools to compile and install the libraries.
|
||||
#
|
||||
# XXX gperf is required for cc
|
||||
# XXX a new ld and tsort is required for cc
|
||||
lib-tools:
|
||||
cd ${.CURDIR}/usr.bin/tsort && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/gnu/usr.bin/ld && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/gnu/usr.bin/as && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/ar && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/ranlib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/nm && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/usr.bin/compile_et && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} && \
|
||||
rm -f /usr/sbin/compile_et
|
||||
cd ${.CURDIR}/usr.bin/mk_cmds && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/gnu/usr.bin/bison && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/gnu/usr.bin/gperf && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
cd ${.CURDIR}/gnu/usr.bin/cc && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
.for d in \
|
||||
gnu/usr.bin/gperf \
|
||||
gnu/usr.bin/ld \
|
||||
usr.bin/tsort \
|
||||
gnu/usr.bin/as \
|
||||
gnu/usr.bin/bison \
|
||||
usr.bin/ar \
|
||||
usr.bin/compile_et \
|
||||
usr.bin/lex/lib \
|
||||
usr.bin/mk_cmds \
|
||||
usr.bin/nm \
|
||||
usr.bin/ranlib \
|
||||
usr.bin/uudecode \
|
||||
gnu/usr.bin/cc
|
||||
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endfor
|
||||
|
||||
#
|
||||
# libraries - build and install the libraries
|
||||
@@ -457,62 +544,161 @@ lib-tools:
|
||||
libraries:
|
||||
.if exists(lib/csu/i386)
|
||||
cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib/libcompat)
|
||||
cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib/libc)
|
||||
cd ${.CURDIR}/lib/libc && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib/libmytinfo)
|
||||
cd ${.CURDIR}/lib/libmytinfo && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib/libncurses)
|
||||
cd ${.CURDIR}/lib/libncurses && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib/libtermcap)
|
||||
cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(gnu)
|
||||
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
||||
cd ${.CURDIR}/secure/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(lib)
|
||||
cd ${.CURDIR}/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(usr.bin/lex/lib)
|
||||
cd ${.CURDIR}/usr.bin/lex/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(eBones) && !defined(NOCRYPT) && defined(MAKE_EBONES)
|
||||
cd ${.CURDIR}/eBones/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
.if exists(kerberosIV) && exists(crypto) && !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
|
||||
cd ${.CURDIR}/kerberosIV/lib && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
.if exists(usr.sbin/pcvt/keycap)
|
||||
cd ${.CURDIR}/usr.sbin/pcvt/keycap && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endif
|
||||
|
||||
# Exclude perl from the build-tools if NOPERL is defined.
|
||||
.if defined(NOPERL)
|
||||
_perl=
|
||||
.else
|
||||
_perl= gnu/usr.bin/perl/perl
|
||||
.endif
|
||||
|
||||
#
|
||||
# build-tools - build and install any other tools needed to complete the
|
||||
# compile and install.
|
||||
# ifdef stale
|
||||
# bc and cpp are required to build groff. Otherwise, the order here is
|
||||
# mostly historical, i.e., bogus.
|
||||
# chmod is used to build gcc's tmpmultilib[2] at obscure times.
|
||||
# endif stale
|
||||
# XXX uname is a bug - the target should not depend on the host.
|
||||
#
|
||||
build-tools:
|
||||
.for d in \
|
||||
share/info \
|
||||
gnu/usr.bin/texinfo \
|
||||
usr.bin/symorder \
|
||||
usr.bin/sgmls \
|
||||
usr.bin/sgmlfmt \
|
||||
share/sgml \
|
||||
usr.sbin/zic \
|
||||
bin/cat \
|
||||
bin/chmod \
|
||||
bin/cp \
|
||||
bin/date \
|
||||
bin/dd \
|
||||
bin/echo \
|
||||
bin/expr \
|
||||
bin/hostname \
|
||||
bin/ln \
|
||||
bin/ls \
|
||||
bin/mkdir \
|
||||
bin/mv \
|
||||
bin/rm \
|
||||
bin/test \
|
||||
gnu/usr.bin/awk \
|
||||
gnu/usr.bin/groff
|
||||
gnu/usr.bin/bc \
|
||||
gnu/usr.bin/grep \
|
||||
gnu/usr.bin/groff \
|
||||
gnu/usr.bin/gzip \
|
||||
gnu/usr.bin/man/makewhatis \
|
||||
gnu/usr.bin/patch \
|
||||
${_perl} \
|
||||
gnu/usr.bin/sort \
|
||||
gnu/usr.bin/texinfo \
|
||||
usr.bin/basename \
|
||||
usr.bin/cap_mkdb \
|
||||
usr.bin/chflags \
|
||||
usr.bin/cmp \
|
||||
usr.bin/col \
|
||||
usr.bin/cpp \
|
||||
usr.bin/expand \
|
||||
usr.bin/file2c \
|
||||
usr.bin/find \
|
||||
usr.bin/gencat \
|
||||
usr.bin/id \
|
||||
usr.bin/lorder \
|
||||
usr.bin/m4 \
|
||||
usr.bin/mkdep \
|
||||
usr.bin/paste \
|
||||
usr.bin/sed \
|
||||
usr.bin/size \
|
||||
usr.bin/soelim \
|
||||
usr.bin/strip \
|
||||
usr.bin/symorder \
|
||||
usr.bin/touch \
|
||||
usr.bin/tr \
|
||||
usr.bin/true \
|
||||
usr.bin/uname \
|
||||
usr.bin/uuencode \
|
||||
usr.bin/vgrind \
|
||||
usr.bin/vi \
|
||||
usr.bin/wc \
|
||||
usr.bin/yacc \
|
||||
usr.sbin/chown \
|
||||
usr.sbin/mtree \
|
||||
usr.sbin/zic \
|
||||
bin/sh
|
||||
cd ${.CURDIR}/$d && ${MAKE} depend && \
|
||||
${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}
|
||||
${MAKE} ${MK_FLAGS} all && \
|
||||
${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
|
||||
.endfor
|
||||
|
||||
.for __target in clean cleandir obj depend
|
||||
.for entry in ${SUBDIR}
|
||||
${entry}.${__target}__D: .PHONY
|
||||
if test -d ${.CURDIR}/${entry}.${MACHINE}; then \
|
||||
${ECHODIR} "===> ${DIRPRFX}${entry}.${MACHINE}"; \
|
||||
edir=${entry}.${MACHINE}; \
|
||||
cd ${.CURDIR}/$${edir}; \
|
||||
else \
|
||||
${ECHODIR} "===> ${DIRPRFX}${entry}"; \
|
||||
edir=${entry}; \
|
||||
cd ${.CURDIR}/$${edir}; \
|
||||
fi; \
|
||||
${MAKE} ${__target} DIRPRFX=${DIRPRFX}$${edir}/
|
||||
.endfor
|
||||
par-${__target}: ${SUBDIR:S/$/.${__target}__D/}
|
||||
.endfor
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
@@ -1,5 +1,5 @@
|
||||
This is the top level of the FreeBSD source directory. This file
|
||||
was last revised on: $Id$
|
||||
was last revised on: $Id: README,v 1.7.2.2 1998/02/15 10:47:57 jkh Exp $
|
||||
|
||||
For copyright information, please see the file COPYRIGHT in this
|
||||
directory (additional copyright information also exists for some
|
||||
@@ -10,13 +10,14 @@ The Makefile in this directory supports a number of targets for
|
||||
building components (or all) of the FreeBSD source tree, the most
|
||||
commonly used one being ``world'', which rebuilds and installs
|
||||
everything in the FreeBSD system from the source tree except the
|
||||
kernel. Please see the top of the Makefile for more information on
|
||||
the standard build targets and compile-time flags.
|
||||
kernel and the contents of /etc. Please see the top of the Makefile
|
||||
in this directory for more information on the standard build targets
|
||||
and compile-time flags.
|
||||
|
||||
Building a kernel with config(1) is a somewhat more involved process,
|
||||
Building a kernel with config(8) is a somewhat more involved process,
|
||||
documentation for which can be found at:
|
||||
http://www.freebsd.org/handbook/kernelconfig.html
|
||||
And in the config(1) man page.
|
||||
And in the config(8) man page.
|
||||
|
||||
The sample kernel configuration files reside in the sys/i386/conf
|
||||
sub-directory (assuming that you've installed the kernel sources), the
|
||||
@@ -33,7 +34,7 @@ bin System/User commands.
|
||||
|
||||
contrib Packages contributed by 3rd parties.
|
||||
|
||||
eBones Kerberos package - NOT FOR EXPORT!
|
||||
crypto Export controlled stuff (see crypto/README).
|
||||
|
||||
etc Template files for /etc
|
||||
|
||||
@@ -44,6 +45,8 @@ gnu Various commands and libraries under the GNU Public License.
|
||||
|
||||
include System include files.
|
||||
|
||||
kerberosIV Kerberos package - also export controlled.
|
||||
|
||||
lib System libraries.
|
||||
|
||||
libexec System daemons.
|
||||
|
||||
+16
-18
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)cat.1 8.3 (Berkeley) 5/2/95
|
||||
.\" $Id: cat.1,v 1.6 1997/02/22 14:01:26 peter Exp $
|
||||
.\" $Id: cat.1,v 1.3.2.2 1998/06/30 06:42:19 charnier Exp $
|
||||
.\"
|
||||
.Dd May 2, 1995
|
||||
.Dt CAT 1
|
||||
@@ -48,7 +48,7 @@
|
||||
.Op Ar
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm cat
|
||||
.Nm
|
||||
utility reads files sequentially, writing them to the standard output.
|
||||
The
|
||||
.Ar file
|
||||
@@ -56,47 +56,44 @@ operands are processed in command line order.
|
||||
A single dash represents the standard input.
|
||||
.Pp
|
||||
The options are as follows:
|
||||
.Bl -tag -width Ds
|
||||
.Bl -tag -width indent
|
||||
.It Fl b
|
||||
Implies the
|
||||
.Fl n
|
||||
option but doesn't number blank lines.
|
||||
Number the non-blank output lines, starting at 1.
|
||||
.It Fl e
|
||||
Implies the
|
||||
Display non-printing characters (see the
|
||||
.Fl v
|
||||
option, and displays a dollar sign
|
||||
option), and display a dollar sign
|
||||
.Pq Ql \&$
|
||||
at the end of each line
|
||||
as well.
|
||||
at the end of each line.
|
||||
.It Fl n
|
||||
Number the output lines, starting at 1.
|
||||
.It Fl s
|
||||
Squeeze multiple adjacent empty lines, causing the output to be
|
||||
single spaced.
|
||||
.It Fl t
|
||||
Implies the
|
||||
Display non-printing characters (see the
|
||||
.Fl v
|
||||
option, and displays tab characters as
|
||||
.Ql ^I
|
||||
as well.
|
||||
option), and display tab characters as
|
||||
.Ql ^I .
|
||||
.It Fl u
|
||||
The
|
||||
.Fl u
|
||||
option guarantees that the output is unbuffered.
|
||||
.It Fl v
|
||||
Displays non-printing characters so they are visible.
|
||||
Display non-printing characters so they are visible.
|
||||
Control characters print as
|
||||
.Ql ^X
|
||||
for control-X; the delete
|
||||
character (octal 0177) prints as
|
||||
.Ql ^?
|
||||
Non-ascii characters (with the high bit set) are printed as
|
||||
.Pf Non- Tn ASCII
|
||||
characters (with the high bit set) are printed as
|
||||
.Ql M-
|
||||
(for meta) followed by the character for the low 7 bits.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Nm cat
|
||||
.Nm
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh BUGS
|
||||
Because of the shell language mechanism used to perform output
|
||||
@@ -119,7 +116,8 @@ will cause the original data in file1 to be destroyed!
|
||||
A
|
||||
.Nm
|
||||
command appeared in Version 1 AT&T UNIX.
|
||||
Dennis Ritchie designed and wrote the first man page.
|
||||
.An Dennis Ritchie
|
||||
designed and wrote the first man page.
|
||||
It appears to have been
|
||||
.Xr cat 1 .
|
||||
|
||||
+4
-4
@@ -33,17 +33,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cat.c,v 1.4 1996/09/28 21:19:27 imp Exp $
|
||||
* $Id: cat.c,v 1.5 1996/09/30 15:45:36 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1989, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
||||
static char const sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -78,7 +78,7 @@ main(argc, argv)
|
||||
|
||||
setlocale(LC_CTYPE, "");
|
||||
|
||||
while ((ch = getopt(argc, argv, "benstuv")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "benstuv")) != -1)
|
||||
switch (ch) {
|
||||
case 'b':
|
||||
bflag = nflag = 1; /* -b implies -n */
|
||||
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
# $Id: $
|
||||
# $Id: Makefile,v 1.1.1.1 1997/03/06 15:30:06 joerg Exp $
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
|
||||
PROG= chio
|
||||
SRCS= chio.c
|
||||
BINOWN= root
|
||||
BINMODE=4555
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
+57
-54
@@ -30,6 +30,8 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id$
|
||||
.\"
|
||||
.Dd April 2, 1996
|
||||
.Dt CHIO 1
|
||||
.Os
|
||||
@@ -61,49 +63,53 @@ rather than the default device
|
||||
.El
|
||||
.Pp
|
||||
The default changer may be overridden by setting the environment variable
|
||||
.Nm CHANGER
|
||||
.Ev CHANGER
|
||||
to the desired changer device.
|
||||
.Pp
|
||||
A medium changer apparatus is made up of
|
||||
.Pa elements .
|
||||
.Em elements .
|
||||
There are four element types:
|
||||
.Pa picker
|
||||
.Em picker
|
||||
(medium transport),
|
||||
.Pa slot
|
||||
.Em slot
|
||||
(storage),
|
||||
.Pa portal
|
||||
.Em portal
|
||||
(import/export), and
|
||||
.Pa drive
|
||||
.Em drive
|
||||
(data transfer). In this command description, the shorthand
|
||||
.Nm ET
|
||||
.Em ET
|
||||
will be used to represent an element type, and
|
||||
.Nm EU
|
||||
.Em EU
|
||||
will be used to represent an element unit. For example, to represent
|
||||
the first robotic arm in the changer, the ET would be
|
||||
the first robotic arm in the changer, the
|
||||
.Em ET
|
||||
would be
|
||||
.Dq picker
|
||||
and the EU would be
|
||||
and the
|
||||
.Em EU
|
||||
would be
|
||||
.Dq 0 .
|
||||
.Pp
|
||||
.Sh SUPPORTED COMMANDS
|
||||
.Nm chio move
|
||||
.Bl -tag -width indent
|
||||
.It Xo Nm chio move
|
||||
.Ar <from ET> <from EU> <to ET> <to EU>
|
||||
.Op Ar inv
|
||||
.Pp
|
||||
Moves the media unit from
|
||||
.Xc
|
||||
Move the media unit from
|
||||
.Pa <from ET/EU>
|
||||
to
|
||||
.Pa <to ET/EU> .
|
||||
If the optional modifier
|
||||
.Pa inv
|
||||
is specified, the media unit will be inverted before insertion.
|
||||
.Pp
|
||||
.Nm chio exchange
|
||||
.It Xo Nm chio exchange
|
||||
.Ar <src ET> <src EU> <dst1 ET> <dst1 EU>
|
||||
.Op Ar <dst2 ET> <dst2 ET>
|
||||
.Op Ar inv1
|
||||
.Op Ar inv2
|
||||
.Pp
|
||||
Performs a media unit exchange operation. The media unit in
|
||||
.Xc
|
||||
Perform a media unit exchange operation. The media unit in
|
||||
.Pa <src ET/EU>
|
||||
is moved to
|
||||
.Pa <dst1 ET/EU>
|
||||
@@ -124,17 +130,16 @@ specify whether the media units are to be inverted before insertion into
|
||||
.Pa <dst1 ET/EU>
|
||||
and
|
||||
.Pa <dst2 ET/EU>
|
||||
respecitively.
|
||||
respectively.
|
||||
.Pp
|
||||
Note that not all medium changers support the
|
||||
.Nm exchange
|
||||
operation; The changer must have multiple free pickers or emulate
|
||||
multiple free pickers with transient storage.
|
||||
.Pp
|
||||
.Nm chio position
|
||||
.It Xo Nm chio position
|
||||
.Ar <to ET> <to EU>
|
||||
.Op Ar inv
|
||||
.Pp
|
||||
.Xc
|
||||
Position the picker in front of the element described by
|
||||
.Pa <to ET/EU> .
|
||||
If the optional modifier
|
||||
@@ -142,61 +147,59 @@ If the optional modifier
|
||||
is specified, the media unit will be inverted before insertion.
|
||||
.Pp
|
||||
Note that not all changers behave as expected when issued this command.
|
||||
.Pp
|
||||
.Nm chio params
|
||||
.Pp
|
||||
.It Nm chio params
|
||||
Report the number of slots, drives, pickers, and portals in the changer,
|
||||
and which picker unit the changer is currently configured to use.
|
||||
.Pp
|
||||
.Nm chio getpicker
|
||||
.Pp
|
||||
.It Nm chio getpicker
|
||||
Report which picker unit the changer is currently configured to use.
|
||||
.Pp
|
||||
.Nm chio setpicker
|
||||
.It Xo Nm chio setpicker
|
||||
.Ar <unit>
|
||||
.Pp
|
||||
.Xc
|
||||
Configure the changer to use picker
|
||||
.Pa <unit> .
|
||||
.Pp
|
||||
.Nm chio status
|
||||
.It Xo Nm chio status
|
||||
.Op Ar <type>
|
||||
.Pp
|
||||
.Xc
|
||||
Report the status of all elements in the changer. If
|
||||
.Pa <type>
|
||||
is specified, report the status of all elements of type
|
||||
.Pa <type> .
|
||||
.El
|
||||
.Pp
|
||||
The status bits are defined as follows:
|
||||
.Bl -tag -width indent
|
||||
.It Nm FULL
|
||||
.It FULL
|
||||
Element contains a media unit.
|
||||
.It Nm IMPEXP
|
||||
.It IMPEXP
|
||||
Media was deposited into element by an outside human operator.
|
||||
.It Nm EXCEPT
|
||||
.It EXCEPT
|
||||
Element is in an abnormal state.
|
||||
.It Nm ACCESS
|
||||
.It ACCESS
|
||||
Media in this element is accessible by a picker.
|
||||
.It Nm EXENAB
|
||||
Element supports passing media (exporting) to an outsite human operator.
|
||||
.It Nm INENAB
|
||||
.It EXENAB
|
||||
Element supports passing media (exporting) to an outside human operator.
|
||||
.It INENAB
|
||||
Element supports receiving media (importing) from an outside human operator.
|
||||
.El
|
||||
.Pp
|
||||
.Sh EXAMPLES
|
||||
.Nm chio move slot 3 drive 0
|
||||
.Pp
|
||||
Moves the media in slot 3 (fourth slot) to drive 0 (first drive).
|
||||
.Pp
|
||||
.Nm chio setpicker 2
|
||||
Configures the changer to use picker 2 (third picker) for operations.
|
||||
.Pp
|
||||
.Bl -tag -width indent
|
||||
.It Nm chio move slot 3 drive 0
|
||||
Move the media in slot 3 (fourth slot) to drive 0 (first drive).
|
||||
.It Nm chio setpicker 2
|
||||
Configure the changer to use picker 2 (third picker) for operations.
|
||||
.El
|
||||
.Sh FILES
|
||||
/dev/ch0 - default changer device
|
||||
.Bl -tag -width /dev/ch0 -compact
|
||||
.It Pa /dev/ch0
|
||||
default changer device
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr mt 1 ,
|
||||
.Xr mount 8 .
|
||||
.Sh AUTHOR
|
||||
.Xr ch 4 ,
|
||||
.Xr mount 8
|
||||
.Sh AUTHORS
|
||||
The
|
||||
.Nm chio
|
||||
program and SCSI changer driver were written by Jason R. Thorpe
|
||||
<[email protected]> for And Communications, http://www.and.com/
|
||||
.Nm
|
||||
program and SCSI changer driver were written by
|
||||
.An Jason R. Thorpe Aq [email protected]
|
||||
for And Communications, http://www.and.com/
|
||||
+24
-20
@@ -1,4 +1,4 @@
|
||||
/* $Id: $ */
|
||||
/* $Id: chio.c,v 1.1.1.1.2.2 1997/08/24 10:29:16 jkh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Jason R. Thorpe <[email protected]>
|
||||
@@ -47,8 +47,6 @@
|
||||
#include "defs.h"
|
||||
#include "pathnames.h"
|
||||
|
||||
extern char *__progname; /* from crt0.o */
|
||||
|
||||
static void usage __P((void));
|
||||
static void cleanup __P((void));
|
||||
static int parse_element_type __P((char *));
|
||||
@@ -103,7 +101,6 @@ main(argc, argv)
|
||||
char **argv;
|
||||
{
|
||||
int ch, i;
|
||||
char *cp;
|
||||
|
||||
while ((ch = getopt(argc, argv, "f:")) != -1) {
|
||||
switch (ch) {
|
||||
@@ -209,8 +206,8 @@ do_move(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s "
|
||||
"<from ET> <from EU> <to ET> <to EU> [inv]\n", __progname, cname);
|
||||
fprintf(stderr, "usage: chio %s "
|
||||
"<from ET> <from EU> <to ET> <to EU> [inv]\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -302,9 +299,9 @@ do_exchange(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n"
|
||||
" [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n",
|
||||
__progname, cname);
|
||||
fprintf(stderr,
|
||||
"usage: chio %s <src ET> <src EU> <dst1 ET> <dst1 EU>\n"
|
||||
" [<dst2 ET> <dst2 EU>] [inv1] [inv2]\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -363,8 +360,7 @@ do_position(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s <to ET> <to EU> [inv]\n",
|
||||
__progname, cname);
|
||||
fprintf(stderr, "usage: chio %s <to ET> <to EU> [inv]\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -378,7 +374,7 @@ do_params(cname, argc, argv)
|
||||
|
||||
/* No arguments to this command. */
|
||||
if (argc) {
|
||||
warnx("%s: no arguements expected", cname);
|
||||
warnx("%s: no arguments expected", cname);
|
||||
goto usage;
|
||||
}
|
||||
|
||||
@@ -400,7 +396,7 @@ do_params(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s\n", __progname, cname);
|
||||
fprintf(stderr, "usage: chio %s\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -427,7 +423,7 @@ do_getpicker(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s\n", __progname, cname);
|
||||
fprintf(stderr, "usage: chio %s\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -456,7 +452,7 @@ do_setpicker(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s <picker>\n", __progname, cname);
|
||||
fprintf(stderr, "usage: chio %s <picker>\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -470,7 +466,10 @@ do_status(cname, argc, argv)
|
||||
struct changer_params data;
|
||||
u_int8_t *statusp;
|
||||
int i, count, chet, schet, echet;
|
||||
char *cmdname, *description;
|
||||
char *description;
|
||||
|
||||
count = 0;
|
||||
description = NULL;
|
||||
|
||||
/*
|
||||
* On a status command, we expect the following:
|
||||
@@ -562,8 +561,7 @@ do_status(cname, argc, argv)
|
||||
return (0);
|
||||
|
||||
usage:
|
||||
fprintf(stderr, "usage: %s %s [<element type>]\n", __progname,
|
||||
cname);
|
||||
fprintf(stderr, "usage: chio %s [<element type>]\n", cname);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -637,7 +635,8 @@ bits_to_string(v, cp)
|
||||
np++;
|
||||
if ((v & (1 << (f - 1))) == 0)
|
||||
continue;
|
||||
bp += sprintf(bp, "%c%.*s", sep, np - cp, cp);
|
||||
bp += snprintf(bp, sizeof(buf) - (bp - &buf[0]),
|
||||
"%c%.*s", sep, np - cp, cp);
|
||||
sep = ',';
|
||||
}
|
||||
if (sep != '<')
|
||||
@@ -657,7 +656,12 @@ cleanup()
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
int i;
|
||||
|
||||
fprintf(stderr, "usage: %s command arg1 arg2 ...\n", __progname);
|
||||
fprintf(stderr, "usage: chio [-f changer] command [args ...]\n");
|
||||
fprintf(stderr, "commands:");
|
||||
for (i = 0; commands[i].cc_name; i++)
|
||||
fprintf(stderr, " %s", commands[i].cc_name);
|
||||
fprintf(stderr, "\n");
|
||||
exit(1);
|
||||
}
|
||||
+51
-21
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
|
||||
.\" $Id: chmod.1,v 1.7 1997/02/22 14:01:29 peter Exp $
|
||||
.\" $Id: chmod.1,v 1.4.2.3 1998/05/22 10:41:45 jkoshy Exp $
|
||||
.\"
|
||||
.Dd March 31, 1994
|
||||
.Dt CHMOD 1
|
||||
@@ -51,7 +51,7 @@
|
||||
.Ar file ...
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm chmod
|
||||
.Nm
|
||||
utility modifies the file mode bits of the listed files
|
||||
as specified by the
|
||||
.Ar mode
|
||||
@@ -82,7 +82,7 @@ Symbolic links do not have modes, so unless the
|
||||
or
|
||||
.Fl L
|
||||
option is set,
|
||||
.Nm chmod
|
||||
.Nm
|
||||
on a symbolic link always succeeds and has no effect.
|
||||
The
|
||||
.Fl H ,
|
||||
@@ -99,35 +99,63 @@ Only the owner of a file or the super-user is permitted to change
|
||||
the mode of a file.
|
||||
.Pp
|
||||
The
|
||||
.Nm chmod
|
||||
.Nm
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh MODES
|
||||
Modes may be absolute or symbolic.
|
||||
An absolute mode is an octal number constructed by
|
||||
.Ar or-ing
|
||||
the following values:
|
||||
An absolute mode is an octal number constructed from the sum of
|
||||
one or more of the following values:
|
||||
.Pp
|
||||
.Bl -tag -width 6n -compact -offset indent
|
||||
.It Li 4000
|
||||
set-user-ID-on-execution
|
||||
(the set-user-ID-on-execution bit) Executable files with this bit set
|
||||
will run with effective uid set to the uid of the file owner.
|
||||
Directories with the set-user-id bit set will force all files and
|
||||
sub-directories created in them to be owned by the directory owner
|
||||
and not by the uid of the creating process, if the underlying file
|
||||
system supports this feature: see
|
||||
.Xr chmod 2
|
||||
and the
|
||||
.Ar suiddir
|
||||
option to
|
||||
.Xr mount 1 .
|
||||
.It Li 2000
|
||||
set-group-ID-on-execution
|
||||
(the set-group-ID-on-execution bit) Executable files with this bit set
|
||||
will run with effective gid set to the gid of the file owner.
|
||||
.It Li 1000
|
||||
sticky bit, see chmod(2)
|
||||
(the sticky bit)
|
||||
When set on a directory, unprivileged users can delete and rename
|
||||
only those files in the directory that are owned by them, regardless of
|
||||
the permissions on the directory. Under FreeBSD, the sticky bit is
|
||||
ignored for executable files and may only be set for directories (see
|
||||
.Xr sticky 8 ).
|
||||
.It Li 0400
|
||||
read by owner
|
||||
Allow read by owner.
|
||||
.It Li 0200
|
||||
write by owner
|
||||
Allow write by owner.
|
||||
.It Li 0100
|
||||
execute (or search for directories) by owner
|
||||
.It Li 0070
|
||||
read, write, execute/search by group
|
||||
.It Li 0007
|
||||
read, write, execute/search by others
|
||||
For files, allow execution by owner. For directories, allow the owner to
|
||||
search in the directory.
|
||||
.It Li 0040
|
||||
Allow read by group members.
|
||||
.It Li 0020
|
||||
Allow write by group members.
|
||||
.It Li 0010
|
||||
For files, allow execution by group members. For directories, allow
|
||||
group members to search in the directory.
|
||||
.It Li 0004
|
||||
Allow read by others.
|
||||
.It Li 0002
|
||||
Allow write by others.
|
||||
.It Li 0001
|
||||
For files, allow execution by others. For directories allow others to
|
||||
search in the directory.
|
||||
.El
|
||||
.Pp
|
||||
The read, write, and execute/search values for group and others
|
||||
are encoded as described for owner.
|
||||
For example, the absolute mode that permits read, write and execute by
|
||||
the owner, read and execute by group members, read and execute by
|
||||
others, and no set-uid or set-gid behaviour is 755
|
||||
(400+200+100+040+010+004+001).
|
||||
.Pp
|
||||
The symbolic mode is described by the following grammar:
|
||||
.Bd -literal -offset indent
|
||||
@@ -276,16 +304,18 @@ option for the naughty bits.
|
||||
.Sh SEE ALSO
|
||||
.Xr chflags 1 ,
|
||||
.Xr install 1 ,
|
||||
.Xr mount 1 ,
|
||||
.Xr chmod 2 ,
|
||||
.Xr stat 2 ,
|
||||
.Xr umask 2 ,
|
||||
.Xr fts 3 ,
|
||||
.Xr setmode 3 ,
|
||||
.Xr symlink 7 ,
|
||||
.Xr chown 8
|
||||
.Xr chown 8 ,
|
||||
.Xr sticky 8
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm chmod
|
||||
.Nm
|
||||
utility is expected to be
|
||||
.St -p1003.2
|
||||
compatible with the exception of the
|
||||
|
||||
+4
-4
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: chmod.c,v 1.4 1995/03/19 13:27:43 joerg Exp $
|
||||
* $Id: chmod.c,v 1.5.2.1 1997/08/24 10:30:25 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1989, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
|
||||
static char const sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -73,7 +73,7 @@ main(argc, argv)
|
||||
set = NULL;
|
||||
omode = 0;
|
||||
Hflag = Lflag = Pflag = Rflag = fflag = hflag = 0;
|
||||
while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != -1)
|
||||
switch (ch) {
|
||||
case 'H':
|
||||
Hflag = 1;
|
||||
|
||||
+11
-11
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
|
||||
.\" $Id: cp.1,v 1.9 1997/02/22 14:01:32 peter Exp $
|
||||
.\" $Id: cp.1,v 1.6.2.1 1997/02/28 07:54:27 mpp Exp $
|
||||
.\"
|
||||
.Dd April 18, 1994
|
||||
.Dt CP 1
|
||||
@@ -60,7 +60,7 @@
|
||||
.Ar source_file ... target_directory
|
||||
.Sh DESCRIPTION
|
||||
In the first synopsis form, the
|
||||
.Nm cp
|
||||
.Nm
|
||||
utility copies the contents of the
|
||||
.Ar source_file
|
||||
to the
|
||||
@@ -72,7 +72,7 @@ is copied to the destination
|
||||
.Ar target_directory .
|
||||
The names of the files themselves are not changed.
|
||||
If
|
||||
.Nm cp
|
||||
.Nm
|
||||
detects an attempt to copy a file to itself, the copy will fail.
|
||||
.Pp
|
||||
The following options are available:
|
||||
@@ -94,11 +94,11 @@ option is specified, no symbolic links are followed.
|
||||
If
|
||||
.Ar source_file
|
||||
designates a directory,
|
||||
.Nm cp
|
||||
.Nm
|
||||
copies the directory and the entire subtree connected at that point.
|
||||
This option also causes symbolic links to be copied, rather than
|
||||
indirected through, and for
|
||||
.Nm cp
|
||||
.Nm
|
||||
to create special files rather than copying them as normal files.
|
||||
Created directories have the same mode as the corresponding source
|
||||
directory, unmodified by the process' umask.
|
||||
@@ -112,8 +112,8 @@ option overrides any previous
|
||||
.Fl i
|
||||
options.)
|
||||
.It Fl i
|
||||
Causes
|
||||
.Nm cp
|
||||
Cause
|
||||
.Nm
|
||||
to write a prompt to the standard error output before copying a file
|
||||
that would overwrite an existing file.
|
||||
If the response from the standard input begins with the character
|
||||
@@ -127,8 +127,8 @@ option overrides any previous
|
||||
.Fl f
|
||||
options.)
|
||||
.It Fl p
|
||||
Causes
|
||||
.Nm cp
|
||||
Cause
|
||||
.Nm
|
||||
to preserve in the copy as many of the modification time, access time,
|
||||
file flags, file mode, user ID, and group ID as allowed by permissions.
|
||||
.Pp
|
||||
@@ -200,7 +200,7 @@ command's actions are determined by the last one specified.
|
||||
exits 0 on success, >0 if an error occurred.
|
||||
.Sh COMPATIBILITY
|
||||
Historic versions of the
|
||||
.Nm cp
|
||||
.Nm
|
||||
utility had a
|
||||
.Fl r
|
||||
option.
|
||||
@@ -215,7 +215,7 @@ or fifo's.
|
||||
.Xr symlink 7
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm cp
|
||||
.Nm
|
||||
command is expected to be
|
||||
.St -p1003.2
|
||||
compatible.
|
||||
|
||||
+14
-6
@@ -33,17 +33,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cp.c,v 1.9 1996/02/19 05:56:33 pst Exp $
|
||||
* $Id: cp.c,v 1.10.2.1 1997/08/24 10:34:45 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1988, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94";
|
||||
static char const sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@@ -51,7 +51,7 @@ static char sccsid[] = "@(#)cp.c 8.2 (Berkeley) 4/1/94";
|
||||
*
|
||||
* The global PATH_T structure "to" always contains the path to the
|
||||
* current target file. Since fts(3) does not change directories,
|
||||
* this path can be either absolute or dot-realative.
|
||||
* this path can be either absolute or dot-relative.
|
||||
*
|
||||
* The basic algorithm is to initialize "to" and use fts(3) to traverse
|
||||
* the file hierarchy rooted in the argument list. A trivial case is the
|
||||
@@ -105,7 +105,7 @@ main(argc, argv)
|
||||
char *target;
|
||||
|
||||
Hflag = Lflag = Pflag = 0;
|
||||
while ((ch = getopt(argc, argv, "HLPRfipr")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "HLPRfipr")) != -1)
|
||||
switch (ch) {
|
||||
case 'H':
|
||||
Hflag = 1;
|
||||
@@ -253,7 +253,7 @@ copy(argv, type, fts_options)
|
||||
struct stat to_stat;
|
||||
FTS *ftsp;
|
||||
FTSENT *curr;
|
||||
int base, dne, nlen, rval;
|
||||
int base = 0, dne, nlen, rval;
|
||||
char *p, *target_mid;
|
||||
|
||||
if ((ftsp = fts_open(argv, fts_options, mastercmp)) == NULL)
|
||||
@@ -261,6 +261,7 @@ copy(argv, type, fts_options)
|
||||
for (rval = 0; (curr = fts_read(ftsp)) != NULL;) {
|
||||
switch (curr->fts_info) {
|
||||
case FTS_NS:
|
||||
case FTS_DNR:
|
||||
case FTS_ERR:
|
||||
warnx("%s: %s",
|
||||
curr->fts_path, strerror(curr->fts_errno));
|
||||
@@ -341,6 +342,13 @@ copy(argv, type, fts_options)
|
||||
(void)fts_set(ftsp, curr, FTS_SKIP);
|
||||
continue;
|
||||
}
|
||||
if (!S_ISDIR(curr->fts_statp->st_mode) &&
|
||||
S_ISDIR(to_stat.st_mode)) {
|
||||
warnx("cannot overwrite directory %s with non-directory %s",
|
||||
to.p_path, curr->fts_path);
|
||||
rval = 1;
|
||||
continue;
|
||||
}
|
||||
dne = 0;
|
||||
}
|
||||
|
||||
|
||||
+52
-23
@@ -30,11 +30,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: utils.c,v 1.6 1996/02/18 18:48:26 wosch Exp wosch $
|
||||
* $Id: utils.c,v 1.9.2.2 1998/02/15 10:53:17 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)utils.c 8.3 (Berkeley) 4/1/94";
|
||||
static char const sccsid[] = "@(#)utils.c 8.3 (Berkeley) 4/1/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -60,7 +60,8 @@ copy_file(entp, dne)
|
||||
{
|
||||
static char buf[MAXBSIZE];
|
||||
struct stat to_stat, *fs;
|
||||
int ch, checkch, from_fd, rcount, rval, to_fd, wcount;
|
||||
int ch, checkch, from_fd, rcount, rval, to_fd, wcount, wresid;
|
||||
char *bufp;
|
||||
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
|
||||
char *p;
|
||||
#endif
|
||||
@@ -81,13 +82,16 @@ copy_file(entp, dne)
|
||||
* modified by the umask.)
|
||||
*/
|
||||
if (!dne) {
|
||||
#define YESNO "(y/n [n]) "
|
||||
if (iflag) {
|
||||
(void)fprintf(stderr, "overwrite %s? ", to.p_path);
|
||||
(void)fprintf(stderr, "overwrite %s? %s",
|
||||
to.p_path, YESNO);
|
||||
checkch = ch = getchar();
|
||||
while (ch != '\n' && ch != EOF)
|
||||
ch = getchar();
|
||||
if (checkch != 'y' && checkch != 'Y') {
|
||||
(void)close(from_fd);
|
||||
(void)fprintf(stderr, "not overwritten\n");
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
@@ -121,11 +125,17 @@ copy_file(entp, dne)
|
||||
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
|
||||
if (fs->st_size <= 8 * 1048576) {
|
||||
if ((p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
|
||||
0, from_fd, (off_t)0)) == (char *)-1) {
|
||||
MAP_SHARED, from_fd, (off_t)0)) == MAP_FAILED) {
|
||||
warn("%s", entp->fts_path);
|
||||
rval = 1;
|
||||
} else {
|
||||
if (write(to_fd, p, fs->st_size) != fs->st_size) {
|
||||
for (bufp = p, wresid = fs->st_size; ;
|
||||
bufp += wcount, wresid -= wcount) {
|
||||
wcount = write(to_fd, bufp, wresid);
|
||||
if (wcount >= wresid || wcount <= 0)
|
||||
break;
|
||||
}
|
||||
if (wcount != wresid) {
|
||||
warn("%s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
@@ -139,8 +149,13 @@ copy_file(entp, dne)
|
||||
#endif
|
||||
{
|
||||
while ((rcount = read(from_fd, buf, MAXBSIZE)) > 0) {
|
||||
wcount = write(to_fd, buf, rcount);
|
||||
if (rcount != wcount || wcount == -1) {
|
||||
for (bufp = buf, wresid = rcount; ;
|
||||
bufp += wcount, wresid -= wcount) {
|
||||
wcount = write(to_fd, bufp, wresid);
|
||||
if (wcount >= wresid || wcount <= 0)
|
||||
break;
|
||||
}
|
||||
if (wcount != wresid) {
|
||||
warn("%s", to.p_path);
|
||||
rval = 1;
|
||||
break;
|
||||
@@ -192,7 +207,7 @@ copy_link(p, exists)
|
||||
int len;
|
||||
char link[MAXPATHLEN];
|
||||
|
||||
if ((len = readlink(p->fts_path, link, sizeof(link))) == -1) {
|
||||
if ((len = readlink(p->fts_path, link, sizeof(link) - 1)) == -1) {
|
||||
warn("readlink: %s", p->fts_path);
|
||||
return (1);
|
||||
}
|
||||
@@ -247,7 +262,9 @@ setfile(fs, fd)
|
||||
int fd;
|
||||
{
|
||||
static struct timeval tv[2];
|
||||
struct stat ts;
|
||||
int rval;
|
||||
int gotstat;
|
||||
|
||||
rval = 0;
|
||||
fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
|
||||
@@ -259,30 +276,42 @@ setfile(fs, fd)
|
||||
warn("utimes: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
if (fd ? fstat(fd, &ts) : stat(to.p_path, &ts))
|
||||
gotstat = 0;
|
||||
else {
|
||||
gotstat = 1;
|
||||
ts.st_mode &= S_ISUID | S_ISGID | S_ISVTX |
|
||||
S_IRWXU | S_IRWXG | S_IRWXO;
|
||||
}
|
||||
/*
|
||||
* Changing the ownership probably won't succeed, unless we're root
|
||||
* or POSIX_CHOWN_RESTRICTED is not set. Set uid/gid before setting
|
||||
* the mode; current BSD behavior is to remove all setuid bits on
|
||||
* chown. If chown fails, lose setuid/setgid bits.
|
||||
*/
|
||||
if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
|
||||
chown(to.p_path, fs->st_uid, fs->st_gid)) {
|
||||
if (errno != EPERM) {
|
||||
if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid)
|
||||
if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
|
||||
chown(to.p_path, fs->st_uid, fs->st_gid)) {
|
||||
if (errno != EPERM) {
|
||||
warn("chown: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
fs->st_mode &= ~(S_ISUID | S_ISGID);
|
||||
}
|
||||
|
||||
if (!gotstat || fs->st_mode != ts.st_mode)
|
||||
if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
|
||||
warn("chown: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
fs->st_mode &= ~(S_ISUID | S_ISGID);
|
||||
}
|
||||
if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
|
||||
warn("chown: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
|
||||
if (fd ?
|
||||
fchflags(fd, fs->st_flags) : chflags(to.p_path, fs->st_flags)) {
|
||||
warn("chflags: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
if (!gotstat || fs->st_flags != ts.st_flags)
|
||||
if (fd ?
|
||||
fchflags(fd, fs->st_flags) : chflags(to.p_path, fs->st_flags)) {
|
||||
warn("chflags: %s", to.p_path);
|
||||
rval = 1;
|
||||
}
|
||||
|
||||
return (rval);
|
||||
}
|
||||
|
||||
|
||||
+15
-15
@@ -1,5 +1,5 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.5 1994/09/24 02:53:44 davidg Exp $
|
||||
#
|
||||
# C Shell with process control; VM/UNIX VAX Makefile
|
||||
# Bill Joy UC Berkeley; Jim Kulp IIASA, Austria
|
||||
@@ -11,7 +11,7 @@ DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS
|
||||
CFLAGS+=-I${.CURDIR} -I. ${DFLAGS}
|
||||
SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \
|
||||
func.c glob.c hist.c init.c lex.c misc.c parse.c printf.c proc.c \
|
||||
sem.c set.c str.c time.c const.h err.h
|
||||
sem.c set.c str.c time.c const.h errnum.h
|
||||
.PATH: ${.CURDIR}/../../usr.bin/printf
|
||||
|
||||
MAN1= csh.1
|
||||
@@ -19,23 +19,23 @@ MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \
|
||||
csh.1 foreach.1 csh.1 history.1 csh.1 jobs.1 csh.1 popd.1 \
|
||||
csh.1 pushd.1 csh.1 rehash.1 csh.1 repeat.1 csh.1 suspend.1 \
|
||||
csh.1 stop.1 csh.1 source.1
|
||||
CLEANFILES+=err.h const.h
|
||||
CLEANFILES+=const.h errnum.h
|
||||
|
||||
const.h: err.h
|
||||
const.h: errnum.h
|
||||
|
||||
err.h: err.c
|
||||
@rm -f $@
|
||||
@echo '/* Do not edit this file, make creates it. */' > $@
|
||||
@echo '#ifndef _h_sh_err' >> $@
|
||||
@echo '#define _h_sh_err' >> $@
|
||||
egrep 'ERR_' ${.CURDIR}/$*.c | egrep '^#define' >> $@
|
||||
@echo '#endif /* _h_sh_err */' >> $@
|
||||
errnum.h: err.c
|
||||
@rm -f ${.TARGET}
|
||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
|
||||
@echo '#ifndef _h_sh_error' >> ${.TARGET}
|
||||
@echo '#define _h_sh_error' >> ${.TARGET}
|
||||
egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
|
||||
@echo '#endif /* _h_sh_error */' >> ${.TARGET}
|
||||
|
||||
const.h: const.c
|
||||
@rm -f $@
|
||||
@echo '/* Do not edit this file, make creates it. */' > $@
|
||||
${CC} -E ${CFLAGS} ${.CURDIR}/$*.c | egrep 'Char STR' | \
|
||||
@rm -f ${.TARGET}
|
||||
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
|
||||
${CC} -E ${CFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
|
||||
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
|
||||
sort >> $@
|
||||
sort >> ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
+85
-76
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
|
||||
.\" $Id: csh.1,v 1.8 1997/02/22 14:01:40 peter Exp $
|
||||
.\" $Id: csh.1,v 1.5.2.2 1998/06/30 06:42:24 charnier Exp $
|
||||
.\"
|
||||
.Dd January 21, 1994
|
||||
.Dt CSH 1
|
||||
@@ -46,15 +46,15 @@
|
||||
.Op Fl l
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm csh
|
||||
.Nm
|
||||
is a command language interpreter
|
||||
incorporating a history mechanism (see
|
||||
.Nm History Substitutions ) ,
|
||||
.Sx History Substitutions ) ,
|
||||
job control facilities (see
|
||||
.Nm Jobs ) ,
|
||||
.Sx Jobs ) ,
|
||||
interactive file name
|
||||
and user name completion (see
|
||||
.Nm File Name Completion ) ,
|
||||
.Sx File Name Completion ) ,
|
||||
and a C-like syntax. It is used both as an interactive
|
||||
login shell and a shell script command processor.
|
||||
.Ss Argument list processing
|
||||
@@ -100,7 +100,7 @@ is the only flag specified).
|
||||
The shell loads
|
||||
.Pa .cshrc
|
||||
even if it does not belong to the effective user.
|
||||
.Xr su 1
|
||||
.Xr Su 1
|
||||
can pass
|
||||
.Fl m
|
||||
to the shell.
|
||||
@@ -116,16 +116,16 @@ A
|
||||
may be used to escape the newline at the end of this
|
||||
line and continue onto another line.
|
||||
.It Fl v
|
||||
Causes the
|
||||
Cause the
|
||||
.Ar verbose
|
||||
variable to be set, with the effect
|
||||
that command input is echoed after history substitution.
|
||||
.It Fl x
|
||||
Causes the
|
||||
Cause the
|
||||
.Ar echo
|
||||
variable to be set, so that commands are echoed immediately before execution.
|
||||
.It Fl V
|
||||
Causes the
|
||||
Cause the
|
||||
.Ar verbose
|
||||
variable to be set even before
|
||||
.Pa .cshrc
|
||||
@@ -157,7 +157,7 @@ Remaining arguments initialize the variable
|
||||
.Ar argv .
|
||||
.Pp
|
||||
An instance of
|
||||
.Nm csh
|
||||
.Nm
|
||||
begins by executing commands from the file
|
||||
.Pa /etc/csh.cshrc
|
||||
and,
|
||||
@@ -256,7 +256,7 @@ showing that the job which was started asynchronously was job number
|
||||
1 and had one (top-level) process, whose process id was 1234.
|
||||
.Pp
|
||||
If you are running a job and wish to do something else you may hit the key
|
||||
.Nm ^Z
|
||||
.Em ^Z
|
||||
(control-Z) which sends a STOP signal to the current job.
|
||||
The shell will then normally show that the job has been `Stopped',
|
||||
and print another prompt. You can then manipulate the state of this job,
|
||||
@@ -271,11 +271,11 @@ the
|
||||
command
|
||||
.Ar fg .
|
||||
A
|
||||
.Nm ^Z
|
||||
.Em ^Z
|
||||
takes effect immediately and
|
||||
is like an interrupt in that pending output and unread input are discarded
|
||||
when it is typed. There is another special key
|
||||
.Nm ^Y
|
||||
.Em ^Y
|
||||
that does not generate a STOP signal until a program attempts to
|
||||
.Xr read 2
|
||||
it.
|
||||
@@ -353,7 +353,7 @@ the shell variable
|
||||
.Ar filec
|
||||
(see
|
||||
.Ic set ) ,
|
||||
.Nm csh
|
||||
.Nm
|
||||
will
|
||||
interactively complete file names and user names from unique
|
||||
prefixes, when they are input from the terminal followed by
|
||||
@@ -370,7 +370,7 @@ and the input is
|
||||
.Pp
|
||||
.Dl % vi ch<escape>
|
||||
.Pp
|
||||
.Nm csh
|
||||
.Nm
|
||||
will complete the prefix ``ch''
|
||||
to the only matching file name ``chaosnet'', changing the input
|
||||
line to
|
||||
@@ -381,7 +381,7 @@ However, given
|
||||
.Pp
|
||||
.Dl % vi D<escape>
|
||||
.Pp
|
||||
.Nm csh
|
||||
.Nm
|
||||
will only expand the input to
|
||||
.Pp
|
||||
.Dl % vi DSC.
|
||||
@@ -391,7 +391,7 @@ incomplete, since there are two file names matching the prefix ``D''.
|
||||
.Pp
|
||||
If a partial file name is followed by the end-of-file character
|
||||
(usually control-D), then, instead of completing the name,
|
||||
.Nm csh
|
||||
.Nm
|
||||
will list all file names matching the prefix. For example,
|
||||
the input
|
||||
.Pp
|
||||
@@ -455,7 +455,7 @@ in the previous command with little typing and a high degree of confidence.
|
||||
History substitutions begin with the character `!' and may begin
|
||||
.Ar anywhere
|
||||
in the input stream (with the proviso that they
|
||||
.Nm "do not"
|
||||
.Em "do not"
|
||||
nest.)
|
||||
This `!' may be preceded by a `\e' to prevent its special meaning; for
|
||||
convenience, an `!' is passed unchanged when it is followed by a blank,
|
||||
@@ -631,7 +631,7 @@ Strings enclosed in `"' may be expanded as described below.
|
||||
.Pp
|
||||
In both cases the resulting text becomes (all or part of) a single word;
|
||||
only in one special case (see
|
||||
.Em Command Substitution
|
||||
.Sx Command Substitution
|
||||
below) does a `"' quoted string yield parts of more than one word;
|
||||
`\'' quoted strings never do.
|
||||
.Ss Alias substitution
|
||||
@@ -708,7 +708,7 @@ occurs, and within `\''s where it
|
||||
.Em never
|
||||
occurs.
|
||||
Strings quoted by `\*(ga' are interpreted later (see
|
||||
.Nm "Command substitution"
|
||||
.Sx "Command substitution"
|
||||
below) so `$' substitution does not occur there until later, if at all.
|
||||
A `$' is passed unchanged if followed by a blank, tab, or end-of-line.
|
||||
.Pp
|
||||
@@ -764,11 +764,11 @@ It is not an error for a range to be empty if the second argument is omitted
|
||||
or in range.
|
||||
.It $#name
|
||||
.It ${#name}
|
||||
Gives the number of words in the variable.
|
||||
Give the number of words in the variable.
|
||||
This is useful for later use in a
|
||||
`$argv[selector]'.
|
||||
.It $0
|
||||
Substitutes the name of the file from which command input is being read.
|
||||
Substitute the name of the file from which command input is being read.
|
||||
An error occurs if the name is not known.
|
||||
.It $number
|
||||
.It ${number}
|
||||
@@ -788,16 +788,16 @@ The following substitutions may not be modified with `:' modifiers.
|
||||
.Bl -tag -width Ds -compact -offset indent
|
||||
.It $?name
|
||||
.It ${?name}
|
||||
Substitutes the string `1' if name is set, `0' if it is not.
|
||||
Substitute the string `1' if name is set, `0' if it is not.
|
||||
.It $?0
|
||||
Substitutes `1' if the current input filename is known, `0' if it is not.
|
||||
Substitute `1' if the current input filename is known, `0' if it is not.
|
||||
.It \&$\&$\&
|
||||
Substitute the (decimal) process number of the (parent) shell.
|
||||
.It $!
|
||||
Substitute the (decimal) process number of the last background process
|
||||
started by this shell.
|
||||
.It $<
|
||||
Substitutes a line from the standard
|
||||
Substitute a line from the standard
|
||||
input, with no further interpretation.
|
||||
It can be used to read from the keyboard in a shell script.
|
||||
.El
|
||||
@@ -922,7 +922,7 @@ is expanded in the same way as `<' input filenames are.
|
||||
.It >>& name
|
||||
.It >>! name
|
||||
.It >>&! name
|
||||
Uses file
|
||||
Use file
|
||||
.Ar name
|
||||
as the standard output;
|
||||
like `>' but places output at the end of the file.
|
||||
@@ -961,11 +961,11 @@ Several of the builtin commands (to be described later)
|
||||
take expressions, in which the operators are similar to those of C, with
|
||||
the same precedence.
|
||||
These expressions appear in the
|
||||
.Nm @,
|
||||
.Ar exit ,
|
||||
.Ar if ,
|
||||
.Em @ ,
|
||||
.Em exit ,
|
||||
.Em if ,
|
||||
and
|
||||
.Ar while
|
||||
.Em while
|
||||
commands.
|
||||
The following operators are available:
|
||||
.Bd -ragged -offset indent
|
||||
@@ -1076,7 +1076,7 @@ or
|
||||
.Ar unalias .
|
||||
.Pp
|
||||
.It Ic alloc
|
||||
Shows the amount of dynamic memory acquired, broken down into used and
|
||||
Show the amount of dynamic memory acquired, broken down into used and
|
||||
free memory.
|
||||
With an argument shows the number of free and used blocks in each size
|
||||
category. The categories start at size 8 and double at each step.
|
||||
@@ -1085,11 +1085,11 @@ systems other than the VAX may use a different memory allocator.
|
||||
.Pp
|
||||
.It Ic bg
|
||||
.It Ic bg \&% Ns Ar job ...
|
||||
Puts the current or specified jobs into the background, continuing them
|
||||
Put the current or specified jobs into the background, continuing them
|
||||
if they were stopped.
|
||||
.Pp
|
||||
.It Ic break
|
||||
Causes execution to resume after the
|
||||
Cause execution to resume after the
|
||||
.Ic end
|
||||
of the nearest enclosing
|
||||
.Ic foreach
|
||||
@@ -1099,7 +1099,7 @@ The remaining commands on the current line are executed.
|
||||
Multi-level breaks are thus possible by writing them all on one line.
|
||||
.Pp
|
||||
.It Ic breaksw
|
||||
Causes a break from a
|
||||
Cause a break from a
|
||||
.Ic switch ,
|
||||
resuming after the
|
||||
.Ic endsw .
|
||||
@@ -1137,7 +1137,7 @@ or
|
||||
The rest of the commands on the current line are executed.
|
||||
.Pp
|
||||
.It Ic default :
|
||||
Labels the default case in a
|
||||
Label the default case in a
|
||||
.Ic switch
|
||||
statement.
|
||||
The default should come after all
|
||||
@@ -1145,7 +1145,7 @@ The default should come after all
|
||||
labels.
|
||||
.Pp
|
||||
.It Ic dirs
|
||||
Prints the directory stack; the top of the stack is at the left,
|
||||
Print the directory stack; the top of the stack is at the left,
|
||||
the first directory in the stack being the current directory.
|
||||
.Pp
|
||||
.It Ic echo Ar wordlist
|
||||
@@ -1192,7 +1192,7 @@ variable (first form) or with the value of the specified
|
||||
.Pp
|
||||
.It Ic fg
|
||||
.It Ic fg % Ns Ar job ...
|
||||
Brings the current or specified jobs into the foreground, continuing them if
|
||||
Bring the current or specified jobs into the foreground, continuing them if
|
||||
they were stopped.
|
||||
.Pp
|
||||
.It Ic foreach Ar name (wordlist)
|
||||
@@ -1252,7 +1252,7 @@ that does not begin with a `/'.
|
||||
.It Ic history Ar n
|
||||
.It Ic history Fl r Ar n
|
||||
.It Ic history Fl h Ar n
|
||||
Displays the history event list; if
|
||||
Display the history event list; if
|
||||
.Ar n
|
||||
is given only the
|
||||
.Ar n
|
||||
@@ -1324,7 +1324,7 @@ must appear alone on its input line or after an
|
||||
.Pp
|
||||
.It Ic jobs
|
||||
.It Ic jobs Fl l
|
||||
Lists the active jobs; the
|
||||
List the active jobs; the
|
||||
.Fl l
|
||||
option lists process id's in addition to the normal information.
|
||||
.Pp
|
||||
@@ -1332,10 +1332,10 @@ option lists process id's in addition to the normal information.
|
||||
.It Ic kill Ar pid
|
||||
.It Ic kill Fl sig Ar pid ...
|
||||
.It Ic kill Fl l
|
||||
Sends either the TERM (terminate) signal or the
|
||||
Send either the TERM (terminate) signal or the
|
||||
specified signal to the specified jobs or processes.
|
||||
Signals are either given by number or by names (as given in
|
||||
.Pa /usr/include/signal.h,
|
||||
.Pa /usr/include/signal.h ,
|
||||
stripped of the prefix ``SIG'').
|
||||
The signal names are listed by ``kill \-l''.
|
||||
There is no default, just saying `kill' does not
|
||||
@@ -1349,7 +1349,7 @@ then the job or process will be sent a CONT (continue) signal as well.
|
||||
.It Ic limit Fl h
|
||||
.It Ic limit Fl h Ar resource
|
||||
.It Ic limit Fl h Ar resource maximum-use
|
||||
Limits the consumption by the current process and each process
|
||||
Limit the consumption by the current process and each process
|
||||
it creates to not individually exceed
|
||||
.Ar maximum-use
|
||||
on the
|
||||
@@ -1405,7 +1405,7 @@ of the names suffice.
|
||||
.Pp
|
||||
.It Ic login
|
||||
Terminate a login shell, replacing it with an instance of
|
||||
.Pa /usr/bin/login.
|
||||
.Pa /usr/bin/login .
|
||||
This is one way to log off, included for compatibility with
|
||||
.Xr sh 1 .
|
||||
.Pp
|
||||
@@ -1448,7 +1448,7 @@ All processes detached with `&' are effectively
|
||||
.Pp
|
||||
.It Ic notify
|
||||
.It Ic notify % Ns Ar job ...
|
||||
Causes the shell to notify the user asynchronously when the status of the
|
||||
Cause the shell to notify the user asynchronously when the status of the
|
||||
current or specified jobs change; normally notification is presented
|
||||
before a prompt. This is automatic if the shell variable
|
||||
.Ic notify
|
||||
@@ -1478,7 +1478,7 @@ are disabled (/etc/csh.cshrc, /etc/csh.login).
|
||||
.Pp
|
||||
.It Ic popd
|
||||
.It Ic popd Ar +n
|
||||
Pops the directory stack, returning to the new top directory.
|
||||
Pop the directory stack, returning to the new top directory.
|
||||
With an argument
|
||||
.Ns \`+ Ar n Ns \'
|
||||
discards the
|
||||
@@ -1511,7 +1511,7 @@ stack around to be the top element and changes to it. The members
|
||||
of the directory stack are numbered from the top starting at 0.
|
||||
.Pp
|
||||
.It Ic rehash
|
||||
Causes the internal hash table of the contents of the directories in
|
||||
Cause the internal hash table of the contents of the directories in
|
||||
the
|
||||
.Ic path
|
||||
variable to be recomputed. This is needed if new commands are added
|
||||
@@ -1589,7 +1589,7 @@ The most commonly used environment variables
|
||||
and
|
||||
.Ev PATH
|
||||
are automatically imported to and exported from the
|
||||
.Nm csh
|
||||
.Nm
|
||||
variables
|
||||
.Ar user ,
|
||||
.Ar term ,
|
||||
@@ -1625,19 +1625,21 @@ commands.
|
||||
Normally input during
|
||||
.Ic source
|
||||
commands is not placed on the history list;
|
||||
the \-h option causes the commands to be placed on the
|
||||
the
|
||||
.Fl h
|
||||
option causes the commands to be placed on the
|
||||
history list without being executed.
|
||||
.Pp
|
||||
.It Ic stop
|
||||
.It Ic stop % Ns Ar job ...
|
||||
Stops the current or specified jobs that are executing in the background.
|
||||
Stop the current or specified jobs that are executing in the background.
|
||||
.Pp
|
||||
.It Ic suspend
|
||||
Causes the shell to stop in its tracks, much as if it had been sent a stop
|
||||
Cause the shell to stop in its tracks, much as if it had been sent a stop
|
||||
signal with
|
||||
.Ic ^Z .
|
||||
.Em ^Z .
|
||||
This is most often used to stop shells started by
|
||||
.Xr su 1 .
|
||||
.Xr su 1 .
|
||||
.Pp
|
||||
.It Ic switch Ar (string)
|
||||
.It Ic case Ar str1 :
|
||||
@@ -1699,7 +1701,7 @@ is disabled.
|
||||
.It Ic unlimit Ar resource
|
||||
.It Ic unlimit Fl h
|
||||
.It Ic unlimit Fl h Ar resource
|
||||
Removes the limitation on
|
||||
Remove the limitation on
|
||||
.Ar resource .
|
||||
If no
|
||||
.Ar resource
|
||||
@@ -1718,7 +1720,7 @@ It is not an error for nothing to be
|
||||
.Ic unset .
|
||||
.Pp
|
||||
.It Ic unsetenv Ar pattern
|
||||
Removes all variables whose name match the specified pattern from the
|
||||
Remove all variables whose name match the specified pattern from the
|
||||
environment. See also the
|
||||
.Ic setenv
|
||||
command above and
|
||||
@@ -1730,7 +1732,7 @@ If the shell is interactive, then an interrupt can disrupt the wait.
|
||||
After the interrupt, the shell prints names and job numbers of all jobs
|
||||
known to be outstanding.
|
||||
.It Ic which Ar command
|
||||
Displays the resolved command that will be executed by the shell.
|
||||
Display the resolved command that will be executed by the shell.
|
||||
.Pp
|
||||
.It Ic while Ar (expr)
|
||||
.It \&...
|
||||
@@ -1755,10 +1757,10 @@ Prompting occurs here the first time through the loop as for the
|
||||
statement if the input is a terminal.
|
||||
.Pp
|
||||
.It Ic % Ns Ar job
|
||||
Brings the specified job into the foreground.
|
||||
Bring the specified job into the foreground.
|
||||
.Pp
|
||||
.It Ic % Ns Ar job Ic &
|
||||
Continues the specified job in the background.
|
||||
Continue the specified job in the background.
|
||||
.Pp
|
||||
.It Ic @
|
||||
.It Ic @ Ar name Ns = Ns expr
|
||||
@@ -1831,7 +1833,7 @@ is likewise handled; it is not
|
||||
necessary to worry about its setting other than in the file
|
||||
.Ar \&.cshrc
|
||||
as inferior
|
||||
.Nm csh
|
||||
.Nm
|
||||
processes will import the definition of
|
||||
.Ar path
|
||||
from the environment, and re-export it if you then change it.
|
||||
@@ -1842,7 +1844,7 @@ positional parameters are substituted, i.e., `$1' is replaced by
|
||||
`$argv[1]',
|
||||
etc.
|
||||
.It Ic cdpath
|
||||
Gives a list of alternate directories searched to find subdirectories
|
||||
Give a list of alternate directories searched to find subdirectories
|
||||
in
|
||||
.Ar chdir
|
||||
commands.
|
||||
@@ -1910,10 +1912,9 @@ files are not accidentally destroyed, and that `>>' redirections
|
||||
refer to existing files.
|
||||
.It Ic noglob
|
||||
If set, filename expansion is inhibited.
|
||||
This inhibition is most useful in shell scripts that
|
||||
are not dealing with filenames,
|
||||
or after a list of filenames has been obtained and further expansions
|
||||
are not desirable.
|
||||
This inhibition is most useful in shell scripts that are not dealing with
|
||||
filenames, or after a list of filenames has been obtained and further
|
||||
expansions are not desirable.
|
||||
.It Ic nonomatch
|
||||
If set, it is not an error for a filename expansion to not match any
|
||||
existing files; instead the primitive pattern is returned.
|
||||
@@ -1981,7 +1982,7 @@ If it terminated abnormally, then 0200 is added to the status.
|
||||
Builtin commands that fail return exit status `1',
|
||||
all other builtin commands set status to `0'.
|
||||
.It Ic time
|
||||
Controls automatic timing of commands.
|
||||
Control automatic timing of commands.
|
||||
If set, then any command that takes more than this many cpu seconds
|
||||
will cause a line giving user, system, and real times and a utilization
|
||||
percentage which is the ratio of user plus system times to real time
|
||||
@@ -2080,27 +2081,35 @@ signal; otherwise this signal is passed on to children from the state in the
|
||||
shell's parent.
|
||||
Interrupts are not allowed when a login shell is reading the file
|
||||
.Pa \&.logout .
|
||||
.Sh AUTHOR
|
||||
William Joy.
|
||||
Job control and directory stack features first implemented by J.E. Kulp of
|
||||
IIASA, Laxenburg, Austria,
|
||||
.Sh AUTHORS
|
||||
.An William Joy .
|
||||
.Pp
|
||||
Job control and directory stack features first implemented by
|
||||
.An J.E. Kulp
|
||||
of IIASA, Laxenburg, Austria,
|
||||
with different syntax than that used now.
|
||||
File name completion code written by Ken Greer, HP Labs.
|
||||
Eight-bit implementation Christos S. Zoulas, Cornell University.
|
||||
.Pp
|
||||
File name completion code written by
|
||||
.An Ken Greer ,
|
||||
HP Labs.
|
||||
.Pp
|
||||
Eight-bit implementation
|
||||
.An Christos S. Zoulas ,
|
||||
Cornell University.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /etc/passwd -compact
|
||||
.It Pa ~/.cshrc
|
||||
Read at beginning of execution by each shell.
|
||||
read at beginning of execution by each shell.
|
||||
.It Pa ~/.login
|
||||
Read by login shell, after `.cshrc' at login.
|
||||
read by login shell, after `.cshrc' at login.
|
||||
.It Pa ~/.logout
|
||||
Read by login shell, at logout.
|
||||
read by login shell, at logout.
|
||||
.It Pa /bin/sh
|
||||
Standard shell, for shell scripts not starting with a `#'.
|
||||
standard shell, for shell scripts not starting with a `#'.
|
||||
.It Pa /tmp/sh*
|
||||
Temporary file for `<<'.
|
||||
temporary file for `<<'.
|
||||
.It Pa /etc/passwd
|
||||
Source of home directories for `~name'.
|
||||
source of home directories for `~name'.
|
||||
.El
|
||||
.Sh LIMITATIONS
|
||||
Word lengths \-
|
||||
|
||||
+26
-25
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: csh.c,v 1.5 1995/07/07 23:14:36 ache Exp $
|
||||
* $Id: csh.c,v 1.6.2.2 1998/01/31 17:06:13 joerg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -46,6 +46,7 @@ static char sccsid[] = "@(#)csh.c 8.2 (Berkeley) 10/12/93";
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
@@ -114,10 +115,10 @@ main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
register Char *cp;
|
||||
register char *tcp;
|
||||
register int f;
|
||||
register char **tempv;
|
||||
Char *cp;
|
||||
char *tcp;
|
||||
int f;
|
||||
char **tempv;
|
||||
struct sigvec osv;
|
||||
|
||||
cshin = stdin;
|
||||
@@ -229,7 +230,7 @@ main(argc, argv)
|
||||
*/
|
||||
set(STRstatus, Strsave(STR0));
|
||||
|
||||
if ((tcp = getenv("HOME")) != NULL)
|
||||
if ((tcp = getenv("HOME")) != NULL && strlen(tcp) < MAXPATHLEN)
|
||||
cp = SAVE(tcp);
|
||||
else
|
||||
cp = NULL;
|
||||
@@ -524,7 +525,7 @@ notty:
|
||||
{
|
||||
int osetintr = setintr;
|
||||
sig_t oparintr = parintr;
|
||||
sigset_t omask = sigblock(sigmask(SIGINT));
|
||||
int omask = sigblock(sigmask(SIGINT));
|
||||
|
||||
setintr = 0;
|
||||
parintr = SIG_IGN; /* Disable onintr */
|
||||
@@ -603,9 +604,9 @@ void
|
||||
importpath(cp)
|
||||
Char *cp;
|
||||
{
|
||||
register int i = 0;
|
||||
register Char *dp;
|
||||
register Char **pv;
|
||||
int i = 0;
|
||||
Char *dp;
|
||||
Char **pv;
|
||||
int c;
|
||||
|
||||
for (dp = cp; *dp; dp++)
|
||||
@@ -623,7 +624,7 @@ importpath(cp)
|
||||
if ((c = *dp) == ':' || c == 0) {
|
||||
*dp = 0;
|
||||
if (*cp != '/' && (euid == 0 || uid == 0) &&
|
||||
(intact || intty && isatty(SHOUT)))
|
||||
(intact || (intty && isatty(SHOUT))))
|
||||
(void) fprintf(csherr,
|
||||
"Warning: imported path contains relative components\n");
|
||||
pv[i++] = Strsave(*cp ? cp : STRdot);
|
||||
@@ -647,7 +648,7 @@ static int
|
||||
srccat(cp, dp)
|
||||
Char *cp, *dp;
|
||||
{
|
||||
register Char *ep = Strspl(cp, dp);
|
||||
Char *ep = Strspl(cp, dp);
|
||||
char *ptr = short2str(ep);
|
||||
|
||||
xfree((ptr_t) ep);
|
||||
@@ -662,7 +663,7 @@ srcfile(f, onlyown, flag)
|
||||
char *f;
|
||||
bool onlyown, flag;
|
||||
{
|
||||
register int unit;
|
||||
int unit;
|
||||
|
||||
if ((unit = open(f, O_RDONLY)) == -1)
|
||||
return 0;
|
||||
@@ -680,7 +681,7 @@ srcfile(f, onlyown, flag)
|
||||
int insource;
|
||||
static void
|
||||
srcunit(unit, onlyown, hflg)
|
||||
register int unit;
|
||||
int unit;
|
||||
bool onlyown, hflg;
|
||||
{
|
||||
/* We have to push down a lot of state here */
|
||||
@@ -695,7 +696,7 @@ srcunit(unit, onlyown, hflg)
|
||||
bool otell = cantell;
|
||||
|
||||
struct Bin saveB;
|
||||
volatile sigset_t omask;
|
||||
volatile int omask;
|
||||
jmp_buf oldexit;
|
||||
|
||||
/* The (few) real local variables */
|
||||
@@ -731,7 +732,7 @@ srcunit(unit, onlyown, hflg)
|
||||
if (setintr)
|
||||
omask = sigblock(sigmask(SIGINT));
|
||||
/* Setup the new values of the state stuff saved above */
|
||||
bcopy((char *) &B, (char *) &(saveB), sizeof(B));
|
||||
memmove((char *) &(saveB), (char *) &B, sizeof(B));
|
||||
fbuf = NULL;
|
||||
fseekp = feobp = fblocks = 0;
|
||||
oSHIN = SHIN, SHIN = unit, arginp = 0, onelflg = 0;
|
||||
@@ -756,7 +757,7 @@ srcunit(unit, onlyown, hflg)
|
||||
if (setintr)
|
||||
(void) sigsetmask(omask);
|
||||
if (oSHIN >= 0) {
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
/* We made it to the new state... free up its storage */
|
||||
/* This code could get run twice but xfree doesn't care */
|
||||
@@ -765,7 +766,7 @@ srcunit(unit, onlyown, hflg)
|
||||
xfree((ptr_t) fbuf);
|
||||
|
||||
/* Reset input arena */
|
||||
bcopy((char *) &(saveB), (char *) &B, sizeof(B));
|
||||
memmove((char *) &B, (char *) &(saveB), sizeof(B));
|
||||
|
||||
(void) close(SHIN), SHIN = oSHIN;
|
||||
arginp = oarginp, onelflg = oonelflg;
|
||||
@@ -931,9 +932,9 @@ pintr1(wantnl)
|
||||
bool wantnl;
|
||||
{
|
||||
Char **v;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
|
||||
omask = sigblock((sigset_t) 0);
|
||||
omask = sigblock(0);
|
||||
if (setintr) {
|
||||
(void) sigsetmask(omask & ~sigmask(SIGINT));
|
||||
if (pjobs) {
|
||||
@@ -1003,7 +1004,7 @@ process(catch)
|
||||
* Interruptible during interactive reads
|
||||
*/
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
|
||||
/*
|
||||
* For the sake of reset()
|
||||
@@ -1120,7 +1121,7 @@ dosource(v, t)
|
||||
struct command *t;
|
||||
|
||||
{
|
||||
register Char *f;
|
||||
Char *f;
|
||||
bool hflg = 0;
|
||||
Char buf[BUFSIZ];
|
||||
|
||||
@@ -1150,8 +1151,8 @@ dosource(v, t)
|
||||
static void
|
||||
mailchk()
|
||||
{
|
||||
register struct varent *v;
|
||||
register Char **vp;
|
||||
struct varent *v;
|
||||
Char **vp;
|
||||
time_t t;
|
||||
int intvl, cnt;
|
||||
struct stat stb;
|
||||
@@ -1338,7 +1339,7 @@ defaultpath()
|
||||
void
|
||||
printprompt()
|
||||
{
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
|
||||
if (!whyles) {
|
||||
for (cp = value(STRprompt); *cp; cp++)
|
||||
|
||||
+4
-6
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)csh.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* $Id: csh.h,v 1.2 1994/09/24 02:53:52 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -84,7 +84,7 @@ typedef void *ptr_t;
|
||||
|
||||
#include "const.h"
|
||||
#include "char.h"
|
||||
#include "err.h"
|
||||
#include "errnum.h"
|
||||
|
||||
#define xmalloc(i) Malloc(i)
|
||||
#define xrealloc(p, i) Realloc(p, i)
|
||||
@@ -187,8 +187,8 @@ jmp_buf reslab;
|
||||
#define setexit() (setjmp(reslab))
|
||||
#define reset() longjmp(reslab, 1)
|
||||
/* Should use structure assignment here */
|
||||
#define getexit(a) bcopy((char *)reslab, ((char *)(a)), sizeof reslab)
|
||||
#define resexit(a) bcopy((char *)(a), (char *)reslab, sizeof reslab)
|
||||
#define getexit(a) memmove((char *)(a), (char *)reslab, sizeof reslab)
|
||||
#define resexit(a) memmove((char *)reslab, (char *)(a), sizeof reslab)
|
||||
|
||||
Char *gointr; /* Label for an onintr transfer */
|
||||
|
||||
@@ -421,8 +421,6 @@ struct varent {
|
||||
#define v_right v_link[1]
|
||||
#define v_parent v_link[2]
|
||||
|
||||
struct varent *adrof1();
|
||||
|
||||
#define adrof(v) adrof1(v, &shvhed)
|
||||
#define value(v) value1(v, &shvhed)
|
||||
|
||||
|
||||
+27
-29
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: dir.c,v 1.3 1995/05/30 00:06:30 rgrimes Exp $
|
||||
* $Id: dir.c,v 1.4.2.1 1997/08/24 21:41:30 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -75,9 +75,9 @@ void
|
||||
dinit(hp)
|
||||
Char *hp;
|
||||
{
|
||||
register char *tcp;
|
||||
register Char *cp;
|
||||
register struct directory *dp;
|
||||
char *tcp;
|
||||
Char *cp;
|
||||
struct directory *dp;
|
||||
char path[MAXPATHLEN];
|
||||
static char *emsg = "csh: Trying to start from \"%s\"\n";
|
||||
|
||||
@@ -145,7 +145,7 @@ Char *dp;
|
||||
* Don't call set() directly cause if the directory contains ` or
|
||||
* other junk characters glob will fail.
|
||||
*/
|
||||
register Char **vec = (Char **) xmalloc((size_t) (2 * sizeof(Char **)));
|
||||
Char **vec = (Char **) xmalloc((size_t) (2 * sizeof(Char **)));
|
||||
|
||||
vec[0] = Strsave(dp);
|
||||
vec[1] = 0;
|
||||
@@ -203,7 +203,7 @@ dodirs(v, t)
|
||||
static void
|
||||
printdirs()
|
||||
{
|
||||
register struct directory *dp;
|
||||
struct directory *dp;
|
||||
Char *s, *hp = value(STRhome);
|
||||
int idx, len, cur;
|
||||
|
||||
@@ -240,7 +240,7 @@ printdirs()
|
||||
|
||||
void
|
||||
dtildepr(home, dir)
|
||||
register Char *home, *dir;
|
||||
Char *home, *dir;
|
||||
{
|
||||
|
||||
if (!eq(home, STRslash) && prefix(home, dir))
|
||||
@@ -340,8 +340,8 @@ dochngd(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp;
|
||||
register struct directory *dp;
|
||||
Char *cp;
|
||||
struct directory *dp;
|
||||
|
||||
skipargs(&v, " [<dir>]");
|
||||
printd = 0;
|
||||
@@ -389,7 +389,7 @@ dgoto(cp)
|
||||
Char *dp;
|
||||
|
||||
if (*cp != '/') {
|
||||
register Char *p, *q;
|
||||
Char *p, *q;
|
||||
int cwdlen;
|
||||
|
||||
for (p = dcwd->di_name; *p++;)
|
||||
@@ -423,9 +423,9 @@ dgoto(cp)
|
||||
*/
|
||||
static Char *
|
||||
dfollow(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register Char *dp;
|
||||
Char *dp;
|
||||
struct varent *c;
|
||||
char ebuf[MAXPATHLEN];
|
||||
int serrno;
|
||||
@@ -449,7 +449,7 @@ dfollow(cp)
|
||||
if (cp[0] != '/' && !prefix(STRdotsl, cp) && !prefix(STRdotdotsl, cp)
|
||||
&& (c = adrof(STRcdpath))) {
|
||||
Char **cdp;
|
||||
register Char *p;
|
||||
Char *p;
|
||||
Char buf[MAXPATHLEN];
|
||||
|
||||
for (cdp = c->vec; *cdp; cdp++) {
|
||||
@@ -491,7 +491,7 @@ dopushd(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct directory *dp;
|
||||
struct directory *dp;
|
||||
|
||||
skipargs(&v, " [<dir>|+<n>]");
|
||||
printd = 1;
|
||||
@@ -523,7 +523,7 @@ dopushd(v, t)
|
||||
stderror(ERR_SYSTEM, tmp, strerror(errno));
|
||||
}
|
||||
else {
|
||||
register Char *ccp;
|
||||
Char *ccp;
|
||||
|
||||
ccp = dfollow(*v);
|
||||
dp = (struct directory *) xcalloc(sizeof(struct directory), 1);
|
||||
@@ -542,11 +542,11 @@ dopushd(v, t)
|
||||
*/
|
||||
static struct directory *
|
||||
dfind(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register struct directory *dp;
|
||||
register int i;
|
||||
register Char *ep;
|
||||
struct directory *dp;
|
||||
int i;
|
||||
Char *ep;
|
||||
|
||||
if (*cp++ != '+')
|
||||
return (0);
|
||||
@@ -576,7 +576,7 @@ dopopd(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct directory *dp, *p = NULL;
|
||||
struct directory *dp, *p = NULL;
|
||||
|
||||
skipargs(&v, " [+<n>]");
|
||||
printd = 1;
|
||||
@@ -614,7 +614,7 @@ dopopd(v, t)
|
||||
*/
|
||||
void
|
||||
dfree(dp)
|
||||
register struct directory *dp;
|
||||
struct directory *dp;
|
||||
{
|
||||
|
||||
if (dp->di_count != 0) {
|
||||
@@ -633,10 +633,10 @@ dfree(dp)
|
||||
*/
|
||||
Char *
|
||||
dcanon(cp, p)
|
||||
register Char *cp, *p;
|
||||
Char *cp, *p;
|
||||
{
|
||||
register Char *sp;
|
||||
register Char *p1, *p2; /* general purpose */
|
||||
Char *sp;
|
||||
Char *p1, *p2; /* general purpose */
|
||||
bool slash;
|
||||
|
||||
Char link[MAXPATHLEN];
|
||||
@@ -702,8 +702,7 @@ dcanon(cp, p)
|
||||
*/
|
||||
*--sp = 0; /* form the pathname for readlink */
|
||||
if (sp != cp && !adrof(STRignore_symlinks) &&
|
||||
(cc = readlink(short2str(cp), tlink,
|
||||
sizeof tlink)) >= 0) {
|
||||
(cc = readlink(short2str(cp), tlink, sizeof(tlink) - 1)) >= 0) {
|
||||
(void) Strcpy(link, str2short(tlink));
|
||||
link[cc] = '\0';
|
||||
|
||||
@@ -787,8 +786,7 @@ dcanon(cp, p)
|
||||
|
||||
if (sp != cp && adrof(STRchase_symlinks) &&
|
||||
!adrof(STRignore_symlinks) &&
|
||||
(cc = readlink(short2str(cp), tlink,
|
||||
sizeof tlink)) >= 0) {
|
||||
(cc = readlink(short2str(cp), tlink, sizeof(tlink) - 1)) >= 0) {
|
||||
(void) Strcpy(link, str2short(tlink));
|
||||
link[cc] = '\0';
|
||||
|
||||
@@ -923,7 +921,7 @@ dcanon(cp, p)
|
||||
*/
|
||||
static void
|
||||
dnewcwd(dp)
|
||||
register struct directory *dp;
|
||||
struct directory *dp;
|
||||
{
|
||||
dcwd = dp;
|
||||
dset(dcwd->di_name);
|
||||
|
||||
+23
-23
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: dol.c,v 1.2 1994/09/24 02:53:56 davidg Exp $
|
||||
* $Id: dol.c,v 1.3 1995/05/30 00:06:31 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -105,10 +105,10 @@ static void Dtestq __P((int));
|
||||
*/
|
||||
void
|
||||
Dfix(t)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
{
|
||||
register Char **pp;
|
||||
register Char *p;
|
||||
Char **pp;
|
||||
Char *p;
|
||||
|
||||
if (noexec)
|
||||
return;
|
||||
@@ -130,7 +130,7 @@ Dfix(t)
|
||||
*/
|
||||
Char *
|
||||
Dfix1(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
Char *Dv[2];
|
||||
|
||||
@@ -173,8 +173,8 @@ static Char *
|
||||
Dpack(wbuf, wp)
|
||||
Char *wbuf, *wp;
|
||||
{
|
||||
register int c;
|
||||
register int i = MAXWLEN - (wp - wbuf);
|
||||
int c;
|
||||
int i = MAXWLEN - (wp - wbuf);
|
||||
|
||||
for (;;) {
|
||||
c = DgetC(DODOL);
|
||||
@@ -220,11 +220,11 @@ Dpack(wbuf, wp)
|
||||
static int
|
||||
Dword()
|
||||
{
|
||||
register int c, c1;
|
||||
int c, c1;
|
||||
Char wbuf[BUFSIZ];
|
||||
register Char *wp = wbuf;
|
||||
register int i = MAXWLEN;
|
||||
register bool dolflg;
|
||||
Char *wp = wbuf;
|
||||
int i = MAXWLEN;
|
||||
bool dolflg;
|
||||
bool sofar = 0, done = 0;
|
||||
|
||||
while (!done) {
|
||||
@@ -340,9 +340,9 @@ Dword()
|
||||
*/
|
||||
static int
|
||||
DgetC(flag)
|
||||
register int flag;
|
||||
int flag;
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
|
||||
top:
|
||||
if ((c = Dpeekc) != '\0') {
|
||||
@@ -401,8 +401,8 @@ dolerror(s)
|
||||
static void
|
||||
Dgetdol()
|
||||
{
|
||||
register Char *np;
|
||||
register struct varent *vp = NULL;
|
||||
Char *np;
|
||||
struct varent *vp = NULL;
|
||||
Char name[4 * MAXVARLEN + 1];
|
||||
int c, sc;
|
||||
int subscr = 0, lwb = 1, upb = 0;
|
||||
@@ -574,7 +574,7 @@ Dgetdol()
|
||||
else if (*np != '-')
|
||||
stderror(ERR_MISSING, '-');
|
||||
else {
|
||||
register int i = upb;
|
||||
int i = upb;
|
||||
|
||||
np++;
|
||||
if (Isdigit(*np)) {
|
||||
@@ -632,7 +632,7 @@ eatbrac:
|
||||
static void
|
||||
fixDolMod()
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
|
||||
c = DgetC(0);
|
||||
if (c == ':') {
|
||||
@@ -691,9 +691,9 @@ fixDolMod()
|
||||
|
||||
static void
|
||||
setDolp(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register Char *dp;
|
||||
Char *dp;
|
||||
int i;
|
||||
|
||||
if (dolnmod == 0 || dolmcnt == 0) {
|
||||
@@ -804,7 +804,7 @@ unDredc(c)
|
||||
static int
|
||||
Dredc()
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
|
||||
if ((c = Dpeekrd) != '\0') {
|
||||
Dpeekrd = 0;
|
||||
@@ -822,7 +822,7 @@ Dredc()
|
||||
|
||||
static void
|
||||
Dtestq(c)
|
||||
register int c;
|
||||
int c;
|
||||
{
|
||||
|
||||
if (cmap(c, QUOTES))
|
||||
@@ -839,11 +839,11 @@ void
|
||||
heredoc(term)
|
||||
Char *term;
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
Char *Dv[2];
|
||||
Char obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ];
|
||||
int ocnt, lcnt, mcnt;
|
||||
register Char *lbp, *obp, *mbp;
|
||||
Char *lbp, *obp, *mbp;
|
||||
Char **vp;
|
||||
bool quoted;
|
||||
char *tmp;
|
||||
|
||||
+3
-3
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: err.c,v 1.2.8.1 1997/08/24 21:41:31 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -307,7 +307,7 @@ seterror(id, va_alist)
|
||||
#endif
|
||||
if (id < 0 || id > sizeof(errorlist) / sizeof(errorlist[0]))
|
||||
id = ERR_INVALID;
|
||||
vsprintf(berr, errorlist[id], va);
|
||||
vsnprintf(berr, sizeof(berr), errorlist[id], va);
|
||||
va_end(va);
|
||||
|
||||
seterr = strsave(berr);
|
||||
@@ -342,7 +342,7 @@ stderror(id, va_alist)
|
||||
#endif
|
||||
{
|
||||
va_list va;
|
||||
register Char **v;
|
||||
Char **v;
|
||||
int flags = id & ERR_FLAGS;
|
||||
|
||||
id &= ~ERR_FLAGS;
|
||||
|
||||
+27
-27
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: exec.c,v 1.3 1995/05/30 00:06:32 rgrimes Exp $
|
||||
* $Id: exec.c,v 1.4.2.1 1997/08/24 21:41:31 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -113,10 +113,10 @@ doexec(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *dp, **pv, **av, *sav;
|
||||
register struct varent *pathv;
|
||||
register bool slash;
|
||||
register int hashval = 0, hashval1, i;
|
||||
Char *dp, **pv, **av, *sav;
|
||||
struct varent *pathv;
|
||||
bool slash;
|
||||
int hashval = 0, hashval1, i;
|
||||
Char *blk[2];
|
||||
|
||||
/*
|
||||
@@ -193,7 +193,7 @@ doexec(v, t)
|
||||
* We must do this AFTER any possible forking (like `foo` in glob) so that
|
||||
* this shell can still do subprocesses.
|
||||
*/
|
||||
(void) sigsetmask((sigset_t) 0);
|
||||
(void) sigsetmask(0);
|
||||
/*
|
||||
* If no path, no words in path, or a / in the filename then restrict the
|
||||
* command search.
|
||||
@@ -265,12 +265,12 @@ pexerr()
|
||||
static void
|
||||
texec(sf, st)
|
||||
Char *sf;
|
||||
register Char **st;
|
||||
Char **st;
|
||||
{
|
||||
register char **t;
|
||||
register char *f;
|
||||
register struct varent *v;
|
||||
register Char **vp;
|
||||
char **t;
|
||||
char *f;
|
||||
struct varent *v;
|
||||
Char **vp;
|
||||
Char *lastsh[2];
|
||||
int fd;
|
||||
unsigned char c;
|
||||
@@ -361,7 +361,7 @@ texec(sf, st)
|
||||
void
|
||||
execash(t, kp)
|
||||
Char **t;
|
||||
register struct command *kp;
|
||||
struct command *kp;
|
||||
{
|
||||
int saveIN, saveOUT, saveDIAG, saveSTD;
|
||||
int oSHIN;
|
||||
@@ -446,8 +446,8 @@ dohash(v, t)
|
||||
struct command *t;
|
||||
{
|
||||
DIR *dirp;
|
||||
register struct dirent *dp;
|
||||
register int cnt;
|
||||
struct dirent *dp;
|
||||
int cnt;
|
||||
int i = 0;
|
||||
struct varent *pathv = adrof(STRpath);
|
||||
Char **pv;
|
||||
@@ -504,9 +504,9 @@ hashstat(v, t)
|
||||
*/
|
||||
static int
|
||||
hashname(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register long h = 0;
|
||||
long h = 0;
|
||||
|
||||
while (*cp)
|
||||
h = hash(h, *cp++);
|
||||
@@ -517,11 +517,11 @@ static int
|
||||
iscommand(name)
|
||||
Char *name;
|
||||
{
|
||||
register Char **pv;
|
||||
register Char *sav;
|
||||
register struct varent *v;
|
||||
register bool slash = any(short2str(name), '/');
|
||||
register int hashval = 0, hashval1, i;
|
||||
Char **pv;
|
||||
Char *sav;
|
||||
struct varent *v;
|
||||
bool slash = any(short2str(name), '/');
|
||||
int hashval = 0, hashval1, i;
|
||||
|
||||
v = adrof(STRpath);
|
||||
if (v == 0 || v->vec[0] == 0 || slash)
|
||||
@@ -618,7 +618,7 @@ executable(dir, name, dir_ok)
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
dowhich(v, c)
|
||||
register Char **v;
|
||||
Char **v;
|
||||
struct command *c;
|
||||
{
|
||||
struct wordent lex[3];
|
||||
@@ -652,9 +652,9 @@ static void
|
||||
tellmewhat(lex)
|
||||
struct wordent *lex;
|
||||
{
|
||||
register int i;
|
||||
register struct biltins *bptr;
|
||||
register struct wordent *sp = lex->next;
|
||||
int i;
|
||||
struct biltins *bptr;
|
||||
struct wordent *sp = lex->next;
|
||||
bool aliased = 0;
|
||||
Char *s0, *s1, *s2, *cmd;
|
||||
Char qc;
|
||||
@@ -706,8 +706,8 @@ tellmewhat(lex)
|
||||
sp->word = cmd = globone(sp->word, G_IGNORE);
|
||||
|
||||
if ((i = iscommand(strip(sp->word))) != 0) {
|
||||
register Char **pv;
|
||||
register struct varent *v;
|
||||
Char **pv;
|
||||
struct varent *v;
|
||||
bool slash = any(short2str(sp->word), '/');
|
||||
|
||||
v = adrof(STRpath);
|
||||
|
||||
+45
-45
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: exp.c,v 1.2 1994/09/24 02:54:00 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -91,23 +91,23 @@ static void etraci __P((char *, int, Char ***));
|
||||
|
||||
int
|
||||
expr(vp)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
{
|
||||
return (exp0(vp, 0));
|
||||
}
|
||||
|
||||
int
|
||||
exp0(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register int p1 = exp1(vp, ignore);
|
||||
int p1 = exp1(vp, ignore);
|
||||
|
||||
#ifdef EDEBUG
|
||||
etraci("exp0 p1", p1, vp);
|
||||
#endif
|
||||
if (**vp && eq(**vp, STRor2)) {
|
||||
register int p2;
|
||||
int p2;
|
||||
|
||||
(*vp)++;
|
||||
p2 = exp0(vp, (ignore & IGNORE) || p1);
|
||||
@@ -121,16 +121,16 @@ exp0(vp, ignore)
|
||||
|
||||
static int
|
||||
exp1(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register int p1 = exp2(vp, ignore);
|
||||
int p1 = exp2(vp, ignore);
|
||||
|
||||
#ifdef EDEBUG
|
||||
etraci("exp1 p1", p1, vp);
|
||||
#endif
|
||||
if (**vp && eq(**vp, STRand2)) {
|
||||
register int p2;
|
||||
int p2;
|
||||
|
||||
(*vp)++;
|
||||
p2 = exp1(vp, (ignore & IGNORE) || !p1);
|
||||
@@ -144,16 +144,16 @@ exp1(vp, ignore)
|
||||
|
||||
static int
|
||||
exp2(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register int p1 = exp2a(vp, ignore);
|
||||
int p1 = exp2a(vp, ignore);
|
||||
|
||||
#ifdef EDEBUG
|
||||
etraci("exp3 p1", p1, vp);
|
||||
#endif
|
||||
if (**vp && eq(**vp, STRor)) {
|
||||
register int p2;
|
||||
int p2;
|
||||
|
||||
(*vp)++;
|
||||
p2 = exp2(vp, ignore);
|
||||
@@ -167,16 +167,16 @@ exp2(vp, ignore)
|
||||
|
||||
static int
|
||||
exp2a(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register int p1 = exp2b(vp, ignore);
|
||||
int p1 = exp2b(vp, ignore);
|
||||
|
||||
#ifdef EDEBUG
|
||||
etraci("exp2a p1", p1, vp);
|
||||
#endif
|
||||
if (**vp && eq(**vp, STRcaret)) {
|
||||
register int p2;
|
||||
int p2;
|
||||
|
||||
(*vp)++;
|
||||
p2 = exp2a(vp, ignore);
|
||||
@@ -190,16 +190,16 @@ exp2a(vp, ignore)
|
||||
|
||||
static int
|
||||
exp2b(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register int p1 = exp2c(vp, ignore);
|
||||
int p1 = exp2c(vp, ignore);
|
||||
|
||||
#ifdef EDEBUG
|
||||
etraci("exp2b p1", p1, vp);
|
||||
#endif
|
||||
if (**vp && eq(**vp, STRand)) {
|
||||
register int p2;
|
||||
int p2;
|
||||
|
||||
(*vp)++;
|
||||
p2 = exp2b(vp, ignore);
|
||||
@@ -213,12 +213,12 @@ exp2b(vp, ignore)
|
||||
|
||||
static int
|
||||
exp2c(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register Char *p1 = exp3(vp, ignore);
|
||||
register Char *p2;
|
||||
register int i;
|
||||
Char *p1 = exp3(vp, ignore);
|
||||
Char *p2;
|
||||
int i;
|
||||
|
||||
#ifdef EDEBUG
|
||||
etracc("exp2c p1", p1, vp);
|
||||
@@ -261,11 +261,11 @@ exp2c(vp, ignore)
|
||||
|
||||
static Char *
|
||||
exp3(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register Char *p1, *p2;
|
||||
register int i;
|
||||
Char *p1, *p2;
|
||||
int i;
|
||||
|
||||
p1 = exp3a(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
@@ -307,11 +307,11 @@ exp3(vp, ignore)
|
||||
|
||||
static Char *
|
||||
exp3a(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register Char *p1, *p2, *op;
|
||||
register int i;
|
||||
Char *p1, *p2, *op;
|
||||
int i;
|
||||
|
||||
p1 = exp4(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
@@ -337,18 +337,18 @@ exp3a(vp, ignore)
|
||||
|
||||
static Char *
|
||||
exp4(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register Char *p1, *p2;
|
||||
register int i = 0;
|
||||
Char *p1, *p2;
|
||||
int i = 0;
|
||||
|
||||
p1 = exp5(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
etracc("exp4 p1", p1, vp);
|
||||
#endif
|
||||
if (isa(**vp, ADDOP)) {
|
||||
register Char *op = *(*vp)++;
|
||||
Char *op = *(*vp)++;
|
||||
|
||||
p2 = exp4(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
@@ -374,18 +374,18 @@ exp4(vp, ignore)
|
||||
|
||||
static Char *
|
||||
exp5(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
register Char *p1, *p2;
|
||||
register int i = 0;
|
||||
Char *p1, *p2;
|
||||
int i = 0;
|
||||
|
||||
p1 = exp6(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
etracc("exp5 p1", p1, vp);
|
||||
#endif
|
||||
if (isa(**vp, MULOP)) {
|
||||
register Char *op = *(*vp)++;
|
||||
Char *op = *(*vp)++;
|
||||
|
||||
p2 = exp5(vp, ignore);
|
||||
#ifdef EDEBUG
|
||||
@@ -421,11 +421,11 @@ exp5(vp, ignore)
|
||||
|
||||
static Char *
|
||||
exp6(vp, ignore)
|
||||
register Char ***vp;
|
||||
Char ***vp;
|
||||
bool ignore;
|
||||
{
|
||||
int ccode, i = 0;
|
||||
register Char *cp, *dp, *ep;
|
||||
Char *cp, *dp, *ep;
|
||||
|
||||
if (**vp == 0)
|
||||
stderror(ERR_NAME | ERR_EXPRESSION);
|
||||
@@ -461,7 +461,7 @@ exp6(vp, ignore)
|
||||
return (putn(ccode));
|
||||
}
|
||||
if (eq(**vp, STRLbrace)) {
|
||||
register Char **v;
|
||||
Char **v;
|
||||
struct command faket;
|
||||
Char *fakecom[2];
|
||||
|
||||
@@ -600,18 +600,18 @@ exp6(vp, ignore)
|
||||
|
||||
static void
|
||||
evalav(v)
|
||||
register Char **v;
|
||||
Char **v;
|
||||
{
|
||||
struct wordent paraml1;
|
||||
register struct wordent *hp = ¶ml1;
|
||||
struct wordent *hp = ¶ml1;
|
||||
struct command *t;
|
||||
register struct wordent *wdp = hp;
|
||||
struct wordent *wdp = hp;
|
||||
|
||||
set(STRstatus, Strsave(STR0));
|
||||
hp->prev = hp->next = hp;
|
||||
hp->word = STRNULL;
|
||||
while (*v) {
|
||||
register struct wordent *new =
|
||||
struct wordent *new =
|
||||
(struct wordent *) xcalloc(1, sizeof *wdp);
|
||||
|
||||
new->prev = wdp;
|
||||
@@ -631,8 +631,8 @@ evalav(v)
|
||||
|
||||
static int
|
||||
isa(cp, what)
|
||||
register Char *cp;
|
||||
register int what;
|
||||
Char *cp;
|
||||
int what;
|
||||
{
|
||||
if (cp == 0)
|
||||
return ((what & RESTOP) != 0);
|
||||
@@ -680,7 +680,7 @@ isa(cp, what)
|
||||
|
||||
static int
|
||||
egetn(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
if (*cp && *cp != '-' && !Isdigit(*cp))
|
||||
stderror(ERR_NAME | ERR_EXPRESSION);
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* $Id: extern.h,v 1.2 1994/09/24 02:54:02 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
@@ -161,7 +161,7 @@ Char *globone __P((Char *, int));
|
||||
int Gmatch __P((Char *, Char *));
|
||||
void ginit __P((void));
|
||||
Char **globall __P((Char **));
|
||||
void rscan __P((Char **, void (*)()));
|
||||
void rscan __P((Char **, void (*)(int)));
|
||||
void tglob __P((Char **));
|
||||
void trim __P((Char **));
|
||||
#ifdef FILEC
|
||||
|
||||
+29
-29
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: file.c,v 1.3 1995/05/30 00:06:33 rgrimes Exp $
|
||||
* $Id: file.c,v 1.4.2.1 1997/08/24 21:41:33 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -160,7 +160,7 @@ static void
|
||||
pushback(string)
|
||||
Char *string;
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
struct termios tty, tty_normal;
|
||||
int omask;
|
||||
char c;
|
||||
@@ -184,8 +184,8 @@ pushback(string)
|
||||
*/
|
||||
static void
|
||||
catn(des, src, count)
|
||||
register Char *des, *src;
|
||||
register int count;
|
||||
Char *des, *src;
|
||||
int count;
|
||||
{
|
||||
while (--count >= 0 && *des)
|
||||
des++;
|
||||
@@ -201,8 +201,8 @@ catn(des, src, count)
|
||||
*/
|
||||
static void
|
||||
copyn(des, src, count)
|
||||
register Char *des, *src;
|
||||
register int count;
|
||||
Char *des, *src;
|
||||
int count;
|
||||
{
|
||||
while (--count >= 0)
|
||||
if ((*des++ = *src++) == 0)
|
||||
@@ -251,7 +251,7 @@ print_by_column(dir, items, count)
|
||||
Char *dir, *items[];
|
||||
int count;
|
||||
{
|
||||
register int i, rows, r, c, maxwidth = 0, columns;
|
||||
int i, rows, r, c, maxwidth = 0, columns;
|
||||
|
||||
if (ioctl(SHOUT, TIOCGWINSZ, (ioctl_t) & win) < 0 || win.ws_col == 0)
|
||||
win.ws_col = 80;
|
||||
@@ -266,7 +266,7 @@ print_by_column(dir, items, count)
|
||||
for (c = 0; c < columns; c++) {
|
||||
i = c * rows + r;
|
||||
if (i < count) {
|
||||
register int w;
|
||||
int w;
|
||||
|
||||
(void) fprintf(cshout, "%s", vis_str(items[i]));
|
||||
(void) fputc(dir ? filetype(dir, items[i]) : ' ', cshout);
|
||||
@@ -292,8 +292,8 @@ static Char *
|
||||
tilde(new, old)
|
||||
Char *new, *old;
|
||||
{
|
||||
register Char *o, *p;
|
||||
register struct passwd *pw;
|
||||
Char *o, *p;
|
||||
struct passwd *pw;
|
||||
static Char person[40];
|
||||
|
||||
if (old[0] != '~')
|
||||
@@ -375,7 +375,7 @@ static void
|
||||
extract_dir_and_name(path, dir, name)
|
||||
Char *path, *dir, *name;
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
|
||||
p = Strrchr(path, '/');
|
||||
if (p == NULL) {
|
||||
@@ -393,8 +393,8 @@ getentry(dir_fd, looking_for_lognames)
|
||||
DIR *dir_fd;
|
||||
int looking_for_lognames;
|
||||
{
|
||||
register struct passwd *pw;
|
||||
register struct dirent *dirp;
|
||||
struct passwd *pw;
|
||||
struct dirent *dirp;
|
||||
|
||||
if (looking_for_lognames) {
|
||||
if ((pw = getpwent()) == NULL)
|
||||
@@ -408,9 +408,9 @@ getentry(dir_fd, looking_for_lognames)
|
||||
|
||||
static void
|
||||
free_items(items)
|
||||
register Char **items;
|
||||
Char **items;
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
for (i = 0; items[i]; i++)
|
||||
xfree((ptr_t) items[i]);
|
||||
@@ -436,9 +436,9 @@ tsearch(word, command, max_word_length)
|
||||
int max_word_length;
|
||||
{
|
||||
static Char **items = NULL;
|
||||
register DIR *dir_fd;
|
||||
register numitems = 0, ignoring = TRUE, nignored = 0;
|
||||
register name_length, looking_for_lognames;
|
||||
DIR *dir_fd;
|
||||
int numitems = 0, ignoring = TRUE, nignored = 0;
|
||||
int name_length, looking_for_lognames;
|
||||
Char tilded_dir[MAXPATHLEN + 1], dir[MAXPATHLEN + 1];
|
||||
Char name[MAXNAMLEN + 1], extended_name[MAXNAMLEN + 1];
|
||||
Char *entry;
|
||||
@@ -450,7 +450,7 @@ tsearch(word, command, max_word_length)
|
||||
|
||||
looking_for_lognames = (*word == '~') && (Strchr(word, '/') == NULL);
|
||||
if (looking_for_lognames) {
|
||||
(void) setpwent();
|
||||
setpwent();
|
||||
copyn(name, &word[1], MAXNAMLEN); /* name sans ~ */
|
||||
dir_fd = NULL;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ again: /* search for matches */
|
||||
ignoring = FALSE;
|
||||
nignored = 0;
|
||||
if (looking_for_lognames)
|
||||
(void) setpwent();
|
||||
setpwent();
|
||||
else
|
||||
rewinddir(dir_fd);
|
||||
goto again;
|
||||
@@ -547,8 +547,8 @@ recognize(extended_name, entry, name_length, numitems)
|
||||
if (numitems == 1) /* 1st match */
|
||||
copyn(extended_name, entry, MAXNAMLEN);
|
||||
else { /* 2nd & subsequent matches */
|
||||
register Char *x, *ent;
|
||||
register int len = 0;
|
||||
Char *x, *ent;
|
||||
int len = 0;
|
||||
|
||||
x = extended_name;
|
||||
for (ent = entry; *x && *x == *ent++; x++, len++)
|
||||
@@ -567,7 +567,7 @@ recognize(extended_name, entry, name_length, numitems)
|
||||
*/
|
||||
static int
|
||||
is_prefix(check, template)
|
||||
register Char *check, *template;
|
||||
Char *check, *template;
|
||||
{
|
||||
do
|
||||
if (*check == 0)
|
||||
@@ -584,7 +584,7 @@ static int
|
||||
is_suffix(check, template)
|
||||
Char *check, *template;
|
||||
{
|
||||
register Char *c, *t;
|
||||
Char *c, *t;
|
||||
|
||||
for (c = check; *c++;)
|
||||
continue;
|
||||
@@ -603,7 +603,7 @@ tenex(inputline, inputline_size)
|
||||
Char *inputline;
|
||||
int inputline_size;
|
||||
{
|
||||
register int numitems, num_read;
|
||||
int numitems, num_read;
|
||||
char tinputline[BUFSIZ];
|
||||
|
||||
|
||||
@@ -613,8 +613,8 @@ tenex(inputline, inputline_size)
|
||||
int i;
|
||||
static Char delims[] = {' ', '\'', '"', '\t', ';', '&', '<',
|
||||
'>', '(', ')', '|', '^', '%', '\0'};
|
||||
register Char *str_end, *word_start, last_Char, should_retype;
|
||||
register int space_left;
|
||||
Char *str_end, *word_start, last_Char, should_retype;
|
||||
int space_left;
|
||||
COMMAND command;
|
||||
|
||||
for (i = 0; i < num_read; i++)
|
||||
@@ -671,10 +671,10 @@ tenex(inputline, inputline_size)
|
||||
|
||||
static int
|
||||
ignored(entry)
|
||||
register Char *entry;
|
||||
Char *entry;
|
||||
{
|
||||
struct varent *vp;
|
||||
register Char **cp;
|
||||
Char **cp;
|
||||
|
||||
if ((vp = adrof(STRfignore)) == NULL || (cp = vp->vec) == NULL)
|
||||
return (FALSE);
|
||||
|
||||
+54
-55
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: func.c,v 1.4 1995/10/23 23:08:26 ache Exp $
|
||||
* $Id: func.c,v 1.5.2.1 1997/08/24 21:41:33 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -72,8 +72,8 @@ struct biltins *
|
||||
isbfunc(t)
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp = t->t_dcom[0];
|
||||
register struct biltins *bp, *bp1, *bp2;
|
||||
Char *cp = t->t_dcom[0];
|
||||
struct biltins *bp, *bp1, *bp2;
|
||||
static struct biltins label = {"", dozip, 0, 0};
|
||||
static struct biltins foregnd = {"%job", dofg1, 0, 0};
|
||||
static struct biltins backgnd = {"%job &", dobg1, 0, 0};
|
||||
@@ -96,7 +96,7 @@ isbfunc(t)
|
||||
* one past the end.
|
||||
*/
|
||||
for (bp1 = bfunc, bp2 = bfunc + nbfunc; bp1 < bp2;) {
|
||||
register i;
|
||||
int i;
|
||||
|
||||
bp = bp1 + ((bp2 - bp1) >> 1);
|
||||
if ((i = *cp - *bp->bname) == 0 &&
|
||||
@@ -112,8 +112,8 @@ isbfunc(t)
|
||||
|
||||
void
|
||||
func(t, bp)
|
||||
register struct command *t;
|
||||
register struct biltins *bp;
|
||||
struct command *t;
|
||||
struct biltins *bp;
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -133,8 +133,8 @@ doonintr(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp;
|
||||
register Char *vv = v[1];
|
||||
Char *cp;
|
||||
Char *vv = v[1];
|
||||
|
||||
if (parintr == SIG_IGN)
|
||||
return;
|
||||
@@ -194,8 +194,8 @@ doalias(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct varent *vp;
|
||||
register Char *p;
|
||||
struct varent *vp;
|
||||
Char *p;
|
||||
|
||||
v++;
|
||||
p = *v++;
|
||||
@@ -265,8 +265,8 @@ doif(v, kp)
|
||||
Char **v;
|
||||
struct command *kp;
|
||||
{
|
||||
register int i;
|
||||
register Char **vv;
|
||||
int i;
|
||||
Char **vv;
|
||||
|
||||
v++;
|
||||
i = expr(&v);
|
||||
@@ -302,7 +302,7 @@ doif(v, kp)
|
||||
*/
|
||||
static void
|
||||
reexecute(kp)
|
||||
register struct command *kp;
|
||||
struct command *kp;
|
||||
{
|
||||
kp->t_dflg &= F_SAVE;
|
||||
kp->t_dflg |= F_REPEAT;
|
||||
@@ -339,7 +339,7 @@ void
|
||||
gotolab(lab)
|
||||
Char *lab;
|
||||
{
|
||||
register struct whyle *wp;
|
||||
struct whyle *wp;
|
||||
/*
|
||||
* While we still can, locate any unknown ends of existing loops. This
|
||||
* obscure code is the WORST result of the fact that we don't really parse.
|
||||
@@ -365,7 +365,7 @@ doswitch(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp, *lp;
|
||||
Char *cp, *lp;
|
||||
|
||||
v++;
|
||||
if (!*v || *(*v++) != '(')
|
||||
@@ -419,8 +419,8 @@ doforeach(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp, *sp;
|
||||
register struct whyle *nwp;
|
||||
Char *cp, *sp;
|
||||
struct whyle *nwp;
|
||||
|
||||
v++;
|
||||
sp = cp = strip(*v);
|
||||
@@ -463,8 +463,8 @@ dowhile(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register int status;
|
||||
register bool again = whyles != 0 && SEEKEQ(&whyles->w_start, &lineloc) &&
|
||||
int status;
|
||||
bool again = whyles != 0 && SEEKEQ(&whyles->w_start, &lineloc) &&
|
||||
whyles->w_fename == 0;
|
||||
|
||||
v++;
|
||||
@@ -479,7 +479,7 @@ dowhile(v, t)
|
||||
if (*v)
|
||||
stderror(ERR_NAME | ERR_EXPRESSION);
|
||||
if (!again) {
|
||||
register struct whyle *nwp =
|
||||
struct whyle *nwp =
|
||||
(struct whyle *) xcalloc(1, sizeof(*nwp));
|
||||
|
||||
nwp->w_start = lineloc;
|
||||
@@ -507,7 +507,7 @@ preread()
|
||||
{
|
||||
whyles->w_end.type = I_SEEK;
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
|
||||
search(T_BREAK, 0, NULL); /* read the expression in */
|
||||
if (setintr)
|
||||
@@ -564,8 +564,8 @@ dorepeat(v, kp)
|
||||
Char **v;
|
||||
struct command *kp;
|
||||
{
|
||||
register int i;
|
||||
register sigset_t omask = 0;
|
||||
int i;
|
||||
int omask = 0;
|
||||
|
||||
i = getn(v[1]);
|
||||
if (setintr)
|
||||
@@ -593,10 +593,10 @@ doswbrk(v, t)
|
||||
|
||||
int
|
||||
srchx(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register struct srch *sp, *sp1, *sp2;
|
||||
register i;
|
||||
struct srch *sp, *sp1, *sp2;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* Binary search Sp1 is the beginning of the current search range. Sp2 is
|
||||
@@ -622,12 +622,12 @@ static Char *Sgoal;
|
||||
static void
|
||||
search(type, level, goal)
|
||||
int type;
|
||||
register int level;
|
||||
int level;
|
||||
Char *goal;
|
||||
{
|
||||
Char wordbuf[BUFSIZ];
|
||||
register Char *aword = wordbuf;
|
||||
register Char *cp;
|
||||
Char *aword = wordbuf;
|
||||
Char *cp;
|
||||
|
||||
Stype = type;
|
||||
Sgoal = goal;
|
||||
@@ -722,10 +722,10 @@ search(type, level, goal)
|
||||
|
||||
static int
|
||||
getword(wp)
|
||||
register Char *wp;
|
||||
Char *wp;
|
||||
{
|
||||
register int found = 0;
|
||||
register int c, d;
|
||||
int found = 0;
|
||||
int c, d;
|
||||
int kwd = 0;
|
||||
Char *owp = wp;
|
||||
|
||||
@@ -851,7 +851,7 @@ wfree()
|
||||
btell(&o);
|
||||
|
||||
for (; whyles; whyles = nwp) {
|
||||
register struct whyle *wp = whyles;
|
||||
struct whyle *wp = whyles;
|
||||
nwp = wp->w_next;
|
||||
|
||||
/*
|
||||
@@ -901,13 +901,13 @@ doglob(v, t)
|
||||
static void
|
||||
xecho(sep, v)
|
||||
int sep;
|
||||
register Char **v;
|
||||
Char **v;
|
||||
{
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
int nonl = 0;
|
||||
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
v++;
|
||||
if (*v == 0)
|
||||
return;
|
||||
@@ -924,7 +924,7 @@ xecho(sep, v)
|
||||
if (sep == ' ' && *v && eq(*v, STRmn))
|
||||
nonl++, v++;
|
||||
while ((cp = *v++) != NULL) {
|
||||
register int c;
|
||||
int c;
|
||||
|
||||
while ((c = *cp++) != '\0')
|
||||
(void) vis_fputc(c | QUOTE, cshout);
|
||||
@@ -952,10 +952,10 @@ dosetenv(v, t)
|
||||
|
||||
v++;
|
||||
if ((vp = *v++) == 0) {
|
||||
register Char **ep;
|
||||
Char **ep;
|
||||
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
for (ep = STR_environ; *ep; ep++)
|
||||
(void) fprintf(cshout, "%s\n", vis_str(*ep));
|
||||
return;
|
||||
@@ -1045,8 +1045,8 @@ void
|
||||
Setenv(name, val)
|
||||
Char *name, *val;
|
||||
{
|
||||
register Char **ep = STR_environ;
|
||||
register Char *cp, *dp;
|
||||
Char **ep = STR_environ;
|
||||
Char *cp, *dp;
|
||||
Char *blk[2];
|
||||
Char **oep = ep;
|
||||
|
||||
@@ -1078,8 +1078,8 @@ static void
|
||||
Unsetenv(name)
|
||||
Char *name;
|
||||
{
|
||||
register Char **ep = STR_environ;
|
||||
register Char *cp, *dp;
|
||||
Char **ep = STR_environ;
|
||||
Char *cp, *dp;
|
||||
Char **oep = ep;
|
||||
|
||||
for (; *ep; ep++) {
|
||||
@@ -1104,8 +1104,8 @@ doumask(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp = v[1];
|
||||
register int i;
|
||||
Char *cp = v[1];
|
||||
int i;
|
||||
|
||||
if (cp == 0) {
|
||||
i = umask(0);
|
||||
@@ -1151,7 +1151,7 @@ static struct limits *
|
||||
findlim(cp)
|
||||
Char *cp;
|
||||
{
|
||||
register struct limits *lp, *res;
|
||||
struct limits *lp, *res;
|
||||
|
||||
res = (struct limits *) NULL;
|
||||
for (lp = limits; lp->limconst >= 0; lp++)
|
||||
@@ -1173,8 +1173,8 @@ dolimit(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct limits *lp;
|
||||
register RLIM_TYPE limit;
|
||||
struct limits *lp;
|
||||
RLIM_TYPE limit;
|
||||
char hard = 0;
|
||||
|
||||
v++;
|
||||
@@ -1199,11 +1199,10 @@ dolimit(v, t)
|
||||
|
||||
static RLIM_TYPE
|
||||
getval(lp, v)
|
||||
register struct limits *lp;
|
||||
struct limits *lp;
|
||||
Char **v;
|
||||
{
|
||||
register float f;
|
||||
double atof();
|
||||
float f;
|
||||
Char *cp = *v++;
|
||||
|
||||
f = atof(short2str(cp));
|
||||
@@ -1283,7 +1282,7 @@ limtail(cp, str)
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
plim(lp, hard)
|
||||
register struct limits *lp;
|
||||
struct limits *lp;
|
||||
Char hard;
|
||||
{
|
||||
struct rlimit rlim;
|
||||
@@ -1310,7 +1309,7 @@ dounlimit(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct limits *lp;
|
||||
struct limits *lp;
|
||||
int lerr = 0;
|
||||
Char hard = 0;
|
||||
|
||||
@@ -1336,7 +1335,7 @@ dounlimit(v, t)
|
||||
|
||||
static int
|
||||
setlim(lp, hard, limit)
|
||||
register struct limits *lp;
|
||||
struct limits *lp;
|
||||
Char hard;
|
||||
RLIM_TYPE limit;
|
||||
{
|
||||
@@ -1368,7 +1367,7 @@ dosuspend(v, t)
|
||||
{
|
||||
int ctpgrp;
|
||||
|
||||
void (*old) ();
|
||||
void (*old) __P((int));
|
||||
|
||||
if (loginsh)
|
||||
stderror(ERR_SUSPLOG);
|
||||
|
||||
+15
-15
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: glob.c,v 1.5 1996/08/12 21:32:15 ache Exp $
|
||||
* $Id: glob.c,v 1.6 1996/10/31 07:22:48 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -553,10 +553,10 @@ ginit()
|
||||
|
||||
void
|
||||
rscan(t, f)
|
||||
register Char **t;
|
||||
void (*f) ();
|
||||
Char **t;
|
||||
void (*f) __P((int));
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
|
||||
while ((p = *t++) != NULL)
|
||||
while (*p)
|
||||
@@ -565,9 +565,9 @@ rscan(t, f)
|
||||
|
||||
void
|
||||
trim(t)
|
||||
register Char **t;
|
||||
Char **t;
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
|
||||
while ((p = *t++) != NULL)
|
||||
while (*p)
|
||||
@@ -576,9 +576,9 @@ trim(t)
|
||||
|
||||
void
|
||||
tglob(t)
|
||||
register Char **t;
|
||||
Char **t;
|
||||
{
|
||||
register Char *p, c;
|
||||
Char *p, c;
|
||||
|
||||
while ((p = *t++) != NULL) {
|
||||
if (*p == '~' || *p == '=')
|
||||
@@ -622,7 +622,7 @@ dobackp(cp, literal)
|
||||
Char *cp;
|
||||
bool literal;
|
||||
{
|
||||
register Char *lp, *rp;
|
||||
Char *lp, *rp;
|
||||
Char *ep, word[MAXPATHLEN];
|
||||
|
||||
if (pargv) {
|
||||
@@ -667,8 +667,8 @@ backeval(cp, literal)
|
||||
Char *cp;
|
||||
bool literal;
|
||||
{
|
||||
register int icnt, c;
|
||||
register Char *ip;
|
||||
int icnt, c;
|
||||
Char *ip;
|
||||
struct command faket;
|
||||
bool hadnl;
|
||||
int pvec[2], quoted;
|
||||
@@ -851,9 +851,9 @@ Gmatch(string, pattern)
|
||||
|
||||
static int
|
||||
pmatch(string, pattern)
|
||||
register Char *string, *pattern;
|
||||
Char *string, *pattern;
|
||||
{
|
||||
register Char stringc, patternc;
|
||||
Char stringc, patternc;
|
||||
int match, negate_range;
|
||||
Char rangec;
|
||||
|
||||
@@ -910,7 +910,7 @@ void
|
||||
Gcat(s1, s2)
|
||||
Char *s1, *s2;
|
||||
{
|
||||
register Char *p, *q;
|
||||
Char *p, *q;
|
||||
int n;
|
||||
|
||||
for (p = s1; *p++;)
|
||||
@@ -934,7 +934,7 @@ Gcat(s1, s2)
|
||||
#ifdef FILEC
|
||||
int
|
||||
sortscmp(a, b)
|
||||
register const ptr_t a, b;
|
||||
const ptr_t a, b;
|
||||
{
|
||||
#if defined(NLS) && !defined(NOSTRCOLL)
|
||||
char buf[2048];
|
||||
|
||||
+9
-9
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: hist.c,v 1.2.8.1 1997/08/24 21:41:34 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -56,8 +56,8 @@ void
|
||||
savehist(sp)
|
||||
struct wordent *sp;
|
||||
{
|
||||
register struct Hist *hp, *np;
|
||||
register int histlen = 0;
|
||||
struct Hist *hp, *np;
|
||||
int histlen = 0;
|
||||
Char *cp;
|
||||
|
||||
/* throw away null lines */
|
||||
@@ -65,7 +65,7 @@ savehist(sp)
|
||||
return;
|
||||
cp = value(STRhistory);
|
||||
if (*cp) {
|
||||
register Char *p = cp;
|
||||
Char *p = cp;
|
||||
|
||||
while (*p) {
|
||||
if (!Isdigit(*p)) {
|
||||
@@ -86,10 +86,10 @@ savehist(sp)
|
||||
struct Hist *
|
||||
enthist(event, lp, docopy)
|
||||
int event;
|
||||
register struct wordent *lp;
|
||||
struct wordent *lp;
|
||||
bool docopy;
|
||||
{
|
||||
register struct Hist *np;
|
||||
struct Hist *np;
|
||||
|
||||
np = (struct Hist *) xmalloc((size_t) sizeof(*np));
|
||||
np->Hnum = np->Href = event;
|
||||
@@ -109,7 +109,7 @@ enthist(event, lp, docopy)
|
||||
|
||||
static void
|
||||
hfree(hp)
|
||||
register struct Hist *hp;
|
||||
struct Hist *hp;
|
||||
{
|
||||
|
||||
freelex(&hp->Hlex);
|
||||
@@ -127,7 +127,7 @@ dohist(v, t)
|
||||
if (getn(value(STRhistory)) == 0)
|
||||
return;
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
while (*++v && **v == '-') {
|
||||
Char *vp = *v;
|
||||
|
||||
@@ -177,7 +177,7 @@ dohist1(hp, np, rflg, hflg)
|
||||
|
||||
static void
|
||||
phist(hp, hflg)
|
||||
register struct Hist *hp;
|
||||
struct Hist *hp;
|
||||
int hflg;
|
||||
{
|
||||
if (hflg == 0)
|
||||
|
||||
+47
-47
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lex.c,v 1.3 1995/05/30 00:06:35 rgrimes Exp $
|
||||
* $Id: lex.c,v 1.4 1995/08/10 05:13:42 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -142,9 +142,9 @@ static Char getCtmp;
|
||||
|
||||
int
|
||||
lex(hp)
|
||||
register struct wordent *hp;
|
||||
struct wordent *hp;
|
||||
{
|
||||
register struct wordent *wdp;
|
||||
struct wordent *wdp;
|
||||
int c;
|
||||
|
||||
btell(&lineloc);
|
||||
@@ -165,7 +165,7 @@ lex(hp)
|
||||
* be ready and rarin to go even if it is interrupted.
|
||||
*/
|
||||
do {
|
||||
register struct wordent *new;
|
||||
struct wordent *new;
|
||||
|
||||
new = (struct wordent *) xmalloc((size_t) sizeof(*wdp));
|
||||
new->word = 0;
|
||||
@@ -184,7 +184,7 @@ prlex(fp, sp0)
|
||||
FILE *fp;
|
||||
struct wordent *sp0;
|
||||
{
|
||||
register struct wordent *sp = sp0->next;
|
||||
struct wordent *sp = sp0->next;
|
||||
|
||||
for (;;) {
|
||||
(void) fprintf(fp, "%s", vis_str(sp->word));
|
||||
@@ -198,15 +198,15 @@ prlex(fp, sp0)
|
||||
|
||||
void
|
||||
copylex(hp, fp)
|
||||
register struct wordent *hp;
|
||||
register struct wordent *fp;
|
||||
struct wordent *hp;
|
||||
struct wordent *fp;
|
||||
{
|
||||
register struct wordent *wdp;
|
||||
struct wordent *wdp;
|
||||
|
||||
wdp = hp;
|
||||
fp = fp->next;
|
||||
do {
|
||||
register struct wordent *new;
|
||||
struct wordent *new;
|
||||
|
||||
new = (struct wordent *) xmalloc((size_t) sizeof(*wdp));
|
||||
new->prev = wdp;
|
||||
@@ -221,9 +221,9 @@ copylex(hp, fp)
|
||||
|
||||
void
|
||||
freelex(vp)
|
||||
register struct wordent *vp;
|
||||
struct wordent *vp;
|
||||
{
|
||||
register struct wordent *fp;
|
||||
struct wordent *fp;
|
||||
|
||||
while (vp->next != vp) {
|
||||
fp = vp->next;
|
||||
@@ -237,11 +237,11 @@ freelex(vp)
|
||||
static Char *
|
||||
word()
|
||||
{
|
||||
register Char c, c1;
|
||||
register Char *wp;
|
||||
Char c, c1;
|
||||
Char *wp;
|
||||
Char wbuf[BUFSIZ];
|
||||
register bool dolflg;
|
||||
register int i;
|
||||
bool dolflg;
|
||||
int i;
|
||||
|
||||
wp = wbuf;
|
||||
i = BUFSIZ - 4;
|
||||
@@ -358,9 +358,9 @@ ret:
|
||||
|
||||
static int
|
||||
getC1(flag)
|
||||
register int flag;
|
||||
int flag;
|
||||
{
|
||||
register Char c;
|
||||
Char c;
|
||||
|
||||
while (1) {
|
||||
if ((c = peekc) != '\0') {
|
||||
@@ -416,9 +416,9 @@ getC1(flag)
|
||||
static void
|
||||
getdol()
|
||||
{
|
||||
register Char *np, *ep;
|
||||
Char *np, *ep;
|
||||
Char name[4 * MAXVARLEN + 1];
|
||||
register int c;
|
||||
int c;
|
||||
int sc;
|
||||
bool special = 0, toolong;
|
||||
|
||||
@@ -650,9 +650,9 @@ static void
|
||||
getexcl(sc)
|
||||
int sc;
|
||||
{
|
||||
register struct wordent *hp, *ip;
|
||||
struct wordent *hp, *ip;
|
||||
int left, right, dol;
|
||||
register int c;
|
||||
int c;
|
||||
|
||||
if (sc == 0) {
|
||||
sc = getC(0);
|
||||
@@ -727,9 +727,9 @@ static struct wordent *
|
||||
getsub(en)
|
||||
struct wordent *en;
|
||||
{
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
int delim;
|
||||
register int c;
|
||||
int c;
|
||||
int sc;
|
||||
bool global;
|
||||
Char orhsb[sizeof(rhsb) / sizeof(Char)];
|
||||
@@ -872,12 +872,12 @@ dosub(sc, en, global)
|
||||
struct wordent lexi;
|
||||
bool didsub = 0, didone = 0;
|
||||
struct wordent *hp = &lexi;
|
||||
register struct wordent *wdp;
|
||||
register int i = exclc;
|
||||
struct wordent *wdp;
|
||||
int i = exclc;
|
||||
|
||||
wdp = hp;
|
||||
while (--i >= 0) {
|
||||
register struct wordent *new =
|
||||
struct wordent *new =
|
||||
(struct wordent *) xcalloc(1, sizeof *wdp);
|
||||
|
||||
new->word = 0;
|
||||
@@ -924,8 +924,8 @@ subword(cp, type, adid)
|
||||
bool *adid;
|
||||
{
|
||||
Char wbuf[BUFSIZ];
|
||||
register Char *wp, *mp, *np;
|
||||
register int i;
|
||||
Char *wp, *mp, *np;
|
||||
int i;
|
||||
|
||||
*adid = 0;
|
||||
switch (type) {
|
||||
@@ -996,8 +996,8 @@ domod(cp, type)
|
||||
Char *cp;
|
||||
int type;
|
||||
{
|
||||
register Char *wp, *xp;
|
||||
register int c;
|
||||
Char *wp, *xp;
|
||||
int c;
|
||||
|
||||
switch (type) {
|
||||
|
||||
@@ -1042,7 +1042,7 @@ domod(cp, type)
|
||||
|
||||
static int
|
||||
matchs(str, pat)
|
||||
register Char *str, *pat;
|
||||
Char *str, *pat;
|
||||
{
|
||||
while (*str && *pat && *str == *pat)
|
||||
str++, pat++;
|
||||
@@ -1051,11 +1051,11 @@ matchs(str, pat)
|
||||
|
||||
static int
|
||||
getsel(al, ar, dol)
|
||||
register int *al, *ar;
|
||||
int *al, *ar;
|
||||
int dol;
|
||||
{
|
||||
register int c = getC(0);
|
||||
register int i;
|
||||
int c = getC(0);
|
||||
int i;
|
||||
bool first = *al < 0;
|
||||
|
||||
switch (c) {
|
||||
@@ -1139,9 +1139,9 @@ static struct wordent *
|
||||
gethent(sc)
|
||||
int sc;
|
||||
{
|
||||
register struct Hist *hp;
|
||||
register Char *np;
|
||||
register int c;
|
||||
struct Hist *hp;
|
||||
Char *np;
|
||||
int c;
|
||||
int event;
|
||||
bool back = 0;
|
||||
|
||||
@@ -1258,12 +1258,12 @@ findev(cp, anyarg)
|
||||
Char *cp;
|
||||
bool anyarg;
|
||||
{
|
||||
register struct Hist *hp;
|
||||
struct Hist *hp;
|
||||
|
||||
for (hp = Histlist.Hnext; hp; hp = hp->Hnext) {
|
||||
Char *dp;
|
||||
register Char *p, *q;
|
||||
register struct wordent *lp = hp->Hlex.next;
|
||||
Char *p, *q;
|
||||
struct wordent *lp = hp->Hlex.next;
|
||||
int argno = 0;
|
||||
|
||||
/*
|
||||
@@ -1307,7 +1307,7 @@ findev(cp, anyarg)
|
||||
|
||||
static void
|
||||
setexclp(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
if (cp && cp[0] == '\n')
|
||||
return;
|
||||
@@ -1325,7 +1325,7 @@ int
|
||||
readc(wanteof)
|
||||
bool wanteof;
|
||||
{
|
||||
register int c;
|
||||
int c;
|
||||
static sincereal;
|
||||
|
||||
aret = F_SEEK;
|
||||
@@ -1440,10 +1440,10 @@ reread:
|
||||
static int
|
||||
bgetc()
|
||||
{
|
||||
register int buf, off, c;
|
||||
int buf, off, c;
|
||||
|
||||
#ifdef FILEC
|
||||
register int numleft = 0, roomleft;
|
||||
int numleft = 0, roomleft;
|
||||
Char ttyline[BUFSIZ];
|
||||
#endif
|
||||
char tbuf[BUFSIZ + 1];
|
||||
@@ -1474,7 +1474,7 @@ bgetc()
|
||||
again:
|
||||
buf = (int) fseekp / BUFSIZ;
|
||||
if (buf >= fblocks) {
|
||||
register Char **nfbuf =
|
||||
Char **nfbuf =
|
||||
(Char **) xcalloc((size_t) (fblocks + 2),
|
||||
sizeof(Char **));
|
||||
|
||||
@@ -1505,7 +1505,7 @@ again:
|
||||
goto again;
|
||||
}
|
||||
if (c > 0)
|
||||
bcopy(ttyline, fbuf[buf] + off, c * sizeof(Char));
|
||||
memmove(fbuf[buf] + off, ttyline, c * sizeof(Char));
|
||||
numleft = 0;
|
||||
}
|
||||
else {
|
||||
@@ -1549,7 +1549,7 @@ again:
|
||||
static void
|
||||
bfree()
|
||||
{
|
||||
register int sb, i;
|
||||
int sb, i;
|
||||
|
||||
if (cantell)
|
||||
return;
|
||||
|
||||
+33
-33
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: misc.c,v 1.2 1994/09/24 02:54:10 davidg Exp $
|
||||
* $Id: misc.c,v 1.3 1996/09/28 14:32:01 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -53,8 +53,8 @@ static int renum __P((int, int));
|
||||
|
||||
int
|
||||
any(s, c)
|
||||
register char *s;
|
||||
register int c;
|
||||
char *s;
|
||||
int c;
|
||||
{
|
||||
if (!s)
|
||||
return (0); /* Check for nil pointer */
|
||||
@@ -77,10 +77,10 @@ setzero(cp, i)
|
||||
|
||||
char *
|
||||
strsave(s)
|
||||
register char *s;
|
||||
char *s;
|
||||
{
|
||||
char *n;
|
||||
register char *p;
|
||||
char *p;
|
||||
|
||||
if (s == NULL)
|
||||
s = "";
|
||||
@@ -94,7 +94,7 @@ strsave(s)
|
||||
|
||||
Char **
|
||||
blkend(up)
|
||||
register Char **up;
|
||||
Char **up;
|
||||
{
|
||||
|
||||
while (*up)
|
||||
@@ -106,7 +106,7 @@ blkend(up)
|
||||
void
|
||||
blkpr(fp, av)
|
||||
FILE *fp;
|
||||
register Char **av;
|
||||
Char **av;
|
||||
{
|
||||
|
||||
for (; *av; av++) {
|
||||
@@ -118,9 +118,9 @@ blkpr(fp, av)
|
||||
|
||||
int
|
||||
blklen(av)
|
||||
register Char **av;
|
||||
Char **av;
|
||||
{
|
||||
register int i = 0;
|
||||
int i = 0;
|
||||
|
||||
while (*av++)
|
||||
i++;
|
||||
@@ -130,9 +130,9 @@ blklen(av)
|
||||
Char **
|
||||
blkcpy(oav, bv)
|
||||
Char **oav;
|
||||
register Char **bv;
|
||||
Char **bv;
|
||||
{
|
||||
register Char **av = oav;
|
||||
Char **av = oav;
|
||||
|
||||
while ((*av++ = *bv++) != NULL)
|
||||
continue;
|
||||
@@ -152,7 +152,7 @@ void
|
||||
blkfree(av0)
|
||||
Char **av0;
|
||||
{
|
||||
register Char **av = av0;
|
||||
Char **av = av0;
|
||||
|
||||
if (!av0)
|
||||
return;
|
||||
@@ -163,9 +163,9 @@ blkfree(av0)
|
||||
|
||||
Char **
|
||||
saveblk(v)
|
||||
register Char **v;
|
||||
Char **v;
|
||||
{
|
||||
register Char **newv =
|
||||
Char **newv =
|
||||
(Char **) xcalloc((size_t) (blklen(v) + 1), sizeof(Char **));
|
||||
Char **onewv = newv;
|
||||
|
||||
@@ -177,11 +177,11 @@ saveblk(v)
|
||||
#ifdef NOTUSED
|
||||
char *
|
||||
strstr(s, t)
|
||||
register char *s, *t;
|
||||
char *s, *t;
|
||||
{
|
||||
do {
|
||||
register char *ss = s;
|
||||
register char *tt = t;
|
||||
char *ss = s;
|
||||
char *tt = t;
|
||||
|
||||
do
|
||||
if (*tt == '\0')
|
||||
@@ -199,7 +199,7 @@ strspl(cp, dp)
|
||||
char *cp, *dp;
|
||||
{
|
||||
char *ep;
|
||||
register char *p, *q;
|
||||
char *p, *q;
|
||||
|
||||
if (!cp)
|
||||
cp = "";
|
||||
@@ -221,9 +221,9 @@ strspl(cp, dp)
|
||||
|
||||
Char **
|
||||
blkspl(up, vp)
|
||||
register Char **up, **vp;
|
||||
Char **up, **vp;
|
||||
{
|
||||
register Char **wp =
|
||||
Char **wp =
|
||||
(Char **) xcalloc((size_t) (blklen(up) + blklen(vp) + 1),
|
||||
sizeof(Char **));
|
||||
|
||||
@@ -233,7 +233,7 @@ blkspl(up, vp)
|
||||
|
||||
Char
|
||||
lastchr(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
|
||||
if (!cp)
|
||||
@@ -252,7 +252,7 @@ lastchr(cp)
|
||||
void
|
||||
closem()
|
||||
{
|
||||
register int f, flimit;
|
||||
int f, flimit;
|
||||
|
||||
for (f = 0, flimit = getdtablesize(); f < flimit; f++)
|
||||
if (f != SHIN && f != SHOUT && f != SHERR && f != OLDSTD &&
|
||||
@@ -277,7 +277,7 @@ donefds()
|
||||
*/
|
||||
int
|
||||
dmove(i, j)
|
||||
register int i, j;
|
||||
int i, j;
|
||||
{
|
||||
|
||||
if (i == j || i < 0)
|
||||
@@ -296,7 +296,7 @@ dmove(i, j)
|
||||
|
||||
int
|
||||
dcopy(i, j)
|
||||
register int i, j;
|
||||
int i, j;
|
||||
{
|
||||
|
||||
if (i == j || i < 0 || (j < 0 && i > 2))
|
||||
@@ -311,9 +311,9 @@ dcopy(i, j)
|
||||
|
||||
static int
|
||||
renum(i, j)
|
||||
register int i, j;
|
||||
int i, j;
|
||||
{
|
||||
register int k = dup(i);
|
||||
int k = dup(i);
|
||||
|
||||
if (k < 0)
|
||||
return (-1);
|
||||
@@ -334,10 +334,10 @@ renum(i, j)
|
||||
*/
|
||||
void
|
||||
lshift(v, c)
|
||||
register Char **v;
|
||||
register int c;
|
||||
Char **v;
|
||||
int c;
|
||||
{
|
||||
register Char **u;
|
||||
Char **u;
|
||||
|
||||
for (u = v; *u && --c >= 0; u++)
|
||||
xfree((ptr_t) *u);
|
||||
@@ -363,7 +363,7 @@ number(cp)
|
||||
|
||||
Char **
|
||||
copyblk(v)
|
||||
register Char **v;
|
||||
Char **v;
|
||||
{
|
||||
Char **nv = (Char **) xcalloc((size_t) (blklen(v) + 1), sizeof(Char **));
|
||||
|
||||
@@ -373,7 +373,7 @@ copyblk(v)
|
||||
#ifndef SHORT_STRINGS
|
||||
char *
|
||||
strend(cp)
|
||||
register char *cp;
|
||||
char *cp;
|
||||
{
|
||||
if (!cp)
|
||||
return (cp);
|
||||
@@ -388,7 +388,7 @@ Char *
|
||||
strip(cp)
|
||||
Char *cp;
|
||||
{
|
||||
register Char *dp = cp;
|
||||
Char *dp = cp;
|
||||
|
||||
if (!cp)
|
||||
return (cp);
|
||||
@@ -408,7 +408,7 @@ udvar(name)
|
||||
|
||||
int
|
||||
prefix(sub, str)
|
||||
register Char *sub, *str;
|
||||
Char *sub, *str;
|
||||
{
|
||||
|
||||
for (;;) {
|
||||
|
||||
+30
-30
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: parse.c,v 1.2 1994/09/24 02:54:11 davidg Exp $
|
||||
* $Id: parse.c,v 1.3 1995/05/30 00:06:37 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -79,7 +79,7 @@ static int aleft;
|
||||
extern int hleft;
|
||||
void
|
||||
alias(lex)
|
||||
register struct wordent *lex;
|
||||
struct wordent *lex;
|
||||
{
|
||||
jmp_buf osetexit;
|
||||
|
||||
@@ -99,7 +99,7 @@ alias(lex)
|
||||
|
||||
static void
|
||||
asyntax(p1, p2)
|
||||
register struct wordent *p1, *p2;
|
||||
struct wordent *p1, *p2;
|
||||
{
|
||||
while (p1 != p2)
|
||||
if (any(";&\n", p1->word[0]))
|
||||
@@ -113,10 +113,10 @@ asyntax(p1, p2)
|
||||
static void
|
||||
asyn0(p1, p2)
|
||||
struct wordent *p1;
|
||||
register struct wordent *p2;
|
||||
struct wordent *p2;
|
||||
{
|
||||
register struct wordent *p;
|
||||
register int l = 0;
|
||||
struct wordent *p;
|
||||
int l = 0;
|
||||
|
||||
for (p = p1; p != p2; p = p->next)
|
||||
switch (p->word[0]) {
|
||||
@@ -153,11 +153,11 @@ asyn0(p1, p2)
|
||||
static void
|
||||
asyn3(p1, p2)
|
||||
struct wordent *p1;
|
||||
register struct wordent *p2;
|
||||
struct wordent *p2;
|
||||
{
|
||||
register struct varent *ap;
|
||||
struct varent *ap;
|
||||
struct wordent alout;
|
||||
register bool redid;
|
||||
bool redid;
|
||||
|
||||
if (p1 == p2)
|
||||
return;
|
||||
@@ -203,9 +203,9 @@ asyn3(p1, p2)
|
||||
|
||||
static struct wordent *
|
||||
freenod(p1, p2)
|
||||
register struct wordent *p1, *p2;
|
||||
struct wordent *p1, *p2;
|
||||
{
|
||||
register struct wordent *retp = p1->prev;
|
||||
struct wordent *retp = p1->prev;
|
||||
|
||||
while (p1 != p2) {
|
||||
xfree((ptr_t) p1->word);
|
||||
@@ -229,7 +229,7 @@ freenod(p1, p2)
|
||||
*/
|
||||
struct command *
|
||||
syntax(p1, p2, flags)
|
||||
register struct wordent *p1, *p2;
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
|
||||
@@ -251,8 +251,8 @@ syn0(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p;
|
||||
register struct command *t, *t1;
|
||||
struct wordent *p;
|
||||
struct command *t, *t1;
|
||||
int l;
|
||||
|
||||
l = 0;
|
||||
@@ -319,8 +319,8 @@ syn1(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p;
|
||||
register struct command *t;
|
||||
struct wordent *p;
|
||||
struct command *t;
|
||||
int l;
|
||||
|
||||
l = 0;
|
||||
@@ -360,9 +360,9 @@ syn1a(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p;
|
||||
register struct command *t;
|
||||
register int l = 0;
|
||||
struct wordent *p;
|
||||
struct command *t;
|
||||
int l = 0;
|
||||
|
||||
for (p = p1; p != p2; p = p->next)
|
||||
switch (p->word[0]) {
|
||||
@@ -401,9 +401,9 @@ syn1b(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p;
|
||||
register struct command *t;
|
||||
register int l = 0;
|
||||
struct wordent *p;
|
||||
struct command *t;
|
||||
int l = 0;
|
||||
|
||||
for (p = p1; p != p2; p = p->next)
|
||||
switch (p->word[0]) {
|
||||
@@ -441,9 +441,9 @@ syn2(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p, *pn;
|
||||
register struct command *t;
|
||||
register int l = 0;
|
||||
struct wordent *p, *pn;
|
||||
struct command *t;
|
||||
int l = 0;
|
||||
int f;
|
||||
|
||||
for (p = p1; p != p2; p = p->next)
|
||||
@@ -492,10 +492,10 @@ syn3(p1, p2, flags)
|
||||
struct wordent *p1, *p2;
|
||||
int flags;
|
||||
{
|
||||
register struct wordent *p;
|
||||
struct wordent *p;
|
||||
struct wordent *lp, *rp;
|
||||
register struct command *t;
|
||||
register int l;
|
||||
struct command *t;
|
||||
int l;
|
||||
Char **av;
|
||||
int n, c;
|
||||
bool specp = 0;
|
||||
@@ -668,9 +668,9 @@ again:
|
||||
|
||||
void
|
||||
freesyn(t)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
{
|
||||
register Char **v;
|
||||
Char **v;
|
||||
|
||||
if (t == 0)
|
||||
return;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*-
|
||||
* Copyright (c) 1988, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* $Id: pathnames.h,v 1.2 1994/09/24 02:54:12 davidg Exp $
|
||||
*/
|
||||
|
||||
#define _PATH_BIN "/bin"
|
||||
|
||||
+55
-53
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: proc.c,v 1.2.8.2 1998/01/31 17:06:15 joerg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -82,10 +82,11 @@ void
|
||||
pchild(notused)
|
||||
int notused;
|
||||
{
|
||||
register struct process *pp;
|
||||
register struct process *fp;
|
||||
register int pid;
|
||||
struct process *pp;
|
||||
struct process *fp;
|
||||
int pid;
|
||||
extern int insource;
|
||||
int save_errno = errno;
|
||||
union wait w;
|
||||
int jobflags;
|
||||
struct rusage ru;
|
||||
@@ -101,6 +102,7 @@ loop:
|
||||
goto loop;
|
||||
}
|
||||
pnoprocesses = pid == -1;
|
||||
errno = save_errno;
|
||||
return;
|
||||
}
|
||||
for (pp = proclist.p_next; pp != NULL; pp = pp->p_next)
|
||||
@@ -201,9 +203,9 @@ found:
|
||||
void
|
||||
pnote()
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
int flags;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
|
||||
neednote = 0;
|
||||
for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) {
|
||||
@@ -225,8 +227,8 @@ pnote()
|
||||
void
|
||||
pwait()
|
||||
{
|
||||
register struct process *fp, *pp;
|
||||
sigset_t omask;
|
||||
struct process *fp, *pp;
|
||||
int omask;
|
||||
|
||||
/*
|
||||
* Here's where dead procs get flushed.
|
||||
@@ -253,11 +255,11 @@ pwait()
|
||||
*/
|
||||
void
|
||||
pjwait(pp)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
{
|
||||
register struct process *fp;
|
||||
struct process *fp;
|
||||
int jobflags, reason;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
|
||||
while (pp->p_pid != pp->p_jobid)
|
||||
pp = pp->p_friends;
|
||||
@@ -345,8 +347,8 @@ dowait(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
sigset_t omask;
|
||||
struct process *pp;
|
||||
int omask;
|
||||
|
||||
pjobs++;
|
||||
omask = sigblock(sigmask(SIGCHLD));
|
||||
@@ -354,7 +356,7 @@ loop:
|
||||
for (pp = proclist.p_next; pp; pp = pp->p_next)
|
||||
if (pp->p_pid && /* pp->p_pid == pp->p_jobid && */
|
||||
pp->p_flags & PRUNNING) {
|
||||
(void) sigpause((sigset_t) 0);
|
||||
(void) sigpause(0);
|
||||
goto loop;
|
||||
}
|
||||
(void) sigsetmask(omask);
|
||||
@@ -367,7 +369,7 @@ loop:
|
||||
static void
|
||||
pflushall()
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
for (pp = proclist.p_next; pp != NULL; pp = pp->p_next)
|
||||
if (pp->p_pid)
|
||||
@@ -381,10 +383,10 @@ pflushall()
|
||||
*/
|
||||
static void
|
||||
pflush(pp)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
{
|
||||
register struct process *np;
|
||||
register int idx;
|
||||
struct process *np;
|
||||
int idx;
|
||||
|
||||
if (pp->p_pid == 0) {
|
||||
(void) fprintf(csherr, "BUG: process flushed twice");
|
||||
@@ -415,7 +417,7 @@ pflush(pp)
|
||||
*/
|
||||
static void
|
||||
pclrcurr(pp)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
{
|
||||
|
||||
if (pp == pcurrent)
|
||||
@@ -443,9 +445,9 @@ static Char *cmdp;
|
||||
void
|
||||
palloc(pid, t)
|
||||
int pid;
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
int i;
|
||||
|
||||
pp = (struct process *) xcalloc(1, (size_t) sizeof(struct process));
|
||||
@@ -509,7 +511,7 @@ palloc(pid, t)
|
||||
|
||||
static void
|
||||
padd(t)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
{
|
||||
Char **argp;
|
||||
|
||||
@@ -570,7 +572,7 @@ static void
|
||||
pads(cp)
|
||||
Char *cp;
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* Avoid the Quoted Space alias hack! Reported by:
|
||||
@@ -626,7 +628,7 @@ prestjob()
|
||||
void
|
||||
pendjob()
|
||||
{
|
||||
register struct process *pp, *tp;
|
||||
struct process *pp, *tp;
|
||||
|
||||
if (pcurrjob && (pcurrjob->p_flags & (PFOREGND | PSTOPPED)) == 0) {
|
||||
pp = pcurrjob;
|
||||
@@ -648,10 +650,10 @@ pendjob()
|
||||
*/
|
||||
static int
|
||||
pprint(pp, flag)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
bool flag;
|
||||
{
|
||||
register status, reason;
|
||||
int status, reason;
|
||||
struct process *tp;
|
||||
int jobflags, pstatus;
|
||||
bool hadnl = 1; /* did we just have a newline */
|
||||
@@ -814,13 +816,13 @@ prcomd:
|
||||
|
||||
static void
|
||||
ptprint(tp)
|
||||
register struct process *tp;
|
||||
struct process *tp;
|
||||
{
|
||||
struct timeval tetime, diff;
|
||||
static struct timeval ztime;
|
||||
struct rusage ru;
|
||||
static struct rusage zru;
|
||||
register struct process *pp = tp;
|
||||
struct process *pp = tp;
|
||||
|
||||
ru = zru;
|
||||
tetime = ztime;
|
||||
@@ -842,8 +844,8 @@ dojobs(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
register int flag = NUMBER | NAME | REASON;
|
||||
struct process *pp;
|
||||
int flag = NUMBER | NAME | REASON;
|
||||
int i;
|
||||
|
||||
if (chkstop)
|
||||
@@ -872,7 +874,7 @@ dofg(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
okpcntl();
|
||||
++v;
|
||||
@@ -892,7 +894,7 @@ dofg1(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
okpcntl();
|
||||
pp = pfind(v[0]);
|
||||
@@ -909,7 +911,7 @@ dobg(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
okpcntl();
|
||||
++v;
|
||||
@@ -928,7 +930,7 @@ dobg1(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
pp = pfind(v[0]);
|
||||
pstart(pp, 0);
|
||||
@@ -955,8 +957,8 @@ dokill(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register int signum = SIGTERM;
|
||||
register char *name;
|
||||
int signum = SIGTERM;
|
||||
char *name;
|
||||
|
||||
v++;
|
||||
if (v[0] && v[0][0] == '-') {
|
||||
@@ -998,10 +1000,10 @@ pkill(v, signum)
|
||||
Char **v;
|
||||
int signum;
|
||||
{
|
||||
register struct process *pp, *np;
|
||||
register int jobflags = 0;
|
||||
struct process *pp, *np;
|
||||
int jobflags = 0;
|
||||
int pid, err1 = 0;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
Char *cp;
|
||||
|
||||
omask = sigmask(SIGCHLD);
|
||||
@@ -1081,11 +1083,11 @@ cont:
|
||||
*/
|
||||
void
|
||||
pstart(pp, foregnd)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
int foregnd;
|
||||
{
|
||||
register struct process *np;
|
||||
sigset_t omask;
|
||||
struct process *np;
|
||||
int omask;
|
||||
long jobflags = 0;
|
||||
|
||||
omask = sigblock(sigmask(SIGCHLD));
|
||||
@@ -1115,7 +1117,7 @@ void
|
||||
panystop(neednl)
|
||||
bool neednl;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
chkstop = 2;
|
||||
for (pp = proclist.p_next; pp; pp = pp->p_next)
|
||||
@@ -1127,7 +1129,7 @@ struct process *
|
||||
pfind(cp)
|
||||
Char *cp;
|
||||
{
|
||||
register struct process *pp, *np;
|
||||
struct process *pp, *np;
|
||||
|
||||
if (cp == 0 || cp[1] == 0 || eq(cp, STRcent2) || eq(cp, STRcentplus)) {
|
||||
if (pcurrent == NULL)
|
||||
@@ -1151,7 +1153,7 @@ pfind(cp)
|
||||
for (pp = proclist.p_next; pp; pp = pp->p_next)
|
||||
if (pp->p_pid == pp->p_jobid) {
|
||||
if (cp[1] == '?') {
|
||||
register Char *dp;
|
||||
Char *dp;
|
||||
|
||||
for (dp = pp->p_command; *dp; dp++) {
|
||||
if (*dp != cp[2])
|
||||
@@ -1169,7 +1171,7 @@ pfind(cp)
|
||||
}
|
||||
if (np)
|
||||
return (np);
|
||||
stderror(ERR_NAME | cp[1] == '?' ? ERR_JOBPAT : ERR_NOSUCHJOB);
|
||||
stderror(ERR_NAME | (cp[1] == '?' ? ERR_JOBPAT : ERR_NOSUCHJOB));
|
||||
/* NOTREACHED */
|
||||
return (0);
|
||||
}
|
||||
@@ -1180,10 +1182,10 @@ pfind(cp)
|
||||
*/
|
||||
static struct process *
|
||||
pgetcurr(pp)
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
{
|
||||
register struct process *np;
|
||||
register struct process *xp = NULL;
|
||||
struct process *np;
|
||||
struct process *xp = NULL;
|
||||
|
||||
for (np = proclist.p_next; np; np = np->p_next)
|
||||
if (np != pcurrent && np != pp && np->p_pid &&
|
||||
@@ -1205,7 +1207,7 @@ donotify(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct process *pp;
|
||||
struct process *pp;
|
||||
|
||||
pp = pfind(*++v);
|
||||
pp->p_flags |= PNOTIFY;
|
||||
@@ -1228,10 +1230,10 @@ pfork(t, wanttty)
|
||||
struct command *t; /* command we are forking for */
|
||||
int wanttty;
|
||||
{
|
||||
register int pid;
|
||||
int pid;
|
||||
bool ignint = 0;
|
||||
int pgrp;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
|
||||
/*
|
||||
* A child will be uninterruptible only under very special conditions.
|
||||
@@ -1328,7 +1330,7 @@ void
|
||||
pgetty(wanttty, pgrp)
|
||||
int wanttty, pgrp;
|
||||
{
|
||||
sigset_t omask = 0;
|
||||
int omask = 0;
|
||||
|
||||
/*
|
||||
* christos: I am blocking the tty signals till I've set things
|
||||
|
||||
+13
-13
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sem.c,v 1.2 1994/09/24 02:54:15 davidg Exp $
|
||||
* $Id: sem.c,v 1.3.6.1 1997/08/24 21:41:38 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -62,7 +62,7 @@ static void chkclob __P((char *));
|
||||
|
||||
void
|
||||
execute(t, wanttty, pipein, pipeout)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
int wanttty, *pipein, *pipeout;
|
||||
{
|
||||
bool forked = 0;
|
||||
@@ -70,9 +70,9 @@ execute(t, wanttty, pipein, pipeout)
|
||||
int pid = 0;
|
||||
int pv[2];
|
||||
|
||||
static sigset_t csigmask;
|
||||
static int csigmask;
|
||||
|
||||
static sigset_t ocsigmask;
|
||||
static int ocsigmask;
|
||||
static int onosigchld = 0;
|
||||
static int nosigchld = 0;
|
||||
|
||||
@@ -226,7 +226,7 @@ execute(t, wanttty, pipein, pipeout)
|
||||
else {
|
||||
int ochild, osetintr, ohaderr, odidfds;
|
||||
int oSHIN, oSHOUT, oSHERR, oOLDSTD, otpgrp;
|
||||
sigset_t omask;
|
||||
int omask;
|
||||
|
||||
/*
|
||||
* Prepare for the vfork by saving everything that the child
|
||||
@@ -451,7 +451,7 @@ static void
|
||||
vffree(i)
|
||||
int i;
|
||||
{
|
||||
register Char **v;
|
||||
Char **v;
|
||||
|
||||
if ((v = gargv) != NULL) {
|
||||
gargv = 0;
|
||||
@@ -481,7 +481,7 @@ int i;
|
||||
*/
|
||||
static Char *
|
||||
splicepipe(t, cp)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
Char *cp; /* word after < or > */
|
||||
{
|
||||
Char *blk[2];
|
||||
@@ -524,12 +524,12 @@ splicepipe(t, cp)
|
||||
*/
|
||||
static void
|
||||
doio(t, pipein, pipeout)
|
||||
register struct command *t;
|
||||
struct command *t;
|
||||
int *pipein, *pipeout;
|
||||
{
|
||||
register int fd;
|
||||
register Char *cp;
|
||||
register int flags = t->t_dflg;
|
||||
int fd;
|
||||
Char *cp;
|
||||
int flags = t->t_dflg;
|
||||
|
||||
if (didfds || (flags & F_REPEAT))
|
||||
return;
|
||||
@@ -620,7 +620,7 @@ doio(t, pipein, pipeout)
|
||||
|
||||
void
|
||||
mypipe(pv)
|
||||
register int *pv;
|
||||
int *pv;
|
||||
{
|
||||
|
||||
if (pipe(pv) < 0)
|
||||
@@ -635,7 +635,7 @@ oops:
|
||||
|
||||
static void
|
||||
chkclob(cp)
|
||||
register char *cp;
|
||||
char *cp;
|
||||
{
|
||||
struct stat stb;
|
||||
|
||||
|
||||
+48
-47
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: set.c,v 1.3 1995/05/30 00:06:38 rgrimes Exp $
|
||||
* $Id: set.c,v 1.4.2.1 1997/08/24 21:41:38 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -47,6 +47,7 @@ static char sccsid[] = "@(#)set.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
# include <varargs.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
#include "csh.h"
|
||||
#include "extern.h"
|
||||
@@ -75,7 +76,7 @@ doset(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
Char *vp, op;
|
||||
Char **vecp;
|
||||
bool hadsub;
|
||||
@@ -116,7 +117,7 @@ doset(v, t)
|
||||
if (op && op != '=')
|
||||
stderror(ERR_NAME | ERR_SYNTAX);
|
||||
if (eq(p, STRLparen)) {
|
||||
register Char **e = v;
|
||||
Char **e = v;
|
||||
|
||||
if (hadsub)
|
||||
stderror(ERR_NAME | ERR_SYNTAX);
|
||||
@@ -143,7 +144,7 @@ doset(v, t)
|
||||
dohash(NULL, NULL);
|
||||
}
|
||||
else if (eq(vp, STRhistchars)) {
|
||||
register Char *pn = value(STRhistchars);
|
||||
Char *pn = value(STRhistchars);
|
||||
|
||||
HIST = *pn++;
|
||||
HISTSUB = *pn;
|
||||
@@ -158,7 +159,7 @@ doset(v, t)
|
||||
else if (eq(vp, STRterm))
|
||||
Setenv(STRTERM, value(vp));
|
||||
else if (eq(vp, STRhome)) {
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
|
||||
cp = Strsave(value(vp)); /* get the old value back */
|
||||
|
||||
@@ -184,8 +185,8 @@ doset(v, t)
|
||||
|
||||
static Char *
|
||||
getinx(cp, ip)
|
||||
register Char *cp;
|
||||
register int *ip;
|
||||
Char *cp;
|
||||
int *ip;
|
||||
{
|
||||
|
||||
*ip = 0;
|
||||
@@ -203,7 +204,7 @@ asx(vp, subscr, p)
|
||||
int subscr;
|
||||
Char *p;
|
||||
{
|
||||
register struct varent *v = getvx(vp, subscr);
|
||||
struct varent *v = getvx(vp, subscr);
|
||||
|
||||
xfree((ptr_t) v->vec[subscr - 1]);
|
||||
v->vec[subscr - 1] = globone(p, G_APPEND);
|
||||
@@ -214,7 +215,7 @@ getvx(vp, subscr)
|
||||
Char *vp;
|
||||
int subscr;
|
||||
{
|
||||
register struct varent *v = adrof(vp);
|
||||
struct varent *v = adrof(vp);
|
||||
|
||||
if (v == 0)
|
||||
udvar(vp);
|
||||
@@ -229,7 +230,7 @@ dolet(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *p;
|
||||
Char *p;
|
||||
Char *vp, c, op;
|
||||
bool hadsub;
|
||||
int subscr;
|
||||
@@ -314,7 +315,7 @@ static Char *
|
||||
xset(cp, vp)
|
||||
Char *cp, ***vp;
|
||||
{
|
||||
register Char *dp;
|
||||
Char *dp;
|
||||
|
||||
if (*cp) {
|
||||
dp = Strsave(cp);
|
||||
@@ -332,9 +333,9 @@ operate(op, vp, p)
|
||||
{
|
||||
Char opr[2];
|
||||
Char *vec[5];
|
||||
register Char **v = vec;
|
||||
Char **v = vec;
|
||||
Char **vecp = v;
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
if (op != '=') {
|
||||
if (*vp)
|
||||
@@ -357,7 +358,7 @@ static Char *putp;
|
||||
|
||||
Char *
|
||||
putn(n)
|
||||
register int n;
|
||||
int n;
|
||||
{
|
||||
int num;
|
||||
static Char number[15];
|
||||
@@ -390,7 +391,7 @@ putn(n)
|
||||
|
||||
static void
|
||||
putn1(n)
|
||||
register int n;
|
||||
int n;
|
||||
{
|
||||
if (n > 9)
|
||||
putn1(n / 10);
|
||||
@@ -399,9 +400,9 @@ putn1(n)
|
||||
|
||||
int
|
||||
getn(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
register int n;
|
||||
int n;
|
||||
int sign;
|
||||
|
||||
sign = 0;
|
||||
@@ -426,7 +427,7 @@ value1(var, head)
|
||||
Char *var;
|
||||
struct varent *head;
|
||||
{
|
||||
register struct varent *vp;
|
||||
struct varent *vp;
|
||||
|
||||
vp = adrof1(var, head);
|
||||
return (vp == 0 || vp->vec[0] == 0 ? STRNULL : vp->vec[0]);
|
||||
@@ -435,9 +436,9 @@ value1(var, head)
|
||||
static struct varent *
|
||||
madrof(pat, vp)
|
||||
Char *pat;
|
||||
register struct varent *vp;
|
||||
struct varent *vp;
|
||||
{
|
||||
register struct varent *vp1;
|
||||
struct varent *vp1;
|
||||
|
||||
for (; vp; vp = vp->v_right) {
|
||||
if (vp->v_left && (vp1 = madrof(pat, vp->v_left)))
|
||||
@@ -450,10 +451,10 @@ madrof(pat, vp)
|
||||
|
||||
struct varent *
|
||||
adrof1(name, v)
|
||||
register Char *name;
|
||||
register struct varent *v;
|
||||
Char *name;
|
||||
struct varent *v;
|
||||
{
|
||||
register cmp;
|
||||
int cmp;
|
||||
|
||||
v = v->v_left;
|
||||
while (v && ((cmp = *name - *v->v_name) ||
|
||||
@@ -472,7 +473,7 @@ void
|
||||
set(var, val)
|
||||
Char *var, *val;
|
||||
{
|
||||
register Char **vec = (Char **) xmalloc((size_t) (2 * sizeof(Char **)));
|
||||
Char **vec = (Char **) xmalloc((size_t) (2 * sizeof(Char **)));
|
||||
|
||||
vec[0] = val;
|
||||
vec[1] = 0;
|
||||
@@ -484,7 +485,7 @@ set1(var, vec, head)
|
||||
Char *var, **vec;
|
||||
struct varent *head;
|
||||
{
|
||||
register Char **oldv = vec;
|
||||
Char **oldv = vec;
|
||||
|
||||
gflag = 0;
|
||||
tglob(oldv);
|
||||
@@ -505,10 +506,10 @@ set1(var, vec, head)
|
||||
void
|
||||
setq(name, vec, p)
|
||||
Char *name, **vec;
|
||||
register struct varent *p;
|
||||
struct varent *p;
|
||||
{
|
||||
register struct varent *c;
|
||||
register f;
|
||||
struct varent *c;
|
||||
int f;
|
||||
|
||||
f = 0; /* tree hangs off the header's left link */
|
||||
while ((c = p->v_link[f]) != NULL) {
|
||||
@@ -551,11 +552,11 @@ unset(v, t)
|
||||
|
||||
void
|
||||
unset1(v, head)
|
||||
register Char *v[];
|
||||
Char *v[];
|
||||
struct varent *head;
|
||||
{
|
||||
register struct varent *vp;
|
||||
register int cnt;
|
||||
struct varent *vp;
|
||||
int cnt;
|
||||
|
||||
while (*++v) {
|
||||
cnt = 0;
|
||||
@@ -570,7 +571,7 @@ void
|
||||
unsetv(var)
|
||||
Char *var;
|
||||
{
|
||||
register struct varent *vp;
|
||||
struct varent *vp;
|
||||
|
||||
if ((vp = adrof1(var, &shvhed)) == 0)
|
||||
udvar(var);
|
||||
@@ -579,10 +580,10 @@ unsetv(var)
|
||||
|
||||
static void
|
||||
unsetv1(p)
|
||||
register struct varent *p;
|
||||
struct varent *p;
|
||||
{
|
||||
register struct varent *c, *pp;
|
||||
register f;
|
||||
struct varent *c, *pp;
|
||||
int f;
|
||||
|
||||
/*
|
||||
* Free associated memory first to avoid complications.
|
||||
@@ -633,8 +634,8 @@ shift(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register struct varent *argv;
|
||||
register Char *name;
|
||||
struct varent *argv;
|
||||
Char *name;
|
||||
|
||||
v++;
|
||||
name = *v;
|
||||
@@ -665,7 +666,7 @@ exportpath(val)
|
||||
break;
|
||||
}
|
||||
if (**val != '/' && (euid == 0 || uid == 0) &&
|
||||
(intact || intty && isatty(SHOUT)))
|
||||
(intact || (intty && isatty(SHOUT))))
|
||||
(void) fprintf(csherr,
|
||||
"Warning: exported path contains relative components.\n");
|
||||
(void) Strcat(exppath, *val++);
|
||||
@@ -717,16 +718,16 @@ rright(p)
|
||||
*/
|
||||
static void
|
||||
balance(p, f, d)
|
||||
register struct varent *p;
|
||||
register int f, d;
|
||||
struct varent *p;
|
||||
int f, d;
|
||||
{
|
||||
register struct varent *pp;
|
||||
struct varent *pp;
|
||||
|
||||
#ifndef lint
|
||||
register struct varent *t; /* used by the rotate macros */
|
||||
struct varent *t; /* used by the rotate macros */
|
||||
|
||||
#endif
|
||||
register ff;
|
||||
int ff;
|
||||
|
||||
/*
|
||||
* Ok, from here on, p is the node we're operating on; pp is it's parent; f
|
||||
@@ -812,13 +813,13 @@ balance(p, f, d)
|
||||
|
||||
void
|
||||
plist(p)
|
||||
register struct varent *p;
|
||||
struct varent *p;
|
||||
{
|
||||
register struct varent *c;
|
||||
register len;
|
||||
struct varent *c;
|
||||
int len;
|
||||
|
||||
if (setintr)
|
||||
(void) sigsetmask(sigblock((sigset_t) 0) & ~sigmask(SIGINT));
|
||||
(void) sigsetmask(sigblock(0) & ~sigmask(SIGINT));
|
||||
|
||||
for (;;) {
|
||||
while (p->v_left)
|
||||
|
||||
+36
-36
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: str.c,v 1.2 1994/09/24 02:54:18 davidg Exp $
|
||||
* $Id: str.c,v 1.3 1995/05/30 00:06:39 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -59,10 +59,10 @@ static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 5/31/93";
|
||||
|
||||
Char **
|
||||
blk2short(src)
|
||||
register char **src;
|
||||
char **src;
|
||||
{
|
||||
size_t n;
|
||||
register Char **sdst, **dst;
|
||||
Char **sdst, **dst;
|
||||
|
||||
/*
|
||||
* Count
|
||||
@@ -79,10 +79,10 @@ blk2short(src)
|
||||
|
||||
char **
|
||||
short2blk(src)
|
||||
register Char **src;
|
||||
Char **src;
|
||||
{
|
||||
size_t n;
|
||||
register char **sdst, **dst;
|
||||
char **sdst, **dst;
|
||||
|
||||
/*
|
||||
* Count
|
||||
@@ -99,11 +99,11 @@ short2blk(src)
|
||||
|
||||
Char *
|
||||
str2short(src)
|
||||
register char *src;
|
||||
char *src;
|
||||
{
|
||||
static Char *sdst;
|
||||
static size_t dstsize = 0;
|
||||
register Char *dst, *edst;
|
||||
Char *dst, *edst;
|
||||
|
||||
if (src == NULL)
|
||||
return (NULL);
|
||||
@@ -131,11 +131,11 @@ str2short(src)
|
||||
|
||||
char *
|
||||
short2str(src)
|
||||
register Char *src;
|
||||
Char *src;
|
||||
{
|
||||
static char *sdst = NULL;
|
||||
static size_t dstsize = 0;
|
||||
register char *dst, *edst;
|
||||
char *dst, *edst;
|
||||
|
||||
if (src == NULL)
|
||||
return (NULL);
|
||||
@@ -162,9 +162,9 @@ short2str(src)
|
||||
|
||||
Char *
|
||||
s_strcpy(dst, src)
|
||||
register Char *dst, *src;
|
||||
Char *dst, *src;
|
||||
{
|
||||
register Char *sdst;
|
||||
Char *sdst;
|
||||
|
||||
sdst = dst;
|
||||
while ((*dst++ = *src++) != '\0')
|
||||
@@ -174,10 +174,10 @@ s_strcpy(dst, src)
|
||||
|
||||
Char *
|
||||
s_strncpy(dst, src, n)
|
||||
register Char *dst, *src;
|
||||
register size_t n;
|
||||
Char *dst, *src;
|
||||
size_t n;
|
||||
{
|
||||
register Char *sdst;
|
||||
Char *sdst;
|
||||
|
||||
if (n == 0)
|
||||
return(dst);
|
||||
@@ -195,9 +195,9 @@ s_strncpy(dst, src, n)
|
||||
|
||||
Char *
|
||||
s_strcat(dst, src)
|
||||
register Char *dst, *src;
|
||||
Char *dst, *src;
|
||||
{
|
||||
register short *sdst;
|
||||
short *sdst;
|
||||
|
||||
sdst = dst;
|
||||
while (*dst++)
|
||||
@@ -211,10 +211,10 @@ s_strcat(dst, src)
|
||||
#ifdef NOTUSED
|
||||
Char *
|
||||
s_strncat(dst, src, n)
|
||||
register Char *dst, *src;
|
||||
register size_t n;
|
||||
Char *dst, *src;
|
||||
size_t n;
|
||||
{
|
||||
register Char *sdst;
|
||||
Char *sdst;
|
||||
|
||||
if (n == 0)
|
||||
return (dst);
|
||||
@@ -239,7 +239,7 @@ s_strncat(dst, src, n)
|
||||
|
||||
Char *
|
||||
s_strchr(str, ch)
|
||||
register Char *str;
|
||||
Char *str;
|
||||
int ch;
|
||||
{
|
||||
do
|
||||
@@ -251,10 +251,10 @@ s_strchr(str, ch)
|
||||
|
||||
Char *
|
||||
s_strrchr(str, ch)
|
||||
register Char *str;
|
||||
Char *str;
|
||||
int ch;
|
||||
{
|
||||
register Char *rstr;
|
||||
Char *rstr;
|
||||
|
||||
rstr = NULL;
|
||||
do
|
||||
@@ -266,9 +266,9 @@ s_strrchr(str, ch)
|
||||
|
||||
size_t
|
||||
s_strlen(str)
|
||||
register Char *str;
|
||||
Char *str;
|
||||
{
|
||||
register size_t n;
|
||||
size_t n;
|
||||
|
||||
for (n = 0; *str++; n++)
|
||||
continue;
|
||||
@@ -277,7 +277,7 @@ s_strlen(str)
|
||||
|
||||
int
|
||||
s_strcmp(str1, str2)
|
||||
register Char *str1, *str2;
|
||||
Char *str1, *str2;
|
||||
{
|
||||
for (; *str1 && *str1 == *str2; str1++, str2++)
|
||||
continue;
|
||||
@@ -298,8 +298,8 @@ s_strcmp(str1, str2)
|
||||
|
||||
int
|
||||
s_strncmp(str1, str2, n)
|
||||
register Char *str1, *str2;
|
||||
register size_t n;
|
||||
Char *str1, *str2;
|
||||
size_t n;
|
||||
{
|
||||
if (n == 0)
|
||||
return (0);
|
||||
@@ -327,10 +327,10 @@ s_strncmp(str1, str2, n)
|
||||
|
||||
Char *
|
||||
s_strsave(s)
|
||||
register Char *s;
|
||||
Char *s;
|
||||
{
|
||||
Char *n;
|
||||
register Char *p;
|
||||
Char *p;
|
||||
|
||||
if (s == 0)
|
||||
s = STRNULL;
|
||||
@@ -347,7 +347,7 @@ s_strspl(cp, dp)
|
||||
Char *cp, *dp;
|
||||
{
|
||||
Char *ep;
|
||||
register Char *p, *q;
|
||||
Char *p, *q;
|
||||
|
||||
if (!cp)
|
||||
cp = STRNULL;
|
||||
@@ -368,7 +368,7 @@ s_strspl(cp, dp)
|
||||
|
||||
Char *
|
||||
s_strend(cp)
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
{
|
||||
if (!cp)
|
||||
return (cp);
|
||||
@@ -379,11 +379,11 @@ s_strend(cp)
|
||||
|
||||
Char *
|
||||
s_strstr(s, t)
|
||||
register Char *s, *t;
|
||||
Char *s, *t;
|
||||
{
|
||||
do {
|
||||
register Char *ss = s;
|
||||
register Char *tt = t;
|
||||
Char *ss = s;
|
||||
Char *tt = t;
|
||||
|
||||
do
|
||||
if (*tt == '\0')
|
||||
@@ -396,11 +396,11 @@ s_strstr(s, t)
|
||||
|
||||
char *
|
||||
short2qstr(src)
|
||||
register Char *src;
|
||||
Char *src;
|
||||
{
|
||||
static char *sdst = NULL;
|
||||
static size_t dstsize = 0;
|
||||
register char *dst, *edst;
|
||||
char *dst, *edst;
|
||||
|
||||
if (src == NULL)
|
||||
return (NULL);
|
||||
|
||||
+10
-10
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: time.c,v 1.4 1995/03/19 13:28:12 joerg Exp $
|
||||
* $Id: time.c,v 1.5 1995/05/30 00:06:40 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -92,7 +92,7 @@ donice(v, t)
|
||||
Char **v;
|
||||
struct command *t;
|
||||
{
|
||||
register Char *cp;
|
||||
Char *cp;
|
||||
int nval = 0;
|
||||
|
||||
v++, cp = *v++;
|
||||
@@ -105,7 +105,7 @@ donice(v, t)
|
||||
|
||||
void
|
||||
ruadd(ru, ru2)
|
||||
register struct rusage *ru, *ru2;
|
||||
struct rusage *ru, *ru2;
|
||||
{
|
||||
tvadd(&ru->ru_utime, &ru2->ru_utime);
|
||||
tvadd(&ru->ru_stime, &ru2->ru_stime);
|
||||
@@ -129,17 +129,17 @@ ruadd(ru, ru2)
|
||||
|
||||
void
|
||||
prusage(r0, r1, e, b)
|
||||
register struct rusage *r0, *r1;
|
||||
struct rusage *r0, *r1;
|
||||
struct timeval *e, *b;
|
||||
{
|
||||
register time_t t =
|
||||
time_t t =
|
||||
(r1->ru_utime.tv_sec - r0->ru_utime.tv_sec) * 100 +
|
||||
(r1->ru_utime.tv_usec - r0->ru_utime.tv_usec) / 10000 +
|
||||
(r1->ru_stime.tv_sec - r0->ru_stime.tv_sec) * 100 +
|
||||
(r1->ru_stime.tv_usec - r0->ru_stime.tv_usec) / 10000;
|
||||
register char *cp;
|
||||
register long i;
|
||||
register struct varent *vp = adrof(STRtime);
|
||||
char *cp;
|
||||
long i;
|
||||
struct varent *vp = adrof(STRtime);
|
||||
|
||||
int ms =
|
||||
(e->tv_sec - b->tv_sec) * 100 + (e->tv_usec - b->tv_usec) / 10000;
|
||||
@@ -277,7 +277,7 @@ void
|
||||
psecs(l)
|
||||
long l;
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
i = l / 3600;
|
||||
if (i) {
|
||||
@@ -298,7 +298,7 @@ void
|
||||
pcsecs(l) /* PWP: print mm:ss.dd, l is in sec*100 */
|
||||
long l;
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
i = l / 360000;
|
||||
if (i) {
|
||||
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 5/31/93
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.2 1994/09/24 02:54:33 davidg Exp $
|
||||
|
||||
PROG= date
|
||||
SRCS= date.c netdate.c
|
||||
SRCS= date.c netdate.c vary.c
|
||||
CFLAGS+=-Wall
|
||||
DPADD= ${LIBUTIL}
|
||||
LDADD= -lutil
|
||||
|
||||
|
||||
+102
-18
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
|
||||
.\" $Id: date.1,v 1.11 1997/02/22 14:02:31 peter Exp $
|
||||
.\" $Id: date.1,v 1.8.2.8 1998/06/30 06:42:44 charnier Exp $
|
||||
.\"
|
||||
.Dd November 17, 1993
|
||||
.Dt DATE 1
|
||||
@@ -43,14 +43,16 @@
|
||||
.Nd display or set date and time
|
||||
.Sh SYNOPSIS
|
||||
.Nm date
|
||||
.Op Fl nu
|
||||
.Op Fl d Ar dst
|
||||
.Op Fl r Ar seconds
|
||||
.Op Fl t Ar minutes_west
|
||||
.Op Fl nu
|
||||
.Op Fl v Ns Ar [+|-]val Ns Op ymwdHM
|
||||
.Ar ...
|
||||
.Op Fl f Ar fmt Ar date | [[[[yy]mm]dd]HH]MM[\&.ss]
|
||||
.Op Cm + Ns Ar format
|
||||
.Op [yy[mm[dd[hh]]]]mm[\&.ss]
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
.Nm Date
|
||||
displays the current date and time when invoked without arguments.
|
||||
Providing arguments will format the date and time in a user-defined
|
||||
way or set the date.
|
||||
@@ -67,6 +69,14 @@ to
|
||||
.Xr gettimeofday 2
|
||||
will return a non-zero
|
||||
.Ql tz_dsttime .
|
||||
.It Fl f
|
||||
Use
|
||||
.Ar fmt
|
||||
as the format string to parse the date provided rather than using
|
||||
the default
|
||||
.Ar [[[[yy]mm]dd]HH]MM[.ss]
|
||||
format. Parsing is done using
|
||||
.Xr strptime 3 .
|
||||
.It Fl n
|
||||
The utility
|
||||
.Xr timed 8
|
||||
@@ -74,12 +84,12 @@ is used to synchronize the clocks on groups of machines.
|
||||
By default, if
|
||||
.Xr timed
|
||||
is running,
|
||||
.Nm date
|
||||
.Nm
|
||||
will set the time on all of the machines in the local group.
|
||||
The
|
||||
.Fl n
|
||||
option stops
|
||||
.Nm date
|
||||
.Nm
|
||||
from setting the time for other than the current machine.
|
||||
.It Fl r
|
||||
Print out the date and time in
|
||||
@@ -97,6 +107,40 @@ by future calls to
|
||||
Display or set the date in
|
||||
.Tn UCT
|
||||
(universal) time.
|
||||
.It Fl v
|
||||
Adjust the minute, hour, month day, week day, month or year according to
|
||||
.Ar val .
|
||||
If
|
||||
.Ar val
|
||||
is preceded with a plus or minus sign, the date is adjusted forwards
|
||||
or backwards according to the remaining string, otherwise the relevant
|
||||
part of the date is set. The date can be adjusted as many times as
|
||||
required using these flags. Flags are processed in the order given.
|
||||
.Pp
|
||||
Minutes are in the range 0-59, hours are in the range 1-12, month days
|
||||
are in the range 1-31, week days are in the range 0-6 (Sun-Sat), months
|
||||
are in the range 1-12 (Jan-Dec) and years are in the range 80-38 or
|
||||
1980-2038.
|
||||
.Pp
|
||||
If
|
||||
.Ar val
|
||||
is numeric, one of either
|
||||
.Ar y ,
|
||||
.Ar m ,
|
||||
.Ar w ,
|
||||
.Ar d ,
|
||||
.Ar H
|
||||
or
|
||||
.Ar M
|
||||
must be used to specify which part of the date is to be adjusted.
|
||||
.Pp
|
||||
The week day or month may be specified using a name rather than a
|
||||
number. If a name is used with the plus (or minus) sign, the date
|
||||
will be put forwards (or backwards) to the next (previous) date that
|
||||
matches the given week day or month. This will not adjust the date
|
||||
if the given week day or month is the same as the current one.
|
||||
.Pp
|
||||
Refer to the examples below for further details.
|
||||
.El
|
||||
.Pp
|
||||
An operand with a leading plus (``+'') sign signals a user-defined format
|
||||
@@ -118,15 +162,15 @@ The canonical representation for setting the date and time is:
|
||||
.Pp
|
||||
.Bl -tag -width Ds -compact -offset indent
|
||||
.It Ar yy
|
||||
Year in abbreviated form (.e.g 89 for 1989).
|
||||
Year in abbreviated form (e.g. 89 for 1989, 06 for 2006).
|
||||
.It Ar mm
|
||||
Numeric month.
|
||||
A number from 1 to 12.
|
||||
.It Ar dd
|
||||
Day, a number from 1 to 31.
|
||||
.It Ar hh
|
||||
.It Ar HH
|
||||
Hour, a number from 0 to 23.
|
||||
.It Ar mm
|
||||
.It Ar MM
|
||||
Minutes, a number from 0 to 59.
|
||||
.It Ar .ss
|
||||
Seconds, a number from 0 to 61 (59 plus a maximum of two leap seconds).
|
||||
@@ -139,17 +183,51 @@ and years are handled automatically.
|
||||
.Sh EXAMPLES
|
||||
The command:
|
||||
.Bd -literal -offset indent
|
||||
date ``+DATE: %m/%d/%y%nTIME: %H:%M:%S''
|
||||
date "+DATE: 19%y-%m-%d%nTIME: %H:%M:%S"
|
||||
.Ed
|
||||
.Pp
|
||||
will display:
|
||||
.Bd -literal -offset indent
|
||||
DATE: 11/21/87
|
||||
DATE: 1987-11-21
|
||||
TIME: 13:36:16
|
||||
.Ed
|
||||
.Pp
|
||||
The command:
|
||||
.Bd -literal -offset indent
|
||||
date -v1m -v+1y
|
||||
.Ed
|
||||
.Pp
|
||||
will display:
|
||||
.Bd -literal -offset indent
|
||||
Sun Jan 4 03:15:24 GMT 1998
|
||||
.Ed
|
||||
.Pp
|
||||
(where it is currently Mon Aug 4 04:15:24 BST 1997).
|
||||
.Pp
|
||||
The command:
|
||||
.Bd -literal -offset indent
|
||||
date -v1d -v3m -v0y -v-1d
|
||||
.Ed
|
||||
.Pp
|
||||
will display the last day of February in the year 2000:
|
||||
.Bd -literal -offset indent
|
||||
Tue Feb 29 03:18:00 GMT 2000
|
||||
.Ed
|
||||
.Pp
|
||||
The command:
|
||||
.Bd -literal -offset indent
|
||||
date -v1d -v+1m -v-1d -v-fri
|
||||
.Ed
|
||||
.Pp
|
||||
will display the last Friday of the month:
|
||||
.Bd -literal -offset indent
|
||||
Fri Aug 29 04:31:11 BST 1997
|
||||
.Ed
|
||||
.Pp
|
||||
(where it is currently Mon Aug 4 04:31:11 BST 1997).
|
||||
.Pp
|
||||
The command:
|
||||
.Bd -literal -offset indent
|
||||
date 8506131627
|
||||
.Ed
|
||||
.Pp
|
||||
@@ -164,13 +242,18 @@ date 1432
|
||||
sets the time to
|
||||
.Li "2:32 PM" ,
|
||||
without modifying the date.
|
||||
.Sh ENVIRONMENT VARIABLES
|
||||
.Sh ENVIRONMENT
|
||||
The execution of
|
||||
.Nm
|
||||
is affected by the following evironment variables:
|
||||
is affected by the following environment variables:
|
||||
.Bl -tag -width Ds
|
||||
.It Ev TZ
|
||||
The timezone to use when displaying dates.
|
||||
The normal format is a pathname relative to
|
||||
.Pa /usr/share/zoneinfo .
|
||||
For example, the command
|
||||
.Dq TZ=America/Los_Angeles date
|
||||
displays the current time in California.
|
||||
See
|
||||
.Xr environ 7
|
||||
for more information.
|
||||
@@ -178,13 +261,14 @@ for more information.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /var/log/messages -compact
|
||||
.It Pa /var/log/wtmp
|
||||
A record of date resets and time changes.
|
||||
a record of date resets and time changes
|
||||
.It Pa /var/log/messages
|
||||
A record of the user setting the time.
|
||||
a record of the user setting the time
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr gettimeofday 2 ,
|
||||
.Xr strftime 3 ,
|
||||
.Xr strptime 3 ,
|
||||
.Xr utmp 5 ,
|
||||
.Xr timed 8
|
||||
.Rs
|
||||
@@ -201,14 +285,14 @@ Occasionally, when
|
||||
synchronizes the time on many hosts, the setting of a new time value may
|
||||
require more than a few seconds.
|
||||
On these occasions,
|
||||
.Nm date
|
||||
.Nm
|
||||
prints:
|
||||
.Ql Network time being set .
|
||||
The message
|
||||
.Ql Communication error with timed
|
||||
occurs when the communication
|
||||
between
|
||||
.Nm date
|
||||
.Nm
|
||||
and
|
||||
.Xr timed
|
||||
fails.
|
||||
@@ -229,7 +313,7 @@ will be running on
|
||||
.Tn GMT .
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm date
|
||||
.Nm
|
||||
command is expected to be compatible with
|
||||
.St -p1003.2 .
|
||||
.Sh HISTORY
|
||||
|
||||
+104
-65
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: date.c,v 1.6 1995/10/23 20:26:53 ache Exp $
|
||||
* $Id: date.c,v 1.7.2.6 1997/10/03 12:54:30 danny Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1985, 1987, 1988, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)date.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -57,11 +57,12 @@ static char sccsid[] = "@(#)date.c 8.1 (Berkeley) 5/31/93";
|
||||
#include <locale.h>
|
||||
|
||||
#include "extern.h"
|
||||
#include "vary.h"
|
||||
|
||||
time_t tval;
|
||||
int retval, nflag;
|
||||
|
||||
static void setthetime __P((char *));
|
||||
static void setthetime __P((const char *, const char *));
|
||||
static void badformat __P((void));
|
||||
static void usage __P((void));
|
||||
|
||||
@@ -77,14 +78,19 @@ main(argc, argv)
|
||||
struct timezone tz;
|
||||
int ch, rflag;
|
||||
char *format, buf[1024];
|
||||
char *endptr;
|
||||
char *endptr, *fmt;
|
||||
int set_timezone;
|
||||
struct vary *v;
|
||||
const struct vary *badv;
|
||||
struct tm lt;
|
||||
|
||||
v = NULL;
|
||||
fmt = NULL;
|
||||
(void) setlocale(LC_TIME, "");
|
||||
tz.tz_dsttime = tz.tz_minuteswest = 0;
|
||||
rflag = 0;
|
||||
set_timezone = 0;
|
||||
while ((ch = getopt(argc, argv, "d:nr:ut:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "d:f:nr:t:uv:")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'd': /* daylight savings time */
|
||||
tz.tz_dsttime = strtol(optarg, &endptr, 10) ? 1 : 0;
|
||||
@@ -92,6 +98,9 @@ main(argc, argv)
|
||||
usage();
|
||||
set_timezone = 1;
|
||||
break;
|
||||
case 'f':
|
||||
fmt = optarg;
|
||||
break;
|
||||
case 'n': /* don't set network */
|
||||
nflag = 1;
|
||||
break;
|
||||
@@ -99,9 +108,6 @@ main(argc, argv)
|
||||
rflag = 1;
|
||||
tval = atol(optarg);
|
||||
break;
|
||||
case 'u': /* do everything in GMT */
|
||||
(void)setenv("TZ", "GMT0", 1);
|
||||
break;
|
||||
case 't': /* minutes west of GMT */
|
||||
/* error check; don't allow "PST" */
|
||||
tz.tz_minuteswest = strtol(optarg, &endptr, 10);
|
||||
@@ -109,6 +115,12 @@ main(argc, argv)
|
||||
usage();
|
||||
set_timezone = 1;
|
||||
break;
|
||||
case 'u': /* do everything in GMT */
|
||||
(void)setenv("TZ", "GMT0", 1);
|
||||
break;
|
||||
case 'v':
|
||||
v = vary_append(v, optarg);
|
||||
break;
|
||||
default:
|
||||
usage();
|
||||
}
|
||||
@@ -117,7 +129,7 @@ main(argc, argv)
|
||||
|
||||
/*
|
||||
* If -d or -t, set the timezone or daylight savings time; this
|
||||
* doesn't belong here, there kernel should not know about either.
|
||||
* doesn't belong here; the kernel should not know about either.
|
||||
*/
|
||||
if (set_timezone && settimeofday((struct timeval *)NULL, &tz))
|
||||
err(1, "settimeofday (timezone)");
|
||||
@@ -134,78 +146,104 @@ main(argc, argv)
|
||||
}
|
||||
|
||||
if (*argv) {
|
||||
setthetime(*argv);
|
||||
setthetime(fmt, *argv);
|
||||
++argv;
|
||||
}
|
||||
} else if (fmt != NULL)
|
||||
usage();
|
||||
|
||||
if (*argv && **argv == '+')
|
||||
format = *argv + 1;
|
||||
|
||||
(void)strftime(buf, sizeof(buf), format, localtime(&tval));
|
||||
lt = *localtime(&tval);
|
||||
badv = vary_apply(v, <);
|
||||
if (badv) {
|
||||
fprintf(stderr, "%s: Cannot apply date adjustment\n",
|
||||
badv->arg);
|
||||
vary_destroy(v);
|
||||
usage();
|
||||
}
|
||||
vary_destroy(v);
|
||||
(void)strftime(buf, sizeof(buf), format, <);
|
||||
(void)printf("%s\n", buf);
|
||||
exit(retval);
|
||||
}
|
||||
|
||||
#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2;
|
||||
void
|
||||
setthetime(p)
|
||||
register char *p;
|
||||
setthetime(fmt, p)
|
||||
const char *fmt;
|
||||
register const char *p;
|
||||
{
|
||||
register struct tm *lt;
|
||||
struct timeval tv;
|
||||
char *dot, *t;
|
||||
const char *dot, *t;
|
||||
|
||||
for (t = p, dot = NULL; *t; ++t) {
|
||||
if (isdigit(*t))
|
||||
continue;
|
||||
if (*t == '.' && dot == NULL) {
|
||||
dot = t;
|
||||
continue;
|
||||
if (fmt != NULL) {
|
||||
lt = localtime(&tval);
|
||||
t = strptime(p, fmt, lt);
|
||||
if (t == NULL) {
|
||||
fprintf(stderr, "Failed conversion of ``%s''"
|
||||
" using format ``%s''\n", p, fmt);
|
||||
lt = localtime(&tval);
|
||||
return;
|
||||
} else if (*t != '\0')
|
||||
fprintf(stderr, "Warning: Ignoring %ld extraneous"
|
||||
" characters in date string (%s)\n",
|
||||
(long) strlen(t), t);
|
||||
} else {
|
||||
for (t = p, dot = NULL; *t; ++t) {
|
||||
if (isdigit(*t))
|
||||
continue;
|
||||
if (*t == '.' && dot == NULL) {
|
||||
dot = t;
|
||||
continue;
|
||||
}
|
||||
badformat();
|
||||
}
|
||||
badformat();
|
||||
}
|
||||
|
||||
lt = localtime(&tval);
|
||||
lt = localtime(&tval);
|
||||
|
||||
if (dot != NULL) { /* .ss */
|
||||
*dot++ = '\0';
|
||||
if (strlen(dot) != 2)
|
||||
badformat();
|
||||
lt->tm_sec = ATOI2(dot);
|
||||
if (lt->tm_sec > 61)
|
||||
badformat();
|
||||
} else
|
||||
lt->tm_sec = 0;
|
||||
if (dot != NULL) { /* .ss */
|
||||
dot++; /* *dot++ = '\0'; */
|
||||
if (strlen(dot) != 2)
|
||||
badformat();
|
||||
lt->tm_sec = ATOI2(dot);
|
||||
if (lt->tm_sec > 61)
|
||||
badformat();
|
||||
} else
|
||||
lt->tm_sec = 0;
|
||||
|
||||
switch (strlen(p)) {
|
||||
case 10: /* yy */
|
||||
lt->tm_year = ATOI2(p);
|
||||
if (lt->tm_year < 69) /* hack for 2000 ;-} */
|
||||
lt->tm_year += 100;
|
||||
/* FALLTHROUGH */
|
||||
case 8: /* mm */
|
||||
lt->tm_mon = ATOI2(p);
|
||||
if (lt->tm_mon > 12)
|
||||
/* if p has a ".ss" field then let's pretend it's not there */
|
||||
switch (strlen(p) - ((dot != NULL) ? 3 : 0)) {
|
||||
case 10: /* yy */
|
||||
lt->tm_year = ATOI2(p);
|
||||
if (lt->tm_year < 69) /* hack for 2000 ;-} */
|
||||
lt->tm_year += 100;
|
||||
/* FALLTHROUGH */
|
||||
case 8: /* mm */
|
||||
lt->tm_mon = ATOI2(p);
|
||||
if (lt->tm_mon > 12)
|
||||
badformat();
|
||||
--lt->tm_mon; /* time struct is 0 - 11 */
|
||||
/* FALLTHROUGH */
|
||||
case 6: /* dd */
|
||||
lt->tm_mday = ATOI2(p);
|
||||
if (lt->tm_mday > 31)
|
||||
badformat();
|
||||
/* FALLTHROUGH */
|
||||
case 4: /* HH */
|
||||
lt->tm_hour = ATOI2(p);
|
||||
if (lt->tm_hour > 23)
|
||||
badformat();
|
||||
/* FALLTHROUGH */
|
||||
case 2: /* MM */
|
||||
lt->tm_min = ATOI2(p);
|
||||
if (lt->tm_min > 59)
|
||||
badformat();
|
||||
break;
|
||||
default:
|
||||
badformat();
|
||||
--lt->tm_mon; /* time struct is 0 - 11 */
|
||||
/* FALLTHROUGH */
|
||||
case 6: /* dd */
|
||||
lt->tm_mday = ATOI2(p);
|
||||
if (lt->tm_mday > 31)
|
||||
badformat();
|
||||
/* FALLTHROUGH */
|
||||
case 4: /* hh */
|
||||
lt->tm_hour = ATOI2(p);
|
||||
if (lt->tm_hour > 23)
|
||||
badformat();
|
||||
/* FALLTHROUGH */
|
||||
case 2: /* mm */
|
||||
lt->tm_min = ATOI2(p);
|
||||
if (lt->tm_min > 59)
|
||||
badformat();
|
||||
break;
|
||||
default:
|
||||
badformat();
|
||||
}
|
||||
}
|
||||
|
||||
/* convert broken-down time to GMT clock time */
|
||||
@@ -237,8 +275,9 @@ badformat()
|
||||
static void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: date [-nu] [-d dst] [-r seconds] [-t west] [+format]\n");
|
||||
(void)fprintf(stderr, " [yy[mm[dd[hh]]]]mm[.ss]]\n");
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: date [-nu] [-d dst] [-r seconds] [-t west] "
|
||||
"[-v[+|-]val[ymwdHM]] ... ",
|
||||
" [-f fmt date | [[[[yy]mm]dd]HH]MM[.ss]] [+format]");
|
||||
exit(1);
|
||||
}
|
||||
+3
-3
@@ -30,11 +30,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: netdate.c,v 1.3 1995/05/30 00:06:41 rgrimes Exp $
|
||||
* $Id: netdate.c,v 1.3.6.1 1997/03/10 19:51:16 guido Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)netdate.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)netdate.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -116,7 +116,7 @@ netsettime(tval)
|
||||
warn("gethostname");
|
||||
goto bad;
|
||||
}
|
||||
(void)strncpy(msg.tsp_name, hostname, sizeof(msg.tsp_name));
|
||||
(void)strncpy(msg.tsp_name, hostname, sizeof(msg.tsp_name) - 1);
|
||||
msg.tsp_name[sizeof(msg.tsp_name) - 1] = '\0';
|
||||
msg.tsp_seq = htons((u_short)0);
|
||||
msg.tsp_time.tv_sec = htonl((u_long)tval);
|
||||
|
||||
+412
@@ -0,0 +1,412 @@
|
||||
/*-
|
||||
* Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "vary.h"
|
||||
|
||||
struct trans {
|
||||
int val;
|
||||
char *str;
|
||||
};
|
||||
|
||||
static struct trans trans_mon[] = {
|
||||
{ 1, "january" }, { 2, "february" }, { 3, "march" }, { 4, "april" },
|
||||
{ 6, "june" }, { 7, "july" }, { 8, "august" }, { 9, "september" },
|
||||
{ 10, "october" }, { 11, "november" }, { 12, "december" },
|
||||
{ -1, NULL }
|
||||
};
|
||||
|
||||
static struct trans trans_wday[] = {
|
||||
{ 0, "sunday" }, { 1, "monday" }, { 2, "tuesday" }, { 3, "wednesday" },
|
||||
{ 4, "thursday" }, { 5, "friday" }, { 6, "saturday" },
|
||||
{ -1, NULL }
|
||||
};
|
||||
|
||||
static char digits[] = "0123456789";
|
||||
|
||||
static int
|
||||
trans(const struct trans t[], const char *arg)
|
||||
{
|
||||
int f;
|
||||
|
||||
for (f = 0; t[f].val != -1; f++)
|
||||
if (!strncasecmp(t[f].str, arg, 3) ||
|
||||
!strncasecmp(t[f].str, arg, strlen(t[f].str)))
|
||||
return t[f].val;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
struct vary *
|
||||
vary_append(struct vary *v, char *arg)
|
||||
{
|
||||
struct vary *result, **nextp;
|
||||
|
||||
if (v) {
|
||||
result = v;
|
||||
while (v->next)
|
||||
v = v->next;
|
||||
nextp = &v->next;
|
||||
} else
|
||||
nextp = &result;
|
||||
|
||||
*nextp = (struct vary *)malloc(sizeof(struct vary));
|
||||
(*nextp)->arg = arg;
|
||||
(*nextp)->next = NULL;
|
||||
return result;
|
||||
}
|
||||
|
||||
static int mdays[12] = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
|
||||
|
||||
static int
|
||||
daysinmonth(const struct tm *t)
|
||||
{
|
||||
int year;
|
||||
|
||||
year = t->tm_year + 1900;
|
||||
|
||||
if (t->tm_mon == 1)
|
||||
if (!(year % 400))
|
||||
return 29;
|
||||
else if (!(year % 100))
|
||||
return 28;
|
||||
else if (!(year % 4))
|
||||
return 29;
|
||||
else
|
||||
return 28;
|
||||
else if (t->tm_mon >= 0 && t->tm_mon < 12)
|
||||
return mdays[t->tm_mon];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
adjyear(struct tm *t, char type, int val)
|
||||
{
|
||||
switch (type) {
|
||||
case '+':
|
||||
t->tm_year += val;
|
||||
break;
|
||||
case '-':
|
||||
t->tm_year -= val;
|
||||
break;
|
||||
default:
|
||||
t->tm_year = val;
|
||||
if (t->tm_year < 69)
|
||||
t->tm_year += 100; /* as per date.c */
|
||||
else if (t->tm_year > 1900)
|
||||
t->tm_year -= 1900; /* struct tm holds years since 1900 */
|
||||
break;
|
||||
}
|
||||
return mktime(t) != -1;
|
||||
}
|
||||
|
||||
static int
|
||||
adjmon(struct tm *t, char type, int val, int istext)
|
||||
{
|
||||
if (val < 0)
|
||||
return 0;
|
||||
|
||||
switch (type) {
|
||||
case '+':
|
||||
if (istext)
|
||||
if (val <= t->tm_mon)
|
||||
val += 11 - t->tm_mon; /* early next year */
|
||||
else
|
||||
val -= t->tm_mon + 1; /* later this year */
|
||||
if (!adjyear(t, '+', (t->tm_mon + val) / 12))
|
||||
return 0;
|
||||
val %= 12;
|
||||
t->tm_mon += val;
|
||||
if (t->tm_mon > 11)
|
||||
t->tm_mon -= 12;
|
||||
break;
|
||||
|
||||
case '-':
|
||||
if (istext)
|
||||
if (val-1 > t->tm_mon)
|
||||
val = 13 - val + t->tm_mon; /* later last year */
|
||||
else
|
||||
val = t->tm_mon - val + 1; /* early this year */
|
||||
if (!adjyear(t, '-', val / 12))
|
||||
return 0;
|
||||
val %= 12;
|
||||
if (val > t->tm_mon) {
|
||||
if (!adjyear(t, '-', 1))
|
||||
return 0;
|
||||
val -= 12;
|
||||
}
|
||||
t->tm_mon -= val;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (val > 12 || val < 1)
|
||||
return 0;
|
||||
t->tm_mon = --val;
|
||||
}
|
||||
|
||||
return mktime(t) != -1;
|
||||
}
|
||||
|
||||
static int
|
||||
adjday(struct tm *t, char type, int val)
|
||||
{
|
||||
int mdays;
|
||||
switch (type) {
|
||||
case '+':
|
||||
while (val) {
|
||||
mdays = daysinmonth(t);
|
||||
if (val > mdays - t->tm_mday) {
|
||||
val -= mdays - t->tm_mday + 1;
|
||||
t->tm_mday = 1;
|
||||
if (!adjmon(t, '+', 1, 0))
|
||||
return 0;
|
||||
} else {
|
||||
t->tm_mday += val;
|
||||
val = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case '-':
|
||||
while (val)
|
||||
if (val >= t->tm_mday) {
|
||||
val -= t->tm_mday;
|
||||
t->tm_mday = 1;
|
||||
if (!adjmon(t, '-', 1, 0))
|
||||
return 0;
|
||||
t->tm_mday = daysinmonth(t);
|
||||
} else {
|
||||
t->tm_mday -= val;
|
||||
val = 0;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (val > 0 && val <= daysinmonth(t))
|
||||
t->tm_mday = val;
|
||||
else
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
|
||||
return mktime(t) != -1;
|
||||
}
|
||||
|
||||
static int
|
||||
adjwday(struct tm *t, char type, int val, int istext)
|
||||
{
|
||||
if (val < 0)
|
||||
return 0;
|
||||
|
||||
switch (type) {
|
||||
case '+':
|
||||
if (istext)
|
||||
if (val < t->tm_wday)
|
||||
val = 7 - t->tm_wday + val; /* early next week */
|
||||
else
|
||||
val -= t->tm_wday; /* later this week */
|
||||
else
|
||||
val *= 7; /* "-W +5" == "5 weeks in the future" */
|
||||
return adjday(t, '+', val);
|
||||
case '-':
|
||||
if (istext)
|
||||
if (val > t->tm_wday)
|
||||
val = 7 - val + t->tm_wday; /* later last week */
|
||||
else
|
||||
val = t->tm_wday - val; /* early this week */
|
||||
else
|
||||
val *= 7; /* "-W -5" == "5 weeks ago" */
|
||||
return adjday(t, '-', val);
|
||||
default:
|
||||
if (val < t->tm_wday)
|
||||
return adjday(t, '-', t->tm_wday - val);
|
||||
else if (val > 6)
|
||||
return 0;
|
||||
else if (val > t->tm_wday)
|
||||
return adjday(t, '+', val - t->tm_wday);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int
|
||||
adjhour(struct tm *t, char type, int val)
|
||||
{
|
||||
if (val < 0)
|
||||
return 0;
|
||||
|
||||
switch (type) {
|
||||
case '+':
|
||||
if (!adjday(t, '+', (t->tm_hour + val) / 24))
|
||||
return 0;
|
||||
val %= 24;
|
||||
t->tm_hour += val;
|
||||
if (t->tm_hour > 23)
|
||||
t->tm_hour -= 24;
|
||||
break;
|
||||
|
||||
case '-':
|
||||
if (!adjday(t, '-', val / 24))
|
||||
return 0;
|
||||
val %= 24;
|
||||
if (val > t->tm_hour) {
|
||||
if (!adjday(t, '-', 1))
|
||||
return 0;
|
||||
val -= 24;
|
||||
}
|
||||
t->tm_hour -= val;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (val > 23)
|
||||
return 0;
|
||||
t->tm_hour = val;
|
||||
}
|
||||
|
||||
return mktime(t) != -1;
|
||||
}
|
||||
|
||||
static int
|
||||
adjmin(struct tm *t, char type, int val)
|
||||
{
|
||||
if (val < 0)
|
||||
return 0;
|
||||
|
||||
switch (type) {
|
||||
case '+':
|
||||
if (!adjhour(t, '+', (t->tm_min + val) / 60))
|
||||
return 0;
|
||||
val %= 60;
|
||||
t->tm_min += val;
|
||||
if (t->tm_min > 59)
|
||||
t->tm_min -= 60;
|
||||
break;
|
||||
|
||||
case '-':
|
||||
if (!adjhour(t, '-', val / 60))
|
||||
return 0;
|
||||
val %= 60;
|
||||
if (val > t->tm_min) {
|
||||
if (!adjhour(t, '-', 1))
|
||||
return 0;
|
||||
val -= 60;
|
||||
}
|
||||
t->tm_min -= val;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (val > 59)
|
||||
return 0;
|
||||
t->tm_min = val;
|
||||
}
|
||||
|
||||
return mktime(t) != -1;
|
||||
}
|
||||
|
||||
const struct vary *
|
||||
vary_apply(const struct vary *v, struct tm *t)
|
||||
{
|
||||
char type;
|
||||
char which;
|
||||
char *arg;
|
||||
int len;
|
||||
int val;
|
||||
|
||||
for (; v; v = v->next) {
|
||||
type = *v->arg;
|
||||
arg = v->arg;
|
||||
if (type == '+' || type == '-')
|
||||
arg++;
|
||||
else
|
||||
type = '\0';
|
||||
len = strlen(arg);
|
||||
if (len < 2)
|
||||
return v;
|
||||
|
||||
if (strspn(arg, digits) != len-1) {
|
||||
val = trans(trans_wday, arg);
|
||||
if (val != -1) {
|
||||
if (!adjwday(t, type, val, 1))
|
||||
return v;
|
||||
} else {
|
||||
val = trans(trans_mon, arg);
|
||||
if (val != -1) {
|
||||
if (!adjmon(t, type, val, 1))
|
||||
return v;
|
||||
} else
|
||||
return v;
|
||||
}
|
||||
} else {
|
||||
val = atoi(arg);
|
||||
which = arg[len-1];
|
||||
|
||||
switch (which) {
|
||||
case 'M':
|
||||
if (!adjmin(t, type, val))
|
||||
return v;
|
||||
break;
|
||||
case 'H':
|
||||
if (!adjhour(t, type, val))
|
||||
return v;
|
||||
break;
|
||||
case 'd':
|
||||
if (!adjday(t, type, val))
|
||||
return v;
|
||||
break;
|
||||
case 'w':
|
||||
if (!adjwday(t, type, val, 0))
|
||||
return v;
|
||||
break;
|
||||
case 'm':
|
||||
if (!adjmon(t, type, val, 0))
|
||||
return v;
|
||||
break;
|
||||
case 'y':
|
||||
if (!adjyear(t, type, val))
|
||||
return v;
|
||||
break;
|
||||
default:
|
||||
return v;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
vary_destroy(struct vary *v)
|
||||
{
|
||||
struct vary *n;
|
||||
|
||||
while (v) {
|
||||
n = v->next;
|
||||
free(v);
|
||||
v = n;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/*-
|
||||
* Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
struct vary {
|
||||
char *arg;
|
||||
struct vary *next;
|
||||
};
|
||||
|
||||
extern struct vary *vary_append(struct vary *v, char *arg);
|
||||
extern const struct vary *vary_apply(const struct vary *v, struct tm *t);
|
||||
extern void vary_destroy(struct vary *v);
|
||||
+5
-2
@@ -34,11 +34,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: args.c,v 1.3 1994/09/24 02:54:42 davidg Exp $
|
||||
* $Id: args.c,v 1.3.8.2 1997/08/24 21:45:26 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)args.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -101,6 +101,8 @@ jcl(argv)
|
||||
in.dbsz = out.dbsz = 512;
|
||||
|
||||
while ((oper = *++argv) != NULL) {
|
||||
if ((oper = strdup(oper)) == NULL)
|
||||
errx(1, "unable to allocate space for the argument \"%s\"", *argv);
|
||||
if ((arg = strchr(oper, '=')) == NULL)
|
||||
errx(1, "unknown operand %s", oper);
|
||||
*arg++ = '\0';
|
||||
@@ -282,6 +284,7 @@ static struct conv {
|
||||
{ "oldebcdic", C_EBCDIC, C_ASCII, a2e_32V },
|
||||
{ "oldibm", C_EBCDIC, C_ASCII, a2ibm_32V },
|
||||
{ "osync", C_OSYNC, C_BS, NULL },
|
||||
{ "sparse", C_SPARSE, 0, NULL },
|
||||
{ "swab", C_SWAB, 0, NULL },
|
||||
{ "sync", C_SYNC, 0, NULL },
|
||||
{ "ucase", C_UCASE, C_LCASE, NULL },
|
||||
|
||||
+3
-3
@@ -34,11 +34,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: conv.c,v 1.3 1994/09/24 02:54:44 davidg Exp $
|
||||
* $Id: conv.c,v 1.3.8.1 1996/11/21 16:30:30 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)conv.c 8.3 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)conv.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -129,7 +129,7 @@ block()
|
||||
* Copy records (max cbsz size chunks) into the output buffer. The
|
||||
* translation is done as we copy into the output buffer.
|
||||
*/
|
||||
ch = 0; /* Help the compiler. */
|
||||
ch = 0;
|
||||
for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) {
|
||||
maxlen = MIN(cbsz, in.dbcnt);
|
||||
if ((t = ctab) != NULL)
|
||||
|
||||
+2
-2
@@ -34,11 +34,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: conv_tab.c,v 1.2 1994/09/24 02:54:47 davidg Exp $
|
||||
* $Id: conv_tab.c,v 1.3 1995/01/17 23:04:28 ache Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)conv_tab.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)conv_tab.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
+17
-10
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
|
||||
.\" $Id: dd.1,v 1.4 1997/02/22 14:02:43 peter Exp $
|
||||
.\" $Id: dd.1,v 1.2.8.3 1998/02/15 11:04:28 jkh Exp $
|
||||
.\"
|
||||
.Dd January 13, 1994
|
||||
.Dt DD 1
|
||||
@@ -52,7 +52,7 @@ Input data is read and written in 512-byte blocks.
|
||||
If input reads are short, input from multiple reads are aggregated
|
||||
to form the output block.
|
||||
When finished,
|
||||
.Nm dd
|
||||
.Nm
|
||||
displays the number of complete and partial input and output blocks
|
||||
and truncated input records to the standard error output.
|
||||
.Pp
|
||||
@@ -148,7 +148,7 @@ is one of the symbols from the following list.
|
||||
The same as the
|
||||
.Cm unblock
|
||||
value except that characters are translated from
|
||||
.Tn ECBDIC
|
||||
.Tn EBCDIC
|
||||
to
|
||||
.Tn ASCII
|
||||
before the
|
||||
@@ -237,7 +237,7 @@ will be positioned past the block in which the error occurred using
|
||||
Do not truncate the output file.
|
||||
This will preserve any blocks in the output file not explicitly written
|
||||
by
|
||||
.Nm dd .
|
||||
.Nm Ns .
|
||||
The
|
||||
.Cm notrunc
|
||||
value is not supported for tapes.
|
||||
@@ -250,6 +250,13 @@ regularly sized blocks to be written.
|
||||
This option is incompatible with use of the
|
||||
.Cm bs= Ns Ar n
|
||||
block size specification.
|
||||
.It Cm sparse
|
||||
If one or more output blocks would consist solely of
|
||||
.Tn NUL
|
||||
bytes, try to seek the output file by the required space instead of
|
||||
filling them with
|
||||
.Tn NULs ,
|
||||
resulting in a sparse file.
|
||||
.It Cm swab
|
||||
Swap every pair of input bytes.
|
||||
If an input buffer has an odd number of bytes, the last byte will be
|
||||
@@ -280,7 +287,7 @@ in an integer, respectively.
|
||||
Two or more numbers may be separated by an ``x'' to indicate a product.
|
||||
.Pp
|
||||
When finished,
|
||||
.Nm dd
|
||||
.Nm
|
||||
displays the number of complete and partial input and output blocks,
|
||||
truncated input records and odd-length byte-swapping blocks to the
|
||||
standard error output.
|
||||
@@ -303,7 +310,7 @@ This means that the final output block may be shorter than the output
|
||||
block size.
|
||||
.Pp
|
||||
If
|
||||
.Nm dd
|
||||
.Nm
|
||||
receives a
|
||||
.Dv SIGINFO
|
||||
(see the ``status'' argument for
|
||||
@@ -312,17 +319,17 @@ signal, the current input and output block counts will
|
||||
be written to the standard error output
|
||||
in the same format as the standard completion message.
|
||||
If
|
||||
.Nm dd
|
||||
.Nm
|
||||
receives a
|
||||
.Dv SIGINT
|
||||
signal, the current input and output block counts will
|
||||
be written to the standard error output
|
||||
in the same format as the standard completion message and
|
||||
.Nm dd
|
||||
.Nm
|
||||
will exit.
|
||||
.Pp
|
||||
The
|
||||
.Nm dd
|
||||
.Nm
|
||||
utility exits 0 on success and >0 if an error occurred.
|
||||
.Sh SEE ALSO
|
||||
.Xr cp 1 ,
|
||||
@@ -330,7 +337,7 @@ utility exits 0 on success and >0 if an error occurred.
|
||||
.Xr tr 1
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm dd
|
||||
.Nm
|
||||
utility is expected to be a superset of the
|
||||
.St -p1003.2
|
||||
standard.
|
||||
|
||||
+48
-17
@@ -34,17 +34,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: dd.c,v 1.5 1995/10/23 21:31:48 ache Exp $
|
||||
* $Id: dd.c,v 1.5.2.4 1998/01/09 09:13:06 joerg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1991, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)dd.c 8.5 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -75,6 +75,7 @@ IO in, out; /* input/output state */
|
||||
STAT st; /* statistics */
|
||||
void (*cfunc) __P((void)); /* conversion function */
|
||||
u_long cpy_cnt; /* # of blocks to copy */
|
||||
u_long pending = 0; /* pending seek if sparse */
|
||||
u_int ddflags; /* conversion options */
|
||||
u_int cbsz; /* conversion block size */
|
||||
u_int files_cnt = 1; /* # of files to copy */
|
||||
@@ -169,7 +170,7 @@ setup()
|
||||
* Truncate the output file; ignore errors because it fails on some
|
||||
* kinds of output files, tapes, for example.
|
||||
*/
|
||||
if (ddflags & (C_OF | C_SEEK | C_NOTRUNC) == (C_OF | C_SEEK))
|
||||
if ((ddflags & (C_OF | C_SEEK | C_NOTRUNC)) == (C_OF | C_SEEK))
|
||||
(void)ftruncate(out.fd, (off_t)out.offset * out.dbsz);
|
||||
|
||||
/*
|
||||
@@ -236,19 +237,18 @@ getfdtype(io)
|
||||
static void
|
||||
dd_in()
|
||||
{
|
||||
int flags, n;
|
||||
int n;
|
||||
|
||||
for (flags = ddflags;;) {
|
||||
for (;;) {
|
||||
if (cpy_cnt && (st.in_full + st.in_part) >= cpy_cnt)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Zero the buffer first if trying to recover from errors so
|
||||
* lose the minimum amount of data. If doing block operations
|
||||
* Zero the buffer first if sync; If doing block operations
|
||||
* use spaces.
|
||||
*/
|
||||
if ((flags & (C_NOERROR|C_SYNC)) == (C_NOERROR|C_SYNC))
|
||||
if (flags & (C_BLOCK|C_UNBLOCK))
|
||||
if (ddflags & C_SYNC)
|
||||
if (ddflags & (C_BLOCK|C_UNBLOCK))
|
||||
memset(in.dbp, ' ', in.dbsz);
|
||||
else
|
||||
memset(in.dbp, 0, in.dbsz);
|
||||
@@ -265,7 +265,7 @@ dd_in()
|
||||
* If noerror not specified, die. POSIX requires that
|
||||
* the warning message be followed by an I/O display.
|
||||
*/
|
||||
if (!(flags & C_NOERROR))
|
||||
if (!(ddflags & C_NOERROR))
|
||||
err(1, "%s", in.name);
|
||||
warn("%s", in.name);
|
||||
summary();
|
||||
@@ -316,7 +316,7 @@ dd_in()
|
||||
}
|
||||
|
||||
if (ddflags & C_SWAB) {
|
||||
if ((n = in.dbcnt) & 1) {
|
||||
if ((n = in.dbrcnt) & 1) {
|
||||
++st.swab;
|
||||
--n;
|
||||
}
|
||||
@@ -341,11 +341,14 @@ dd_close()
|
||||
block_close();
|
||||
else if (cfunc == unblock)
|
||||
unblock_close();
|
||||
if (ddflags & C_OSYNC && out.dbcnt < out.dbsz) {
|
||||
memset(out.dbp, 0, out.dbsz - out.dbcnt);
|
||||
if (ddflags & C_OSYNC && out.dbcnt && out.dbcnt < out.dbsz) {
|
||||
if (ddflags & (C_BLOCK|C_UNBLOCK))
|
||||
memset(out.dbp, ' ', out.dbsz - out.dbcnt);
|
||||
else
|
||||
memset(out.dbp, 0, out.dbsz - out.dbcnt);
|
||||
out.dbcnt = out.dbsz;
|
||||
}
|
||||
if (out.dbcnt)
|
||||
if (out.dbcnt || pending)
|
||||
dd_out(1);
|
||||
}
|
||||
|
||||
@@ -354,7 +357,7 @@ dd_out(force)
|
||||
int force;
|
||||
{
|
||||
static int warned;
|
||||
int cnt, n, nw;
|
||||
int cnt, n, nw, i, sparse;
|
||||
u_char *outp;
|
||||
|
||||
/*
|
||||
@@ -376,7 +379,35 @@ dd_out(force)
|
||||
outp = out.db;
|
||||
for (n = force ? out.dbcnt : out.dbsz;; n = out.dbsz) {
|
||||
for (cnt = n;; cnt -= nw) {
|
||||
nw = write(out.fd, outp, cnt);
|
||||
sparse = 0;
|
||||
if (ddflags & C_SPARSE) {
|
||||
sparse = 1; /* Is buffer sparse? */
|
||||
for (i = 0; i < cnt; i++)
|
||||
if (outp[i] != 0) {
|
||||
sparse = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (sparse && !force) {
|
||||
pending += cnt;
|
||||
nw = cnt;
|
||||
} else {
|
||||
if (pending != 0) {
|
||||
if (force)
|
||||
pending--;
|
||||
if (lseek (out.fd, pending, SEEK_CUR) == -1)
|
||||
err(2, "%s: seek error creating sparse file",
|
||||
out.name);
|
||||
if (force)
|
||||
write(out.fd, outp, 1);
|
||||
pending = 0;
|
||||
}
|
||||
if (cnt)
|
||||
nw = write(out.fd, outp, cnt);
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
if (nw <= 0) {
|
||||
if (nw == 0)
|
||||
errx(1, "%s: end of device", out.name);
|
||||
|
||||
+3
-2
@@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)dd.h 8.3 (Berkeley) 4/2/94
|
||||
* $Id: dd.h,v 1.2 1994/09/24 02:54:54 davidg Exp $
|
||||
* $Id: dd.h,v 1.2.8.2 1998/02/11 02:24:40 asami Exp $
|
||||
*/
|
||||
|
||||
/* Input/output stream state. */
|
||||
@@ -69,7 +69,7 @@ typedef struct {
|
||||
u_long out_part; /* # of partial output blocks */
|
||||
u_long trunc; /* # of truncated records */
|
||||
u_long swab; /* # of odd-length swab blocks */
|
||||
u_long bytes; /* # of bytes written */
|
||||
u_int64_t bytes; /* # of bytes written */
|
||||
double start; /* start time of dd */
|
||||
} STAT;
|
||||
|
||||
@@ -95,3 +95,4 @@ typedef struct {
|
||||
#define C_UCASE 0x40000
|
||||
#define C_UNBLOCK 0x80000
|
||||
#define C_OSYNC 0x100000
|
||||
#define C_SPARSE 0x200000
|
||||
+10
-6
@@ -34,17 +34,18 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: misc.c,v 1.2 1994/09/24 02:55:01 davidg Exp $
|
||||
* $Id: misc.c,v 1.2.8.4 1998/02/15 11:04:30 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -81,7 +82,7 @@ summary()
|
||||
(void)write(STDERR_FILENO, buf, strlen(buf));
|
||||
}
|
||||
(void)snprintf(buf, sizeof(buf),
|
||||
"%u bytes transferred in %.6f secs (%.0f bytes/sec)\n",
|
||||
"%qu bytes transferred in %.6f secs (%.0f bytes/sec)\n",
|
||||
st.bytes, secs, st.bytes / secs);
|
||||
(void)write(STDERR_FILENO, buf, strlen(buf));
|
||||
}
|
||||
@@ -91,15 +92,18 @@ void
|
||||
summaryx(notused)
|
||||
int notused;
|
||||
{
|
||||
int save_errno = errno;
|
||||
|
||||
summary();
|
||||
errno = save_errno;
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
terminate(notused)
|
||||
int notused;
|
||||
terminate(sig)
|
||||
int sig;
|
||||
{
|
||||
|
||||
exit(0);
|
||||
/* XXX exit() shouldn't call exit() from a signal handler. */
|
||||
exit(sig == 0 ? 0 : 1);
|
||||
}
|
||||
+3
-3
@@ -34,11 +34,11 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: position.c,v 1.2 1994/09/24 02:55:03 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)position.c 8.3 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -67,7 +67,7 @@ pos_in()
|
||||
|
||||
/* If not a character, pipe or tape device, try to seek on it. */
|
||||
if (!(in.flags & (ISCHR|ISPIPE|ISTAPE))) {
|
||||
if (lseek(in.fd, (off_t)(in.offset * in.dbsz), SEEK_CUR) == -1)
|
||||
if (lseek(in.fd, (off_t)in.offset * in.dbsz, SEEK_CUR) == -1)
|
||||
err(1, "%s", in.name);
|
||||
return;
|
||||
}
|
||||
|
||||
+33
-26
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)df.1 8.2 (Berkeley) 1/13/94
|
||||
.\" $Id: df.1,v 1.4 1996/08/29 18:05:48 wosch Exp $
|
||||
.\" $Id: df.1,v 1.4.2.3 1998/02/15 11:06:23 jkh Exp $
|
||||
.\"
|
||||
.Dd January 13, 1994
|
||||
.Dt DF 1
|
||||
@@ -40,7 +40,7 @@
|
||||
.Nd display free disk space
|
||||
.Sh SYNOPSIS
|
||||
.Nm df
|
||||
.Op Fl ink
|
||||
.Op Fl ikn
|
||||
.Op Fl t Ar type
|
||||
.Op Ar file | Ar filesystem ...
|
||||
.Sh DESCRIPTION
|
||||
@@ -72,34 +72,40 @@ This option should be used if it is possible that one or more
|
||||
filesystems are in a state such that they will not be able to provide
|
||||
statistics without a long delay.
|
||||
When this option is specified,
|
||||
.Nm df
|
||||
.Nm
|
||||
will not request new statistics from the filesystems, but will respond
|
||||
with the possibly stale statistics that were previously obtained.
|
||||
.It Fl t
|
||||
Only print out statistics for filesystems of the specified types.
|
||||
The recognized types are:
|
||||
ufs, nfs, mfs, lfs, msdos, fdesc, portal, kernfs, procfs, afs, isofs,
|
||||
iso9660fs, cdfs, and cd9660,
|
||||
along with the aggregates:
|
||||
all (the default),
|
||||
local (ufs, mfs, lfs, msdos, cd9660),
|
||||
and misc (fdesc, portal, kernfs, procfs).
|
||||
The names isofs, iso9660fs, cdfs, and cd9660 are aliases to each other
|
||||
all of them refering to the same type of file system.
|
||||
The string ``no'' may be prepending to a type to get its complement
|
||||
(e.g. ``nonfs'' to get non-NFS filesystems). The first
|
||||
.Fl t
|
||||
option overrides the default, additional such options will add to
|
||||
(or subtract from) the current set of types; e.g. either
|
||||
``df -t ufs -t lfs''
|
||||
or
|
||||
``df -t local -t nomfs''
|
||||
will display statistics for UFS and LFS filesystems.
|
||||
More than one type may be specified in a comma separated list.
|
||||
The list of filesystem types can be prefixed with
|
||||
.Dq no
|
||||
to specify the filesystem types for which action should
|
||||
.Em not
|
||||
be taken.
|
||||
For example, the
|
||||
.Nm
|
||||
command:
|
||||
.Bd -literal -offset indent
|
||||
df -t nonfs,mfs
|
||||
.Ed
|
||||
.Pp
|
||||
lists all filesystems except those of type
|
||||
.Tn NFS
|
||||
and
|
||||
.Tn MFS .
|
||||
The
|
||||
.Xr sysctl 8
|
||||
command can be used to find out the types of filesystems
|
||||
that are available on the system:
|
||||
.Bd -literal -offset indent
|
||||
sysctl vfs
|
||||
.Ed
|
||||
.El
|
||||
.Sh ENVIRONMENTAL VARIABLES
|
||||
.Sh ENVIRONMENT
|
||||
.Bl -tag -width BLOCKSIZE
|
||||
.It Ev BLOCKSIZE
|
||||
If the environmental variable
|
||||
If the environment variable
|
||||
.Ev BLOCKSIZE
|
||||
is set, the block counts will be displayed in units of that size block.
|
||||
.El
|
||||
@@ -111,15 +117,16 @@ and
|
||||
flags are ignored if a file or filesystem is specified.
|
||||
.Sh SEE ALSO
|
||||
.Xr quota 1 ,
|
||||
.Xr statfs 2 ,
|
||||
.Xr fstatfs 2 ,
|
||||
.Xr getfsstat 2 ,
|
||||
.Xr statfs 2 ,
|
||||
.Xr getmntinfo 3 ,
|
||||
.Xr fstab 5 ,
|
||||
.Xr mount 8 ,
|
||||
.Xr quot 8
|
||||
.Xr quot 8 ,
|
||||
.Xr sysctl 8
|
||||
.Sh HISTORY
|
||||
A
|
||||
.Nm df
|
||||
.Nm
|
||||
command appeared in
|
||||
.At v1 .
|
||||
+2
-2
@@ -35,7 +35,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: df.c,v 1.8 1996/01/14 18:55:09 bde Exp $
|
||||
* $Id: df.c,v 1.8.2.1 1996/12/13 17:15:11 joerg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -129,7 +129,7 @@ main(argc, argv)
|
||||
iflag = nflag = tflag = 0;
|
||||
fsmask = MT_NONE;
|
||||
|
||||
while ((ch = getopt(argc, argv, "iknt:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "iknt:")) != -1)
|
||||
switch (ch) {
|
||||
case 'i':
|
||||
iflag = 1;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" From: @(#)hostname.1 8.1 (Berkeley) 5/31/93
|
||||
.\" $Id: domainname.1,v 1.1 1994/09/18 21:23:36 wollman Exp $
|
||||
.\" $Id: domainname.1,v 1.2.6.1 1997/08/24 21:48:26 jkh Exp $
|
||||
.\"
|
||||
.Dd September 18, 1994
|
||||
.Dt DOMAINNAME 1
|
||||
@@ -42,11 +42,11 @@
|
||||
.Nm domainname
|
||||
.Op Ar ypdomain
|
||||
.Sh DESCRIPTION
|
||||
.Nm domainname
|
||||
.Nm Domainname
|
||||
prints the name of the current YP/NIS domain. The super-user can
|
||||
set the domain name by supplying an argument; this is usually done in the
|
||||
network initialization script
|
||||
.Pa /etc/netstart ,
|
||||
.Pa /etc/rc.network ,
|
||||
normally run at boot
|
||||
time.
|
||||
.Sh NOTA BENE
|
||||
|
||||
@@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)hostname.c 8.1 (Berkeley) 5/31/93"; */
|
||||
static const char rcsid[] =
|
||||
"$Id: domainname.c,v 1.4 1994/09/26 02:14:27 wollman Exp $";
|
||||
"$Id: domainname.c,v 1.5 1995/03/19 13:28:17 joerg Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -51,14 +51,26 @@ static const char rcsid[] =
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
main(argc,argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int ch;
|
||||
char domainname[MAXHOSTNAMELEN];
|
||||
|
||||
argc--, argv++;
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch (ch) {
|
||||
default:
|
||||
usage();
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc > 1)
|
||||
usage();
|
||||
|
||||
if (*argv) {
|
||||
if (setdomainname(*argv, strlen(*argv)))
|
||||
@@ -70,3 +82,10 @@ main(argc,argv)
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: domainname [ypdomain]\n");
|
||||
exit(1);
|
||||
}
|
||||
+4
-4
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
|
||||
.\" $Id: echo.1,v 1.2 1994/09/24 02:55:17 davidg Exp $
|
||||
.\" $Id: echo.1,v 1.3 1995/08/31 17:25:54 jkh Exp $
|
||||
.\"
|
||||
.Dd July 22, 1993
|
||||
.Dt ECHO 1
|
||||
@@ -47,7 +47,7 @@
|
||||
.Op "string ..."
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm echo
|
||||
.Nm
|
||||
utility writes any specified operands, separated by single blank (`` '')
|
||||
characters and followed by a newline (``\en'') character, to the standard
|
||||
output.
|
||||
@@ -61,13 +61,13 @@ by iBCS2 compatible systems.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Nm echo
|
||||
.Nm
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh SEE ALSO
|
||||
.Xr printf 1
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm echo
|
||||
.Nm
|
||||
utility is expected to be
|
||||
.St -p1003.2
|
||||
compatible.
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
# $Id: Makefile,v 1.12 1995/10/03 15:44:50 markm Exp $
|
||||
# $Id: Makefile,v 1.13 1995/10/22 20:14:13 ache Exp $
|
||||
|
||||
PROG= ed
|
||||
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
|
||||
LINKS= ${BINDIR}/ed ${BINDIR}/red
|
||||
MLINKS= ed.1 red.1
|
||||
LINKS= ${BINDIR}/ed ${BINDIR}/red
|
||||
MLINKS= ed.1 red.1
|
||||
|
||||
.if exists(../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
||||
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
|
||||
DISTRIBUTION=des
|
||||
CFLAGS+=-DDES
|
||||
LDADD+= -L${CIPHEROBJDIR} -lcipher
|
||||
|
||||
+11
-3
@@ -24,11 +24,15 @@
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: buf.c,v 1.7 1995/05/30 00:06:43 rgrimes Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char *rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
|
||||
#if 0
|
||||
static char * const rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
|
||||
#else
|
||||
static char * const rcsid =
|
||||
"$Id: buf.c,v 1.15 1997/12/31 12:25:33 helbig Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/file.h>
|
||||
@@ -264,6 +268,10 @@ init_buffers()
|
||||
hello, world
|
||||
EOF */
|
||||
setbuffer(stdin, stdinbuf, 1);
|
||||
|
||||
/* Ensure stdout is line buffered. This avoids bogus delays
|
||||
of output if stdout is piped through utilities to a terminal. */
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
if (open_sbuf() < 0)
|
||||
quit(2);
|
||||
REQUE(&buffer_head, &buffer_head);
|
||||
|
||||
+440
-548
File diff suppressed because it is too large.
Load diff
+1
-2
@@ -25,10 +25,9 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp
|
||||
* $Id: ed.h,v 1.7 1994/09/24 02:55:25 davidg Exp $
|
||||
* $Id: ed.h,v 1.8 1994/11/03 21:46:55 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h> /* for MAXPATHLEN */
|
||||
#include <errno.h>
|
||||
#if defined(sun) || defined(__NetBSD__)
|
||||
|
||||
+16
-10
@@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: main.c,v 1.5 1995/05/30 00:06:47 rgrimes Exp $
|
||||
* $Id: main.c,v 1.6.2.1 1997/08/24 21:50:21 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -57,9 +57,9 @@ static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp";
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/wait.h>
|
||||
#include <ctype.h>
|
||||
#include <setjmp.h>
|
||||
#include <pwd.h>
|
||||
#include <locale.h>
|
||||
#include <pwd.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "ed.h"
|
||||
|
||||
@@ -100,10 +100,6 @@ char *dps = "*"; /* default command-line prompt */
|
||||
|
||||
char *usage = "usage: %s [-] [-sx] [-p string] [name]\n";
|
||||
|
||||
extern char errmsg[];
|
||||
extern int optind;
|
||||
extern char *optarg;
|
||||
|
||||
/* ed: line editor */
|
||||
int
|
||||
main(argc, argv)
|
||||
@@ -112,12 +108,17 @@ main(argc, argv)
|
||||
{
|
||||
int c, n;
|
||||
long status = 0;
|
||||
#if __GNUC__
|
||||
/* Avoid longjmp clobbering */
|
||||
(void) &argc;
|
||||
(void) &argv;
|
||||
#endif
|
||||
|
||||
(void)setlocale(LC_ALL, "");
|
||||
|
||||
red = (n = strlen(argv[0])) > 2 && argv[0][n - 3] == 'r';
|
||||
top:
|
||||
while ((c = getopt(argc, argv, "p:sx")) != EOF)
|
||||
while ((c = getopt(argc, argv, "p:sx")) != -1)
|
||||
switch(c) {
|
||||
case 'p': /* set prompt */
|
||||
prompt = optarg;
|
||||
@@ -1354,7 +1355,8 @@ signal_hup(signo)
|
||||
{
|
||||
if (mutex)
|
||||
sigflags |= (1 << (signo - 1));
|
||||
else handle_hup(signo);
|
||||
else
|
||||
handle_hup(signo);
|
||||
}
|
||||
|
||||
|
||||
@@ -1364,7 +1366,8 @@ signal_int(signo)
|
||||
{
|
||||
if (mutex)
|
||||
sigflags |= (1 << (signo - 1));
|
||||
else handle_int(signo);
|
||||
else
|
||||
handle_int(signo);
|
||||
}
|
||||
|
||||
|
||||
@@ -1414,6 +1417,8 @@ void
|
||||
handle_winch(signo)
|
||||
int signo;
|
||||
{
|
||||
int save_errno = errno;
|
||||
|
||||
struct winsize ws; /* window size structure */
|
||||
|
||||
sigflags &= ~(1 << (signo - 1));
|
||||
@@ -1421,6 +1426,7 @@ handle_winch(signo)
|
||||
if (ws.ws_row > 2) rows = ws.ws_row - 2;
|
||||
if (ws.ws_col > 8) cols = ws.ws_col - 8;
|
||||
}
|
||||
errno = save_errno;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+4
-10
@@ -1,13 +1,7 @@
|
||||
# /b/source/CVS/src/bin/expr/Makefile,v 1.5 1993/06/14 19:56:06 jtc Exp
|
||||
# $Id: Makefile,v 1.8 1996/05/07 23:14:17 wosch Exp $
|
||||
# $Id: Makefile,v 1.10 1996/06/02 17:05:48 phk Exp $
|
||||
|
||||
PROG= expr
|
||||
SRCS= expr.c
|
||||
CLEANFILES+= expr.c y.tab.h
|
||||
|
||||
expr.c:
|
||||
${YACC} -d ${.IMPSRC}
|
||||
mv -f y.tab.c expr.c
|
||||
PROG= expr
|
||||
SRCS= expr.y
|
||||
YFLAGS=
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
+11
-11
@@ -28,7 +28,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: expr.1,v 1.3 1994/04/24 01:18:46 jkh Exp $
|
||||
.\" $Id: expr.1,v 1.4 1996/01/29 22:53:24 mpp Exp $
|
||||
.\"
|
||||
.Dd July 3, 1993
|
||||
.Dt EXPR 1
|
||||
@@ -41,13 +41,13 @@
|
||||
.Ar expression
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm expr
|
||||
.Nm
|
||||
utility evaluates
|
||||
.Ar expression
|
||||
and writes the result on standard output.
|
||||
.Pp
|
||||
All operators are separate arguments to the
|
||||
.Nm expr
|
||||
.Nm
|
||||
utility.
|
||||
Characters special to the command interpreter must be escaped.
|
||||
.Pp
|
||||
@@ -55,26 +55,26 @@ Operators are listed below in order of increasing precedence.
|
||||
Operators with equal precedence are grouped within { } symbols.
|
||||
.Bl -tag -width indent
|
||||
.It Ar expr1 Li | Ar expr2
|
||||
Returns the evaluation of
|
||||
Return the evaluation of
|
||||
.Ar expr1
|
||||
if it is neither an empty string nor zero;
|
||||
otherwise, returns the evaluation of
|
||||
.Ar expr2 .
|
||||
.It Ar expr1 Li & Ar expr2
|
||||
Returns the evaluation of
|
||||
Return the evaluation of
|
||||
.Ar expr1
|
||||
if neither expression evaluates to an empty string or zero;
|
||||
otherwise, returns zero.
|
||||
.It Ar expr1 Li "{=, >, >=, <, <=, !=}" Ar expr2
|
||||
Returns the results of integer comparison if both arguments are integers;
|
||||
Return the results of integer comparison if both arguments are integers;
|
||||
otherwise, returns the results of string comparison using the locale-specific
|
||||
collation sequence.
|
||||
The result of each comparison is 1 if the specified relation is true,
|
||||
or 0 if the relation is false.
|
||||
.It Ar expr1 Li "{+, -}" Ar expr2
|
||||
Returns the results of addition or subtraction of integer-valued arguments.
|
||||
Return the results of addition or subtraction of integer-valued arguments.
|
||||
.It Ar expr1 Li "{*, /, %}" Ar expr2
|
||||
Returns the results of multiplication, integer division, or remainder of integer-valued arguments.
|
||||
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
|
||||
.It Ar expr1 Li : Ar expr2
|
||||
The
|
||||
.Dq \:
|
||||
@@ -115,9 +115,9 @@ The following example returns the number of characters in variable a.
|
||||
.El
|
||||
.Sh DIAGNOSTICS
|
||||
The
|
||||
.Nm expr
|
||||
.Nm
|
||||
utility exits with one of the following values:
|
||||
.Bl -tag -width Ds -compact
|
||||
.Bl -tag -width indent -compact
|
||||
.It 0
|
||||
the expression is neither an empty string nor 0.
|
||||
.It 1
|
||||
@@ -127,6 +127,6 @@ the expression is invalid.
|
||||
.El
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm expr
|
||||
.Nm
|
||||
utility conforms to
|
||||
.St -p1003.2 .
|
||||
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)hostname.1 8.2 (Berkeley) 4/28/95
|
||||
.\" $Id: hostname.1,v 1.6 1997/02/22 14:03:41 peter Exp $
|
||||
.\" $Id: hostname.1,v 1.3.2.3 1998/06/30 06:43:13 charnier Exp $
|
||||
.\"
|
||||
.Dd April 28, 1995
|
||||
.Dt HOSTNAME 1
|
||||
@@ -43,24 +43,24 @@
|
||||
.Op Fl s
|
||||
.Op Ar name-of-host
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
.Nm Hostname
|
||||
prints the name of the current host. The super-user can
|
||||
set the hostname by supplying an argument; this is usually done in the
|
||||
network initialization script
|
||||
.Pa /etc/netstart ,
|
||||
.Pa /etc/rc.network ,
|
||||
normally run at boot
|
||||
time.
|
||||
.Pp
|
||||
Options:
|
||||
.Bl -tag -width flag
|
||||
.It Fl s
|
||||
Trims off any domain information from the printed
|
||||
Trim off any domain information from the printed
|
||||
name.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr gethostname 3
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm hostname
|
||||
.Nm
|
||||
command appeared in
|
||||
.Bx 4.2 .
|
||||
+18
-8
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: hostname.c,v 1.2 1994/09/24 02:55:40 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1988, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -51,30 +51,32 @@ static char sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
main(argc,argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
extern int optind;
|
||||
int ch, sflag;
|
||||
char *p, hostname[MAXHOSTNAMELEN];
|
||||
|
||||
sflag = 0;
|
||||
while ((ch = getopt(argc, argv, "s")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "s")) != -1)
|
||||
switch (ch) {
|
||||
case 's':
|
||||
sflag = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
(void)fprintf(stderr,
|
||||
"usage: hostname [-s] [hostname]\n");
|
||||
exit(1);
|
||||
usage();
|
||||
}
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (argc > 1)
|
||||
usage();
|
||||
|
||||
if (*argv) {
|
||||
if (sethostname(*argv, strlen(*argv)))
|
||||
err(1, "sethostname");
|
||||
@@ -87,3 +89,11 @@ main(argc,argv)
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
{
|
||||
|
||||
(void)fprintf(stderr, "usage: hostname [-s] [name-of-host]\n");
|
||||
exit(1);
|
||||
}
|
||||
+54
-31
@@ -32,10 +32,10 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)kill.1 8.1 (Berkeley) 5/31/93
|
||||
.\" $Id: kill.1,v 1.2 1994/09/24 02:55:43 davidg Exp $
|
||||
.\" @(#)kill.1 8.2 (Berkeley) 4/28/95
|
||||
.\" $Id: kill.1,v 1.3.2.2 1998/05/22 10:50:26 jkoshy Exp $
|
||||
.\"
|
||||
.Dd May 31, 1993
|
||||
.Dd April 28, 1995
|
||||
.Dt KILL 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -43,75 +43,98 @@
|
||||
.Nd terminate or signal a process
|
||||
.Sh SYNOPSIS
|
||||
.Nm kill
|
||||
.Op Fl signal_name
|
||||
.Op Fl s Ar signal_name
|
||||
.Ar pid
|
||||
\&...
|
||||
.Nm kill
|
||||
.Op Fl signal_number
|
||||
.Fl l
|
||||
.Op Ar exit_status
|
||||
.Nm kill
|
||||
.Fl signal_name
|
||||
.Ar pid
|
||||
\&...
|
||||
.Nm kill
|
||||
.Op Fl l
|
||||
.Fl signal_number
|
||||
.Ar pid
|
||||
\&...
|
||||
.Sh DESCRIPTION
|
||||
The kill utility sends the
|
||||
.Dv TERM
|
||||
signal to the processes specified
|
||||
by the pid operand(s).
|
||||
The
|
||||
.Nm
|
||||
utility sends a signal to the processes specified by the pid operand(s).
|
||||
.Pp
|
||||
Only the super-user may send signals to other users' processes.
|
||||
.Pp
|
||||
The options are as follows:
|
||||
.Pp
|
||||
.Bl -tag -width Ds
|
||||
.It Fl l
|
||||
List the signal names.
|
||||
.It Fl s Ar signal_name
|
||||
A symbolic signal name specifying the signal to be sent instead of the
|
||||
default
|
||||
.Dv TERM .
|
||||
.It Fl l Op Ar exit_status
|
||||
If no operand is given, list the signal names; otherwise, write
|
||||
the signal name corresponding to
|
||||
.Ar exit_status .
|
||||
.It Fl signal_name
|
||||
A symbolic signal name specifying the signal to be sent instead of the
|
||||
default
|
||||
.Dv TERM .
|
||||
The
|
||||
.Fl l
|
||||
option displays the signal names.
|
||||
.It Fl signal_number
|
||||
A non-negative decimal integer, specifying the signal to be sent instead
|
||||
of the default
|
||||
.Dv TERM .
|
||||
.El
|
||||
.Pp
|
||||
The following pids have special meanings:
|
||||
.Bl -tag -width Ds -compact
|
||||
.It -1
|
||||
If superuser, broadcast the signal to all processes; otherwise broadcast
|
||||
to all processes belonging to the user.
|
||||
.El
|
||||
.Pp
|
||||
Some of the more commonly used signals:
|
||||
.Bd -ragged -offset indent -compact
|
||||
.Bl -column XXX TERM
|
||||
.It -1 -1 (super-user broadcast to all processes, or user broadcast
|
||||
to user's processes)
|
||||
.It 0 0 (sh(1) only, signals all members of process group)
|
||||
.It 2 INT (interrupt)
|
||||
.It 3 QUIT (quit)
|
||||
.It 6 ABRT (abort)
|
||||
.It 9 KILL (non-catchable, non-ignorable kill)
|
||||
.It 14 ALRM (alarm clock)
|
||||
.It 15 TERM (software termination signal)
|
||||
.Bl -tag -width Ds -compact
|
||||
.It 1
|
||||
HUP (hang up)
|
||||
.It 2
|
||||
INT (interrupt)
|
||||
.It 3
|
||||
QUIT (quit)
|
||||
.It 6
|
||||
ABRT (abort)
|
||||
.It 9
|
||||
KILL (non-catchable, non-ignorable kill)
|
||||
.It 14
|
||||
ALRM (alarm clock)
|
||||
.It 15
|
||||
TERM (software termination signal)
|
||||
.El
|
||||
.Ed
|
||||
.Pp
|
||||
.Nm Kill
|
||||
is a built-in to
|
||||
.Xr csh 1 ;
|
||||
it allows job specifiers of the form ``%...'' as arguments
|
||||
so process id's are not as often used as
|
||||
.Nm kill
|
||||
.Nm
|
||||
arguments.
|
||||
See
|
||||
.Xr csh 1
|
||||
.Xr csh 1
|
||||
for details.
|
||||
.Sh SEE ALSO
|
||||
.Xr csh 1 ,
|
||||
.Xr killall 1 ,
|
||||
.Xr ps 1 ,
|
||||
.Xr kill 2 ,
|
||||
.Xr sigvec 2
|
||||
.Xr sigaction 2
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm
|
||||
function is expected to be
|
||||
.St -p1003.2
|
||||
compatible.
|
||||
.Sh HISTORY
|
||||
A
|
||||
.Nm kill
|
||||
.Nm
|
||||
command appeared in
|
||||
.At v6 .
|
||||
.Sh BUGS
|
||||
|
||||
+75
-32
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kill.c,v 1.2 1994/09/24 02:55:44 davidg Exp $
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1988, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)kill.c 8.3 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)kill.c 8.4 (Berkeley) 4/28/95";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <ctype.h>
|
||||
@@ -52,7 +52,8 @@ static char sccsid[] = "@(#)kill.c 8.3 (Berkeley) 4/2/94";
|
||||
#include <string.h>
|
||||
|
||||
void nosig __P((char *));
|
||||
void printsig __P((FILE *));
|
||||
void printsignals __P((FILE *));
|
||||
int signame_to_signum __P((char *));
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
@@ -60,48 +61,70 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
const char *const *p;
|
||||
int errors, numsig, pid;
|
||||
char *ep;
|
||||
|
||||
if (argc < 2)
|
||||
usage();
|
||||
|
||||
if (!strcmp(*++argv, "-l")) {
|
||||
printsig(stdout);
|
||||
numsig = SIGTERM;
|
||||
|
||||
argc--, argv++;
|
||||
if (!strcmp(*argv, "-l")) {
|
||||
argc--, argv++;
|
||||
if (argc > 1)
|
||||
usage();
|
||||
if (argc == 1) {
|
||||
if (!isdigit(**argv))
|
||||
usage();
|
||||
numsig = strtol(*argv, &ep, 10);
|
||||
if (!**argv || *ep)
|
||||
errx(1, "illegal signal number: %s", *argv);
|
||||
if (numsig >= 128)
|
||||
numsig -= 128;
|
||||
if (numsig <= 0 || numsig >= NSIG)
|
||||
nosig(*argv);
|
||||
printf("%s\n", sys_signame[numsig]);
|
||||
exit(0);
|
||||
}
|
||||
printsignals(stdout);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
numsig = SIGTERM;
|
||||
if (**argv == '-') {
|
||||
if (!strcmp(*argv, "-s")) {
|
||||
argc--, argv++;
|
||||
if (argc < 1) {
|
||||
warnx("option requires an argument -- s");
|
||||
usage();
|
||||
}
|
||||
if (strcmp(*argv, "0")) {
|
||||
if ((numsig = signame_to_signum(*argv)) < 0)
|
||||
nosig(*argv);
|
||||
} else
|
||||
numsig = 0;
|
||||
argc--, argv++;
|
||||
} else if (**argv == '-') {
|
||||
++*argv;
|
||||
if (isalpha(**argv)) {
|
||||
if (!strncasecmp(*argv, "sig", 3))
|
||||
*argv += 3;
|
||||
for (numsig = NSIG, p = sys_signame + 1; --numsig; ++p)
|
||||
if (!strcasecmp(*p, *argv)) {
|
||||
numsig = p - sys_signame;
|
||||
break;
|
||||
}
|
||||
if (!numsig)
|
||||
if ((numsig = signame_to_signum(*argv)) < 0)
|
||||
nosig(*argv);
|
||||
} else if (isdigit(**argv)) {
|
||||
numsig = strtol(*argv, &ep, 10);
|
||||
if (!*argv || *ep)
|
||||
if (!**argv || *ep)
|
||||
errx(1, "illegal signal number: %s", *argv);
|
||||
if (numsig < 0 || numsig > NSIG)
|
||||
if (numsig < 0 || numsig >= NSIG)
|
||||
nosig(*argv);
|
||||
} else
|
||||
nosig(*argv);
|
||||
++argv;
|
||||
argc--, argv++;
|
||||
}
|
||||
|
||||
if (!*argv)
|
||||
if (argc == 0)
|
||||
usage();
|
||||
|
||||
for (errors = 0; *argv; ++argv) {
|
||||
for (errors = 0; argc; argc--, argv++) {
|
||||
pid = strtol(*argv, &ep, 10);
|
||||
if (!*argv || *ep) {
|
||||
if (!**argv || *ep) {
|
||||
warnx("illegal process id: %s", *argv);
|
||||
errors = 1;
|
||||
} else if (kill(pid, numsig) == -1) {
|
||||
@@ -109,38 +132,58 @@ main(argc, argv)
|
||||
errors = 1;
|
||||
}
|
||||
}
|
||||
|
||||
exit(errors);
|
||||
}
|
||||
|
||||
int
|
||||
signame_to_signum(sig)
|
||||
char *sig;
|
||||
{
|
||||
int n;
|
||||
|
||||
if (!strncasecmp(sig, "sig", 3))
|
||||
sig += 3;
|
||||
for (n = 1; n < NSIG; n++) {
|
||||
if (!strcasecmp(sys_signame[n], sig))
|
||||
return (n);
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
|
||||
void
|
||||
nosig(name)
|
||||
char *name;
|
||||
{
|
||||
|
||||
warnx("unknown signal %s; valid signals:", name);
|
||||
printsig(stderr);
|
||||
printsignals(stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void
|
||||
printsig(fp)
|
||||
printsignals(fp)
|
||||
FILE *fp;
|
||||
{
|
||||
const char *const *p;
|
||||
int cnt;
|
||||
int n;
|
||||
|
||||
for (cnt = NSIG, p = sys_signame + 1; --cnt; ++p) {
|
||||
(void)fprintf(fp, "%s ", *p);
|
||||
if (cnt == NSIG / 2)
|
||||
for (n = 1; n < NSIG; n++) {
|
||||
(void)fprintf(fp, "%s", sys_signame[n]);
|
||||
if (n == (NSIG / 2) || n == (NSIG - 1))
|
||||
(void)fprintf(fp, "\n");
|
||||
else
|
||||
(void)fprintf(fp, " ");
|
||||
}
|
||||
(void)fprintf(fp, "\n");
|
||||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
{
|
||||
|
||||
(void)fprintf(stderr, "usage: kill [-l] [-sig] pid ...\n");
|
||||
(void)fprintf(stderr, "%s\n%s\n%s\n%s\n",
|
||||
"usage: kill [-s signal_name] pid ...",
|
||||
" kill -l [exit_status]",
|
||||
" kill -signal_name pid ...",
|
||||
" kill -signal_number pid ...");
|
||||
exit(1);
|
||||
}
|
||||
+6
-6
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)ln.1 8.2 (Berkeley) 12/30/93
|
||||
.\" $Id: ln.1,v 1.2 1994/09/24 02:55:47 davidg Exp $
|
||||
.\" $Id: ln.1,v 1.3 1996/08/29 18:05:55 wosch Exp $
|
||||
.\"
|
||||
.Dd December 30, 1993
|
||||
.Dt LN 1
|
||||
@@ -52,7 +52,7 @@
|
||||
.Op target_dir
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm ln
|
||||
.Nm
|
||||
utility creates a new directory entry (linked file) which has the
|
||||
same modes as the original file.
|
||||
It is useful for maintaining multiple copies of a file in many places
|
||||
@@ -75,7 +75,7 @@ Create a symbolic link.
|
||||
.El
|
||||
.Pp
|
||||
By default
|
||||
.Nm ln
|
||||
.Nm
|
||||
makes
|
||||
.Em hard
|
||||
links.
|
||||
@@ -99,7 +99,7 @@ call may be used to read the contents of a symbolic link.
|
||||
Symbolic links may span file systems and may refer to directories.
|
||||
.Pp
|
||||
Given one or two arguments,
|
||||
.Nm ln
|
||||
.Nm
|
||||
creates a link to an existing file
|
||||
.Ar source_file .
|
||||
If
|
||||
@@ -113,7 +113,7 @@ to the last component of
|
||||
.Ar source_file .
|
||||
.Pp
|
||||
Given more than two arguments,
|
||||
.Nm ln
|
||||
.Nm
|
||||
makes links in
|
||||
.Ar target_dir
|
||||
to all the named source files.
|
||||
@@ -127,6 +127,6 @@ The links made will have the same name as the files being linked to.
|
||||
.Xr symlink 7
|
||||
.Sh HISTORY
|
||||
A
|
||||
.Nm ln
|
||||
.Nm
|
||||
command appeared in
|
||||
.At v1 .
|
||||
+7
-6
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ln.c,v 1.5 1994/12/06 18:50:44 bde Exp $
|
||||
* $Id: ln.c,v 1.6.2.1 1997/06/06 16:07:40 charnier Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1987, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94";
|
||||
static char const sccsid[] = "@(#)ln.c 8.2 (Berkeley) 3/31/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@@ -71,7 +71,7 @@ main(argc, argv)
|
||||
int ch, exitval;
|
||||
char *sourcedir;
|
||||
|
||||
while ((ch = getopt(argc, argv, "fs")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "fs")) != -1)
|
||||
switch (ch) {
|
||||
case 'f':
|
||||
fflag = 1;
|
||||
@@ -157,7 +157,8 @@ linkit(target, source, isdir)
|
||||
void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage:\tln [-fs] file1 file2\n\tln [-fs] file ... directory\n");
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: ln [-fs] file1 file2",
|
||||
" ln [-fs] file ... directory");
|
||||
exit(1);
|
||||
}
|
||||
+30
-33
@@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)symlink.7 8.3 (Berkeley) 3/31/94
|
||||
.\" $Id$
|
||||
.\" $Id: symlink.7,v 1.2.8.2 1997/06/19 01:09:09 jdp Exp $
|
||||
.\"
|
||||
.Dd March 31, 1994
|
||||
.Dt SYMLINK 7
|
||||
@@ -106,9 +106,10 @@ the system call
|
||||
would return a file descriptor to the file
|
||||
.Dq afile .
|
||||
.Pp
|
||||
There are four system calls that do not follow links, and which operate
|
||||
There are five system calls that do not follow links, and which operate
|
||||
on the symbolic link itself.
|
||||
They are:
|
||||
.Xr lchown 2 ,
|
||||
.Xr lstat 2 ,
|
||||
.Xr readlink 2 ,
|
||||
.Xr rename 2 ,
|
||||
@@ -120,23 +121,22 @@ is an alias for
|
||||
.Xr unlink 2 ,
|
||||
it also does not follow symbolic links.
|
||||
.Pp
|
||||
Unlike other filesystem objects, symbolic links do not have an owner,
|
||||
group, permissions, access and modification times, etc.
|
||||
The only attributes returned from an
|
||||
.Xr lstat 2
|
||||
that refer to the symbolic link itself are the file type (S_IFLNK),
|
||||
size, blocks, and link count (always 1).
|
||||
The other attributes are filled in from the directory that contains
|
||||
the link.
|
||||
For portability reasons, you should be aware that other implementations
|
||||
(including historic implementations of 4BSD), implement symbolic links
|
||||
such that they have the same attributes as any other file.
|
||||
The owner and group of an existing symbolic link can be changed by
|
||||
means of the
|
||||
.Xr lchown 2
|
||||
system call.
|
||||
The other file attributes, such as the modification time and access
|
||||
permissions, are not used by the system and cannot be changed.
|
||||
.Pp
|
||||
The
|
||||
.Bx 4.4
|
||||
system differs from historical 4BSD systems in that the system call
|
||||
.Xr chown 2
|
||||
has been changed to follow symbolic links.
|
||||
has been changed to follow symbolic links. The
|
||||
.Xr lchown 2
|
||||
system call was added later when the limitations of the new
|
||||
.Xr chown 2
|
||||
became apparent.
|
||||
.Ss Commands not traversing a file tree.
|
||||
The second area is symbolic links, specified as command line file
|
||||
name arguments, to commands which are not traversing a file tree.
|
||||
@@ -200,6 +200,8 @@ option is not specified),
|
||||
the
|
||||
.Nm ls
|
||||
command follows symbolic links named as arguments if the
|
||||
.Fl H
|
||||
or
|
||||
.Fl L
|
||||
option is specified,
|
||||
or if the
|
||||
@@ -207,16 +209,13 @@ or if the
|
||||
.Fl d
|
||||
or
|
||||
.Fl l
|
||||
options are not specified.
|
||||
(If the
|
||||
.Fl L
|
||||
option is specified,
|
||||
options are not specified. (The
|
||||
.Nm ls
|
||||
always follows symbolic links.
|
||||
.Nm Ls
|
||||
is the only command where the
|
||||
command is the only command where the
|
||||
.Fl H
|
||||
and
|
||||
.Fl L
|
||||
option affects its behavior even though it is not doing a walk of
|
||||
options affect its behavior even though it is not doing a walk of
|
||||
a file tree.)
|
||||
.Pp
|
||||
The
|
||||
@@ -394,23 +393,19 @@ options.
|
||||
To maintain compatibility with historic systems,
|
||||
the
|
||||
.Nm ls
|
||||
command never follows symbolic links unless the
|
||||
.Fl L
|
||||
flag is specified.
|
||||
If the
|
||||
command acts a little differently. If you do not specify the
|
||||
.Fl F ,
|
||||
.Fl d or
|
||||
.Fl l
|
||||
options,
|
||||
.Nm ls
|
||||
will follow symbolic links specified on the command line. If the
|
||||
.Fl L
|
||||
flag is specified,
|
||||
.Nm ls
|
||||
follows all symbolic links,
|
||||
regardless of their type,
|
||||
whether specified on the command line or encountered in the tree walk.
|
||||
The
|
||||
.Nm ls
|
||||
command does not support the
|
||||
.Fl H
|
||||
or
|
||||
.Fl P
|
||||
options.
|
||||
.Sh SEE ALSO
|
||||
.Xr chflags 1 ,
|
||||
.Xr chgrp 1 ,
|
||||
@@ -424,9 +419,11 @@ options.
|
||||
.Xr pax 1 ,
|
||||
.Xr rm 1 ,
|
||||
.Xr tar 1 ,
|
||||
.Xr lchown 2 ,
|
||||
.Xr lstat 2 ,
|
||||
.Xr readlink 2 ,
|
||||
.Xr rename 2 ,
|
||||
.Xr symlink 2 ,
|
||||
.Xr unlink 2 ,
|
||||
.Xr fts 3 ,
|
||||
.Xr remove 3 ,
|
||||
|
||||
+3
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* $Id: extern.h,v 1.2 1994/09/24 02:55:52 davidg Exp $
|
||||
*/
|
||||
|
||||
int acccmp __P((const FTSENT *, const FTSENT *));
|
||||
@@ -49,3 +49,5 @@ void printcol __P((DISPLAY *));
|
||||
void printlong __P((DISPLAY *));
|
||||
void printscol __P((DISPLAY *));
|
||||
void usage __P((void));
|
||||
int len_octal __P((char *, int));
|
||||
int prn_octal __P((char *));
|
||||
+78
-23
@@ -13,7 +13,7 @@
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" must display the following acknowledgment:
|
||||
.\" This product includes software developed by the University of
|
||||
.\" California, Berkeley and its contributors.
|
||||
.\" 4. Neither the name of the University nor the names of its contributors
|
||||
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)ls.1 8.6 (Berkeley) 4/18/94
|
||||
.\" $Id: ls.1,v 1.5.2.2 1997/03/07 02:00:30 mpp Exp $
|
||||
.\" $Id: ls.1,v 1.5.2.5 1997/12/25 09:35:55 hoek Exp $
|
||||
.\"
|
||||
.Dd April 18, 1994
|
||||
.Dt LS 1
|
||||
@@ -43,20 +43,20 @@
|
||||
.Nd list directory contents
|
||||
.Sh SYNOPSIS
|
||||
.Nm ls
|
||||
.Op Fl ACFLRTacdfgikloqrstu1
|
||||
.Op Fl ABCFHLPRTWabcdfgikloqrstu1
|
||||
.Op Ar file ...
|
||||
.Sh DESCRIPTION
|
||||
For each operand that names a
|
||||
.Ar file
|
||||
of a type other than
|
||||
directory,
|
||||
.Nm ls
|
||||
.Nm
|
||||
displays its name as well as any requested,
|
||||
associated information.
|
||||
For each operand that names a
|
||||
.Ar file
|
||||
of type directory,
|
||||
.Nm ls
|
||||
.Nm
|
||||
displays the names of files contained
|
||||
within that directory, as well as any requested, associated
|
||||
information.
|
||||
@@ -76,6 +76,9 @@ List all entries except for
|
||||
and
|
||||
.Ql \&.. .
|
||||
Always set for the super-user.
|
||||
.It Fl B
|
||||
Force printing of non-graphic characters in file names as \\xxx,
|
||||
where xxx is the numeric value of the character in octal.
|
||||
.It Fl C
|
||||
Force multi-column output; this is the default when output is to a terminal.
|
||||
.It Fl F
|
||||
@@ -84,24 +87,47 @@ that is a directory, an asterisk (*) after each that is
|
||||
executable,
|
||||
an at sign (@) after each symbolic link,
|
||||
an equals sign (=) after each socket,
|
||||
a percent sign (%) after each whiteout,
|
||||
and a vertical bar (|) after each that is a
|
||||
.Tn FIFO .
|
||||
.Tn FIFO .
|
||||
.It Fl H
|
||||
Symbolic links on the command line are followed. This option is assumed if
|
||||
none of the
|
||||
.Fl F ,
|
||||
.Fl d ,
|
||||
or
|
||||
.Fl l
|
||||
options are specified.
|
||||
.It Fl L
|
||||
If argument is a symbolic link, list the file or directory the link references
|
||||
rather than the link itself.
|
||||
rather than the link itself. This option cancels the
|
||||
.Fl P
|
||||
option.
|
||||
.It Fl P
|
||||
If argument is a symbolic link, list the link itself rather than the
|
||||
object the link references. This option cancels the
|
||||
.Fl H
|
||||
and
|
||||
.Fl L
|
||||
options.
|
||||
.It Fl R
|
||||
Recursively list subdirectories encountered.
|
||||
.It Fl T
|
||||
Display complete time information for the file, including
|
||||
month, day, hour, minute, second, and year.
|
||||
.It Fl W
|
||||
Display whiteouts when scanning directories.
|
||||
.It Fl a
|
||||
Include directory entries whose names begin with a
|
||||
dot (.).
|
||||
.It Fl b
|
||||
As
|
||||
.Fl B ,
|
||||
but use C escape codes whenever possible.
|
||||
.It Fl c
|
||||
Use time when file status was last changed for sorting or printing.
|
||||
.It Fl d
|
||||
Directories are listed as plain files (not searched recursively) and
|
||||
symbolic links in the argument list are not indirected through.
|
||||
Directories are listed as plain files (not searched recursively).
|
||||
.It Fl f
|
||||
Output is not sorted.
|
||||
.It Fl g
|
||||
@@ -114,8 +140,10 @@ format output.
|
||||
.It Fl i
|
||||
For each file, print the file's file serial number (inode number).
|
||||
.It Fl k
|
||||
If the 's' option is specified, print the file size allocation in kilobytes,
|
||||
not blocks.
|
||||
If the
|
||||
.Fl s
|
||||
option is specified, print the file size allocation in kilobytes,
|
||||
not blocks. This option overrides the environment variable BLOCKSIZE.
|
||||
.It Fl l
|
||||
(The lowercase letter ``ell.'') List in long format. (See below.)
|
||||
If the output is to a terminal, a total sum for all the file
|
||||
@@ -134,7 +162,8 @@ lexicographical order or the oldest entries first.
|
||||
Display the number of file system blocks actually used by each file, in units
|
||||
of 512 bytes, where partial units are rounded up to the next integer value.
|
||||
If the output is to a terminal, a total sum for all the file
|
||||
sizes is output on a line before the listing.
|
||||
sizes is output on a line before the listing. The environment variable
|
||||
BLOCKSIZE overrides the unit size of 512 bytes.
|
||||
.It Fl t
|
||||
Sort by time modified (most recently modified
|
||||
first) before sorting the operands by lexicographical
|
||||
@@ -162,14 +191,30 @@ options all override each other; the last one specified determines
|
||||
the format used.
|
||||
.Pp
|
||||
The
|
||||
.Fl c ,
|
||||
.Fl c
|
||||
and
|
||||
.Fl u
|
||||
options override each other; the last one specified determines
|
||||
the file time used.
|
||||
.Pp
|
||||
The
|
||||
.Fl B ,
|
||||
.Fl b
|
||||
and
|
||||
.Fl q
|
||||
options all override each other; the last one specified determines
|
||||
the format used for non-printable characters.
|
||||
.Pp
|
||||
The
|
||||
.Fl H,
|
||||
.Fl L
|
||||
and
|
||||
.Fl P
|
||||
options all override each other (either partially or fully); they
|
||||
are applied in the order specified.
|
||||
.Pp
|
||||
By default,
|
||||
.Nm ls
|
||||
.Nm
|
||||
lists one entry per line to standard
|
||||
output; the exceptions are to terminals or when the
|
||||
.Fl C
|
||||
@@ -198,6 +243,10 @@ number of 512-byte blocks used by the files in the directory is displayed
|
||||
on a line by itself immediately before the information for the files in the
|
||||
directory.
|
||||
.Pp
|
||||
If the modification time of the file is more than 6 months
|
||||
in the past or future, then the year of the last modification
|
||||
is displayed in place of the hour and minute fields.
|
||||
.Pp
|
||||
If the owner or group names are not a known user or group name
|
||||
the numeric ID's are displayed.
|
||||
.Pp
|
||||
@@ -207,7 +256,9 @@ in the size field. If the file is a symbolic link the pathname of the
|
||||
linked-to file is preceded by
|
||||
.Dq \-> .
|
||||
.Pp
|
||||
The file mode printed under the -l option consists of the
|
||||
The file mode printed under the
|
||||
.Fl l
|
||||
option consists of the
|
||||
entry type, owner permissions, and group permissions.
|
||||
The entry type character describes the type of file, as
|
||||
follows:
|
||||
@@ -265,7 +316,7 @@ and setgroup-ID mode is set.
|
||||
The file is executable or the directory is
|
||||
searchable.
|
||||
.It Sy \-
|
||||
The file is neither readable, writeable, executable,
|
||||
The file is neither readable, writable, executable,
|
||||
nor set-user-ID nor set-group-ID mode, nor sticky. (See below.)
|
||||
.El
|
||||
.Pp
|
||||
@@ -292,14 +343,14 @@ or
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Nm ls
|
||||
.Nm
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh ENVIRONMENTAL VARIABLES
|
||||
.Sh ENVIRONMENT
|
||||
The following environment variables affect the execution of
|
||||
.Nm ls :
|
||||
.Nm Ns :
|
||||
.Bl -tag -width BLOCKSIZE
|
||||
.It Ev BLOCKSIZE
|
||||
If the environmental variable
|
||||
If the environment variable
|
||||
.Ev BLOCKSIZE
|
||||
is set, the block counts
|
||||
(see
|
||||
@@ -311,7 +362,7 @@ decimal integer, it is used as the
|
||||
column position width for displaying
|
||||
multiple-text-column output.
|
||||
The
|
||||
.Nm ls
|
||||
.Nm
|
||||
utility calculates how
|
||||
many pathname text columns to display
|
||||
based on the width provided.
|
||||
@@ -334,12 +385,16 @@ specification.
|
||||
.Xr sticky 8
|
||||
.Sh HISTORY
|
||||
An
|
||||
.Nm ls
|
||||
.Nm
|
||||
command appeared in
|
||||
.At v1 .
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm ls
|
||||
.Nm
|
||||
function is expected to be a superset of the
|
||||
.St -p1003.2
|
||||
specification.
|
||||
.Sh BUGS
|
||||
To maintain backward compatibility, the relationships between the many
|
||||
options is quite complex.
|
||||
|
||||
+33
-13
@@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ls.c,v 1.9 1995/10/26 10:56:38 ache Exp $
|
||||
* $Id: ls.c,v 1.10.2.1 1997/12/03 05:40:06 imp Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -82,16 +82,16 @@ int f_kblocks; /* print size in kilobytes */
|
||||
int f_listdir; /* list actual directory, not contents */
|
||||
int f_listdot; /* list files beginning with . */
|
||||
int f_longform; /* long listing format */
|
||||
int f_newline; /* if precede with newline */
|
||||
int f_nonprint; /* show unprintables as ? */
|
||||
int f_nosort; /* don't sort output */
|
||||
int f_octal; /* show unprintables as \xxx */
|
||||
int f_octal_escape; /* like f_octal but use C escapes if possible */
|
||||
int f_recursive; /* ls subdirectories also */
|
||||
int f_reversesort; /* reverse whatever sort is used */
|
||||
int f_sectime; /* print the real time for all files */
|
||||
int f_singlecol; /* use single column output */
|
||||
int f_size; /* list size in short listing */
|
||||
int f_statustime; /* use time of last mode change */
|
||||
int f_dirname; /* if precede with directory name */
|
||||
int f_timesort; /* sort by time vice name */
|
||||
int f_type; /* add type character for non-regular files */
|
||||
|
||||
@@ -131,7 +131,7 @@ main(argc, argv)
|
||||
f_listdot = 1;
|
||||
|
||||
fts_options = FTS_PHYSICAL;
|
||||
while ((ch = getopt(argc, argv, "1ACFLRTacdfgikloqrstu")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "1ABCFHLPRTWabcdfgikloqrstu")) != -1) {
|
||||
switch (ch) {
|
||||
/*
|
||||
* The -1, -C and -l options all override each other so shell
|
||||
@@ -141,6 +141,11 @@ main(argc, argv)
|
||||
f_singlecol = 1;
|
||||
f_column = f_longform = 0;
|
||||
break;
|
||||
case 'B':
|
||||
f_nonprint = 0;
|
||||
f_octal = 1;
|
||||
f_octal_escape = 0;
|
||||
break;
|
||||
case 'C':
|
||||
f_column = 1;
|
||||
f_longform = f_singlecol = 0;
|
||||
@@ -161,10 +166,18 @@ main(argc, argv)
|
||||
case 'F':
|
||||
f_type = 1;
|
||||
break;
|
||||
case 'H':
|
||||
fts_options |= FTS_COMFOLLOW;
|
||||
break;
|
||||
case 'L':
|
||||
fts_options &= ~FTS_PHYSICAL;
|
||||
fts_options |= FTS_LOGICAL;
|
||||
break;
|
||||
case 'P':
|
||||
fts_options &= ~FTS_COMFOLLOW;
|
||||
fts_options &= ~FTS_LOGICAL;
|
||||
fts_options |= FTS_PHYSICAL;
|
||||
break;
|
||||
case 'R':
|
||||
f_recursive = 1;
|
||||
break;
|
||||
@@ -195,6 +208,8 @@ main(argc, argv)
|
||||
break;
|
||||
case 'q':
|
||||
f_nonprint = 1;
|
||||
f_octal = 0;
|
||||
f_octal_escape = 0;
|
||||
break;
|
||||
case 'r':
|
||||
f_reversesort = 1;
|
||||
@@ -208,6 +223,11 @@ main(argc, argv)
|
||||
case 't':
|
||||
f_timesort = 1;
|
||||
break;
|
||||
case 'b':
|
||||
f_nonprint = 0;
|
||||
f_octal = 0;
|
||||
f_octal_escape = 1;
|
||||
break;
|
||||
default:
|
||||
case '?':
|
||||
usage();
|
||||
@@ -411,6 +431,10 @@ display(p, list)
|
||||
prcopy(cur->fts_name, cur->fts_name, cur->fts_namelen);
|
||||
if (cur->fts_namelen > maxlen)
|
||||
maxlen = cur->fts_namelen;
|
||||
if (f_octal || f_octal_escape) {
|
||||
int t = len_octal(cur->fts_name, cur->fts_namelen);
|
||||
if (t > maxlen) maxlen = t;
|
||||
}
|
||||
if (needstats) {
|
||||
sp = cur->fts_statp;
|
||||
if (sp->st_blocks > maxblock)
|
||||
@@ -513,16 +537,12 @@ mastercmp(a, b)
|
||||
if (a_info == FTS_NS || b_info == FTS_NS)
|
||||
return (namecmp(*a, *b));
|
||||
|
||||
if (a_info == b_info)
|
||||
return (sortfcn(*a, *b));
|
||||
|
||||
if ((*a)->fts_level == FTS_ROOTLEVEL)
|
||||
if (a_info != b_info &&
|
||||
(*a)->fts_level == FTS_ROOTLEVEL && !f_listdir) {
|
||||
if (a_info == FTS_D)
|
||||
return (1);
|
||||
else if (b_info == FTS_D)
|
||||
if (b_info == FTS_D)
|
||||
return (-1);
|
||||
else
|
||||
return (sortfcn(*a, *b));
|
||||
else
|
||||
return (sortfcn(*a, *b));
|
||||
}
|
||||
return (sortfcn(*a, *b));
|
||||
}
|
||||
+4
-1
@@ -1,3 +1,4 @@
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -34,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ls.h 8.1 (Berkeley) 5/31/93
|
||||
* $Id$
|
||||
* $Id: ls.h,v 1.2 1994/09/24 02:55:55 davidg Exp $
|
||||
*/
|
||||
|
||||
#define NO_PRINT 1
|
||||
@@ -45,6 +46,8 @@ extern int f_accesstime; /* use time of last access */
|
||||
extern int f_flags; /* show flags associated with a file */
|
||||
extern int f_inode; /* print inode */
|
||||
extern int f_longform; /* long listing format */
|
||||
extern int f_octal; /* print unprintables in octal */
|
||||
extern int f_octal_escape; /* like f_octal but use C escapes if possible */
|
||||
extern int f_sectime; /* print the real time for all files */
|
||||
extern int f_size; /* list size in short listing */
|
||||
extern int f_statustime; /* use time of last mode change */
|
||||
|
||||
+17
-7
@@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: print.c,v 1.7 1995/12/30 18:15:30 joerg Exp $
|
||||
* $Id: print.c,v 1.8 1996/01/20 10:31:14 mpp Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -95,7 +95,7 @@ printlong(dp)
|
||||
continue;
|
||||
sp = p->fts_statp;
|
||||
if (f_inode)
|
||||
(void)printf("%*lu ", dp->s_inode, sp->st_ino);
|
||||
(void)printf("%*lu ", dp->s_inode, (u_long)sp->st_ino);
|
||||
if (f_size)
|
||||
(void)printf("%*qd ",
|
||||
dp->s_block, howmany(sp->st_blocks, blocksize));
|
||||
@@ -124,7 +124,8 @@ printlong(dp)
|
||||
printtime(sp->st_ctime);
|
||||
else
|
||||
printtime(sp->st_mtime);
|
||||
(void)printf("%s", p->fts_name);
|
||||
if (f_octal || f_octal_escape) (void)prn_octal(p->fts_name);
|
||||
else (void)printf("%s", p->fts_name);
|
||||
if (f_type)
|
||||
(void)printtype(sp->st_mode);
|
||||
if (S_ISLNK(sp->st_mode))
|
||||
@@ -215,11 +216,12 @@ printaname(p, inodefield, sizefield)
|
||||
sp = p->fts_statp;
|
||||
chcnt = 0;
|
||||
if (f_inode)
|
||||
chcnt += printf("%*lu ", (int)inodefield, sp->st_ino);
|
||||
chcnt += printf("%*lu ", (int)inodefield, (u_long)sp->st_ino);
|
||||
if (f_size)
|
||||
chcnt += printf("%*qd ",
|
||||
(int)sizefield, howmany(sp->st_blocks, blocksize));
|
||||
chcnt += printf("%s", p->fts_name);
|
||||
chcnt += (f_octal || f_octal_escape) ? prn_octal(p->fts_name)
|
||||
: printf("%s", p->fts_name);
|
||||
if (f_type)
|
||||
chcnt += printtype(sp->st_mode);
|
||||
return (chcnt);
|
||||
@@ -231,6 +233,10 @@ printtime(ftime)
|
||||
{
|
||||
int i;
|
||||
char longstring[80];
|
||||
static time_t now;
|
||||
|
||||
if (now == 0)
|
||||
now = time(NULL);
|
||||
|
||||
strftime(longstring, sizeof(longstring), "%c", localtime(&ftime));
|
||||
for (i = 4; i < 11; ++i)
|
||||
@@ -240,7 +246,7 @@ printtime(ftime)
|
||||
if (f_sectime)
|
||||
for (i = 11; i < 24; i++)
|
||||
(void)putchar(longstring[i]);
|
||||
else if (ftime + SIXMONTHS > time(NULL))
|
||||
else if (ftime + SIXMONTHS > now && ftime < now + SIXMONTHS)
|
||||
for (i = 11; i < 16; ++i)
|
||||
(void)putchar(longstring[i]);
|
||||
else {
|
||||
@@ -293,5 +299,9 @@ printlink(p)
|
||||
return;
|
||||
}
|
||||
path[lnklen] = '\0';
|
||||
(void)printf(" -> %s", path);
|
||||
if (f_octal || f_octal_escape) {
|
||||
(void)printf(" -> ");
|
||||
(void)prn_octal(path);
|
||||
}
|
||||
else (void)printf(" -> %s", path);
|
||||
}
|
||||
+9
-1
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: stat_flags.c,v 1.2 1994/09/24 02:55:57 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -69,6 +69,8 @@ flags_to_string(flags, def)
|
||||
SAPPEND("uappnd");
|
||||
if (flags & UF_IMMUTABLE)
|
||||
SAPPEND("uchg");
|
||||
if (flags & UF_NOUNLINK)
|
||||
SAPPEND("uunlnk");
|
||||
if (flags & UF_NODUMP)
|
||||
SAPPEND("nodump");
|
||||
if (flags & SF_APPEND)
|
||||
@@ -77,6 +79,8 @@ flags_to_string(flags, def)
|
||||
SAPPEND("arch");
|
||||
if (flags & SF_IMMUTABLE)
|
||||
SAPPEND("schg");
|
||||
if (flags & SF_NOUNLINK)
|
||||
SAPPEND("sunlnk");
|
||||
return (prefix == NULL && def != NULL ? def : string);
|
||||
}
|
||||
|
||||
@@ -134,6 +138,8 @@ string_to_flags(stringp, setp, clrp)
|
||||
TEST(p, "schg", SF_IMMUTABLE);
|
||||
TEST(p, "schange", SF_IMMUTABLE);
|
||||
TEST(p, "simmutable", SF_IMMUTABLE);
|
||||
TEST(p, "sunlnk", SF_NOUNLINK);
|
||||
TEST(p, "sunlink", SF_NOUNLINK);
|
||||
return (1);
|
||||
case 'u':
|
||||
TEST(p, "uappnd", UF_APPEND);
|
||||
@@ -141,6 +147,8 @@ string_to_flags(stringp, setp, clrp)
|
||||
TEST(p, "uchg", UF_IMMUTABLE);
|
||||
TEST(p, "uchange", UF_IMMUTABLE);
|
||||
TEST(p, "uimmutable", UF_IMMUTABLE);
|
||||
TEST(p, "uunlnk", UF_NOUNLINK);
|
||||
TEST(p, "uunlink", UF_NOUNLINK);
|
||||
/* FALLTHROUGH */
|
||||
default:
|
||||
return (1);
|
||||
|
||||
+89
-2
@@ -33,7 +33,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: util.c,v 1.5 1996/03/31 16:14:11 ache Exp $
|
||||
* $Id: util.c,v 1.5.2.1 1997/03/26 17:55:19 obrien Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -65,9 +65,96 @@ prcopy(src, dest, len)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* The fts system makes it difficult to replace fts_name with a different-
|
||||
* sized string, so we just calculate the real length here and do the
|
||||
* conversion in prn_octal()
|
||||
*
|
||||
* XXX when using f_octal_escape (-b) rather than f_octal (-B), the
|
||||
* length computed by len_octal may be too big. I just can't be buggered
|
||||
* to fix this as an efficient fix would involve a lookup table. Same goes
|
||||
* for the rather inelegant code in prn_octal.
|
||||
*
|
||||
* DES 1998/04/23
|
||||
*/
|
||||
|
||||
int
|
||||
len_octal(s, len)
|
||||
char *s;
|
||||
int len;
|
||||
{
|
||||
int r = 0;
|
||||
|
||||
while (len--)
|
||||
if (isprint((unsigned char)*s++)) r++; else r += 4;
|
||||
return r;
|
||||
}
|
||||
|
||||
int
|
||||
prn_octal(s)
|
||||
char *s;
|
||||
{
|
||||
unsigned char ch;
|
||||
int len = 0;
|
||||
|
||||
while ((ch = *s++))
|
||||
{
|
||||
if (isprint(ch) && (ch != '\"') && (ch != '\\'))
|
||||
putchar(ch), len++;
|
||||
else if (f_octal_escape) {
|
||||
putchar('\\');
|
||||
switch (ch) {
|
||||
case '\\':
|
||||
putchar('\\');
|
||||
break;
|
||||
case '\"':
|
||||
putchar('"');
|
||||
break;
|
||||
case '\a':
|
||||
putchar('a');
|
||||
break;
|
||||
case '\b':
|
||||
putchar('b');
|
||||
break;
|
||||
case '\f':
|
||||
putchar('f');
|
||||
break;
|
||||
case '\n':
|
||||
putchar('n');
|
||||
break;
|
||||
case '\r':
|
||||
putchar('r');
|
||||
break;
|
||||
case '\t':
|
||||
putchar('t');
|
||||
break;
|
||||
case '\v':
|
||||
putchar('v');
|
||||
break;
|
||||
default:
|
||||
putchar('0' + (ch >> 6));
|
||||
putchar('0' + ((ch >> 3) & 3));
|
||||
putchar('0' + (ch & 3));
|
||||
len += 2;
|
||||
break;
|
||||
}
|
||||
len += 2;
|
||||
}
|
||||
else {
|
||||
putchar('\\');
|
||||
putchar('0' + (ch >> 6));
|
||||
putchar('0' + ((ch >> 3) & 3));
|
||||
putchar('0' + (ch & 3));
|
||||
len += 4;
|
||||
}
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "usage: ls [-1ACFLRTacdfikloqrstu] [file ...]\n");
|
||||
(void)fprintf(stderr, "usage: ls [-ACFHLPRTWacdfgikloqrstu1]"
|
||||
" [file ...]\n");
|
||||
exit(1);
|
||||
}
|
||||
+4
-4
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
|
||||
.\" $Id: mkdir.1,v 1.6 1997/02/22 14:04:08 peter Exp $
|
||||
.\" $Id: mkdir.1,v 1.3.2.2 1998/06/30 06:42:30 charnier Exp $
|
||||
.\"
|
||||
.Dd January 25, 1994
|
||||
.Dt MKDIR 1
|
||||
@@ -47,7 +47,7 @@
|
||||
.Op Fl m Ar mode
|
||||
.Ar directory_name ...
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
.Nm Mkdir
|
||||
creates the directories named as operands, in the order specified,
|
||||
using mode
|
||||
.Li rwxrwxrwx (\&0777)
|
||||
@@ -81,13 +81,13 @@ permission for the owner.
|
||||
.Pp
|
||||
The user must have write permission in the parent directory.
|
||||
.Pp
|
||||
.Nm
|
||||
.Nm Mkdir
|
||||
exits 0 if successful, and >0 if an error occurred.
|
||||
.Sh SEE ALSO
|
||||
.Xr rmdir 1
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm mkdir
|
||||
.Nm
|
||||
utility is expected to be
|
||||
.St -p1003.2
|
||||
compatible.
|
||||
|
||||
+41
-32
@@ -30,17 +30,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mkdir.c,v 1.5.8.1 1997/08/17 13:36:49 joerg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1983, 1992, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
|
||||
static char const sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -53,7 +53,7 @@ static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int build __P((char *));
|
||||
int build __P((char *, mode_t));
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
@@ -61,13 +61,13 @@ main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
int ch, exitval, oct, omode, pflag;
|
||||
int ch, exitval, omode, pflag;
|
||||
mode_t *set = (mode_t *)NULL;
|
||||
char *ep, *mode;
|
||||
char *mode;
|
||||
|
||||
omode = pflag = 0;
|
||||
mode = NULL;
|
||||
while ((ch = getopt(argc, argv, "m:p")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "m:p")) != -1)
|
||||
switch(ch) {
|
||||
case 'p':
|
||||
pflag = 1;
|
||||
@@ -87,53 +87,49 @@ main(argc, argv)
|
||||
|
||||
if (mode == NULL) {
|
||||
omode = S_IRWXU | S_IRWXG | S_IRWXO;
|
||||
oct = 1;
|
||||
} else if (*mode >= '0' && *mode <= '7') {
|
||||
omode = (int)strtol(mode, &ep, 8);
|
||||
if (omode < 0 || *ep)
|
||||
errx(1, "invalid file mode: %s", mode);
|
||||
oct = 1;
|
||||
} else {
|
||||
if ((set = setmode(mode)) == NULL)
|
||||
errx(1, "invalid file mode: %s", mode);
|
||||
oct = 0;
|
||||
omode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO);
|
||||
}
|
||||
|
||||
for (exitval = 0; *argv != NULL; ++argv) {
|
||||
if (pflag && build(*argv)) {
|
||||
exitval = 1;
|
||||
if (pflag) {
|
||||
if (build(*argv, omode))
|
||||
exitval = 1;
|
||||
continue;
|
||||
}
|
||||
if (mkdir(*argv, oct ?
|
||||
omode : getmode(set, S_IRWXU | S_IRWXG | S_IRWXO)) < 0) {
|
||||
if (!pflag) {
|
||||
warn("%s", *argv);
|
||||
exitval = 1;
|
||||
}
|
||||
if (mkdir(*argv, omode) < 0) {
|
||||
warn("%s", *argv);
|
||||
exitval = 1;
|
||||
}
|
||||
}
|
||||
exit(exitval);
|
||||
}
|
||||
|
||||
int
|
||||
build(path)
|
||||
build(path, omode)
|
||||
char *path;
|
||||
mode_t omode;
|
||||
{
|
||||
struct stat sb;
|
||||
mode_t numask, oumask;
|
||||
int first;
|
||||
int first, last, retval;
|
||||
char *p;
|
||||
|
||||
p = path;
|
||||
oumask = 0;
|
||||
retval = 0;
|
||||
if (p[0] == '/') /* Skip leading '/'. */
|
||||
++p;
|
||||
for (first = 1;; ++p) {
|
||||
if (p[0] == '\0' || (p[0] == '/' && p[1] == '\0'))
|
||||
break;
|
||||
if (p[0] != '/')
|
||||
for (first = 1, last = 0; !last ; ++p) {
|
||||
if (p[0] == '\0')
|
||||
last = 1;
|
||||
else if (p[0] != '/')
|
||||
continue;
|
||||
*p = '\0';
|
||||
if (p[1] == '\0')
|
||||
last = 1;
|
||||
if (first) {
|
||||
/*
|
||||
* POSIX 1003.2:
|
||||
@@ -152,18 +148,31 @@ build(path)
|
||||
(void)umask(numask);
|
||||
first = 0;
|
||||
}
|
||||
if (last)
|
||||
(void)umask(oumask);
|
||||
if (stat(path, &sb)) {
|
||||
if (errno != ENOENT ||
|
||||
mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
|
||||
mkdir(path, last ? omode :
|
||||
S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
|
||||
warn("%s", path);
|
||||
return (1);
|
||||
retval = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if ((sb.st_mode & S_IFMT) != S_IFDIR) {
|
||||
if (last)
|
||||
errno = EEXIST;
|
||||
else
|
||||
errno = ENOTDIR;
|
||||
warn("%s", path);
|
||||
retval = 1;
|
||||
break;
|
||||
}
|
||||
*p = '/';
|
||||
}
|
||||
if (!first)
|
||||
if (!first && !last)
|
||||
(void)umask(oumask);
|
||||
return (0);
|
||||
return (retval);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
+10
-11
@@ -33,7 +33,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
|
||||
.\" $Id: mv.1,v 1.6 1996/02/20 23:27:54 wosch Exp $
|
||||
.\" $Id: mv.1,v 1.7.2.1 1998/02/15 11:16:27 jkh Exp $
|
||||
.\"
|
||||
.Dd May 31, 1993
|
||||
.Dt MV 1
|
||||
@@ -47,11 +47,10 @@
|
||||
.Ar source target
|
||||
.Nm mv
|
||||
.Op Fl f | Fl i
|
||||
.Ar source ... source directory
|
||||
.Ar source ... directory
|
||||
.Sh DESCRIPTION
|
||||
.Pp
|
||||
In its first form, the
|
||||
.Nm mv
|
||||
.Nm
|
||||
utility renames the file named by the
|
||||
.Ar source
|
||||
operand to the destination path named by the
|
||||
@@ -61,7 +60,7 @@ This form is assumed when the last operand does not name an already
|
||||
existing directory.
|
||||
.Pp
|
||||
In its second form,
|
||||
.Nm mv
|
||||
.Nm
|
||||
moves each file named by a
|
||||
.Ar source
|
||||
operand to a destination file in the existing directory named by the
|
||||
@@ -82,8 +81,8 @@ option overrides any previous
|
||||
.Fl i
|
||||
options.)
|
||||
.It Fl i
|
||||
Causes
|
||||
.Nm mv
|
||||
Cause
|
||||
.Nm
|
||||
to write a prompt to standard error before moving a file that would
|
||||
overwrite an existing file.
|
||||
If the response from the standard input begins with the character
|
||||
@@ -103,7 +102,7 @@ It is an error for either the
|
||||
operand or the destination path to specify a directory unless both do.
|
||||
.Pp
|
||||
If the destination path does not have a mode which permits writing,
|
||||
.Nm mv
|
||||
.Nm
|
||||
prompts the user for confirmation as specified for the
|
||||
.Fl i
|
||||
option.
|
||||
@@ -111,7 +110,7 @@ option.
|
||||
As the
|
||||
.Xr rename 2
|
||||
call does not work across file systems,
|
||||
.Nm mv
|
||||
.Nm
|
||||
uses
|
||||
.Xr cp 1
|
||||
and
|
||||
@@ -125,7 +124,7 @@ rm -f destination_path && \e
|
||||
.Ed
|
||||
.Pp
|
||||
The
|
||||
.Nm mv
|
||||
.Nm
|
||||
utility exits 0 on success, and >0 if an error occurs.
|
||||
.Sh SEE ALSO
|
||||
.Xr cp 1 ,
|
||||
@@ -133,7 +132,7 @@ utility exits 0 on success, and >0 if an error occurs.
|
||||
.Xr symlink 7
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm mv
|
||||
.Nm
|
||||
utility is expected to be
|
||||
.St -p1003.2
|
||||
compatible.
|
||||
|
||||
+67
-27
@@ -33,23 +33,24 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mv.c,v 1.7 1996/02/20 23:27:57 wosch Exp $
|
||||
* $Id: mv.c,v 1.8.2.3 1998/05/25 22:45:42 steve Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1989, 1993, 1994\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
|
||||
static char const sccsid[] = "@(#)mv.c 8.2 (Berkeley) 4/2/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mount.h>
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
@@ -77,9 +78,9 @@ main(argc, argv)
|
||||
register char *p, *endp;
|
||||
struct stat sb;
|
||||
int ch;
|
||||
char path[MAXPATHLEN + 1];
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
while ((ch = getopt(argc, argv, "fi")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "fi")) != -1)
|
||||
switch (ch) {
|
||||
case 'i':
|
||||
iflg = 1;
|
||||
@@ -109,11 +110,15 @@ main(argc, argv)
|
||||
}
|
||||
|
||||
/* It's a directory, move each file into it. */
|
||||
if (strlen(argv[argc - 1]) > sizeof(path) - 1)
|
||||
errx(1, "%s: destination pathname too long", *argv);
|
||||
(void)strcpy(path, argv[argc - 1]);
|
||||
baselen = strlen(path);
|
||||
endp = &path[baselen];
|
||||
*endp++ = '/';
|
||||
++baselen;
|
||||
if (!baselen || *(endp - 1) != '/') {
|
||||
*endp++ = '/';
|
||||
++baselen;
|
||||
}
|
||||
for (rval = 0; --argc; ++argv) {
|
||||
/*
|
||||
* Find the last component of the source pathname. It
|
||||
@@ -142,7 +147,7 @@ do_move(from, to)
|
||||
char *from, *to;
|
||||
{
|
||||
struct stat sb;
|
||||
int ask, ch;
|
||||
int ask, ch, first;
|
||||
char modep[15];
|
||||
|
||||
/*
|
||||
@@ -157,30 +162,47 @@ do_move(from, to)
|
||||
warn("%s", from);
|
||||
return (1);
|
||||
}
|
||||
|
||||
|
||||
#define YESNO "(y/n [n]) "
|
||||
ask = 0;
|
||||
if (iflg) {
|
||||
(void)fprintf(stderr, "overwrite %s? ", to);
|
||||
(void)fprintf(stderr, "overwrite %s? %s", to, YESNO);
|
||||
ask = 1;
|
||||
} else if (access(to, W_OK) && !stat(to, &sb)) {
|
||||
strmode(sb.st_mode, modep);
|
||||
(void)fprintf(stderr, "override %s%s%s/%s for %s? ",
|
||||
(void)fprintf(stderr, "override %s%s%s/%s for %s? %s",
|
||||
modep + 1, modep[9] == ' ' ? "" : " ",
|
||||
user_from_uid(sb.st_uid, 0),
|
||||
group_from_gid(sb.st_gid, 0), to);
|
||||
group_from_gid(sb.st_gid, 0), to, YESNO);
|
||||
ask = 1;
|
||||
}
|
||||
if (ask) {
|
||||
if ((ch = getchar()) != EOF && ch != '\n')
|
||||
while (getchar() != '\n');
|
||||
if (ch != 'y' && ch != 'Y')
|
||||
first = ch = getchar();
|
||||
while (ch != '\n' && ch != EOF)
|
||||
ch = getchar();
|
||||
if (first != 'y' && first != 'Y') {
|
||||
(void)fprintf(stderr, "not overwritten\n");
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!rename(from, to))
|
||||
return (0);
|
||||
|
||||
if (errno != EXDEV) {
|
||||
if (errno == EXDEV) {
|
||||
struct statfs sfs;
|
||||
char path[MAXPATHLEN];
|
||||
|
||||
/* Can't mv(1) a mount point. */
|
||||
if (realpath(from, path) == NULL) {
|
||||
warnx("cannot resolve %s: %s", from, path);
|
||||
return (1);
|
||||
}
|
||||
if (!statfs(path, &sfs) && !strcmp(path, sfs.f_mntonname)) {
|
||||
warnx("cannot rename a mount point");
|
||||
return (1);
|
||||
}
|
||||
} else {
|
||||
warn("rename %s to %s", from, to);
|
||||
return (1);
|
||||
}
|
||||
@@ -206,22 +228,31 @@ fastcopy(from, to, sbp)
|
||||
struct timeval tval[2];
|
||||
static u_int blen;
|
||||
static char *bp;
|
||||
mode_t oldmode;
|
||||
register int nread, from_fd, to_fd;
|
||||
|
||||
if ((from_fd = open(from, O_RDONLY, 0)) < 0) {
|
||||
warn("%s", from);
|
||||
return (1);
|
||||
}
|
||||
if ((to_fd =
|
||||
open(to, O_CREAT | O_TRUNC | O_WRONLY, sbp->st_mode)) < 0) {
|
||||
if (blen < sbp->st_blksize) {
|
||||
if (bp != NULL)
|
||||
free(bp);
|
||||
if ((bp = malloc(sbp->st_blksize)) == NULL) {
|
||||
blen = 0;
|
||||
warnx("malloc failed");
|
||||
return (1);
|
||||
}
|
||||
blen = sbp->st_blksize;
|
||||
}
|
||||
while ((to_fd =
|
||||
open(to, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, 0)) < 0) {
|
||||
if (errno == EEXIST && unlink(to) == 0)
|
||||
continue;
|
||||
warn("%s", to);
|
||||
(void)close(from_fd);
|
||||
return (1);
|
||||
}
|
||||
if (!blen && !(bp = malloc(blen = sbp->st_blksize))) {
|
||||
warn(NULL);
|
||||
return (1);
|
||||
}
|
||||
while ((nread = read(from_fd, bp, blen)) > 0)
|
||||
if (write(to_fd, bp, nread) != nread) {
|
||||
warn("%s", to);
|
||||
@@ -237,10 +268,19 @@ err: if (unlink(to))
|
||||
}
|
||||
(void)close(from_fd);
|
||||
|
||||
if (fchown(to_fd, sbp->st_uid, sbp->st_gid))
|
||||
warn("%s: set owner/group", to);
|
||||
oldmode = sbp->st_mode & ALLPERMS;
|
||||
if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
|
||||
warn("%s: set owner/group (was: %lu/%lu)", to,
|
||||
(u_long)sbp->st_uid, (u_long)sbp->st_gid);
|
||||
if (oldmode & (S_ISUID | S_ISGID)) {
|
||||
warnx(
|
||||
"%s: owner/group changed; clearing suid/sgid (mode was 0%03o)",
|
||||
to, oldmode);
|
||||
sbp->st_mode &= ~(S_ISUID | S_ISGID);
|
||||
}
|
||||
}
|
||||
if (fchmod(to_fd, sbp->st_mode))
|
||||
warn("%s: set mode", to);
|
||||
warn("%s: set mode (was: 0%03o)", to, oldmode);
|
||||
|
||||
tval[0].tv_sec = sbp->st_atime;
|
||||
tval[1].tv_sec = sbp->st_mtime;
|
||||
@@ -309,7 +349,7 @@ void
|
||||
usage()
|
||||
{
|
||||
(void)fprintf(stderr, "%s\n%s\n",
|
||||
"usage: mv [-f | -i] src target",
|
||||
" mv [-f | -i] src1 ... srcN directory");
|
||||
"usage: mv [-f | -i] source target",
|
||||
" mv [-f | -i] source ... directory");
|
||||
exit(1);
|
||||
}
|
||||
+39
-41
@@ -34,19 +34,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ar_io.c,v 1.3 1995/05/30 00:06:52 rgrimes Exp $
|
||||
* $Id: ar_io.c,v 1.4.2.2 1997/09/14 13:07:09 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mtio.h>
|
||||
#include <sys/param.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
@@ -120,14 +118,14 @@ ar_open(name)
|
||||
arfd = STDIN_FILENO;
|
||||
arcname = STDN;
|
||||
} else if ((arfd = open(name, EXT_MODE, DMOD)) < 0)
|
||||
syswarn(0, errno, "Failed open to read on %s", name);
|
||||
sys_warn(0, errno, "Failed open to read on %s", name);
|
||||
break;
|
||||
case ARCHIVE:
|
||||
if (name == NULL) {
|
||||
arfd = STDOUT_FILENO;
|
||||
arcname = STDO;
|
||||
} else if ((arfd = open(name, AR_MODE, DMOD)) < 0)
|
||||
syswarn(0, errno, "Failed open to write on %s", name);
|
||||
sys_warn(0, errno, "Failed open to write on %s", name);
|
||||
else
|
||||
can_unlnk = 1;
|
||||
break;
|
||||
@@ -136,7 +134,7 @@ ar_open(name)
|
||||
arfd = STDOUT_FILENO;
|
||||
arcname = STDO;
|
||||
} else if ((arfd = open(name, APP_MODE, DMOD)) < 0)
|
||||
syswarn(0, errno, "Failed open to read/write on %s",
|
||||
sys_warn(0, errno, "Failed open to read/write on %s",
|
||||
name);
|
||||
break;
|
||||
case COPY:
|
||||
@@ -154,14 +152,14 @@ ar_open(name)
|
||||
* set up is based on device type
|
||||
*/
|
||||
if (fstat(arfd, &arsb) < 0) {
|
||||
syswarn(0, errno, "Failed stat on %s", arcname);
|
||||
sys_warn(0, errno, "Failed stat on %s", arcname);
|
||||
(void)close(arfd);
|
||||
arfd = -1;
|
||||
can_unlnk = 0;
|
||||
return(-1);
|
||||
}
|
||||
if (S_ISDIR(arsb.st_mode)) {
|
||||
warn(0, "Cannot write an archive on top of a directory %s",
|
||||
pax_warn(0, "Cannot write an archive on top of a directory %s",
|
||||
arcname);
|
||||
(void)close(arfd);
|
||||
arfd = -1;
|
||||
@@ -470,7 +468,7 @@ ar_set_wr()
|
||||
*/
|
||||
if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) ||
|
||||
(ftruncate(arfd, cpos) < 0)) {
|
||||
syswarn(1, errno, "Unable to truncate archive file");
|
||||
sys_warn(1, errno, "Unable to truncate archive file");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -494,13 +492,13 @@ ar_app_ok()
|
||||
#endif
|
||||
{
|
||||
if (artyp == ISPIPE) {
|
||||
warn(1, "Cannot append to an archive obtained from a pipe.");
|
||||
pax_warn(1, "Cannot append to an archive obtained from a pipe.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
if (!invld_rec)
|
||||
return(0);
|
||||
warn(1,"Cannot append, device record size %d does not support %s spec",
|
||||
pax_warn(1,"Cannot append, device record size %d does not support %s spec",
|
||||
rdblksz, argv0);
|
||||
return(-1);
|
||||
}
|
||||
@@ -587,9 +585,9 @@ ar_read(buf, cnt)
|
||||
*/
|
||||
lstrval = res;
|
||||
if (res < 0)
|
||||
syswarn(1, errno, "Failed read on archive volume %d", arvol);
|
||||
sys_warn(1, errno, "Failed read on archive volume %d", arvol);
|
||||
else
|
||||
warn(0, "End of archive volume %d reached", arvol);
|
||||
pax_warn(0, "End of archive volume %d reached", arvol);
|
||||
return(res);
|
||||
}
|
||||
|
||||
@@ -668,7 +666,7 @@ ar_write(buf, bsz)
|
||||
if (res >= 0)
|
||||
break;
|
||||
if (errno == EACCES) {
|
||||
warn(0, "Write failed, archive is write protected.");
|
||||
pax_warn(0, "Write failed, archive is write protected.");
|
||||
res = lstrval = 0;
|
||||
return(0);
|
||||
}
|
||||
@@ -706,18 +704,18 @@ ar_write(buf, bsz)
|
||||
* must quit right away.
|
||||
*/
|
||||
if (!wr_trail && (res <= 0)) {
|
||||
warn(1,"Unable to append, trailer re-write failed. Quitting.");
|
||||
pax_warn(1,"Unable to append, trailer re-write failed. Quitting.");
|
||||
return(res);
|
||||
}
|
||||
|
||||
if (res == 0)
|
||||
warn(0, "End of archive volume %d reached", arvol);
|
||||
pax_warn(0, "End of archive volume %d reached", arvol);
|
||||
else if (res < 0)
|
||||
syswarn(1, errno, "Failed write to archive volume: %d", arvol);
|
||||
sys_warn(1, errno, "Failed write to archive volume: %d", arvol);
|
||||
else if (!frmt->blkalgn || ((res % frmt->blkalgn) == 0))
|
||||
warn(0,"WARNING: partial archive write. Archive MAY BE FLAWED");
|
||||
pax_warn(0,"WARNING: partial archive write. Archive MAY BE FLAWED");
|
||||
else
|
||||
warn(1,"WARNING: partial archive write. Archive IS FLAWED");
|
||||
pax_warn(1,"WARNING: partial archive write. Archive IS FLAWED");
|
||||
return(res);
|
||||
}
|
||||
|
||||
@@ -751,7 +749,7 @@ ar_rdsync()
|
||||
return(-1);
|
||||
|
||||
if ((act == APPND) || (act == ARCHIVE)) {
|
||||
warn(1, "Cannot allow updates to an archive with flaws.");
|
||||
pax_warn(1, "Cannot allow updates to an archive with flaws.");
|
||||
return(-1);
|
||||
}
|
||||
if (io_ok)
|
||||
@@ -803,10 +801,10 @@ ar_rdsync()
|
||||
break;
|
||||
}
|
||||
if (lstrval <= 0) {
|
||||
warn(1, "Unable to recover from an archive read failure.");
|
||||
pax_warn(1, "Unable to recover from an archive read failure.");
|
||||
return(-1);
|
||||
}
|
||||
warn(0, "Attempting to recover from an archive read failure.");
|
||||
pax_warn(0, "Attempting to recover from an archive read failure.");
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -870,7 +868,7 @@ ar_fow(sksz, skipped)
|
||||
if (lseek(arfd, mpos, SEEK_SET) >= 0)
|
||||
return(0);
|
||||
}
|
||||
syswarn(1, errno, "Foward positioning operation on archive failed");
|
||||
sys_warn(1, errno, "Foward positioning operation on archive failed");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
}
|
||||
@@ -912,7 +910,7 @@ ar_rev(sksz)
|
||||
/*
|
||||
* cannot go backwards on these critters
|
||||
*/
|
||||
warn(1, "Reverse positioning on pipes is not supported.");
|
||||
pax_warn(1, "Reverse positioning on pipes is not supported.");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
case ISREG:
|
||||
@@ -930,7 +928,7 @@ ar_rev(sksz)
|
||||
* First we figure out where we are in the archive.
|
||||
*/
|
||||
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) {
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
"Unable to obtain current archive byte offset");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
@@ -948,14 +946,14 @@ ar_rev(sksz)
|
||||
/*
|
||||
* this should never happen
|
||||
*/
|
||||
warn(1,"Reverse position on previous volume.");
|
||||
pax_warn(1,"Reverse position on previous volume.");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
}
|
||||
cpos = (off_t)0L;
|
||||
}
|
||||
if (lseek(arfd, cpos, SEEK_SET) < 0) {
|
||||
syswarn(1, errno, "Unable to seek archive backwards");
|
||||
sys_warn(1, errno, "Unable to seek archive backwards");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
}
|
||||
@@ -990,7 +988,7 @@ ar_rev(sksz)
|
||||
* ok we have to move. Make sure the tape drive can do it.
|
||||
*/
|
||||
if (sksz % phyblk) {
|
||||
warn(1,
|
||||
pax_warn(1,
|
||||
"Tape drive unable to backspace requested amount");
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
@@ -1002,7 +1000,7 @@ ar_rev(sksz)
|
||||
mb.mt_op = MTBSR;
|
||||
mb.mt_count = sksz/phyblk;
|
||||
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
|
||||
syswarn(1,errno, "Unable to backspace tape %d blocks.",
|
||||
sys_warn(1,errno, "Unable to backspace tape %d blocks.",
|
||||
mb.mt_count);
|
||||
lstrval = -1;
|
||||
return(-1);
|
||||
@@ -1050,7 +1048,7 @@ get_phys()
|
||||
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
|
||||
padsz += res;
|
||||
if (res < 0) {
|
||||
syswarn(1, errno, "Unable to locate tape filemark.");
|
||||
sys_warn(1, errno, "Unable to locate tape filemark.");
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
@@ -1062,7 +1060,7 @@ get_phys()
|
||||
mb.mt_op = MTBSF;
|
||||
mb.mt_count = 1;
|
||||
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
|
||||
syswarn(1, errno, "Unable to backspace over tape filemark.");
|
||||
sys_warn(1, errno, "Unable to backspace over tape filemark.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1073,11 +1071,11 @@ get_phys()
|
||||
mb.mt_op = MTBSR;
|
||||
mb.mt_count = 1;
|
||||
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
|
||||
syswarn(1, errno, "Unable to backspace over last tape block.");
|
||||
sys_warn(1, errno, "Unable to backspace over last tape block.");
|
||||
return(-1);
|
||||
}
|
||||
if ((phyblk = read(arfd, scbuf, sizeof(scbuf))) <= 0) {
|
||||
syswarn(1, errno, "Cannot determine archive tape blocksize.");
|
||||
sys_warn(1, errno, "Cannot determine archive tape blocksize.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1088,13 +1086,13 @@ get_phys()
|
||||
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
|
||||
;
|
||||
if (res < 0) {
|
||||
syswarn(1, errno, "Unable to locate tape filemark.");
|
||||
sys_warn(1, errno, "Unable to locate tape filemark.");
|
||||
return(-1);
|
||||
}
|
||||
mb.mt_op = MTBSF;
|
||||
mb.mt_count = 1;
|
||||
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
|
||||
syswarn(1, errno, "Unable to backspace over tape filemark.");
|
||||
sys_warn(1, errno, "Unable to backspace over tape filemark.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1114,7 +1112,7 @@ get_phys()
|
||||
* never fail).
|
||||
*/
|
||||
if (padsz % phyblk) {
|
||||
warn(1, "Tape drive unable to backspace requested amount");
|
||||
pax_warn(1, "Tape drive unable to backspace requested amount");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1125,7 +1123,7 @@ get_phys()
|
||||
mb.mt_op = MTBSR;
|
||||
mb.mt_count = padsz/phyblk;
|
||||
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
|
||||
syswarn(1,errno,"Unable to backspace tape over %d pad blocks",
|
||||
sys_warn(1,errno,"Unable to backspace tape over %d pad blocks",
|
||||
mb.mt_count);
|
||||
return(-1);
|
||||
}
|
||||
@@ -1160,10 +1158,10 @@ ar_next()
|
||||
* also be called via a signal handler, so we must prevent a race.
|
||||
*/
|
||||
if (sigprocmask(SIG_BLOCK, &s_mask, &o_mask) < 0)
|
||||
syswarn(0, errno, "Unable to set signal mask");
|
||||
sys_warn(0, errno, "Unable to set signal mask");
|
||||
ar_close();
|
||||
if (sigprocmask(SIG_SETMASK, &o_mask, (sigset_t *)NULL) < 0)
|
||||
syswarn(0, errno, "Unable to restore signal mask");
|
||||
sys_warn(0, errno, "Unable to restore signal mask");
|
||||
|
||||
if (done || !wr_trail)
|
||||
return(-1);
|
||||
@@ -1276,7 +1274,7 @@ ar_next()
|
||||
if ((arcname = strdup(buf)) == NULL) {
|
||||
done = 1;
|
||||
lstrval = -1;
|
||||
warn(0, "Cannot save archive name.");
|
||||
pax_warn(0, "Cannot save archive name.");
|
||||
return(-1);
|
||||
}
|
||||
freeit = 1;
|
||||
|
||||
+17
-18
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ar_subs.c,v 1.3 1995/05/30 00:06:52 rgrimes Exp $
|
||||
* $Id: ar_subs.c,v 1.4.2.2 1997/09/14 13:07:11 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)ar_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)ar_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@@ -425,7 +424,7 @@ wr_archive(arcn, is_app)
|
||||
* the link table).
|
||||
*/
|
||||
if ((fd = open(arcn->org_name, O_RDONLY, 0)) < 0) {
|
||||
syswarn(1,errno, "Unable to open %s to read",
|
||||
sys_warn(1,errno, "Unable to open %s to read",
|
||||
arcn->org_name);
|
||||
purg_lnk(arcn);
|
||||
continue;
|
||||
@@ -572,7 +571,7 @@ append()
|
||||
if (get_arc() < 0)
|
||||
return;
|
||||
if ((orgfrmt != NULL) && (orgfrmt != frmt)) {
|
||||
warn(1, "Cannot mix current archive format %s with %s",
|
||||
pax_warn(1, "Cannot mix current archive format %s with %s",
|
||||
frmt->name, orgfrmt->name);
|
||||
return;
|
||||
}
|
||||
@@ -743,7 +742,7 @@ copy()
|
||||
* set up the destination dir path and make sure it is a directory. We
|
||||
* make sure we have a trailing / on the destination
|
||||
*/
|
||||
dlen = l_strncpy(dirbuf, dirptr, PAXPATHLEN);
|
||||
dlen = l_strncpy(dirbuf, dirptr, sizeof(dirbuf) - 1);
|
||||
dest_pt = dirbuf + dlen;
|
||||
if (*(dest_pt-1) != '/') {
|
||||
*dest_pt++ = '/';
|
||||
@@ -753,12 +752,12 @@ copy()
|
||||
drem = PAXPATHLEN - dlen;
|
||||
|
||||
if (stat(dirptr, &sb) < 0) {
|
||||
syswarn(1, errno, "Cannot access destination directory %s",
|
||||
sys_warn(1, errno, "Cannot access destination directory %s",
|
||||
dirptr);
|
||||
return;
|
||||
}
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
warn(1, "Destination is not a directory %s", dirptr);
|
||||
pax_warn(1, "Destination is not a directory %s", dirptr);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -812,7 +811,7 @@ copy()
|
||||
else
|
||||
res = 0;
|
||||
if ((arcn->nlen - res) > drem) {
|
||||
warn(1, "Destination pathname too long %s",
|
||||
pax_warn(1, "Destination pathname too long %s",
|
||||
arcn->name);
|
||||
continue;
|
||||
}
|
||||
@@ -917,7 +916,7 @@ copy()
|
||||
* first open source file and then create the destination file
|
||||
*/
|
||||
if ((fdsrc = open(arcn->org_name, O_RDONLY, 0)) < 0) {
|
||||
syswarn(1, errno, "Unable to open %s to read",
|
||||
sys_warn(1, errno, "Unable to open %s to read",
|
||||
arcn->org_name);
|
||||
purg_lnk(arcn);
|
||||
continue;
|
||||
@@ -1009,16 +1008,16 @@ next_head(arcn)
|
||||
* storage device, better give the user the bad news.
|
||||
*/
|
||||
if ((ret == 0) || (rd_sync() < 0)) {
|
||||
warn(1,"Premature end of file on archive read");
|
||||
pax_warn(1,"Premature end of file on archive read");
|
||||
return(-1);
|
||||
}
|
||||
if (!in_resync) {
|
||||
if (act == APPND) {
|
||||
warn(1,
|
||||
pax_warn(1,
|
||||
"Archive I/O error, cannot continue");
|
||||
return(-1);
|
||||
}
|
||||
warn(1,"Archive I/O error. Trying to recover.");
|
||||
pax_warn(1,"Archive I/O error. Trying to recover.");
|
||||
++in_resync;
|
||||
}
|
||||
|
||||
@@ -1079,10 +1078,10 @@ next_head(arcn)
|
||||
*/
|
||||
if (!in_resync) {
|
||||
if (act == APPND) {
|
||||
warn(1,"Unable to append, archive header flaw");
|
||||
pax_warn(1,"Unable to append, archive header flaw");
|
||||
return(-1);
|
||||
}
|
||||
warn(1,"Invalid header, starting valid header search.");
|
||||
pax_warn(1,"Invalid header, starting valid header search.");
|
||||
++in_resync;
|
||||
}
|
||||
bcopy(hdbuf+1, hdbuf, shftsz);
|
||||
@@ -1174,7 +1173,7 @@ get_arc()
|
||||
if (!notice) {
|
||||
if (act == APPND)
|
||||
return(-1);
|
||||
warn(1,"Cannot identify format. Searching...");
|
||||
pax_warn(1,"Cannot identify format. Searching...");
|
||||
++notice;
|
||||
}
|
||||
}
|
||||
@@ -1209,7 +1208,7 @@ get_arc()
|
||||
if (!notice) {
|
||||
if (act == APPND)
|
||||
return(-1);
|
||||
warn(1, "Cannot identify format. Searching...");
|
||||
pax_warn(1, "Cannot identify format. Searching...");
|
||||
++notice;
|
||||
}
|
||||
|
||||
@@ -1234,6 +1233,6 @@ get_arc()
|
||||
/*
|
||||
* we cannot find a header, bow, apologize and quit
|
||||
*/
|
||||
warn(1, "Sorry, unable to determine archive format.");
|
||||
pax_warn(1, "Sorry, unable to determine archive format.");
|
||||
return(-1);
|
||||
}
|
||||
+24
-27
@@ -34,18 +34,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: buf_subs.c,v 1.3 1995/05/30 00:06:53 rgrimes Exp $
|
||||
* $Id: buf_subs.c,v 1.4.2.2 1997/09/14 13:07:13 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
@@ -103,12 +100,12 @@ wr_start()
|
||||
if (!wrblksz)
|
||||
wrblksz = frmt->bsz;
|
||||
if (wrblksz > MAXBLK) {
|
||||
warn(1, "Write block size of %d too large, maximium is: %d",
|
||||
pax_warn(1, "Write block size of %d too large, maximium is: %d",
|
||||
wrblksz, MAXBLK);
|
||||
return(-1);
|
||||
}
|
||||
if (wrblksz % BLKMULT) {
|
||||
warn(1, "Write block size of %d is not a %d byte multiple",
|
||||
pax_warn(1, "Write block size of %d is not a %d byte multiple",
|
||||
wrblksz, BLKMULT);
|
||||
return(-1);
|
||||
}
|
||||
@@ -148,12 +145,12 @@ rd_start()
|
||||
buf = &(bufmem[BLKMULT]);
|
||||
if ((act == APPND) && wrblksz) {
|
||||
if (wrblksz > MAXBLK) {
|
||||
warn(1,"Write block size %d too large, maximium is: %d",
|
||||
pax_warn(1,"Write block size %d too large, maximium is: %d",
|
||||
wrblksz, MAXBLK);
|
||||
return(-1);
|
||||
}
|
||||
if (wrblksz % BLKMULT) {
|
||||
warn(1, "Write block size %d is not a %d byte multiple",
|
||||
pax_warn(1, "Write block size %d is not a %d byte multiple",
|
||||
wrblksz, BLKMULT);
|
||||
return(-1);
|
||||
}
|
||||
@@ -232,7 +229,7 @@ appnd_start(skcnt)
|
||||
off_t cnt;
|
||||
|
||||
if (exit_val != 0) {
|
||||
warn(0, "Cannot append to an archive that may have flaws.");
|
||||
pax_warn(0, "Cannot append to an archive that may have flaws.");
|
||||
return(-1);
|
||||
}
|
||||
/*
|
||||
@@ -309,7 +306,7 @@ appnd_start(skcnt)
|
||||
return(0);
|
||||
|
||||
out:
|
||||
warn(1, "Unable to rewrite archive trailer, cannot append.");
|
||||
pax_warn(1, "Unable to rewrite archive trailer, cannot append.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -341,7 +338,7 @@ rd_sync()
|
||||
if (maxflt == 0)
|
||||
return(-1);
|
||||
if (act == APPND) {
|
||||
warn(1, "Unable to append when there are archive read errors.");
|
||||
pax_warn(1, "Unable to append when there are archive read errors.");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -375,7 +372,7 @@ rd_sync()
|
||||
* can extract out of the archive.
|
||||
*/
|
||||
if ((maxflt > 0) && (++errcnt > maxflt))
|
||||
warn(0,"Archive read error limit (%d) reached",maxflt);
|
||||
pax_warn(0,"Archive read error limit (%d) reached",maxflt);
|
||||
else if (ar_rdsync() == 0)
|
||||
continue;
|
||||
if (ar_next() < 0)
|
||||
@@ -654,7 +651,7 @@ wr_skip(skcnt)
|
||||
* it is important that we always write EXACTLY the number of bytes that
|
||||
* the format specific write routine told us to. The file can also get
|
||||
* bigger, so reading to the end of file would create an improper archive,
|
||||
* we just detect this case and warn the user. We never create a bad
|
||||
* we just detect this case and pax_warn the user. We never create a bad
|
||||
* archive if we can avoid it. Of course trying to archive files that are
|
||||
* active is asking for trouble. It we fail, we pass back how much we
|
||||
* could NOT copy and let the caller deal with it.
|
||||
@@ -700,13 +697,13 @@ wr_rdfile(arcn, ifd, left)
|
||||
* or the file read failed.
|
||||
*/
|
||||
if (res < 0)
|
||||
syswarn(1, errno, "Read fault on %s", arcn->org_name);
|
||||
sys_warn(1, errno, "Read fault on %s", arcn->org_name);
|
||||
else if (size != 0L)
|
||||
warn(1, "File changed size during read %s", arcn->org_name);
|
||||
pax_warn(1, "File changed size during read %s", arcn->org_name);
|
||||
else if (fstat(ifd, &sb) < 0)
|
||||
syswarn(1, errno, "Failed stat on %s", arcn->org_name);
|
||||
sys_warn(1, errno, "Failed stat on %s", arcn->org_name);
|
||||
else if (arcn->sb.st_mtime != sb.st_mtime)
|
||||
warn(1, "File %s was modified during copy to archive",
|
||||
pax_warn(1, "File %s was modified during copy to archive",
|
||||
arcn->org_name);
|
||||
*left = size;
|
||||
return(0);
|
||||
@@ -761,7 +758,7 @@ rd_wrfile(arcn, ofd, left)
|
||||
if (sb.st_blksize > 0)
|
||||
sz = (int)sb.st_blksize;
|
||||
} else
|
||||
syswarn(0,errno,"Unable to obtain block size for file %s",fnm);
|
||||
sys_warn(0,errno,"Unable to obtain block size for file %s",fnm);
|
||||
rem = sz;
|
||||
*left = 0L;
|
||||
|
||||
@@ -817,7 +814,7 @@ rd_wrfile(arcn, ofd, left)
|
||||
* calculated crc to the crc stored in the archive
|
||||
*/
|
||||
if (docrc && (size == 0L) && (arcn->crc != crc))
|
||||
warn(1,"Actual crc does not match expected crc %s",arcn->name);
|
||||
pax_warn(1,"Actual crc does not match expected crc %s",arcn->name);
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -864,7 +861,7 @@ cp_file(arcn, fd1, fd2)
|
||||
if (sb.st_blksize > 0)
|
||||
sz = sb.st_blksize;
|
||||
} else
|
||||
syswarn(0,errno,"Unable to obtain block size for file %s",fnm);
|
||||
sys_warn(0,errno,"Unable to obtain block size for file %s",fnm);
|
||||
rem = sz;
|
||||
|
||||
/*
|
||||
@@ -886,15 +883,15 @@ cp_file(arcn, fd1, fd2)
|
||||
* check to make sure the copy is valid.
|
||||
*/
|
||||
if (res < 0)
|
||||
syswarn(1, errno, "Failed write during copy of %s to %s",
|
||||
sys_warn(1, errno, "Failed write during copy of %s to %s",
|
||||
arcn->org_name, arcn->name);
|
||||
else if (cpcnt != arcn->sb.st_size)
|
||||
warn(1, "File %s changed size during copy to %s",
|
||||
pax_warn(1, "File %s changed size during copy to %s",
|
||||
arcn->org_name, arcn->name);
|
||||
else if (fstat(fd1, &sb) < 0)
|
||||
syswarn(1, errno, "Failed stat of %s", arcn->org_name);
|
||||
sys_warn(1, errno, "Failed stat of %s", arcn->org_name);
|
||||
else if (arcn->sb.st_mtime != sb.st_mtime)
|
||||
warn(1, "File %s was modified during copy to %s",
|
||||
pax_warn(1, "File %s was modified during copy to %s",
|
||||
arcn->org_name, arcn->name);
|
||||
|
||||
/*
|
||||
@@ -987,7 +984,7 @@ buf_flush(bufcnt)
|
||||
* at least one record. We always round limit UP to next blocksize.
|
||||
*/
|
||||
if ((wrlimit > 0) && (wrcnt > wrlimit)) {
|
||||
warn(0, "User specified archive volume byte limit reached.");
|
||||
pax_warn(0, "User specified archive volume byte limit reached.");
|
||||
if (ar_next() < 0) {
|
||||
wrcnt = 0;
|
||||
exit_val = 1;
|
||||
@@ -1043,7 +1040,7 @@ buf_flush(bufcnt)
|
||||
/*
|
||||
* Oh drat we got a partial write!
|
||||
* if format doesnt care about alignment let it go,
|
||||
* we warned the user in ar_write().... but this means
|
||||
* we pax_warned the user in ar_write().... but this means
|
||||
* the last record on this volume violates pax spec....
|
||||
*/
|
||||
totcnt += cnt;
|
||||
|
||||
+12
-14
@@ -34,17 +34,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cache.c,v 1.2 1994/09/24 02:56:14 davidg Exp $
|
||||
* $Id: cache.c,v 1.3.2.3 1997/09/14 13:07:15 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)cache.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)cache.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
@@ -92,7 +90,7 @@ uidtb_start()
|
||||
return(-1);
|
||||
if ((uidtb = (UIDC **)calloc(UID_SZ, sizeof(UIDC *))) == NULL) {
|
||||
++fail;
|
||||
warn(1, "Unable to allocate memory for user id cache table");
|
||||
pax_warn(1, "Unable to allocate memory for user id cache table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -121,7 +119,7 @@ gidtb_start()
|
||||
return(-1);
|
||||
if ((gidtb = (GIDC **)calloc(GID_SZ, sizeof(GIDC *))) == NULL) {
|
||||
++fail;
|
||||
warn(1, "Unable to allocate memory for group id cache table");
|
||||
pax_warn(1, "Unable to allocate memory for group id cache table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -150,7 +148,7 @@ usrtb_start()
|
||||
return(-1);
|
||||
if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) {
|
||||
++fail;
|
||||
warn(1, "Unable to allocate memory for user name cache table");
|
||||
pax_warn(1, "Unable to allocate memory for user name cache table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -179,7 +177,7 @@ grptb_start()
|
||||
return(-1);
|
||||
if ((grptb = (GIDC **)calloc(GNM_SZ, sizeof(GIDC *))) == NULL) {
|
||||
++fail;
|
||||
warn(1,"Unable to allocate memory for group name cache table");
|
||||
pax_warn(1,"Unable to allocate memory for group name cache table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -244,7 +242,7 @@ name_uid(uid, frc)
|
||||
# ifdef NET2_STAT
|
||||
(void)sprintf(ptr->name, "%u", uid);
|
||||
# else
|
||||
(void)sprintf(ptr->name, "%lu", uid);
|
||||
(void)sprintf(ptr->name, "%lu", (u_long)uid);
|
||||
# endif
|
||||
if (frc == 0)
|
||||
return("");
|
||||
@@ -255,7 +253,7 @@ name_uid(uid, frc)
|
||||
if (ptr == NULL)
|
||||
return(pw->pw_name);
|
||||
ptr->uid = uid;
|
||||
(void)strncpy(ptr->name, pw->pw_name, UNMLEN);
|
||||
(void)strncpy(ptr->name, pw->pw_name, UNMLEN - 1);
|
||||
ptr->name[UNMLEN-1] = '\0';
|
||||
ptr->valid = VALID;
|
||||
}
|
||||
@@ -321,7 +319,7 @@ name_gid(gid, frc)
|
||||
# ifdef NET2_STAT
|
||||
(void)sprintf(ptr->name, "%u", gid);
|
||||
# else
|
||||
(void)sprintf(ptr->name, "%lu", gid);
|
||||
(void)sprintf(ptr->name, "%lu", (u_long)gid);
|
||||
# endif
|
||||
if (frc == 0)
|
||||
return("");
|
||||
@@ -332,7 +330,7 @@ name_gid(gid, frc)
|
||||
if (ptr == NULL)
|
||||
return(gr->gr_name);
|
||||
ptr->gid = gid;
|
||||
(void)strncpy(ptr->name, gr->gr_name, GNMLEN);
|
||||
(void)strncpy(ptr->name, gr->gr_name, GNMLEN - 1);
|
||||
ptr->name[GNMLEN-1] = '\0';
|
||||
ptr->valid = VALID;
|
||||
}
|
||||
@@ -398,7 +396,7 @@ uid_name(name, uid)
|
||||
*uid = pw->pw_uid;
|
||||
return(0);
|
||||
}
|
||||
(void)strncpy(ptr->name, name, UNMLEN);
|
||||
(void)strncpy(ptr->name, name, UNMLEN - 1);
|
||||
ptr->name[UNMLEN-1] = '\0';
|
||||
if ((pw = getpwnam(name)) == NULL) {
|
||||
ptr->valid = INVALID;
|
||||
@@ -468,7 +466,7 @@ gid_name(name, gid)
|
||||
return(0);
|
||||
}
|
||||
|
||||
(void)strncpy(ptr->name, name, GNMLEN);
|
||||
(void)strncpy(ptr->name, name, GNMLEN - 1);
|
||||
ptr->name[GNMLEN-1] = '\0';
|
||||
if ((gr = getgrnam(name)) == NULL) {
|
||||
ptr->valid = INVALID;
|
||||
|
||||
+20
-21
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cpio.c,v 1.3 1995/05/30 00:06:54 rgrimes Exp $
|
||||
* $Id: cpio.c,v 1.4.2.2 1997/09/14 13:07:17 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)cpio.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -216,7 +215,7 @@ rd_nm(arcn, nsz)
|
||||
* do not even try bogus values
|
||||
*/
|
||||
if ((nsz == 0) || (nsz > sizeof(arcn->name))) {
|
||||
warn(1, "Cpio file name length %d is out of range", nsz);
|
||||
pax_warn(1, "Cpio file name length %d is out of range", nsz);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -225,7 +224,7 @@ rd_nm(arcn, nsz)
|
||||
*/
|
||||
if ((rd_wrbuf(arcn->name,nsz) != nsz) || (arcn->name[nsz-1] != '\0') ||
|
||||
(arcn->name[0] == '\0')) {
|
||||
warn(1, "Cpio file name in header is corrupted");
|
||||
pax_warn(1, "Cpio file name in header is corrupted");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -254,10 +253,10 @@ rd_ln_nm(arcn)
|
||||
if ((arcn->sb.st_size == 0) ||
|
||||
(arcn->sb.st_size >= sizeof(arcn->ln_name))) {
|
||||
# ifdef NET2_STAT
|
||||
warn(1, "Cpio link name length is invalid: %lu",
|
||||
pax_warn(1, "Cpio link name length is invalid: %lu",
|
||||
arcn->sb.st_size);
|
||||
# else
|
||||
warn(1, "Cpio link name length is invalid: %qu",
|
||||
pax_warn(1, "Cpio link name length is invalid: %qu",
|
||||
arcn->sb.st_size);
|
||||
# endif
|
||||
return(-1);
|
||||
@@ -268,7 +267,7 @@ rd_ln_nm(arcn)
|
||||
*/
|
||||
if (rd_wrbuf(arcn->ln_name, (int)arcn->sb.st_size) !=
|
||||
(int)arcn->sb.st_size) {
|
||||
warn(1, "Cpio link name read error");
|
||||
pax_warn(1, "Cpio link name read error");
|
||||
return(-1);
|
||||
}
|
||||
arcn->ln_nlen = arcn->sb.st_size;
|
||||
@@ -278,7 +277,7 @@ rd_ln_nm(arcn)
|
||||
* watch out for those empty link names
|
||||
*/
|
||||
if (arcn->ln_name[0] == '\0') {
|
||||
warn(1, "Cpio link name is corrupt");
|
||||
pax_warn(1, "Cpio link name is corrupt");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -480,7 +479,7 @@ cpio_wr(arcn)
|
||||
if (uqd_asc((u_quad_t)arcn->sb.st_size, hd->c_filesize,
|
||||
sizeof(hd->c_filesize), OCT)) {
|
||||
# endif
|
||||
warn(1,"File is too large for cpio format %s",
|
||||
pax_warn(1,"File is too large for cpio format %s",
|
||||
arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
@@ -531,7 +530,7 @@ cpio_wr(arcn)
|
||||
*/
|
||||
if ((wr_rdbuf(hdblk, (int)sizeof(HD_CPIO)) < 0) ||
|
||||
(wr_rdbuf(arcn->name, nsz) < 0)) {
|
||||
warn(1, "Unable to write cpio header for %s", arcn->org_name);
|
||||
pax_warn(1, "Unable to write cpio header for %s", arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -550,7 +549,7 @@ cpio_wr(arcn)
|
||||
* next file as we are done.
|
||||
*/
|
||||
if (wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) {
|
||||
warn(1,"Unable to write cpio link name for %s",arcn->org_name);
|
||||
pax_warn(1,"Unable to write cpio link name for %s",arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
return(1);
|
||||
@@ -559,7 +558,7 @@ cpio_wr(arcn)
|
||||
/*
|
||||
* header field is out of range
|
||||
*/
|
||||
warn(1, "Cpio header field is too small to store file %s",
|
||||
pax_warn(1, "Cpio header field is too small to store file %s",
|
||||
arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
@@ -847,7 +846,7 @@ vcpio_wr(arcn)
|
||||
if (uqd_asc((u_quad_t)arcn->sb.st_size, hd->c_filesize,
|
||||
sizeof(hd->c_filesize), HEX)) {
|
||||
# endif
|
||||
warn(1,"File is too large for sv4cpio format %s",
|
||||
pax_warn(1,"File is too large for sv4cpio format %s",
|
||||
arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
@@ -905,7 +904,7 @@ vcpio_wr(arcn)
|
||||
if ((wr_rdbuf(hdblk, (int)sizeof(HD_VCPIO)) < 0) ||
|
||||
(wr_rdbuf(arcn->name, (int)nsz) < 0) ||
|
||||
(wr_skip((off_t)(VCPIO_PAD(sizeof(HD_VCPIO) + nsz))) < 0)) {
|
||||
warn(1,"Could not write sv4cpio header for %s",arcn->org_name);
|
||||
pax_warn(1,"Could not write sv4cpio header for %s",arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -927,7 +926,7 @@ vcpio_wr(arcn)
|
||||
*/
|
||||
if ((wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) ||
|
||||
(wr_skip((off_t)(VCPIO_PAD(arcn->ln_nlen))) < 0)) {
|
||||
warn(1,"Could not write sv4cpio link name for %s",
|
||||
pax_warn(1,"Could not write sv4cpio link name for %s",
|
||||
arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
@@ -937,7 +936,7 @@ vcpio_wr(arcn)
|
||||
/*
|
||||
* header field is out of range
|
||||
*/
|
||||
warn(1,"Sv4cpio header field is too small for file %s",arcn->org_name);
|
||||
pax_warn(1,"Sv4cpio header field is too small for file %s",arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -1158,7 +1157,7 @@ bcpio_wr(arcn)
|
||||
t_offt = (off_t)(SHRT_EXT(hd->h_filesize_1));
|
||||
t_offt = (t_offt<<16) | ((off_t)(SHRT_EXT(hd->h_filesize_2)));
|
||||
if (arcn->sb.st_size != t_offt) {
|
||||
warn(1,"File is too large for bcpio format %s",
|
||||
pax_warn(1,"File is too large for bcpio format %s",
|
||||
arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
@@ -1243,7 +1242,7 @@ bcpio_wr(arcn)
|
||||
if ((wr_rdbuf(hdblk, (int)sizeof(HD_BCPIO)) < 0) ||
|
||||
(wr_rdbuf(arcn->name, nsz) < 0) ||
|
||||
(wr_skip((off_t)(BCPIO_PAD(sizeof(HD_BCPIO) + nsz))) < 0)) {
|
||||
warn(1, "Could not write bcpio header for %s", arcn->org_name);
|
||||
pax_warn(1, "Could not write bcpio header for %s", arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1265,7 +1264,7 @@ bcpio_wr(arcn)
|
||||
*/
|
||||
if ((wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) ||
|
||||
(wr_skip((off_t)(BCPIO_PAD(arcn->ln_nlen))) < 0)) {
|
||||
warn(1,"Could not write bcpio link name for %s",arcn->org_name);
|
||||
pax_warn(1,"Could not write bcpio link name for %s",arcn->org_name);
|
||||
return(-1);
|
||||
}
|
||||
return(1);
|
||||
@@ -1274,6 +1273,6 @@ bcpio_wr(arcn)
|
||||
/*
|
||||
* header field is out of range
|
||||
*/
|
||||
warn(1,"Bcpio header field is too small for file %s", arcn->org_name);
|
||||
pax_warn(1,"Bcpio header field is too small for file %s", arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
+3
-3
@@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.2 (Berkeley) 4/18/94
|
||||
* $Id$
|
||||
* $Id: extern.h,v 1.2 1994/09/24 02:56:18 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -282,5 +282,5 @@ int ustar_wr __P((register ARCHD *));
|
||||
int tty_init __P((void));
|
||||
void tty_prnt __P((char *, ...));
|
||||
int tty_read __P((char *, int));
|
||||
void warn __P((int, char *, ...));
|
||||
void syswarn __P((int, int, char *, ...));
|
||||
void pax_warn __P((int, char *, ...));
|
||||
void sys_warn __P((int, int, char *, ...));
|
||||
+30
-31
@@ -34,18 +34,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: file_subs.c,v 1.3 1995/05/30 00:06:56 rgrimes Exp $
|
||||
* $Id: file_subs.c,v 1.4.2.2 1997/09/14 13:07:21 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@@ -122,7 +121,7 @@ file_creat(arcn)
|
||||
break;
|
||||
oerrno = errno;
|
||||
if (chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
|
||||
syswarn(1, oerrno, "Unable to create %s", arcn->name);
|
||||
sys_warn(1, oerrno, "Unable to create %s", arcn->name);
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
@@ -152,7 +151,7 @@ file_close(arcn, fd)
|
||||
if (fd < 0)
|
||||
return;
|
||||
if (close(fd) < 0)
|
||||
syswarn(0, errno, "Unable to close file descriptor on %s",
|
||||
sys_warn(0, errno, "Unable to close file descriptor on %s",
|
||||
arcn->name);
|
||||
|
||||
/*
|
||||
@@ -200,13 +199,13 @@ lnk_creat(arcn)
|
||||
* is not a directory, so we lstat and check
|
||||
*/
|
||||
if (lstat(arcn->ln_name, &sb) < 0) {
|
||||
syswarn(1,errno,"Unable to link to %s from %s", arcn->ln_name,
|
||||
sys_warn(1,errno,"Unable to link to %s from %s", arcn->ln_name,
|
||||
arcn->name);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
if (S_ISDIR(sb.st_mode)) {
|
||||
warn(1, "A hard link to the directory %s is not allowed",
|
||||
pax_warn(1, "A hard link to the directory %s is not allowed",
|
||||
arcn->ln_name);
|
||||
return(-1);
|
||||
}
|
||||
@@ -217,7 +216,7 @@ lnk_creat(arcn)
|
||||
/*
|
||||
* cross_lnk()
|
||||
* Create a hard link to arcn->org_name from arcn->name. Only used in copy
|
||||
* with the -l flag. No warning or error if this does not succeed (we will
|
||||
* with the -l flag. No pax_warning or error if this does not succeed (we will
|
||||
* then just create the file)
|
||||
* Return:
|
||||
* 1 if copy() should try to create this file node
|
||||
@@ -278,7 +277,7 @@ chk_same(arcn)
|
||||
* better make sure the user does not have src == dest by mistake
|
||||
*/
|
||||
if ((arcn->sb.st_dev == sb.st_dev) && (arcn->sb.st_ino == sb.st_ino)) {
|
||||
warn(1, "Unable to copy %s, file would overwrite itself",
|
||||
pax_warn(1, "Unable to copy %s, file would overwrite itself",
|
||||
arcn->name);
|
||||
return(0);
|
||||
}
|
||||
@@ -325,7 +324,7 @@ mk_link(to, to_sb, from, ign)
|
||||
* make sure it is not the same file, protect the user
|
||||
*/
|
||||
if ((to_sb->st_dev==sb.st_dev)&&(to_sb->st_ino == sb.st_ino)) {
|
||||
warn(1, "Unable to link file %s to itself", to);
|
||||
pax_warn(1, "Unable to link file %s to itself", to);
|
||||
return(-1);;
|
||||
}
|
||||
|
||||
@@ -334,12 +333,12 @@ mk_link(to, to_sb, from, ign)
|
||||
*/
|
||||
if (S_ISDIR(sb.st_mode)) {
|
||||
if (rmdir(from) < 0) {
|
||||
syswarn(1, errno, "Unable to remove %s", from);
|
||||
sys_warn(1, errno, "Unable to remove %s", from);
|
||||
return(-1);
|
||||
}
|
||||
} else if (unlink(from) < 0) {
|
||||
if (!ign) {
|
||||
syswarn(1, errno, "Unable to remove %s", from);
|
||||
sys_warn(1, errno, "Unable to remove %s", from);
|
||||
return(-1);
|
||||
}
|
||||
return(1);
|
||||
@@ -358,7 +357,7 @@ mk_link(to, to_sb, from, ign)
|
||||
if (chk_path(from, to_sb->st_uid, to_sb->st_gid) == 0)
|
||||
continue;
|
||||
if (!ign) {
|
||||
syswarn(1, oerrno, "Could not link to %s from %s", to,
|
||||
sys_warn(1, oerrno, "Could not link to %s from %s", to,
|
||||
from);
|
||||
return(-1);
|
||||
}
|
||||
@@ -425,7 +424,7 @@ node_creat(arcn)
|
||||
/*
|
||||
* Skip sockets, operation has no meaning under BSD
|
||||
*/
|
||||
warn(0,
|
||||
pax_warn(0,
|
||||
"%s skipped. Sockets cannot be copied or extracted",
|
||||
arcn->name);
|
||||
return(-1);
|
||||
@@ -441,7 +440,7 @@ node_creat(arcn)
|
||||
/*
|
||||
* we should never get here
|
||||
*/
|
||||
warn(0, "%s has an unknown file type, skipping",
|
||||
pax_warn(0, "%s has an unknown file type, skipping",
|
||||
arcn->name);
|
||||
return(-1);
|
||||
}
|
||||
@@ -465,7 +464,7 @@ node_creat(arcn)
|
||||
continue;
|
||||
|
||||
if (chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
|
||||
syswarn(1, oerrno, "Could not create: %s", arcn->name);
|
||||
sys_warn(1, oerrno, "Could not create: %s", arcn->name);
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
@@ -500,7 +499,7 @@ node_creat(arcn)
|
||||
*/
|
||||
if (access(arcn->name, R_OK | W_OK | X_OK) < 0) {
|
||||
if (lstat(arcn->name, &sb) < 0) {
|
||||
syswarn(0, errno,"Could not access %s (stat)",
|
||||
sys_warn(0, errno,"Could not access %s (stat)",
|
||||
arcn->name);
|
||||
set_pmode(arcn->name,file_mode | S_IRWXU);
|
||||
} else {
|
||||
@@ -570,7 +569,7 @@ unlnk_exist(name, type)
|
||||
if (rmdir(name) < 0) {
|
||||
if (type == PAX_DIR)
|
||||
return(1);
|
||||
syswarn(1,errno,"Unable to remove directory %s", name);
|
||||
sys_warn(1,errno,"Unable to remove directory %s", name);
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -580,7 +579,7 @@ unlnk_exist(name, type)
|
||||
* try to get rid of all non-directory type nodes
|
||||
*/
|
||||
if (unlink(name) < 0) {
|
||||
syswarn(1, errno, "Could not unlink %s", name);
|
||||
sys_warn(1, errno, "Could not unlink %s", name);
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -720,14 +719,14 @@ set_ftime(fnm, mtime, atime, frc)
|
||||
if (!pmtime)
|
||||
tv[1].tv_sec = (long)sb.st_mtime;
|
||||
} else
|
||||
syswarn(0,errno,"Unable to obtain file stats %s", fnm);
|
||||
sys_warn(0,errno,"Unable to obtain file stats %s", fnm);
|
||||
}
|
||||
|
||||
/*
|
||||
* set the times
|
||||
*/
|
||||
if (utimes(fnm, tv) < 0)
|
||||
syswarn(1, errno, "Access/modification time set failed on: %s",
|
||||
sys_warn(1, errno, "Access/modification time set failed on: %s",
|
||||
fnm);
|
||||
return;
|
||||
}
|
||||
@@ -751,7 +750,7 @@ set_ids(fnm, uid, gid)
|
||||
#endif
|
||||
{
|
||||
if (chown(fnm, uid, gid) < 0) {
|
||||
syswarn(1, errno, "Unable to set file uid/gid of %s", fnm);
|
||||
sys_warn(1, errno, "Unable to set file uid/gid of %s", fnm);
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -774,7 +773,7 @@ set_pmode(fnm, mode)
|
||||
{
|
||||
mode &= ABITS;
|
||||
if (chmod(fnm, mode) < 0)
|
||||
syswarn(1, errno, "Could not set permissions on %s", fnm);
|
||||
sys_warn(1, errno, "Could not set permissions on %s", fnm);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -887,7 +886,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
|
||||
* skip, buf is empty so far
|
||||
*/
|
||||
if (lseek(fd, (off_t)wcnt, SEEK_CUR) < 0) {
|
||||
syswarn(1,errno,"File seek on %s",
|
||||
sys_warn(1,errno,"File seek on %s",
|
||||
name);
|
||||
return(-1);
|
||||
}
|
||||
@@ -904,7 +903,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
|
||||
* have non-zero data in this file system block, have to write
|
||||
*/
|
||||
if (write(fd, st, wcnt) != wcnt) {
|
||||
syswarn(1, errno, "Failed write to file %s", name);
|
||||
sys_warn(1, errno, "Failed write to file %s", name);
|
||||
return(-1);
|
||||
}
|
||||
st += wcnt;
|
||||
@@ -943,12 +942,12 @@ file_flush(fd, fname, isempt)
|
||||
* move back one byte and write a zero
|
||||
*/
|
||||
if (lseek(fd, (off_t)-1, SEEK_CUR) < 0) {
|
||||
syswarn(1, errno, "Failed seek on file %s", fname);
|
||||
sys_warn(1, errno, "Failed seek on file %s", fname);
|
||||
return;
|
||||
}
|
||||
|
||||
if (write(fd, blnk, 1) < 0)
|
||||
syswarn(1, errno, "Failed write to file %s", fname);
|
||||
sys_warn(1, errno, "Failed write to file %s", fname);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1041,13 +1040,13 @@ set_crc(arcn, fd)
|
||||
* they can create inconsistant archive copies.
|
||||
*/
|
||||
if (cpcnt != arcn->sb.st_size)
|
||||
warn(1, "File changed size %s", arcn->org_name);
|
||||
pax_warn(1, "File changed size %s", arcn->org_name);
|
||||
else if (fstat(fd, &sb) < 0)
|
||||
syswarn(1, errno, "Failed stat on %s", arcn->org_name);
|
||||
sys_warn(1, errno, "Failed stat on %s", arcn->org_name);
|
||||
else if (arcn->sb.st_mtime != sb.st_mtime)
|
||||
warn(1, "File %s was modified during read", arcn->org_name);
|
||||
pax_warn(1, "File %s was modified during read", arcn->org_name);
|
||||
else if (lseek(fd, (off_t)0L, SEEK_SET) < 0)
|
||||
syswarn(1, errno, "File rewind failed on: %s", arcn->org_name);
|
||||
sys_warn(1, errno, "File rewind failed on: %s", arcn->org_name);
|
||||
else {
|
||||
arcn->crc = crc;
|
||||
return(0);
|
||||
|
||||
+17
-18
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ftree.c,v 1.3 1995/05/30 00:06:57 rgrimes Exp $
|
||||
* $Id: ftree.c,v 1.4.2.3 1998/02/15 11:18:19 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)ftree.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@@ -122,7 +121,7 @@ ftree_start()
|
||||
ftsopts |= FTS_PHYSICAL;
|
||||
if (Hflag)
|
||||
# ifdef NET2_FTS
|
||||
warn(0, "The -H flag is not supported on this version");
|
||||
pax_warn(0, "The -H flag is not supported on this version");
|
||||
# else
|
||||
ftsopts |= FTS_COMFOLLOW;
|
||||
# endif
|
||||
@@ -130,7 +129,7 @@ ftree_start()
|
||||
ftsopts |= FTS_XDEV;
|
||||
|
||||
if ((fthead == NULL) && ((farray[0] = malloc(PAXPATHLEN+2)) == NULL)) {
|
||||
warn(1, "Unable to allocate memory for file name buffer");
|
||||
pax_warn(1, "Unable to allocate memory for file name buffer");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -165,7 +164,7 @@ ftree_add(str)
|
||||
* simple check for bad args
|
||||
*/
|
||||
if ((str == NULL) || (*str == '\0')) {
|
||||
warn(0, "Invalid file name arguement");
|
||||
pax_warn(0, "Invalid file name arguement");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -175,7 +174,7 @@ ftree_add(str)
|
||||
* trailing / the user may pass us. (watch out for / by itself).
|
||||
*/
|
||||
if ((ft = (FTREE *)malloc(sizeof(FTREE))) == NULL) {
|
||||
warn(0, "Unable to allocate memory for filename");
|
||||
pax_warn(0, "Unable to allocate memory for filename");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -263,7 +262,7 @@ ftree_chk()
|
||||
if (ft->refcnt > 0)
|
||||
continue;
|
||||
if (wban == 0) {
|
||||
warn(1,"WARNING! These file names were not selected:");
|
||||
pax_warn(1,"WARNING! These file names were not selected:");
|
||||
++wban;
|
||||
}
|
||||
(void)fprintf(stderr, "%s\n", ft->fname);
|
||||
@@ -423,30 +422,30 @@ next_file(arcn)
|
||||
/*
|
||||
* fts claims a file system cycle
|
||||
*/
|
||||
warn(1,"File system cycle found at %s",ftent->fts_path);
|
||||
pax_warn(1,"File system cycle found at %s",ftent->fts_path);
|
||||
continue;
|
||||
case FTS_DNR:
|
||||
# ifdef NET2_FTS
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
# else
|
||||
syswarn(1, ftent->fts_errno,
|
||||
sys_warn(1, ftent->fts_errno,
|
||||
# endif
|
||||
"Unable to read directory %s", ftent->fts_path);
|
||||
continue;
|
||||
case FTS_ERR:
|
||||
# ifdef NET2_FTS
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
# else
|
||||
syswarn(1, ftent->fts_errno,
|
||||
sys_warn(1, ftent->fts_errno,
|
||||
# endif
|
||||
"File system traversal error");
|
||||
continue;
|
||||
case FTS_NS:
|
||||
case FTS_NSOK:
|
||||
# ifdef NET2_FTS
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
# else
|
||||
syswarn(1, ftent->fts_errno,
|
||||
sys_warn(1, ftent->fts_errno,
|
||||
# endif
|
||||
"Unable to access %s", ftent->fts_path);
|
||||
continue;
|
||||
@@ -507,14 +506,14 @@ next_file(arcn)
|
||||
* have to read the symlink path from the file
|
||||
*/
|
||||
if ((cnt = readlink(ftent->fts_path, arcn->ln_name,
|
||||
PAXPATHLEN)) < 0) {
|
||||
syswarn(1, errno, "Unable to read symlink %s",
|
||||
PAXPATHLEN - 1)) < 0) {
|
||||
sys_warn(1, errno, "Unable to read symlink %s",
|
||||
ftent->fts_path);
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
* set link name length, watch out readlink does not
|
||||
* allways null terminate the link path
|
||||
* allways NUL terminate the link path
|
||||
*/
|
||||
arcn->ln_name[cnt] = '\0';
|
||||
arcn->ln_nlen = cnt;
|
||||
|
||||
+4
-4
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: gen_subs.c,v 1.5 1995/08/07 19:17:36 wollman Exp $
|
||||
* $Id: gen_subs.c,v 1.6.2.1 1997/08/25 08:37:00 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
#include <utmp.h>
|
||||
#include <unistd.h>
|
||||
@@ -132,10 +131,11 @@ ls_list(arcn, now)
|
||||
if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK))
|
||||
# ifdef NET2_STAT
|
||||
(void)printf("%4u,%4u ", MAJOR(sbp->st_rdev),
|
||||
MINOR(sbp->st_rdev));
|
||||
# else
|
||||
(void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
|
||||
(unsigned long)MINOR(sbp->st_rdev));
|
||||
# endif
|
||||
MINOR(sbp->st_rdev));
|
||||
else {
|
||||
# ifdef NET2_STAT
|
||||
(void)printf("%9lu ", sbp->st_size);
|
||||
|
||||
+17
-19
@@ -34,18 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: options.c,v 1.3 1995/03/19 13:28:53 joerg Exp $
|
||||
* $Id: options.c,v 1.4.2.2 1997/09/14 13:07:25 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mtio.h>
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@@ -195,7 +193,7 @@ pax_options(argc, argv)
|
||||
* process option flags
|
||||
*/
|
||||
while ((c=getopt(argc,argv,"ab:cdf:iklno:p:rs:tuvwx:B:DE:G:HLPT:U:XYZ"))
|
||||
!= EOF) {
|
||||
!= -1) {
|
||||
switch (c) {
|
||||
case 'a':
|
||||
/*
|
||||
@@ -209,7 +207,7 @@ pax_options(argc, argv)
|
||||
*/
|
||||
flg |= BF;
|
||||
if ((wrblksz = (int)str_offt(optarg)) <= 0) {
|
||||
warn(1, "Invalid block size %s", optarg);
|
||||
pax_warn(1, "Invalid block size %s", optarg);
|
||||
pax_usage();
|
||||
}
|
||||
break;
|
||||
@@ -311,7 +309,7 @@ pax_options(argc, argv)
|
||||
pmode = 1;
|
||||
break;
|
||||
default:
|
||||
warn(1, "Invalid -p string: %c", *pt);
|
||||
pax_warn(1, "Invalid -p string: %c", *pt);
|
||||
pax_usage();
|
||||
break;
|
||||
}
|
||||
@@ -371,7 +369,7 @@ pax_options(argc, argv)
|
||||
flg |= XF;
|
||||
break;
|
||||
}
|
||||
warn(1, "Unknown -x format: %s", optarg);
|
||||
pax_warn(1, "Unknown -x format: %s", optarg);
|
||||
(void)fputs("pax: Known -x formats are:", stderr);
|
||||
for (i = 0; i < (sizeof(fsub)/sizeof(FSUB)); ++i)
|
||||
(void)fprintf(stderr, " %s", fsub[i].name);
|
||||
@@ -384,11 +382,11 @@ pax_options(argc, argv)
|
||||
* single archive volume.
|
||||
*/
|
||||
if ((wrlimit = str_offt(optarg)) <= 0) {
|
||||
warn(1, "Invalid write limit %s", optarg);
|
||||
pax_warn(1, "Invalid write limit %s", optarg);
|
||||
pax_usage();
|
||||
}
|
||||
if (wrlimit % BLKMULT) {
|
||||
warn(1, "Write limit is not a %d byte multiple",
|
||||
pax_warn(1, "Write limit is not a %d byte multiple",
|
||||
BLKMULT);
|
||||
pax_usage();
|
||||
}
|
||||
@@ -412,7 +410,7 @@ pax_options(argc, argv)
|
||||
if (strcmp(NONE, optarg) == 0)
|
||||
maxflt = -1;
|
||||
else if ((maxflt = atoi(optarg)) < 0) {
|
||||
warn(1, "Error count value must be positive");
|
||||
pax_warn(1, "Error count value must be positive");
|
||||
pax_usage();
|
||||
}
|
||||
break;
|
||||
@@ -547,7 +545,7 @@ pax_options(argc, argv)
|
||||
break;
|
||||
case COPY:
|
||||
if (optind >= argc) {
|
||||
warn(0, "Destination directory was not supplied");
|
||||
pax_warn(0, "Destination directory was not supplied");
|
||||
pax_usage();
|
||||
}
|
||||
--argc;
|
||||
@@ -604,11 +602,11 @@ tar_options(argc, argv)
|
||||
* specify blocksize
|
||||
*/
|
||||
if (*argv == (char *)NULL) {
|
||||
warn(1,"blocksize must be specified with 'b'");
|
||||
pax_warn(1,"blocksize must be specified with 'b'");
|
||||
tar_usage();
|
||||
}
|
||||
if ((wrblksz = (int)str_offt(*argv)) <= 0) {
|
||||
warn(1, "Invalid block size %s", *argv);
|
||||
pax_warn(1, "Invalid block size %s", *argv);
|
||||
tar_usage();
|
||||
}
|
||||
++argv;
|
||||
@@ -630,7 +628,7 @@ tar_options(argc, argv)
|
||||
* filename where the archive is stored
|
||||
*/
|
||||
if (*argv == (char *)NULL) {
|
||||
warn(1, "filename must be specified with 'f'");
|
||||
pax_warn(1, "filename must be specified with 'f'");
|
||||
tar_usage();
|
||||
}
|
||||
if ((argv[0][0] == '-') && (argv[0][1]== '\0')) {
|
||||
@@ -893,7 +891,7 @@ bad_opt()
|
||||
/*
|
||||
* print all we were given
|
||||
*/
|
||||
warn(1,"These format options are not supported");
|
||||
pax_warn(1,"These format options are not supported");
|
||||
while ((opt = opt_next()) != NULL)
|
||||
(void)fprintf(stderr, "\t%s = %s\n", opt->name, opt->value);
|
||||
pax_usage();
|
||||
@@ -924,7 +922,7 @@ opt_add(str)
|
||||
register char *endpt;
|
||||
|
||||
if ((str == NULL) || (*str == '\0')) {
|
||||
warn(0, "Invalid option name");
|
||||
pax_warn(0, "Invalid option name");
|
||||
return(-1);
|
||||
}
|
||||
frpt = endpt = str;
|
||||
@@ -938,11 +936,11 @@ opt_add(str)
|
||||
if ((endpt = strchr(frpt, ',')) != NULL)
|
||||
*endpt = '\0';
|
||||
if ((pt = strchr(frpt, '=')) == NULL) {
|
||||
warn(0, "Invalid options format");
|
||||
pax_warn(0, "Invalid options format");
|
||||
return(-1);
|
||||
}
|
||||
if ((opt = (OPLIST *)malloc(sizeof(OPLIST))) == NULL) {
|
||||
warn(0, "Unable to allocate space for option list");
|
||||
pax_warn(0, "Unable to allocate space for option list");
|
||||
return(-1);
|
||||
}
|
||||
*pt++ = '\0';
|
||||
|
||||
+18
-18
@@ -34,17 +34,15 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pat_rep.c,v 1.4 1995/05/30 00:06:59 rgrimes Exp $
|
||||
* $Id: pat_rep.c,v 1.5.2.3 1997/09/14 13:07:27 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)pat_rep.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@@ -119,7 +117,7 @@ rep_add(str)
|
||||
* throw out the bad parameters
|
||||
*/
|
||||
if ((str == NULL) || (*str == '\0')) {
|
||||
warn(1, "Empty replacement string");
|
||||
pax_warn(1, "Empty replacement string");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -128,7 +126,7 @@ rep_add(str)
|
||||
* this expression
|
||||
*/
|
||||
if ((pt1 = strchr(str+1, *str)) == NULL) {
|
||||
warn(1, "Invalid replacement string %s", str);
|
||||
pax_warn(1, "Invalid replacement string %s", str);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -137,7 +135,7 @@ rep_add(str)
|
||||
* and split out the regular expression and try to compile it
|
||||
*/
|
||||
if ((rep = (REPLACE *)malloc(sizeof(REPLACE))) == NULL) {
|
||||
warn(1, "Unable to allocate memory for replacement string");
|
||||
pax_warn(1, "Unable to allocate memory for replacement string");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -147,7 +145,7 @@ rep_add(str)
|
||||
# else
|
||||
if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) {
|
||||
regerror(res, &(rep->rcmp), rebuf, sizeof(rebuf));
|
||||
warn(1, "%s while compiling regular expression %s", rebuf, str);
|
||||
pax_warn(1, "%s while compiling regular expression %s", rebuf, str);
|
||||
# endif
|
||||
(void)free((char *)rep);
|
||||
return(-1);
|
||||
@@ -166,7 +164,7 @@ rep_add(str)
|
||||
regfree(&(rep->rcmp));
|
||||
# endif
|
||||
(void)free((char *)rep);
|
||||
warn(1, "Invalid replacement string %s", str);
|
||||
pax_warn(1, "Invalid replacement string %s", str);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -196,7 +194,7 @@ rep_add(str)
|
||||
# endif
|
||||
(void)free((char *)rep);
|
||||
*pt1 = *str;
|
||||
warn(1, "Invalid replacement string option %s", str);
|
||||
pax_warn(1, "Invalid replacement string option %s", str);
|
||||
return(-1);
|
||||
}
|
||||
++pt2;
|
||||
@@ -241,7 +239,7 @@ pat_add(str)
|
||||
* throw out the junk
|
||||
*/
|
||||
if ((str == NULL) || (*str == '\0')) {
|
||||
warn(1, "Empty pattern string");
|
||||
pax_warn(1, "Empty pattern string");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -251,7 +249,7 @@ pat_add(str)
|
||||
* node to the end of the pattern list
|
||||
*/
|
||||
if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) {
|
||||
warn(1, "Unable to allocate memory for pattern string");
|
||||
pax_warn(1, "Unable to allocate memory for pattern string");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -294,7 +292,7 @@ pat_chk()
|
||||
if (pt->flgs & MTCH)
|
||||
continue;
|
||||
if (!wban) {
|
||||
warn(1, "WARNING! These patterns were not matched:");
|
||||
pax_warn(1, "WARNING! These patterns were not matched:");
|
||||
++wban;
|
||||
}
|
||||
(void)fprintf(stderr, "%s\n", pt->pstr);
|
||||
@@ -373,7 +371,7 @@ pat_sel(arcn)
|
||||
*pt->pend = '\0';
|
||||
|
||||
if ((pt->pstr = strdup(arcn->name)) == NULL) {
|
||||
warn(1, "Pattern select out of memory");
|
||||
pax_warn(1, "Pattern select out of memory");
|
||||
if (pt->pend != NULL)
|
||||
*pt->pend = '/';
|
||||
pt->pend = NULL;
|
||||
@@ -421,7 +419,7 @@ pat_sel(arcn)
|
||||
/*
|
||||
* should never happen....
|
||||
*/
|
||||
warn(1, "Pattern list inconsistant");
|
||||
pax_warn(1, "Pattern list inconsistant");
|
||||
return(-1);
|
||||
}
|
||||
*ppt = pt->fow;
|
||||
@@ -776,6 +774,7 @@ tty_rename(arcn)
|
||||
tty_prnt("Processing continues, name changed to: %s\n", tmpname);
|
||||
res = add_name(arcn->name, arcn->nlen, tmpname);
|
||||
arcn->nlen = l_strncpy(arcn->name, tmpname, PAXPATHLEN+1);
|
||||
arcn->name[PAXPATHLEN] = '\0';
|
||||
if (res < 0)
|
||||
return(-1);
|
||||
return(0);
|
||||
@@ -855,7 +854,7 @@ fix_path(or_name, or_len, dir_name, dir_len)
|
||||
--dest;
|
||||
}
|
||||
if ((len = dest - or_name) > PAXPATHLEN) {
|
||||
warn(1, "File name %s/%s, too long", dir_name, start);
|
||||
pax_warn(1, "File name %s/%s, too long", dir_name, start);
|
||||
return(-1);
|
||||
}
|
||||
*or_len = len;
|
||||
@@ -982,7 +981,7 @@ rep_name(name, nlen, prnt)
|
||||
< 0) {
|
||||
# endif
|
||||
if (prnt)
|
||||
warn(1, "Replacement name error %s",
|
||||
pax_warn(1, "Replacement name error %s",
|
||||
name);
|
||||
return(1);
|
||||
}
|
||||
@@ -1033,7 +1032,7 @@ rep_name(name, nlen, prnt)
|
||||
*outpt = '\0';
|
||||
if ((outpt == endpt) && (*inpt != '\0')) {
|
||||
if (prnt)
|
||||
warn(1,"Replacement name too long %s >> %s",
|
||||
pax_warn(1,"Replacement name too long %s >> %s",
|
||||
name, nname);
|
||||
return(1);
|
||||
}
|
||||
@@ -1056,6 +1055,7 @@ rep_name(name, nlen, prnt)
|
||||
if (*nname == '\0')
|
||||
return(1);
|
||||
*nlen = l_strncpy(name, nname, PAXPATHLEN + 1);
|
||||
name[PAXPATHLEN] = '\0';
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
+40
-39
@@ -34,7 +34,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)pax.1 8.4 (Berkeley) 4/18/94
|
||||
.\" $Id: pax.1,v 1.2 1994/09/24 02:56:26 davidg Exp $
|
||||
.\" $Id: pax.1,v 1.3.2.2 1998/06/30 06:42:49 charnier Exp $
|
||||
.\"
|
||||
.Dd April 18, 1994
|
||||
.Dt PAX 1
|
||||
@@ -194,7 +194,7 @@ The presence of the
|
||||
and the
|
||||
.Fl w
|
||||
options specifies which of the following functional modes
|
||||
.Nm pax
|
||||
.Nm
|
||||
will operate under:
|
||||
.Em list , read , write ,
|
||||
and
|
||||
@@ -284,7 +284,7 @@ While processing a damaged archive during a
|
||||
or
|
||||
.Em list
|
||||
operation,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will attempt to recover from media defects and will search through the archive
|
||||
to locate and process the largest number of archive members possible (see the
|
||||
.Fl E
|
||||
@@ -298,7 +298,7 @@ If the
|
||||
.Ar directory
|
||||
operand does not exist, or it is not writable by the user,
|
||||
or it is not of type directory,
|
||||
.Nm Pax
|
||||
.Nm
|
||||
will exit with a non-zero exit status.
|
||||
.Pp
|
||||
The
|
||||
@@ -317,7 +317,7 @@ be selected.
|
||||
When a
|
||||
.Ar pattern
|
||||
operand does not select at least one archive member,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will write these
|
||||
.Ar pattern
|
||||
operands in a diagnostic message to
|
||||
@@ -330,7 +330,7 @@ operand specifies the pathname of a file to be copied or archived.
|
||||
When a
|
||||
.Ar file
|
||||
operand does not select at least one archive member,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will write these
|
||||
.Ar file
|
||||
operand pathnames in a diagnostic message to
|
||||
@@ -357,7 +357,7 @@ and
|
||||
as the mode argument.
|
||||
When the selected archive format supports the specification of linked
|
||||
files and these files cannot be linked while the archive is being extracted,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will write a diagnostic message to
|
||||
.Dv standard error
|
||||
and exit with a non-zero exit status at the completion of operation.
|
||||
@@ -381,7 +381,7 @@ If an archive format is not specified with a
|
||||
option, the format currently being used in the archive will be selected.
|
||||
Any attempt to append to an archive in a format different from the
|
||||
format already used in the archive will cause
|
||||
.Nm pax
|
||||
.Nm
|
||||
to exit immediately
|
||||
with a non-zero exit status.
|
||||
The blocking size used in the archive volume where writing starts
|
||||
@@ -450,7 +450,7 @@ or
|
||||
.Em write ) .
|
||||
A single archive may span multiple files and different archive devices.
|
||||
When required,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will prompt for the pathname of the file or device of the next volume in the
|
||||
archive.
|
||||
.It Fl i
|
||||
@@ -460,7 +460,7 @@ For each archive member matching a
|
||||
operand or each file matching a
|
||||
.Ar file
|
||||
operand,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will prompt to
|
||||
.Pa /dev/tty
|
||||
giving the name of the file, its file mode and its modification time.
|
||||
@@ -569,7 +569,7 @@ nor the
|
||||
.Cm o
|
||||
specification character is specified, or the user ID and group ID are not
|
||||
preserved for any reason,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will not set the
|
||||
.Dv S_ISUID
|
||||
.Em ( setuid )
|
||||
@@ -578,7 +578,7 @@ and
|
||||
.Em ( setgid )
|
||||
bits of the file mode.
|
||||
If the preservation of any of these items fails for any reason,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will write a diagnostic message to
|
||||
.Dv standard error .
|
||||
Failure to preserve these items will affect the final exit status,
|
||||
@@ -636,9 +636,9 @@ File or archive member names that substitute to the empty string
|
||||
are not selected and will be skipped.
|
||||
.It Fl t
|
||||
Reset the access times of any file or directory read or accessed by
|
||||
.Nm pax
|
||||
.Nm
|
||||
to be the same as they were before being read or accessed by
|
||||
.Nm pax .
|
||||
.Nm Ns .
|
||||
.It Fl u
|
||||
Ignore files that are older (having a less recent file modification time)
|
||||
than a pre-existing file or archive member with the same name.
|
||||
@@ -699,7 +699,7 @@ standard.
|
||||
The default blocksize for this format is 5120 bytes.
|
||||
Inode and device information about a file (used for detecting file hard links
|
||||
by this format) which may be truncated by this format is detected by
|
||||
.Nm pax
|
||||
.Nm
|
||||
and is repaired.
|
||||
.It Ar bcpio
|
||||
The old binary cpio format.
|
||||
@@ -708,21 +708,21 @@ This format is not very portable and should not be used when other formats
|
||||
are available.
|
||||
Inode and device information about a file (used for detecting file hard links
|
||||
by this format) which may be truncated by this format is detected by
|
||||
.Nm pax
|
||||
.Nm
|
||||
and is repaired.
|
||||
.It Ar sv4cpio
|
||||
The System V release 4 cpio.
|
||||
The default blocksize for this format is 5120 bytes.
|
||||
Inode and device information about a file (used for detecting file hard links
|
||||
by this format) which may be truncated by this format is detected by
|
||||
.Nm pax
|
||||
.Nm
|
||||
and is repaired.
|
||||
.It Ar sv4crc
|
||||
The System V release 4 cpio with file crc checksums.
|
||||
The default blocksize for this format is 5120 bytes.
|
||||
Inode and device information about a file (used for detecting file hard links
|
||||
by this format) which may be truncated by this format is detected by
|
||||
.Nm pax
|
||||
.Nm
|
||||
and is repaired.
|
||||
.It Ar tar
|
||||
The old BSD tar format as found in BSD4.3.
|
||||
@@ -790,20 +790,20 @@ archives to
|
||||
.Ar limit .
|
||||
With a positive
|
||||
.Ar limit ,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will attempt to recover from an archive read error and will
|
||||
continue processing starting with the next file stored in the archive.
|
||||
A
|
||||
.Ar limit
|
||||
of 0 will cause
|
||||
.Nm pax
|
||||
.Nm
|
||||
to stop operation after the first read error is detected on an archive volume.
|
||||
A
|
||||
.Ar limit
|
||||
of
|
||||
.Li NONE
|
||||
will cause
|
||||
.Nm pax
|
||||
.Nm
|
||||
to attempt to recover from read errors forever.
|
||||
The default
|
||||
.Ar limit
|
||||
@@ -813,7 +813,7 @@ is a small positive number of retries.
|
||||
Using this option with
|
||||
.Li NONE
|
||||
should be used with extreme caution as
|
||||
.Nm pax
|
||||
.Nm
|
||||
may get stuck in an infinite loop on a very badly flawed archive.
|
||||
.It Fl G Ar group
|
||||
Select a file based on its
|
||||
@@ -857,7 +857,7 @@ only files with a modification or inode change time of exactly that
|
||||
time will be selected.
|
||||
.Pp
|
||||
When
|
||||
.Nm pax
|
||||
.Nm
|
||||
is in the
|
||||
.Em write
|
||||
or
|
||||
@@ -887,7 +887,7 @@ created and had their modification time reset to an older time (as what
|
||||
happens when a file is extracted from an archive and the modification time
|
||||
is preserved).
|
||||
Time comparisons using both file times is useful when
|
||||
.Nm pax
|
||||
.Nm
|
||||
is used to create a time based incremental archive (only files that were
|
||||
changed during a specified time range will be archived).
|
||||
.Pp
|
||||
@@ -1053,13 +1053,13 @@ gives the verbose table of contents for an archive stored in
|
||||
.Pa filename .
|
||||
.Pp
|
||||
The following commands:
|
||||
.Dl mkdir newdir
|
||||
.Dl cd olddir
|
||||
.Dl pax -rw .\ newdir
|
||||
.Dl mkdir /tmp/foo
|
||||
.Dl cd /tmp/bar
|
||||
.Dl pax -rw .\ /tmp/foo
|
||||
will copy the entire
|
||||
.Pa olddir
|
||||
.Pa /tmp/bar
|
||||
directory hierarchy to
|
||||
.Pa newdir .
|
||||
.Pa /tmp/foo .
|
||||
.Pp
|
||||
The command:
|
||||
.Dl pax -r -s ',^//*usr//*,,' -f a.pax
|
||||
@@ -1093,7 +1093,7 @@ files with the same name found in the source file tree
|
||||
.Pa home .
|
||||
.Sh STANDARDS
|
||||
The
|
||||
.Nm pax
|
||||
.Nm
|
||||
utility is a superset of the
|
||||
.St -p1003.2
|
||||
standard.
|
||||
@@ -1121,10 +1121,11 @@ and
|
||||
operations are extensions to the
|
||||
.Tn POSIX
|
||||
standard.
|
||||
.Sh AUTHOR
|
||||
Keith Muller at the University of California, San Diego
|
||||
.Sh AUTHORS
|
||||
.An Keith Muller
|
||||
at the University of California, San Diego
|
||||
.Sh ERRORS
|
||||
.Nm pax
|
||||
.Nm Pax
|
||||
will exit with one of the following values:
|
||||
.Bl -tag -width 2n
|
||||
.It 0
|
||||
@@ -1134,7 +1135,7 @@ An error occurred.
|
||||
.El
|
||||
.Pp
|
||||
Whenever
|
||||
.Nm pax
|
||||
.Nm
|
||||
cannot create a file or a link when reading an archive or cannot
|
||||
find a file when writing an archive, or cannot preserve the user ID,
|
||||
group ID, or file mode when the
|
||||
@@ -1143,28 +1144,28 @@ option is specified, a diagnostic message is written to
|
||||
.Dv standard error
|
||||
and a non-zero exit status will be returned, but processing will continue.
|
||||
In the case where pax cannot create a link to a file,
|
||||
.Nm pax
|
||||
.Nm
|
||||
will not create a second copy of the file.
|
||||
.Pp
|
||||
If the extraction of a file from an archive is prematurely terminated by
|
||||
a signal or error,
|
||||
.Nm pax
|
||||
.Nm
|
||||
may have only partially extracted a file the user wanted.
|
||||
Additionally, the file modes of extracted files and directories
|
||||
may have incorrect file bits, and the modification and access times may be
|
||||
wrong.
|
||||
.Pp
|
||||
If the creation of an archive is prematurely terminated by a signal or error,
|
||||
.Nm pax
|
||||
.Nm
|
||||
may have only partially created the archive which may violate the specific
|
||||
archive format specification.
|
||||
.Pp
|
||||
If while doing a
|
||||
.Em copy ,
|
||||
.Nm pax
|
||||
.Nm
|
||||
detects a file is about to overwrite itself, the file is not copied,
|
||||
a diagnostic message is written to
|
||||
.Dv standard error
|
||||
and when
|
||||
.Nm pax
|
||||
.Nm
|
||||
completes it will exit with a non-zero exit status.
|
||||
+11
-12
@@ -34,30 +34,29 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pax.c,v 1.4 1995/10/23 21:23:19 ache Exp $
|
||||
* $Id: pax.c,v 1.5.2.2 1997/09/14 13:07:29 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
static char const copyright[] =
|
||||
"@(#) Copyright (c) 1992, 1993\n\
|
||||
The Regents of the University of California. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <locale.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "pax.h"
|
||||
#include "extern.h"
|
||||
static int gen_init __P((void));
|
||||
@@ -285,9 +284,9 @@ sig_cleanup(which_sig)
|
||||
*/
|
||||
vflag = vfpart = 1;
|
||||
if (which_sig == SIGXCPU)
|
||||
warn(0, "Cpu time limit reached, cleaning up.");
|
||||
pax_warn(0, "Cpu time limit reached, cleaning up.");
|
||||
else
|
||||
warn(0, "Signal caught, cleaning up.");
|
||||
pax_warn(0, "Signal caught, cleaning up.");
|
||||
|
||||
ar_close();
|
||||
proc_dir();
|
||||
@@ -365,7 +364,7 @@ gen_init()
|
||||
(sigaddset(&s_mask,SIGINT) < 0)||(sigaddset(&s_mask,SIGHUP) < 0) ||
|
||||
(sigaddset(&s_mask,SIGPIPE) < 0)||(sigaddset(&s_mask,SIGQUIT)<0) ||
|
||||
(sigaddset(&s_mask,SIGXCPU) < 0)||(sigaddset(&s_mask,SIGXFSZ)<0)) {
|
||||
warn(1, "Unable to set up signal mask");
|
||||
pax_warn(1, "Unable to set up signal mask");
|
||||
return(-1);
|
||||
}
|
||||
n_hand.sa_mask = s_mask;
|
||||
@@ -404,6 +403,6 @@ gen_init()
|
||||
return(0);
|
||||
|
||||
out:
|
||||
syswarn(1, errno, "Unable to set up signal handler");
|
||||
sys_warn(1, errno, "Unable to set up signal handler");
|
||||
return(-1);
|
||||
}
|
||||
+16
-17
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: sel_subs.c,v 1.2 1994/09/24 02:56:29 davidg Exp $
|
||||
* $Id: sel_subs.c,v 1.3.2.2 1997/09/14 13:07:33 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <stdio.h>
|
||||
@@ -129,7 +128,7 @@ usr_add(str)
|
||||
return(-1);
|
||||
if ((usrtb == NULL) &&
|
||||
((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) {
|
||||
warn(1, "Unable to allocate memory for user selection table");
|
||||
pax_warn(1, "Unable to allocate memory for user selection table");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -143,7 +142,7 @@ usr_add(str)
|
||||
if ((str[0] == '\\') && (str[1] == '#'))
|
||||
++str;
|
||||
if ((pw = getpwnam(str)) == NULL) {
|
||||
warn(1, "Unable to find uid for user: %s", str);
|
||||
pax_warn(1, "Unable to find uid for user: %s", str);
|
||||
return(-1);
|
||||
}
|
||||
uid = (uid_t)pw->pw_uid;
|
||||
@@ -176,7 +175,7 @@ usr_add(str)
|
||||
usrtb[indx] = pt;
|
||||
return(0);
|
||||
}
|
||||
warn(1, "User selection table out of memory");
|
||||
pax_warn(1, "User selection table out of memory");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -242,7 +241,7 @@ grp_add(str)
|
||||
return(-1);
|
||||
if ((grptb == NULL) &&
|
||||
((grptb = (GRPT **)calloc(GRP_TB_SZ, sizeof(GRPT *))) == NULL)) {
|
||||
warn(1, "Unable to allocate memory fo group selection table");
|
||||
pax_warn(1, "Unable to allocate memory fo group selection table");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -256,7 +255,7 @@ grp_add(str)
|
||||
if ((str[0] == '\\') && (str[1] == '#'))
|
||||
++str;
|
||||
if ((gr = getgrnam(str)) == NULL) {
|
||||
warn(1,"Cannot determine gid for group name: %s", str);
|
||||
pax_warn(1,"Cannot determine gid for group name: %s", str);
|
||||
return(-1);
|
||||
}
|
||||
gid = (gid_t)gr->gr_gid;
|
||||
@@ -289,7 +288,7 @@ grp_add(str)
|
||||
grptb[indx] = pt;
|
||||
return(0);
|
||||
}
|
||||
warn(1, "Group selection table out of memory");
|
||||
pax_warn(1, "Group selection table out of memory");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -375,7 +374,7 @@ trng_add(str)
|
||||
* throw out the badly formed time ranges
|
||||
*/
|
||||
if ((str == NULL) || (*str == '\0')) {
|
||||
warn(1, "Empty time range string");
|
||||
pax_warn(1, "Empty time range string");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -402,7 +401,7 @@ trng_add(str)
|
||||
++dot;
|
||||
continue;
|
||||
}
|
||||
warn(1, "Improperly specified time range: %s", str);
|
||||
pax_warn(1, "Improperly specified time range: %s", str);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -410,7 +409,7 @@ trng_add(str)
|
||||
* allocate space for the time range and store the limits
|
||||
*/
|
||||
if ((pt = (TIME_RNG *)malloc(sizeof(TIME_RNG))) == NULL) {
|
||||
warn(1, "Unable to allocate memory for time range");
|
||||
pax_warn(1, "Unable to allocate memory for time range");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -433,7 +432,7 @@ trng_add(str)
|
||||
pt->flgs |= CMPCTME;
|
||||
break;
|
||||
default:
|
||||
warn(1, "Bad option %c with time range %s",
|
||||
pax_warn(1, "Bad option %c with time range %s",
|
||||
*flgpt, str);
|
||||
goto out;
|
||||
}
|
||||
@@ -450,7 +449,7 @@ trng_add(str)
|
||||
* add lower limit
|
||||
*/
|
||||
if (str_sec(str, &(pt->low_time)) < 0) {
|
||||
warn(1, "Illegal lower time range %s", str);
|
||||
pax_warn(1, "Illegal lower time range %s", str);
|
||||
(void)free((char *)pt);
|
||||
goto out;
|
||||
}
|
||||
@@ -462,7 +461,7 @@ trng_add(str)
|
||||
* add upper limit
|
||||
*/
|
||||
if (str_sec(up_pt, &(pt->high_time)) < 0) {
|
||||
warn(1, "Illegal upper time range %s", up_pt);
|
||||
pax_warn(1, "Illegal upper time range %s", up_pt);
|
||||
(void)free((char *)pt);
|
||||
goto out;
|
||||
}
|
||||
@@ -473,7 +472,7 @@ trng_add(str)
|
||||
*/
|
||||
if (pt->flgs & HASLOW) {
|
||||
if (pt->low_time > pt->high_time) {
|
||||
warn(1, "Upper %s and lower %s time overlap",
|
||||
pax_warn(1, "Upper %s and lower %s time overlap",
|
||||
up_pt, str);
|
||||
(void)free((char *)pt);
|
||||
return(-1);
|
||||
@@ -491,7 +490,7 @@ trng_add(str)
|
||||
return(0);
|
||||
|
||||
out:
|
||||
warn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]");
|
||||
pax_warn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
||||
+29
-28
@@ -34,23 +34,22 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: tables.c,v 1.3 1995/05/30 00:07:01 rgrimes Exp $
|
||||
* $Id: tables.c,v 1.4.2.3 1997/09/14 13:07:34 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)tables.c 8.1 (Berkeley) 5/31/93";
|
||||
static char const sccsid[] = "@(#)tables.c 8.1 (Berkeley) 5/31/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include "pax.h"
|
||||
#include "tables.h"
|
||||
#include "extern.h"
|
||||
@@ -115,7 +114,7 @@ lnk_start()
|
||||
if (ltab != NULL)
|
||||
return(0);
|
||||
if ((ltab = (HRDLNK **)calloc(L_TAB_SZ, sizeof(HRDLNK *))) == NULL) {
|
||||
warn(1, "Cannot allocate memory for hard link table");
|
||||
pax_warn(1, "Cannot allocate memory for hard link table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -180,6 +179,7 @@ chk_lnk(arcn)
|
||||
*/
|
||||
arcn->ln_nlen = l_strncpy(arcn->ln_name, pt->name,
|
||||
PAXPATHLEN+1);
|
||||
arcn->ln_name[PAXPATHLEN] = '\0';
|
||||
if (arcn->type == PAX_REG)
|
||||
arcn->type = PAX_HRG;
|
||||
else
|
||||
@@ -214,7 +214,7 @@ chk_lnk(arcn)
|
||||
(void)free((char *)pt);
|
||||
}
|
||||
|
||||
warn(1, "Hard link table out of memory");
|
||||
pax_warn(1, "Hard link table out of memory");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ ftime_start()
|
||||
if (ftab != NULL)
|
||||
return(0);
|
||||
if ((ftab = (FTM **)calloc(F_TAB_SZ, sizeof(FTM *))) == NULL) {
|
||||
warn(1, "Cannot allocate memory for file time table");
|
||||
pax_warn(1, "Cannot allocate memory for file time table");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ ftime_start()
|
||||
(void)unlink(pt);
|
||||
|
||||
if ((ffd = open(pt, O_RDWR | O_CREAT, S_IRWXU)) < 0) {
|
||||
syswarn(1, errno, "Unable to open temporary file: %s", pt);
|
||||
sys_warn(1, errno, "Unable to open temporary file: %s", pt);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -434,12 +434,12 @@ chk_ftime(arcn)
|
||||
* from the scratch file.
|
||||
*/
|
||||
if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
"Failed ftime table seek");
|
||||
return(-1);
|
||||
}
|
||||
if (read(ffd, ckname, namelen) != namelen) {
|
||||
syswarn(1, errno,
|
||||
sys_warn(1, errno,
|
||||
"Failed ftime table read");
|
||||
return(-1);
|
||||
}
|
||||
@@ -491,11 +491,11 @@ chk_ftime(arcn)
|
||||
ftab[indx] = pt;
|
||||
return(0);
|
||||
}
|
||||
syswarn(1, errno, "Failed write to file time table");
|
||||
sys_warn(1, errno, "Failed write to file time table");
|
||||
} else
|
||||
syswarn(1, errno, "Failed seek on file time table");
|
||||
sys_warn(1, errno, "Failed seek on file time table");
|
||||
} else
|
||||
warn(1, "File time table ran out of memory");
|
||||
pax_warn(1, "File time table ran out of memory");
|
||||
|
||||
if (pt != NULL)
|
||||
(void)free((char *)pt);
|
||||
@@ -532,7 +532,7 @@ name_start()
|
||||
if (ntab != NULL)
|
||||
return(0);
|
||||
if ((ntab = (NAMT **)calloc(N_TAB_SZ, sizeof(NAMT *))) == NULL) {
|
||||
warn(1, "Cannot allocate memory for interactive rename table");
|
||||
pax_warn(1, "Cannot allocate memory for interactive rename table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -565,7 +565,7 @@ add_name(oname, onamelen, nname)
|
||||
/*
|
||||
* should never happen
|
||||
*/
|
||||
warn(0, "No interactive rename table, links may fail\n");
|
||||
pax_warn(0, "No interactive rename table, links may fail\n");
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -591,7 +591,7 @@ add_name(oname, onamelen, nname)
|
||||
|
||||
(void)free((char *)pt->nname);
|
||||
if ((pt->nname = strdup(nname)) == NULL) {
|
||||
warn(1, "Cannot update rename table");
|
||||
pax_warn(1, "Cannot update rename table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -612,7 +612,7 @@ add_name(oname, onamelen, nname)
|
||||
}
|
||||
(void)free((char *)pt);
|
||||
}
|
||||
warn(1, "Interactive rename table out of memory");
|
||||
pax_warn(1, "Interactive rename table out of memory");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -655,6 +655,7 @@ sub_name(oname, onamelen)
|
||||
* and return (we know that oname has enough space)
|
||||
*/
|
||||
*onamelen = l_strncpy(oname, pt->nname, PAXPATHLEN+1);
|
||||
oname[PAXPATHLEN] = '\0';
|
||||
return;
|
||||
}
|
||||
pt = pt->fow;
|
||||
@@ -724,7 +725,7 @@ dev_start()
|
||||
if (dtab != NULL)
|
||||
return(0);
|
||||
if ((dtab = (DEVT **)calloc(D_TAB_SZ, sizeof(DEVT *))) == NULL) {
|
||||
warn(1, "Cannot allocate memory for device mapping table");
|
||||
pax_warn(1, "Cannot allocate memory for device mapping table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -810,7 +811,7 @@ chk_dev(dev, add)
|
||||
* list must be NULL.
|
||||
*/
|
||||
if ((pt = (DEVT *)malloc(sizeof(DEVT))) == NULL) {
|
||||
warn(1, "Device map table out of memory");
|
||||
pax_warn(1, "Device map table out of memory");
|
||||
return(NULL);
|
||||
}
|
||||
pt->dev = dev;
|
||||
@@ -952,9 +953,9 @@ map_dev(arcn, dev_mask, ino_mask)
|
||||
return(0);
|
||||
|
||||
bad:
|
||||
warn(1, "Unable to fix truncated inode/device field when storing %s",
|
||||
pax_warn(1, "Unable to fix truncated inode/device field when storing %s",
|
||||
arcn->name);
|
||||
warn(0, "Archive may create improper hard links when extracted");
|
||||
pax_warn(0, "Archive may create improper hard links when extracted");
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -993,7 +994,7 @@ atdir_start()
|
||||
if (atab != NULL)
|
||||
return(0);
|
||||
if ((atab = (ATDIR **)calloc(A_TAB_SZ, sizeof(ATDIR *))) == NULL) {
|
||||
warn(1,"Cannot allocate space for directory access time table");
|
||||
pax_warn(1,"Cannot allocate space for directory access time table");
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -1100,7 +1101,7 @@ add_atdir(fname, dev, ino, mtime, atime)
|
||||
(void)free((char *)pt);
|
||||
}
|
||||
|
||||
warn(1, "Directory access time reset table ran out of memory");
|
||||
pax_warn(1, "Directory access time reset table ran out of memory");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1222,7 +1223,7 @@ dir_start()
|
||||
(void)unlink(pt);
|
||||
return(0);
|
||||
}
|
||||
warn(1, "Unable to create temporary file for directory times: %s", pt);
|
||||
pax_warn(1, "Unable to create temporary file for directory times: %s", pt);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
@@ -1261,7 +1262,7 @@ add_dir(name, nlen, psb, frc_mode)
|
||||
* in the trailer
|
||||
*/
|
||||
if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) {
|
||||
warn(1,"Unable to store mode and times for directory: %s",name);
|
||||
pax_warn(1,"Unable to store mode and times for directory: %s",name);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1279,7 +1280,7 @@ add_dir(name, nlen, psb, frc_mode)
|
||||
return;
|
||||
}
|
||||
|
||||
warn(1,"Unable to store mode and times for created directory: %s",name);
|
||||
pax_warn(1,"Unable to store mode and times for created directory: %s",name);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1335,7 +1336,7 @@ proc_dir()
|
||||
(void)close(dirfd);
|
||||
dirfd = -1;
|
||||
if (cnt != dircnt)
|
||||
warn(1,"Unable to set mode and times for created directories");
|
||||
pax_warn(1,"Unable to set mode and times for created directories");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+18
-19
@@ -34,17 +34,16 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: tar.c,v 1.3 1995/05/30 00:07:03 rgrimes Exp $
|
||||
* $Id: tar.c,v 1.4.2.2 1997/09/14 13:07:35 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -397,9 +396,9 @@ tar_opt()
|
||||
while ((opt = opt_next()) != NULL) {
|
||||
if (strcmp(opt->name, TAR_OPTION) ||
|
||||
strcmp(opt->value, TAR_NODIR)) {
|
||||
warn(1, "Unknown tar format -o option/value pair %s=%s",
|
||||
pax_warn(1, "Unknown tar format -o option/value pair %s=%s",
|
||||
opt->name, opt->value);
|
||||
warn(1,"%s=%s is the only supported tar format option",
|
||||
pax_warn(1,"%s=%s is the only supported tar format option",
|
||||
TAR_OPTION, TAR_NODIR);
|
||||
return(-1);
|
||||
}
|
||||
@@ -408,7 +407,7 @@ tar_opt()
|
||||
* we only support one option, and only when writing
|
||||
*/
|
||||
if ((act != APPND) && (act != ARCHIVE)) {
|
||||
warn(1, "%s=%s is only supported when writing.",
|
||||
pax_warn(1, "%s=%s is only supported when writing.",
|
||||
opt->name, opt->value);
|
||||
return(-1);
|
||||
}
|
||||
@@ -574,23 +573,23 @@ tar_wr(arcn)
|
||||
return(1);
|
||||
break;
|
||||
case PAX_CHR:
|
||||
warn(1, "Tar cannot archive a character device %s",
|
||||
pax_warn(1, "Tar cannot archive a character device %s",
|
||||
arcn->org_name);
|
||||
return(1);
|
||||
case PAX_BLK:
|
||||
warn(1, "Tar cannot archive a block device %s", arcn->org_name);
|
||||
pax_warn(1, "Tar cannot archive a block device %s", arcn->org_name);
|
||||
return(1);
|
||||
case PAX_SCK:
|
||||
warn(1, "Tar cannot archive a socket %s", arcn->org_name);
|
||||
pax_warn(1, "Tar cannot archive a socket %s", arcn->org_name);
|
||||
return(1);
|
||||
case PAX_FIF:
|
||||
warn(1, "Tar cannot archive a fifo %s", arcn->org_name);
|
||||
pax_warn(1, "Tar cannot archive a fifo %s", arcn->org_name);
|
||||
return(1);
|
||||
case PAX_SLK:
|
||||
case PAX_HLK:
|
||||
case PAX_HRG:
|
||||
if (arcn->ln_nlen > sizeof(hd->linkname)) {
|
||||
warn(1,"Link name too long for tar %s", arcn->ln_name);
|
||||
pax_warn(1,"Link name too long for tar %s", arcn->ln_name);
|
||||
return(1);
|
||||
}
|
||||
break;
|
||||
@@ -607,7 +606,7 @@ tar_wr(arcn)
|
||||
if (arcn->type == PAX_DIR)
|
||||
++len;
|
||||
if (len > sizeof(hd->name)) {
|
||||
warn(1, "File name too long for tar %s", arcn->name);
|
||||
pax_warn(1, "File name too long for tar %s", arcn->name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -663,7 +662,7 @@ tar_wr(arcn)
|
||||
if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size,
|
||||
sizeof(hd->size), 1)) {
|
||||
# endif
|
||||
warn(1,"File is too large for tar %s", arcn->org_name);
|
||||
pax_warn(1,"File is too large for tar %s", arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
arcn->pad = TAR_PAD(arcn->sb.st_size);
|
||||
@@ -698,7 +697,7 @@ tar_wr(arcn)
|
||||
/*
|
||||
* header field is out of range
|
||||
*/
|
||||
warn(1, "Tar header field is too small for %s", arcn->org_name);
|
||||
pax_warn(1, "Tar header field is too small for %s", arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -968,7 +967,7 @@ ustar_wr(arcn)
|
||||
* check for those file system types ustar cannot store
|
||||
*/
|
||||
if (arcn->type == PAX_SCK) {
|
||||
warn(1, "Ustar cannot archive a socket %s", arcn->org_name);
|
||||
pax_warn(1, "Ustar cannot archive a socket %s", arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -977,7 +976,7 @@ ustar_wr(arcn)
|
||||
*/
|
||||
if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
|
||||
(arcn->type == PAX_HRG)) && (arcn->ln_nlen > sizeof(hd->linkname))){
|
||||
warn(1, "Link name too long for ustar %s", arcn->ln_name);
|
||||
pax_warn(1, "Link name too long for ustar %s", arcn->ln_name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
@@ -986,7 +985,7 @@ ustar_wr(arcn)
|
||||
* pt != arcn->name, the name has to be split
|
||||
*/
|
||||
if ((pt = name_split(arcn->name, arcn->nlen)) == NULL) {
|
||||
warn(1, "File name too long for ustar %s", arcn->name);
|
||||
pax_warn(1, "File name too long for ustar %s", arcn->name);
|
||||
return(1);
|
||||
}
|
||||
hd = (HD_USTAR *)hdblk;
|
||||
@@ -1080,7 +1079,7 @@ ustar_wr(arcn)
|
||||
if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size,
|
||||
sizeof(hd->size), 3)) {
|
||||
# endif
|
||||
warn(1,"File is too long for ustar %s",arcn->org_name);
|
||||
pax_warn(1,"File is too long for ustar %s",arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
break;
|
||||
@@ -1121,7 +1120,7 @@ ustar_wr(arcn)
|
||||
/*
|
||||
* header field is out of range
|
||||
*/
|
||||
warn(1, "Ustar header field is too small for %s", arcn->org_name);
|
||||
pax_warn(1, "Ustar header field is too small for %s", arcn->org_name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
+11
-14
@@ -34,20 +34,17 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: tty_subs.c,v 1.2 1994/09/24 02:56:38 davidg Exp $
|
||||
* $Id: tty_subs.c,v 1.3.2.2 1997/09/14 13:07:37 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
static char const sccsid[] = "@(#)tty_subs.c 8.2 (Berkeley) 4/18/94";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/param.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -93,7 +90,7 @@ tty_init()
|
||||
}
|
||||
|
||||
if (iflag) {
|
||||
warn(1, "Fatal error, cannot open %s", DEVTTY);
|
||||
pax_warn(1, "Fatal error, cannot open %s", DEVTTY);
|
||||
return(-1);
|
||||
}
|
||||
return(0);
|
||||
@@ -161,17 +158,17 @@ tty_read(str, len)
|
||||
}
|
||||
|
||||
/*
|
||||
* warn()
|
||||
* write a warning message to stderr. if "set" the exit value of pax
|
||||
* pax_warn()
|
||||
* write a pax_warning message to stderr. if "set" the exit value of pax
|
||||
* will be non-zero.
|
||||
*/
|
||||
|
||||
#if __STDC__
|
||||
void
|
||||
warn(int set, char *fmt, ...)
|
||||
pax_warn(int set, char *fmt, ...)
|
||||
#else
|
||||
void
|
||||
warn(set, fmt, va_alist)
|
||||
pax_warn(set, fmt, va_alist)
|
||||
int set;
|
||||
char *fmt;
|
||||
va_dcl
|
||||
@@ -200,17 +197,17 @@ warn(set, fmt, va_alist)
|
||||
}
|
||||
|
||||
/*
|
||||
* syswarn()
|
||||
* write a warning message to stderr. if "set" the exit value of pax
|
||||
* sys_warn()
|
||||
* write a pax_warning message to stderr. if "set" the exit value of pax
|
||||
* will be non-zero.
|
||||
*/
|
||||
|
||||
#if __STDC__
|
||||
void
|
||||
syswarn(int set, int errnum, char *fmt, ...)
|
||||
sys_warn(int set, int errnum, char *fmt, ...)
|
||||
#else
|
||||
void
|
||||
syswarn(set, errnum, fmt, va_alist)
|
||||
sys_warn(set, errnum, fmt, va_alist)
|
||||
int set;
|
||||
int errnum;
|
||||
char *fmt;
|
||||
|
||||
+8
-2
@@ -1,9 +1,15 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/2/93
|
||||
# $Id: Makefile,v 1.5 1995/04/15 03:31:19 davidg Exp $
|
||||
# $Id: Makefile,v 1.6.2.1 1997/10/16 12:44:17 mckay Exp $
|
||||
|
||||
PROG= ps
|
||||
SRCS= fmt.c keyword.c nlist.c print.c ps.c
|
||||
CFLAGS+=-I/sys
|
||||
#
|
||||
# To support "lazy" ps for non root/wheel users
|
||||
# add -DLAZY_PS to the cflags. This helps
|
||||
# keep ps from being an unnecessary load
|
||||
# on large systems.
|
||||
#
|
||||
CFLAGS+=-I${.CURDIR}/../../sys -DLAZY_PS
|
||||
DPADD= ${LIBM} ${LIBKVM}
|
||||
LDADD= -lm -lkvm
|
||||
BINGRP= kmem
|
||||
|
||||
+2
-1
@@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)extern.h 8.3 (Berkeley) 4/2/94
|
||||
* $Id: extern.h,v 1.2 1994/09/24 02:56:42 davidg Exp $
|
||||
* $Id: extern.h,v 1.3 1996/10/21 07:30:23 peter Exp $
|
||||
*/
|
||||
|
||||
struct kinfo;
|
||||
@@ -64,6 +64,7 @@ void parsefmt __P((char *));
|
||||
void pcpu __P((KINFO *, VARENT *));
|
||||
void pmem __P((KINFO *, VARENT *));
|
||||
void pri __P((KINFO *, VARENT *));
|
||||
void rtprior __P((KINFO *, VARENT *));
|
||||
void printheader __P((void));
|
||||
void pvar __P((KINFO *, VARENT *));
|
||||
void rssize __P((KINFO *, VARENT *));
|
||||
|
||||
+11
-2
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: fmt.c,v 1.6 1995/10/23 21:03:40 ache Exp $
|
||||
* $Id: fmt.c,v 1.6.2.1 1997/03/10 19:10:52 guido Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)fmt.c 8.4 (Berkeley) 4/15/94";
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <vis.h>
|
||||
#include "ps.h"
|
||||
|
||||
@@ -58,8 +59,16 @@ static char *
|
||||
shquote(argv)
|
||||
char **argv;
|
||||
{
|
||||
long arg_max;
|
||||
char **p, *dst, *src;
|
||||
static char buf[4*ARG_MAX]; /* XXX */
|
||||
static char *buf = NULL;
|
||||
|
||||
if (buf == NULL) {
|
||||
if ((arg_max = sysconf(_SC_ARG_MAX)) == -1)
|
||||
errx(1, "sysconf _SC_ARG_MAX failed");
|
||||
if ((buf = malloc((4 * arg_max) + 1)) == NULL)
|
||||
errx(1, "malloc failed");
|
||||
}
|
||||
|
||||
if (*argv == 0) {
|
||||
buf[0] = 0;
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: keyword.c,v 1.8 1995/10/28 20:11:15 phk Exp $
|
||||
* $Id: keyword.c,v 1.9 1996/07/31 09:27:23 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@@ -139,7 +139,7 @@ VAR var[] = {
|
||||
{"rss", "RSS", NULL, 0, p_rssize, 4},
|
||||
{"rssize", "", "rsz"},
|
||||
{"rsz", "RSZ", NULL, 0, rssize, 4},
|
||||
{"rtprio", "RTPRIO", NULL, 0, pvar, 7, POFF(p_rtprio), LONG, "d"},
|
||||
{"rtprio", "RTPRIO", NULL, 0, rtprior, 7, POFF(p_rtprio)},
|
||||
{"ruid", "RUID", NULL, 0, evar, UIDLEN, EOFF(e_pcred.p_ruid),
|
||||
ULONG, UIDFMT},
|
||||
{"ruser", "RUSER", NULL, LJUST, runame, USERLEN},
|
||||
|
||||
Loaded 100 of 5834 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user