File: ChangeLog

package info (click to toggle)
libbsd 0.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,636 kB
  • sloc: ansic: 10,835; sh: 4,282; makefile: 525
file content (5985 lines) | stat: -rw-r--r-- 196,945 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
commit 1ca09c18f76a0ed2ef6349463c25d509a55e20ff
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 22 16:03:59 2018 +0200

    Release libbsd 0.9.1

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit e4e15ed286f7739682737ec2ca6d681dbdd00e79
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 22 13:50:44 2018 +0200

    Fix strnvis() and strnunvis() NetBSD ABI break
    
    The NetBSD implementations have different prototypes to the ones coming
    from OpenBSD, which will break builds, and have caused segfaults at
    run-time. We provide now both interfaces with different prototypes as
    different version nodes allow selecting them at compile-time, defaulting
    for now to the OpenBSD one to avoid build-time breakage, while emitting
    a compile-time warning. Later on, in 0.10.0, we will be switching the
    compile-time default to the NetBSD version.
    
    Ref: http://gnats.netbsd.org/44977
    Fixes: https://bugs.debian.org/899282

 include/bsd/vis.h  | 34 ++++++++++++++++++++++++++++++++--
 src/libbsd.map     |  8 ++++++++
 src/unvis.c        | 27 ++++++++++++++++++++++++++-
 src/vis.c          | 27 ++++++++++++++++++++++++++-
 test/.gitignore    |  2 ++
 test/Makefile.am   |  2 ++
 test/vis-openbsd.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 test/vis.c         | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 189 insertions(+), 4 deletions(-)

commit bf697b900c06140a6ff6d00e22a812c46144bed1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 22 15:43:48 2018 +0200

    Add symbol redirection support
    
    We need this to be able to select different version symbols at
    compile-time.

 include/bsd/sys/cdefs.h | 9 +++++++++
 1 file changed, 9 insertions(+)

commit f1966385b3a062f1932794da7622916eb3a48115
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 22:41:23 2018 +0200

    Fix COPYING file format
    
    We cannot refer to a License short-name if that is not on its own
    License paragraph. Split several other common License fields into
    their own paragraphs to avoid this problem in the future.

 COPYING | 198 +++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 103 insertions(+), 95 deletions(-)

commit e007233cf0ea62bbeab30f960083006cb676f973
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 04:41:56 2018 +0200

    Release libbsd 0.9.0

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 3cabf46bb089bbb5924c659941b9c8cb67ce3508
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 03:15:59 2018 +0200

    Deprecate fgetwln()
    
    This function has the same problems as fgetln() which is already marked
    as deprecated.

 man/libbsd.7  | 15 +++++++++++++--
 src/fgetwln.c |  5 +++++
 2 files changed, 18 insertions(+), 2 deletions(-)

commit 6eebc1f2645f0c77508b5c536bac6ed81bd2502b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 03:10:12 2018 +0200

    Fix typo in fgetln() linker warning

 src/fgetln.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a1730c10632b9e1e800db5e280eea576bc9052ec
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 15 00:55:02 2018 +0200

    Add Windows support for getentropy() and arc4random()
    
    Import from OpenBSD.

 COPYING              |  2 ++
 src/Makefile.am      |  2 ++
 src/arc4random.h     |  2 ++
 src/arc4random_win.h | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/getentropy.c     |  2 ++
 src/getentropy_win.c | 59 +++++++++++++++++++++++++++++++++++++++
 6 files changed, 145 insertions(+)

commit 6f68c930765d95ab2644c7a1210a0a640fd9d4bf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 00:22:38 2018 +0200

    Switch strtonum() implementation from strtoll() to strtoi()
    
    Import from NetBSD.

 COPYING           |  5 +--
 man/strtonum.3bsd | 83 ++++++++++++++++++++++++++++++++----------------
 src/strtonum.c    | 95 ++++++++++++++++++++++++++-----------------------------
 3 files changed, 103 insertions(+), 80 deletions(-)

commit e13b1a337a608c3301ccb9ea344b6f97279a818f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 00:20:49 2018 +0200

    Import strtoi() and strtou() functions from NetBSD

 COPYING                |   6 +-
 include/Makefile.am    |   1 +
 include/bsd/inttypes.h |  49 ++++++++++
 man/Makefile.am        |   2 +
 man/libbsd.7           |   3 +
 man/strtoi.3bsd        | 238 +++++++++++++++++++++++++++++++++++++++++++++++++
 man/strtou.3bsd        | 238 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am        |   2 +
 src/libbsd.map         |   3 +
 src/strtoi.c           |  97 ++++++++++++++++++++
 src/strtou.c           |  97 ++++++++++++++++++++
 11 files changed, 735 insertions(+), 1 deletion(-)

commit ef5faeb575c21257347643fb157c6b64f62b6ffe
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun May 20 19:20:33 2018 +0200

    Update few RCS keyword contents to match BSD originals
    
    This will slightly reduce the delta, and makes it easier to compare the
    sources.

 src/chacha_private.h | 2 +-
 src/radixsort.c      | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

commit 2d7de186e9cb19a756c0630ee85cb3f2d29b3484
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 03:09:05 2018 +0200

    Update vis/unvis modules from NetBSD

 COPYING           |  11 +-
 include/bsd/vis.h |  57 +++-
 man/unvis.3bsd    | 201 ++++++++-----
 man/vis.3bsd      | 440 +++++++++++++++++++++-------
 src/libbsd.map    |  12 +
 src/unvis.c       | 538 ++++++++++++++++++++++++----------
 src/vis.c         | 856 ++++++++++++++++++++++++++++++++++++++++++------------
 7 files changed, 1592 insertions(+), 523 deletions(-)

commit 3efad641551f79adbacead4f1d1641e63c2efa05
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 01:56:33 2018 +0200

    Update readpassphrase() from OpenBSD

 man/readpassphrase.3bsd |  16 ++++---
 src/readpassphrase.c    | 116 ++++++++++++++++++++++++++----------------------
 2 files changed, 73 insertions(+), 59 deletions(-)

commit a6f407ab0de24c725cb8c66a06ab30527e5c33f2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 01:34:17 2018 +0200

    Update heapsort() from OpenBSD

 src/heapsort.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

commit 21edbb4f22935f2c0484db6147dfd9825adb8ec0
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 00:31:15 2018 +0200

    Update fmtcheck() from NetBSD

 man/fmtcheck.3bsd |  61 ++++++++-----------
 src/fmtcheck.c    | 174 +++++++++++++++++++++++++++++++++++++++---------------
 2 files changed, 153 insertions(+), 82 deletions(-)

commit e3979d1a7ce2777ea959f3361573a10af90db63d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun May 20 19:22:16 2018 +0200

    Update humanize_number() from FreeBSD
    
    Implements HN_IEC_PREFIXES.

 COPYING               |   1 +
 include/bsd/libutil.h |  16 +++---
 src/humanize_number.c | 133 ++++++++++++++++++++++++++++++++------------------
 3 files changed, 95 insertions(+), 55 deletions(-)

commit facbddb652eba99c9334e4e390b9d829c590d4c2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun May 20 19:18:18 2018 +0200

    Update pidfile module from FreeBSD
    
    Use EINVAL instead of EDOOFUS. Add a missing synopsis for
    pidfile_fileno() in the man page. Move the definition of struct pidfh
    from libutil.h into pidfile.c following upstream change.

 include/bsd/libutil.h |  9 ++----
 man/pidfile.3bsd      | 77 ++++++++++++++++++++++++++++++++++++++++-----------
 src/libbsd.map        |  2 ++
 src/pidfile.c         | 58 +++++++++++++++++++++++++++-----------
 4 files changed, 107 insertions(+), 39 deletions(-)

commit 3d88c999b4a0ac2820c84732262ba7a0ad44e421
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 15 00:41:26 2018 +0200

    Update arc4random() headers from OpenBSD
    
    Split Linux support into its own header separate from the generic Unix
    to fix a Linux-specific issue with clone(). Reset rsp to NULL on failure.

 COPYING                                       |  1 +
 src/Makefile.am                               |  3 ++-
 src/arc4random.h                              |  2 ++
 src/{arc4random_unix.h => arc4random_linux.h} | 12 ++++--------
 src/arc4random_unix.h                         |  3 ++-
 5 files changed, 11 insertions(+), 10 deletions(-)

commit e42381dc51065e6d48ae982a01888dddde26ef7b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 15 00:41:26 2018 +0200

    Update getentropy() code from OpenBSD
    
    Includes changes to handle the Linux syscall blocking when there is not
    enough entropy during boot, by switching it to non-blocking mode and
    falling back to the alternative implementations. Man page URL reference
    fixes. Build fixes for Mac OS X.
    
    Fixes: https://bugs.debian.org/898088

 src/getentropy_aix.c     |  4 ++--
 src/getentropy_bsd.c     |  4 ++--
 src/getentropy_hpux.c    |  2 +-
 src/getentropy_hurd.c    |  4 ++--
 src/getentropy_linux.c   | 25 ++++++++++++++-----------
 src/getentropy_osx.c     | 15 +++++++++++++--
 src/getentropy_solaris.c |  4 ++--
 7 files changed, 36 insertions(+), 22 deletions(-)

commit 993828d84eed0468c6c15b2818e534e6b134b8e4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 01:11:46 2018 +0200

    Add flopenat() function from FreeBSD

 COPYING               |  2 +-
 include/bsd/libutil.h |  1 +
 man/flopen.3bsd       | 42 +++++++++++++++++++++++++++-------
 src/flopen.c          | 62 ++++++++++++++++++++++++++++++++++++++++++---------
 src/libbsd.map        |  4 ++++
 5 files changed, 92 insertions(+), 19 deletions(-)

commit 30b4d507540bada5533eea60a850090ccc54d397
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 21 03:00:47 2018 +0200

    Add __arraycount() macro from NetBSD

 include/bsd/sys/cdefs.h | 6 ++++++
 1 file changed, 6 insertions(+)

commit f6ed7c278bf9cf5db89da375505f636de3009598
Author: Baruch Siach <baruch@tkos.co.il>
Date:   Tue Apr 3 20:10:14 2018 +0300

    Fix build for openrisc with uClibc
    
    uClibc defines EM_OR1K instead of EM_OPENRISC for the OpenRISC ELF
    e_machine ID. Use EM_OR1K when EM_OPENRISC is not defined.
    
    This fixes the following build failure:
    
    In file included from nlist.c:44:0:
    nlist.c: In function ‘__elf_is_okay__’:
    local-elf.h:224:23: error: ‘EM_OPENRISC’ undeclared (first use in this function)
     #define ELF_TARG_MACH EM_OPENRISC
                           ^
    nlist.c:77:26: note: in expansion of macro ‘ELF_TARG_MACH’
       if (ehdr->e_machine == ELF_TARG_MACH &&
                              ^
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 4 ++++
 1 file changed, 4 insertions(+)

commit 1f8a3f7bccfc84b195218ad0086ebd57049c3490
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 6 01:39:45 2018 +0100

    Fix function declaration protection for glibc already providing them
    
    On non-glibc based systems we cannot unconditionally use the
    __GLIBC_PREREQ macro as it gets expanded before evaluation. Instead,
    if it is undefined, define it to 0.
    
    We should also always declare these functions on non-glibc based
    systems. And on systems with a new enough glibc, which provides these
    functions, we should still provide the declarations if _GNU_SOURCE
    is *not* defined.
    
    Reported-by: Jörg Krause <joerg.krause@embedded.rocks>

 include/bsd/stdlib.h    | 3 ++-
 include/bsd/string.h    | 3 ++-
 include/bsd/sys/cdefs.h | 8 ++++++++
 3 files changed, 12 insertions(+), 2 deletions(-)

commit b20272f5a966333b49fdf2bda797e2a9f0227404
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 6 01:42:52 2018 +0100

    Remove <features.h> inclusion from <bsd/libutil.h>
    
    This is a non-portable header, and we should not assume it is present.
    Let the first system header pull it in if needed.

 include/bsd/libutil.h | 1 -
 1 file changed, 1 deletion(-)

commit 11ec8f1e5dfa1c10e0c9fb94879b6f5b96ba52dd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Mar 6 01:41:35 2018 +0100

    Handle systems missing <sys/cdefs.h>
    
    This is a non-portable header, and we cannot expect it to be provided by
    the system libc (e.g. musl). We just need and rely on declaration that
    we have defined ourselves in our own <bsd/sys/cdefs.h>. So we switch to
    only ever assume that.
    
    Fixes: https://bugs.freedesktop.org/105281

 include/bsd/libutil.h        | 4 ++++
 include/bsd/md5.h            | 4 ++++
 include/bsd/nlist.h          | 4 ++++
 include/bsd/readpassphrase.h | 4 ++++
 include/bsd/stdlib.h         | 4 ++++
 include/bsd/string.h         | 4 ++++
 include/bsd/stringlist.h     | 5 +++++
 include/bsd/sys/queue.h      | 4 ++++
 include/bsd/sys/tree.h       | 4 ++++
 include/bsd/timeconv.h       | 4 ++++
 include/bsd/vis.h            | 4 ++++
 include/bsd/wchar.h          | 4 ++++
 12 files changed, 49 insertions(+)

commit 5ba8c5bab05c8315439c351e91ce554d4f092915
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Mar 5 00:37:47 2018 +0100

    progname: Port to Windows
    
    Define the directory separator depending on the system targetted.
    
    Reported-by: Progyan Bhattacharya <progyanb@acm.org>

 src/progname.c | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

commit 0093ca2b0e3fcbb71649682a84def684340f01c9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Mar 5 00:02:34 2018 +0100

    Handle SPARC V8+ on Sun Studio compiler

 src/local-elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0b65d43963fc1bea195e94e3af922a7893bf6fcd
Author: James Clarke <jrtc27@jrtc27.com>
Date:   Sun Mar 4 23:44:52 2018 +0100

    Add support for ELF machine EM_SPARC32PLUS
    
    32-bit SPARC on V8+ uses a different ELF machine type.
    
    Fixes: https://bugs.gentoo.org/634550
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 4 ++++
 1 file changed, 4 insertions(+)

commit 0b61c5ffeda8fc094e6aabc70d4d99058e46d769
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 13 16:20:35 2018 +0100

    Release libbsd 0.8.7

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9ceac74e91411d3f7dbbc42d772f3500c47c7cec
Author: Jason Duerstock <jason.duerstock@gmail.com>
Date:   Sun Dec 3 16:50:07 2017 +0100

    test: Fix nlist(3) unit test on IA64
    
    On IA64 this is only the case in the ELF binary, but it gets normalized
    when loaded at run-time.
    
    Fixes: https://bugs.debian.org/881611
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 test/nlist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 9afc7100a1078e177ff68349446526efe6872618
Author: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Date:   Sun Dec 3 16:46:19 2017 +0100

    Fix <sys/cdefs.h> for gcc with no __has_include or __has_include_next support
    
    Fixes: https://bugs.freedesktop.org/103396
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 include/bsd/sys/cdefs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 22fbd62368c39de8ac5e249d1502d5ac0ffdef30
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Sep 2 19:55:50 2017 +0200

    Handle several functions now being provided by glibc
    
    We mention that these are now superseded by the glibc implementations,
    make the headers cope with already declared functions on glibc-based
    systems, and document this in the man pages.

 include/bsd/stdlib.h    |  2 ++
 include/bsd/string.h    |  2 ++
 man/explicit_bzero.3bsd |  3 ++-
 man/libbsd.7            | 33 ++++++++++++++++++++++++++++-----
 man/reallocarray.3bsd   |  3 ++-
 5 files changed, 36 insertions(+), 7 deletions(-)

commit b4f7c065ba6d6649c33f8876445ed30b971fe09e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Aug 5 13:42:56 2017 +0200

    man: Document on what other BSDs arc4random(3) is present

 man/arc4random.3bsd | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit bbf90ac3cd55ee5b19b18bc445a066114d6ddfa4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 17 01:01:13 2017 +0200

    Release libbsd 0.8.6

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 2a8514d8a5708c2c42c5b1f9fd20bb88e71ef880
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 17 00:57:07 2017 +0200

    Fix handling of non-contiguous argv + envp in setproctitle()
    
    The two arrays might not reference contiguous memory, and assuming they
    are does break at least now on GNU/Hurd, which contains an unmapped
    memory block between the memory used by the two arrays.
    
    Just check that each element is strictly after the previous one, so that
    we know there are no unmapped memory blocks inbetween.

 src/setproctitle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 3b2b7938f7b6ddb2ff042b974e30311893113f3a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 25 01:51:30 2017 +0200

    test: Fix nlist() unit test on IA64 and PowerPC 64-bit ELFv1
    
    At least on IA64 and PowerPC 64-bit ELFv1, the functions are stored in
    the .text sections but they are accessed through a function descriptor
    stored in a data section, for example for PowerPC 64-bit ELFv1 that
    section is called .opd.
    
    We should take this into account when checking the n_type for the
    functions we have requested information from nlist().
    
    Rationale-by: James Clarke <jrtc27@jrtc27.com>

 test/nlist.c | 9 +++++++++
 1 file changed, 9 insertions(+)

commit 415e3cb266b66683adf545f76d8844e74b9658f6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jun 24 16:10:14 2017 +0200

    Release libbsd 0.8.5

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9532cb39f4cf47c9a93633d8001b3a77af05ade8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 23 05:59:35 2017 +0200

    man: Update man page sections in titles and references
    
    We have moved all man pages to section 3bsd, let's do the same for the
    page title, and in all the references for uniformity and to avoid
    confusions.
    
    Fixes: https://bugs.freedesktop.org/101545

 man/arc4random.3bsd      | 2 +-
 man/bitstring.3bsd       | 2 +-
 man/byteorder.3bsd       | 2 +-
 man/closefrom.3bsd       | 2 +-
 man/errc.3bsd            | 2 +-
 man/expand_number.3bsd   | 2 +-
 man/explicit_bzero.3bsd  | 2 +-
 man/fgetln.3bsd          | 2 +-
 man/fgetwln.3bsd         | 2 +-
 man/flopen.3bsd          | 2 +-
 man/fmtcheck.3bsd        | 2 +-
 man/fparseln.3bsd        | 2 +-
 man/fpurge.3bsd          | 2 +-
 man/funopen.3bsd         | 2 +-
 man/getbsize.3bsd        | 2 +-
 man/getpeereid.3bsd      | 2 +-
 man/getprogname.3bsd     | 2 +-
 man/heapsort.3bsd        | 2 +-
 man/humanize_number.3bsd | 2 +-
 man/nlist.3bsd           | 2 +-
 man/pidfile.3bsd         | 2 +-
 man/queue.3bsd           | 2 +-
 man/radixsort.3bsd       | 2 +-
 man/readpassphrase.3bsd  | 2 +-
 man/reallocarray.3bsd    | 2 +-
 man/reallocf.3bsd        | 2 +-
 man/setmode.3bsd         | 2 +-
 man/setproctitle.3bsd    | 2 +-
 man/stringlist.3bsd      | 2 +-
 man/strlcpy.3bsd         | 2 +-
 man/strmode.3bsd         | 2 +-
 man/strnstr.3bsd         | 2 +-
 man/strtonum.3bsd        | 2 +-
 man/timeradd.3bsd        | 6 +++---
 man/timeval.3bsd         | 4 ++--
 man/tree.3bsd            | 2 +-
 man/unvis.3bsd           | 2 +-
 man/vis.3bsd             | 4 ++--
 man/wcslcpy.3bsd         | 2 +-
 39 files changed, 43 insertions(+), 43 deletions(-)

commit a4dd754c8dab4db3fc415209c91e9b77ec285d3d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 22 04:58:09 2017 +0200

    man: Ship and install libbsd(7)
    
    Fixes: https://bugs.freedesktop.org/101543

 man/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

commit b480b7a3f81cf49b9f3f0f8cdd20b33999aa7530
Author: James Cowgill <jcowgill@debian.org>
Date:   Mon Jun 19 21:38:40 2017 +0200

    Fix ELF definitions for MIPS in local-elf.h
    
    Add a check for _MIPS_SIM inside the __mips__ #elif to detect mips64el
    and use ELFCLASS64 in that case. Note that we can't use defined(__mips64)
    here because that is also defined when the n32 ABI is in use, which uses
    ELFCLASS32.
    
    Fixes: https://bugs.debian.org/865091
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 4 ++++
 1 file changed, 4 insertions(+)

commit 4cc20e23f5262fdeb667bbc6bd4ba57c92aac8e4
Author: James Cowgill <jcowgill@debian.org>
Date:   Mon Jun 19 21:37:14 2017 +0200

    Fix ELF definitions for PowerPC in local-elf.h
    
    * ppc64el defines both __powerpc__ and __powerpc64__ but since the
      __powerpc64__ #elif is below the __powerpc__ one, it will never be hit.
    * Both assumed that powerpc* was big-endian.
    
    Fixes: https://bugs.debian.org/865091
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

commit c4e58c09508453624268f70ea1ab90850cd7411b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 19 21:41:13 2017 +0200

    test: Remove unused variable in nlist() unit test

 test/nlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 736e12e8d868659095ee46d32901e034840f1454
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 19 21:32:01 2017 +0200

    test: Handle libtool executable names in getprogname() unit test
    
    Sometimes libtool will prefix the test programs with "lt-", we should
    handle these and strip the prefix.
    
    Fixes: https://bugs.debian.org/865090

 test/progname.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

commit 8bff4b1fabde00c3ae0860b9fb83dadd7b3c6be9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 19 03:16:56 2017 +0200

    Release libbsd 0.8.4

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0071b97958b48fff4fa629876f92790ab3511f7e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 05:43:26 2017 +0200

    Import <sys/time.h> for some of its macros
    
    Fixes: https://bugs.freedesktop.org/94320

 COPYING                      |  38 ++++++++++-
 include/Makefile.am          |   1 +
 include/bsd/sys/time.h       | 138 +++++++++++++++++++++++++++++++++++++
 man/Makefile.am              |  13 ++++
 man/TIMESPEC_TO_TIMEVAL.3bsd |   1 +
 man/TIMEVAL_TO_TIMESPEC.3bsd |   1 +
 man/libbsd.7                 |   3 +
 man/timeradd.3bsd            | 159 +++++++++++++++++++++++++++++++++++++++++++
 man/timerclear.3bsd          |   1 +
 man/timercmp.3bsd            |   1 +
 man/timerisset.3bsd          |   1 +
 man/timersub.3bsd            |   1 +
 man/timespecadd.3bsd         |   1 +
 man/timespecclear.3bsd       |   1 +
 man/timespeccmp.3bsd         |   1 +
 man/timespecisset.3bsd       |   1 +
 man/timespecsub.3bsd         |   1 +
 man/timeval.3bsd             | 133 ++++++++++++++++++++++++++++++++++++
 18 files changed, 495 insertions(+), 1 deletion(-)

commit cdbb9d0555b36935aba0353caab0b97acb95614c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 18 20:30:40 2017 +0200

    test: Add new strnstr() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/strnstr.c   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)

commit 0365d0efdaf099dd9b1147f4e01ef1b834f48aa8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 18 20:30:19 2017 +0200

    test: Add new setprogname() and getprogname() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/progname.c  | 43 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+)

commit 10b1328570b54159e6c06588aef0e47b2bb348c5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 18 20:29:52 2017 +0200

    test: Add new setmode() and getmode() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/setmode.c   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)

commit 922eff5c5ed8517b4d78553d497bb5290f0713fa
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 14 01:52:12 2017 +0200

    test: Add new nlist() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/nlist.c     | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)

commit 8e8834d8e599c0d36a5743f93984e3777eb6d35b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 14 02:53:35 2017 +0200

    Remove RCSID tags
    
    These are obsolete markers, and in some cases they repeat the
    information already present in the comment header.

 src/expand_number.c | 2 --
 src/flopen.c        | 2 --
 src/fmtcheck.c      | 5 +++--
 src/fparseln.c      | 3 ---
 src/hash/sha512c.c  | 2 --
 src/inet_net_pton.c | 7 ++-----
 src/merge.c         | 4 ----
 src/pidfile.c       | 2 --
 src/radixsort.c     | 7 -------
 src/reallocf.c      | 1 -
 src/setmode.c       | 8 --------
 src/stringlist.c    | 3 ---
 src/strmode.c       | 4 ----
 src/strnstr.c       | 4 ----
 src/strtonum.c      | 1 -
 src/timeconv.c      | 2 --
 src/wcslcat.c       | 8 +-------
 src/wcslcpy.c       | 8 +-------
 18 files changed, 7 insertions(+), 66 deletions(-)

commit 7938619254db81d68805b5827df36d2c5cb6ed24
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 14 02:45:13 2017 +0200

    Update .gitignore for headers generator

 test/.gitignore | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit ec5d9a685a672f77bf3f1cd40a704619aea562b6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 14 02:44:37 2017 +0200

    Namespace header inclusion protection macros
    
    Use LIBBSD_, and remove trailing underscores.

 include/bsd/libutil.h         | 6 +++---
 include/bsd/md5.h             | 6 +++---
 include/bsd/netinet/ip_icmp.h | 4 ++--
 include/bsd/readpassphrase.h  | 6 +++---
 include/bsd/stringlist.h      | 6 +++---
 include/bsd/sys/bitstring.h   | 6 +++---
 include/bsd/sys/queue.h       | 6 +++---
 include/bsd/sys/tree.h        | 6 +++---
 include/bsd/timeconv.h        | 6 +++---
 include/bsd/vis.h             | 6 +++---
 10 files changed, 29 insertions(+), 29 deletions(-)

commit 47013bc92a1d0f71477aa018068b0923fdaf6ccf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 14 01:49:25 2017 +0200

    Fix broken mmap() usage in nlist() by switching to pread()
    
    The offset is not page aligned, which makes mmap() return EINVAL on
    Linux. Switch to use pread() which handles unaligned offset and non-page
    sized reads, and because we are already loading parts of the executable
    by read() calls, so there's not much point in using mmap() anyway.

 src/nlist.c | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

commit e8d340de9e2ce39e340dde81ee139d5631ab0049
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 05:30:27 2017 +0200

    Remove a.out support from nlist()
    
    Some libc libraries do not have an <a.out.h> header. And a.out as an
    executable format is very much obsolete on pretty much all currently
    supported systems, even if they might still support loading such
    objects.
    
    Remove the a.out support to increase portability.

 include/bsd/nlist.h |  63 ++++++++++++--
 src/nlist.c         | 247 +++++++++++-----------------------------------------
 2 files changed, 109 insertions(+), 201 deletions(-)

commit 7aede6a999ef7b6bd2b82aed55896611331a8eea
Author: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date:   Mon Jun 27 09:21:43 2016 +0200

    Make strlcpy()/strlcat() slightly easier to read
    
    Backport new changes from OpenBSD.
    
    [guillem@hadrons.org:
     - Update copyright years in COPYING. ]
    
    References: https://svnweb.freebsd.org/base?view=revision&revision=281135
    Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING       |  2 +-
 src/strlcat.c | 48 ++++++++++++++++++++++++------------------------
 src/strlcpy.c | 37 ++++++++++++++++++-------------------
 3 files changed, 43 insertions(+), 44 deletions(-)

commit ab5db68bae418e91ae3475721845e6282f6da860
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 19 03:02:32 2017 +0200

    build: Add missing \ at end of line
    
    Fixes: commit 934b7a0ccbdc60313102f153eadc2f46853a505b

 man/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5a46e4867d09b375449a145e8628edb5637b60af
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 18 20:30:51 2017 +0200

    Update TODO

 TODO | 3 +++
 1 file changed, 3 insertions(+)

commit 7a75f550e83d12f80ca6346db677198f45f1d9ff
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jun 6 04:56:49 2017 +0200

    Update TODO

 TODO | 8 ++++++++
 1 file changed, 8 insertions(+)

commit f1dd5f2e7179504bc18859f323b806a46d4a5aec
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 9 05:13:32 2017 +0200

    test: Add unit test for strlcpy() and strlcat()

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/strl.c      | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)

commit c8a1b08b74dd0682b88ce334fcc795b727014713
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 9 05:14:24 2017 +0200

    build: Match any glibc and musl ABIs on the host_os AS_CASE
    
    Reported-by: Helmut Grohne <helmut@subdivi.de>

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 4fec871c792bb6c01dc9a82dabf21374d59bd689
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 9 04:52:45 2017 +0200

    build: Quote the arguments to AC_CONDITIONAL

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 3945693ebe9919715bc3c6c139bac35e4f989a93
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 9 04:52:45 2017 +0200

    build: Move AC_TYPE_UID_T close to the other AC_TYPE_* checks

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c253365d65c5cefeb78f20cf10b817c0f5dd910e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 9 04:52:45 2017 +0200

    build: Move configure.ac comment into actual AC_CASE

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 8248e5f7a61761ee057ca7e2c4f6ee618c43c5be
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 7 23:09:40 2017 +0200

    build: Use src/strlcpy.c in AC_CONFIG_SRCDIR
    
    The src/fgetln.c file contains a function considered obsolete, use one
    that is not.

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c74ca099160820faaf8a50c46e8f33f48f3c9a18
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 7 22:46:07 2017 +0200

    man: Use .In intead of .Fd macros for includes

 man/mdX.3bsd            | 4 ++--
 man/readpassphrase.3bsd | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

commit ba9e2a5a9cc097047517257383795a3335faea43
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 06:33:47 2017 +0200

    man: Add new libbsd(7) library overview man page

 COPYING                  |   2 +-
 man/arc4random.3bsd      |   5 +-
 man/bitstring.3bsd       |   5 +-
 man/byteorder.3bsd       |   3 +
 man/closefrom.3bsd       |   5 +-
 man/errc.3bsd            |   3 +
 man/expand_number.3bsd   |   5 +-
 man/explicit_bzero.3bsd  |   5 +-
 man/fgetln.3bsd          |   5 +-
 man/fgetwln.3bsd         |   5 +-
 man/flopen.3bsd          |   5 +-
 man/fmtcheck.3bsd        |   5 +-
 man/fparseln.3bsd        |   5 +-
 man/fpurge.3bsd          |   3 +
 man/funopen.3bsd         |   5 +-
 man/getbsize.3bsd        |   5 +-
 man/getpeereid.3bsd      |   5 +-
 man/getprogname.3bsd     |   5 +-
 man/heapsort.3bsd        |   5 +-
 man/humanize_number.3bsd |   5 +-
 man/libbsd.7             | 206 +++++++++++++++++++++++++++++++++++++++++++++++
 man/mdX.3bsd             |   5 +-
 man/nlist.3bsd           |   5 +-
 man/pidfile.3bsd         |   5 +-
 man/queue.3bsd           |   5 +-
 man/radixsort.3bsd       |   5 +-
 man/readpassphrase.3bsd  |   5 +-
 man/reallocarray.3bsd    |   5 +-
 man/reallocf.3bsd        |   5 +-
 man/setmode.3bsd         |   5 +-
 man/setproctitle.3bsd    |   5 +-
 man/stringlist.3bsd      |   5 +-
 man/strlcpy.3bsd         |   5 +-
 man/strmode.3bsd         |   5 +-
 man/strnstr.3bsd         |   5 +-
 man/strtonum.3bsd        |   5 +-
 man/tree.3bsd            |   5 +-
 man/unvis.3bsd           |   5 +-
 man/vis.3bsd             |   5 +-
 man/wcslcpy.3bsd         |   5 +-
 40 files changed, 356 insertions(+), 36 deletions(-)

commit 6a5a515820052986e28c53f794ab4f54c2736cb6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 7 05:00:34 2017 +0200

    man: Add missing man pages
    
    This adds man pages for byteorder(3), errc(3) and fpurge(3), including
    all their aliases.

 COPYING            |   8 ++-
 man/Makefile.am    |  15 +++++
 man/be16dec.3bsd   |   1 +
 man/be16enc.3bsd   |   1 +
 man/be32dec.3bsd   |   1 +
 man/be32enc.3bsd   |   1 +
 man/be64dec.3bsd   |   1 +
 man/be64enc.3bsd   |   1 +
 man/byteorder.3bsd |  83 +++++++++++++++++++++++++
 man/errc.3bsd      | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 man/fpurge.3bsd    |  79 ++++++++++++++++++++++++
 man/le16dec.3bsd   |   1 +
 man/le16enc.3bsd   |   1 +
 man/le32dec.3bsd   |   1 +
 man/le32enc.3bsd   |   1 +
 man/le64dec.3bsd   |   1 +
 man/le64enc.3bsd   |   1 +
 17 files changed, 371 insertions(+), 1 deletion(-)

commit 934b7a0ccbdc60313102f153eadc2f46853a505b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 06:32:36 2017 +0200

    man: Add missing aliases

 man/LIST_EMPTY.3bsd                      |   1 +
 man/LIST_ENTRY.3bsd                      |   1 +
 man/LIST_FIRST.3bsd                      |   1 +
 man/LIST_FOREACH.3bsd                    |   1 +
 man/LIST_FOREACH_FROM.3bsd               |   1 +
 man/LIST_FOREACH_FROM_SAFE.3bsd          |   1 +
 man/LIST_FOREACH_SAFE.3bsd               |   1 +
 man/LIST_HEAD.3bsd                       |   1 +
 man/LIST_HEAD_INITIALIZER.3bsd           |   1 +
 man/LIST_INIT.3bsd                       |   1 +
 man/LIST_INSERT_AFTER.3bsd               |   1 +
 man/LIST_INSERT_BEFORE.3bsd              |   1 +
 man/LIST_INSERT_HEAD.3bsd                |   1 +
 man/LIST_NEXT.3bsd                       |   1 +
 man/LIST_PREV.3bsd                       |   1 +
 man/LIST_REMOVE.3bsd                     |   1 +
 man/LIST_SWAP.3bsd                       |   1 +
 man/Makefile.am                          | 145 ++++++++++++++++++++++++++++++-
 man/RB_EMPTY.3bsd                        |   1 +
 man/RB_ENTRY.3bsd                        |   1 +
 man/RB_FIND.3bsd                         |   1 +
 man/RB_FOREACH.3bsd                      |   1 +
 man/RB_FOREACH_REVERSE.3bsd              |   1 +
 man/RB_GENERATE.3bsd                     |   1 +
 man/RB_GENERATE_STATIC.3bsd              |   1 +
 man/RB_HEAD.3bsd                         |   1 +
 man/RB_INIT.3bsd                         |   1 +
 man/RB_INITIALIZER.3bsd                  |   1 +
 man/RB_INSERT.3bsd                       |   1 +
 man/RB_LEFT.3bsd                         |   1 +
 man/RB_MAX.3bsd                          |   1 +
 man/RB_MIN.3bsd                          |   1 +
 man/RB_NEXT.3bsd                         |   1 +
 man/RB_NFIND.3bsd                        |   1 +
 man/RB_PARENT.3bsd                       |   1 +
 man/RB_PREV.3bsd                         |   1 +
 man/RB_PROTOTYPE.3bsd                    |   1 +
 man/RB_PROTOTYPE_STATIC.3bsd             |   1 +
 man/RB_REMOVE.3bsd                       |   1 +
 man/RB_RIGHT.3bsd                        |   1 +
 man/RB_ROOT.3bsd                         |   1 +
 man/SLIST_EMPTY.3bsd                     |   1 +
 man/SLIST_ENTRY.3bsd                     |   1 +
 man/SLIST_FIRST.3bsd                     |   1 +
 man/SLIST_FOREACH.3bsd                   |   1 +
 man/SLIST_FOREACH_FROM.3bsd              |   1 +
 man/SLIST_FOREACH_FROM_SAFE.3bsd         |   1 +
 man/SLIST_FOREACH_SAFE.3bsd              |   1 +
 man/SLIST_HEAD.3bsd                      |   1 +
 man/SLIST_HEAD_INITIALIZER.3bsd          |   1 +
 man/SLIST_INIT.3bsd                      |   1 +
 man/SLIST_INSERT_AFTER.3bsd              |   1 +
 man/SLIST_INSERT_HEAD.3bsd               |   1 +
 man/SLIST_NEXT.3bsd                      |   1 +
 man/SLIST_REMOVE.3bsd                    |   1 +
 man/SLIST_REMOVE_AFTER.3bsd              |   1 +
 man/SLIST_REMOVE_HEAD.3bsd               |   1 +
 man/SLIST_SWAP.3bsd                      |   1 +
 man/SPLAY_EMPTY.3bsd                     |   1 +
 man/SPLAY_ENTRY.3bsd                     |   1 +
 man/SPLAY_FIND.3bsd                      |   1 +
 man/SPLAY_FOREACH.3bsd                   |   1 +
 man/SPLAY_GENERATE.3bsd                  |   1 +
 man/SPLAY_HEAD.3bsd                      |   1 +
 man/SPLAY_INIT.3bsd                      |   1 +
 man/SPLAY_INITIALIZER.3bsd               |   1 +
 man/SPLAY_INSERT.3bsd                    |   1 +
 man/SPLAY_LEFT.3bsd                      |   1 +
 man/SPLAY_MAX.3bsd                       |   1 +
 man/SPLAY_MIN.3bsd                       |   1 +
 man/SPLAY_NEXT.3bsd                      |   1 +
 man/SPLAY_PROTOTYPE.3bsd                 |   1 +
 man/SPLAY_REMOVE.3bsd                    |   1 +
 man/SPLAY_RIGHT.3bsd                     |   1 +
 man/SPLAY_ROOT.3bsd                      |   1 +
 man/STAILQ_CONCAT.3bsd                   |   1 +
 man/STAILQ_EMPTY.3bsd                    |   1 +
 man/STAILQ_ENTRY.3bsd                    |   1 +
 man/STAILQ_FIRST.3bsd                    |   1 +
 man/STAILQ_FOREACH.3bsd                  |   1 +
 man/STAILQ_FOREACH_FROM.3bsd             |   1 +
 man/STAILQ_FOREACH_FROM_SAFE.3bsd        |   1 +
 man/STAILQ_FOREACH_SAFE.3bsd             |   1 +
 man/STAILQ_HEAD.3bsd                     |   1 +
 man/STAILQ_HEAD_INITIALIZER.3bsd         |   1 +
 man/STAILQ_INIT.3bsd                     |   1 +
 man/STAILQ_INSERT_AFTER.3bsd             |   1 +
 man/STAILQ_INSERT_HEAD.3bsd              |   1 +
 man/STAILQ_INSERT_TAIL.3bsd              |   1 +
 man/STAILQ_LAST.3bsd                     |   1 +
 man/STAILQ_NEXT.3bsd                     |   1 +
 man/STAILQ_REMOVE.3bsd                   |   1 +
 man/STAILQ_REMOVE_AFTER.3bsd             |   1 +
 man/STAILQ_REMOVE_HEAD.3bsd              |   1 +
 man/STAILQ_SWAP.3bsd                     |   1 +
 man/TAILQ_CONCAT.3bsd                    |   1 +
 man/TAILQ_EMPTY.3bsd                     |   1 +
 man/TAILQ_ENTRY.3bsd                     |   1 +
 man/TAILQ_FIRST.3bsd                     |   1 +
 man/TAILQ_FOREACH.3bsd                   |   1 +
 man/TAILQ_FOREACH_FROM.3bsd              |   1 +
 man/TAILQ_FOREACH_FROM_SAFE.3bsd         |   1 +
 man/TAILQ_FOREACH_REVERSE.3bsd           |   1 +
 man/TAILQ_FOREACH_REVERSE_FROM.3bsd      |   1 +
 man/TAILQ_FOREACH_REVERSE_FROM_SAFE.3bsd |   1 +
 man/TAILQ_FOREACH_REVERSE_SAFE.3bsd      |   1 +
 man/TAILQ_FOREACH_SAFE.3bsd              |   1 +
 man/TAILQ_HEAD.3bsd                      |   1 +
 man/TAILQ_HEAD_INITIALIZER.3bsd          |   1 +
 man/TAILQ_INIT.3bsd                      |   1 +
 man/TAILQ_INSERT_AFTER.3bsd              |   1 +
 man/TAILQ_INSERT_BEFORE.3bsd             |   1 +
 man/TAILQ_INSERT_HEAD.3bsd               |   1 +
 man/TAILQ_INSERT_TAIL.3bsd               |   1 +
 man/TAILQ_LAST.3bsd                      |   1 +
 man/TAILQ_NEXT.3bsd                      |   1 +
 man/TAILQ_PREV.3bsd                      |   1 +
 man/TAILQ_REMOVE.3bsd                    |   1 +
 man/TAILQ_SWAP.3bsd                      |   1 +
 man/bit_alloc.3bsd                       |   1 +
 man/bit_clear.3bsd                       |   1 +
 man/bit_decl.3bsd                        |   1 +
 man/bit_ffc.3bsd                         |   1 +
 man/bit_ffs.3bsd                         |   1 +
 man/bit_nclear.3bsd                      |   1 +
 man/bit_nset.3bsd                        |   1 +
 man/bit_set.3bsd                         |   1 +
 man/bit_test.3bsd                        |   1 +
 man/bitstr_size.3bsd                     |   1 +
 man/pidfile_close.3bsd                   |   1 +
 man/pidfile_open.3bsd                    |   1 +
 man/pidfile_remove.3bsd                  |   1 +
 man/pidfile_write.3bsd                   |   1 +
 man/setproctitle_init.3bsd               |   1 +
 man/sl_add.3bsd                          |   1 +
 man/sl_delete.3bsd                       |   1 +
 man/sl_find.3bsd                         |   1 +
 man/sl_free.3bsd                         |   1 +
 man/sl_init.3bsd                         |   1 +
 man/strnunvis.3bsd                       |   1 +
 man/strnvis.3bsd                         |   1 +
 man/strunvis.3bsd                        |   1 +
 man/strvis.3bsd                          |   1 +
 man/strvisx.3bsd                         |   1 +
 144 files changed, 287 insertions(+), 1 deletion(-)

commit f20e6972b3a5ef4d1bfa2e3b2577caa3f9e357fc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 06:43:22 2017 +0200

    man: Move all man pages to section 3bsd
    
    This should guarantee that even if the system provides or will provide
    native implementations of these functions, we will not have file
    conflicts.

 COPYING                                         | 64 +++++++++---------
 man/.gitignore                                  |  1 -
 man/Makefile.am                                 | 86 ++++++++++++-------------
 man/{arc4random.3 => arc4random.3bsd}           |  0
 man/arc4random_addrandom.3                      |  1 -
 man/arc4random_addrandom.3bsd                   |  1 +
 man/arc4random_buf.3                            |  1 -
 man/arc4random_buf.3bsd                         |  1 +
 man/arc4random_stir.3                           |  1 -
 man/arc4random_stir.3bsd                        |  1 +
 man/arc4random_uniform.3                        |  1 -
 man/arc4random_uniform.3bsd                     |  1 +
 man/{bitstring.3 => bitstring.3bsd}             |  0
 man/{closefrom.3 => closefrom.3bsd}             |  0
 man/dehumanize_number.3                         |  1 -
 man/dehumanize_number.3bsd                      |  1 +
 man/{expand_number.3 => expand_number.3bsd}     |  2 +-
 man/{explicit_bzero.3 => explicit_bzero.3bsd}   |  0
 man/{fgetln.3 => fgetln.3bsd}                   |  2 +-
 man/{fgetwln.3 => fgetwln.3bsd}                 |  2 +-
 man/{flopen.3 => flopen.3bsd}                   |  0
 man/{fmtcheck.3 => fmtcheck.3bsd}               |  0
 man/{fparseln.3 => fparseln.3bsd}               |  0
 man/{getbsize.3 => getbsize.3bsd}               |  0
 man/getmode.3                                   |  1 -
 man/getmode.3bsd                                |  1 +
 man/{getpeereid.3 => getpeereid.3bsd}           |  0
 man/{getprogname.3 => getprogname.3bsd}         |  2 +-
 man/{heapsort.3 => heapsort.3bsd}               |  2 +-
 man/{humanize_number.3 => humanize_number.3bsd} |  0
 man/mergesort.3                                 |  1 -
 man/mergesort.3bsd                              |  1 +
 man/{nlist.3 => nlist.3bsd}                     |  0
 man/{pidfile.3 => pidfile.3bsd}                 |  6 +-
 man/queue.3bsd                                  |  2 +-
 man/{radixsort.3 => radixsort.3bsd}             |  0
 man/{readpassphrase.3 => readpassphrase.3bsd}   |  0
 man/{reallocarray.3 => reallocarray.3bsd}       |  0
 man/{reallocf.3 => reallocf.3bsd}               |  0
 man/{setmode.3 => setmode.3bsd}                 |  0
 man/{setproctitle.3 => setproctitle.3bsd}       |  0
 man/setprogname.3                               |  1 -
 man/setprogname.3bsd                            |  1 +
 man/sradixsort.3                                |  1 -
 man/sradixsort.3bsd                             |  1 +
 man/{stringlist.3 => stringlist.3bsd}           |  0
 man/strlcat.3                                   |  1 -
 man/strlcat.3bsd                                |  1 +
 man/{strlcpy.3 => strlcpy.3bsd}                 |  0
 man/{strmode.3 => strmode.3bsd}                 |  4 +-
 man/{strnstr.3 => strnstr.3bsd}                 |  0
 man/{strtonum.3 => strtonum.3bsd}               |  0
 man/{tree.3 => tree.3bsd}                       |  2 +-
 man/{unvis.3 => unvis.3bsd}                     |  4 +-
 man/{vis.3 => vis.3bsd}                         |  8 +--
 man/wcslcat.3                                   |  1 -
 man/wcslcat.3bsd                                |  1 +
 man/{wcslcpy.3 => wcslcpy.3bsd}                 |  6 +-
 58 files changed, 107 insertions(+), 108 deletions(-)

commit 07c76b666dc8e8fd2fb4f2b716f65687b60af8c7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 5 06:17:27 2017 +0200

    Do not use legacy BSD u_* types
    
    Some systems do not have these types available, and they are simply
    convenience aliases. Instead use the expanded versions which are more
    portable.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=101192

 include/bsd/netinet/ip_icmp.h | 22 +++++++--------
 include/bsd/stdlib.h          |  2 +-
 src/arc4random.c              | 16 +++++------
 src/chacha_private.h          |  2 +-
 src/getentropy_bsd.c          |  2 +-
 src/hash/helper.c             |  4 +--
 src/inet_net_pton.c           |  8 +++---
 src/merge.c                   | 27 +++++++++---------
 src/nlist.c                   |  2 +-
 src/radixsort.c               | 64 +++++++++++++++++++++++--------------------
 src/unvis.c                   |  7 +++--
 src/vis.c                     | 17 +++++++-----
 12 files changed, 92 insertions(+), 81 deletions(-)

commit e4475738fefe3b0c7388b293e8b0828560c6b830
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jan 20 02:20:12 2017 +0100

    Try <linux/a.out.h> if <a.out.h> is not present
    
    At least musl ships the former but not the latter.

 include/bsd/nlist.h | 5 +++++
 1 file changed, 5 insertions(+)

commit d6c35f618c4f3ca20a43a5a28e08cde3540e6b7c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 10 04:33:15 2017 +0100

    Do not provide funopen() on musl
    
    Fixes: https://bugs.debian.org/818246

 configure.ac   |  6 +++++-
 src/funopen.c  | 10 ++++++++--
 src/libbsd.map |  3 +++
 3 files changed, 16 insertions(+), 3 deletions(-)

commit db7470b048a14bdc69a34fbd192ec626e1786411
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 10 04:27:25 2017 +0100

    Gracefully handle lack of system <sys/cdefs.h>
    
    This is the case on musl.
    
    Fixes: https://bugs.debian.org/810589

 include/bsd/sys/cdefs.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

commit 368af99f554ca1c7211faf9eedfffcf45e5e76bb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Aug 28 17:13:20 2016 +0200

    Fix the __progname check to avoid the optimizer discarding the symbol
    
    Because we were assigning to another unused variable, when building the
    check with optimizations enabled, which is the default when using gcc
    as the compiler, the variable was being discarded. Instead pass it to
    printf() so that it cannot do so.

 configure.ac | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

commit 337e62027503aa6e09ca7adbe94cd7077f3241c3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 10 04:24:35 2017 +0100

    Support GCC deprecated attribute for GCC older than 4.5
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99190
    Based-on-patch-by: Eric Smith <brouhaha@fedoraproject.org>

 include/bsd/stdio.h     | 10 +++++++---
 include/bsd/sys/cdefs.h |  8 ++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

commit 088f147ec8e55b760cf631a09d5defb332e7e9c7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 8 01:49:48 2017 +0100

    Add support for RISC-V

 src/local-elf.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

commit b2b1020d8e164d2770bf1307edca85f2d2420deb
Author: Helmut Grohne <helmut@subdivi.de>
Date:   Tue Jan 10 03:47:52 2017 +0100

    Add support for TileGX
    
    Fixes: https://bugs.debian.org/847560
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 6 ++++++
 1 file changed, 6 insertions(+)

commit 9bed430ee30e677d8774e4feba8707507979d62b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Apr 23 10:13:23 2016 +0200

    Release libbsd 0.8.3

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit cbfe0ebca92ee6dd68fa3a6c02021c10bffed7ac
Author: Szabolcs Nagy <nsz@port70.net>
Date:   Sun Mar 27 12:37:09 2016 +0200

    Add missing <fcntl.h> includes
    
    These are required due to the O_* macro usage, but have passed
    undetected on glibc-based systems due to implicit inclusions.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/flopen.c | 1 +
 src/nlist.c  | 1 +
 2 files changed, 2 insertions(+)

commit f3b566bd7c56cddcc5df909828eac48e74805bcb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Mar 27 12:31:58 2016 +0200

    test: Add a unit test for md5

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/md5.c       | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 49 insertions(+)

commit e86c1b5f4393f1d65fb855d16d4c056fbe39ffd4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 14 09:00:57 2016 +0100

    man: Fix ungrammatical construct
    
    Warned-by: lintian

 man/queue.3bsd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit b7ce33cf5191b99b5edcb0cde3fa5a4950cbe451
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 12 22:56:09 2016 +0100

    build: Support clock_gettime() provided in librt
    
    In older glibc versions (< 2.17) clock_gettime() is in librt. Add a
    check for this to avoid build breakage for programs/libraries that
    use libbsd on such systems.
    
    Based-on-patch-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 configure.ac    | 10 ++++++++++
 src/Makefile.am |  2 ++
 2 files changed, 12 insertions(+)

commit ed84bec5aa93030b09988c3d2e0e4d6411d0e914
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 10 10:38:51 2016 +0100

    Switch URLs from http or git to https

 COPYING                  |  2 +-
 README                   | 13 +++++++++----
 src/libbsd-ctor.pc.in    |  2 +-
 src/libbsd-overlay.pc.in |  2 +-
 src/libbsd.pc.in         |  2 +-
 src/progname.c           |  7 ++++---
 src/setproctitle.c       |  2 +-
 7 files changed, 18 insertions(+), 12 deletions(-)

commit cbe305770345161f4ce5069552db71fa350dcb0c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 02:53:28 2016 +0100

    Fix file descriptor leak in HASHFileChunk helper
    
    This leak only happens on error conditions, so it's not too bad.
    
    Warned-by: coverity

 src/hash/helper.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 5a32ea0a72ba9fa4275080a2a51612ae50f66dd3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Feb 7 02:47:22 2016 +0100

    Fix unportable sizeof() usage
    
    We are calculating the size of the array, and need to pass the size of
    each element, not the size of a pointer to an element. Although this
    happens to be the same in many cases, this is not a portable assumption.
    
    Warned-by: coverity

 src/radixsort.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 2fb148a290c1677dcf09ada4379583e244a92014
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jan 27 15:25:23 2016 +0100

    Release libbsd 0.8.2

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c8f0723d2b4520bdd6b9eb7c3e7976de726d7ff7
Author: Hanno Boeck <hanno@hboeck.de>
Date:   Wed Jan 27 15:10:11 2016 +0100

    Fix heap buffer overflow in fgetwln()
    
    In the function fgetwln() there's a 4 byte heap overflow.
    
    There is a while loop that has this check to see whether there's still
    enough space in the buffer:
    
                    if (!fb->len || wused > fb->len) {
    
    If this is true more memory gets allocated. However this test won't be
    true if wused == fb->len, but at that point wused already points out
    of the buffer. Some lines later there's a write to the buffer:
    
                    fb->wbuf[wused++] = wc;
    
    This bug was found with the help of address sanitizer.
    
    Warned-by: ASAN
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93881
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/fgetwln.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 008316aa291e0930eba067ed7b0772d0009813b0
Author: Hanno Boeck <hanno@hboeck.de>
Date:   Wed Jan 27 15:06:50 2016 +0100

    test: Add missing <sys/stat.h> include
    
    The test in test/strmode.c can fail to compile depending on the
    optimization flags used.
    
    The constants that are used in this file (S_IFREG etc.) come from the
    <sys/stat.h> include file. It seems gcc ignores this error if one
    compiles with "-O2" (default), but if one uses no optimization it fails.
    
    Add the missing include and it works all the time.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93880
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 test/strmode.c | 1 +
 1 file changed, 1 insertion(+)

commit e4ab2c62cdc5457ea4b8cabd6c7d391810e17fc1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jan 11 02:21:15 2016 +0100

    test: Fix success return code for arc4random unit test

 test/arc4random.c | 2 ++
 1 file changed, 2 insertions(+)

commit bf5573f86ca0b042b3f56d4c65913d5825c82ffe
Author: Lukas Fleischer <lfleischer@lfos.de>
Date:   Thu Jan 7 17:26:12 2016 +0100

    test: Fix race condition in headers-*.sh
    
    When running tests in parallel (e.g. using `make -j4 check`), the header
    tests currently fail due to headers-overlay.sh and headers-system.sh
    both generating headers-gen.c simultaneously, resulting in garbled
    output. Fix this by using separate C files for the tests.
    
    Signed-off-by: Lukas Fleischer <lfleischer@lfos.de>
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 test/headers-overlay.sh | 6 +++---
 test/headers-system.sh  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

commit 229f85794f9031fe724562dce7e70feedb05788d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 14 03:39:48 2015 +0100

    Release libbsd 0.8.1

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 7a756875415293e4d1d4b50f1403cb1fc99a5939
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 14 03:03:57 2015 +0100

    Add support for GNU/Hurd to getentropy()
    
    Reuse the getentropy code for Linux on the Hurd, which has fallbacks
    for when the better interfaces are not present. And remove all the code
    that is not supported currently on the Hurd. Ideally the Hurd should
    get an equivalent interfaces that does not suffer from the same
    problems as /dev/urandom.

 COPYING               |   1 +
 src/Makefile.am       |   1 +
 src/getentropy.c      |   2 +
 src/getentropy_hurd.c | 446 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 450 insertions(+)

commit f84004baf22e26e835515b79613de45708a73391
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 12 14:26:50 2015 +0100

    test: Add new unit tests for individual headers usage

 test/.gitignore         |  2 +-
 test/Makefile.am        | 29 +++++++++++++++++++++++-----
 test/headers-overlay.sh | 25 ++++++++++++++++++++++++
 test/headers-system.sh  | 24 +++++++++++++++++++++++
 test/headers.c          | 51 -------------------------------------------------
 5 files changed, 74 insertions(+), 57 deletions(-)

commit cdf998a056b894a2674772d6c86f8016fec4df88
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 14 00:44:47 2015 +0100

    Turn <bsd/bsd.h> inert when using LIBBSD_OVERLAY
    
    Also print a warning stating this fact.

 include/bsd/bsd.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

commit 2c77ad593ca235e95bbc59de3b36fb9d69881529
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 14 00:37:34 2015 +0100

    Add missing include to <md5.h>
    
    The header was not self-contained, it was missing definitions for some
    types included in <sys/types.h>.

 include/bsd/md5.h | 1 +
 1 file changed, 1 insertion(+)

commit 48ac79b1883981f5135b5b9c76ca268e6cbe65b2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 12 14:27:12 2015 +0100

    Use the non-overlayed libbsd headers when we need our own definitions

 include/bsd/err.h    | 4 ++++
 include/bsd/unistd.h | 4 ++++
 2 files changed, 8 insertions(+)

commit 290a1ce8f262a7f30a77c0a89eaa28876de876ed
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 7 02:40:46 2015 +0100

    Switch COPYING to Debian copyright machine readable format 1.0

 COPYING | 1059 +++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 552 insertions(+), 507 deletions(-)

commit 6bcb1312f4691b92d0193e4a923a776dc6f233df
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 7 02:45:52 2015 +0100

    Relicense my contribution to BSD-2-clause
    
    This avoids having two licenses on the same file.

 COPYING                  |  2 ++
 include/bsd/sys/endian.h | 52 +++++++++++++-----------------------------------
 2 files changed, 16 insertions(+), 38 deletions(-)

commit da137a09213c26e5583689a8ea0bd61cdf2d6de3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Dec 7 01:53:49 2015 +0100

    Add missing copyright and license headers

 src/arc4random.h | 26 ++++++++++++++++++++++++++
 test/headers.c   | 26 ++++++++++++++++++++++++++
 test/overlay.c   | 26 ++++++++++++++++++++++++++
 3 files changed, 78 insertions(+)

commit d2f59a23d5e1d8bc440c061cac2a0d6fc133a79e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Dec 2 04:00:58 2015 +0100

    Fix getentropy implementation to use the correct system hooks
    
    Include getentropy_<SYSTEM>.c instead of arc4random_<SYSTEM>.c.

 src/getentropy.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

commit 01b77f0dcf7f43fe598d5f6aa34f9edfad418432
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Dec 2 03:32:13 2015 +0100

    Add support for GNU/kFreeBSD for closefrom() and getentropy()

 src/closefrom.c  | 2 +-
 src/getentropy.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 75729394af82faf54721cd40c0c8c258954082dc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Dec 2 03:08:17 2015 +0100

    Unify most arc4random Unix hooks into a single file
    
    The Unix hook should work for most Unix-like systems, move glibc
    specific code there and a FreeBSd specific comment, and remove the rest.
    Also change the code to always fallback to use the generic Unix code.
    
    This should cover GNU/Hurd and GNU/kFreeBSD among others.

 src/Makefile.am        |  2 --
 src/arc4random.h       | 18 ++---------
 src/arc4random_bsd.h   | 86 --------------------------------------------------
 src/arc4random_linux.h | 86 --------------------------------------------------
 src/arc4random_unix.h  | 14 +++++++-
 5 files changed, 15 insertions(+), 191 deletions(-)

commit 8493c7f27da2dcd2de71e9c7782c3d020d89c2a2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Dec 1 03:39:10 2015 +0100

    Use local SHA512 header
    
    Actually use the local private SHA512 header instead of relying on the
    OpenSSL one for no good reason. Add definition for expected macro
    SHA512_DIGEST_LENGTH.

 src/getentropy_aix.c   | 2 +-
 src/getentropy_hpux.c  | 3 ++-
 src/getentropy_linux.c | 3 ++-
 src/hash/sha512.h      | 2 ++
 4 files changed, 7 insertions(+), 3 deletions(-)

commit 2b030da0165ac507280a5355ba8a28c2013bf9b6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 03:59:42 2015 +0100

    Release libbsd 0.8.0

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 330e211142e9a2ad5436ab38e3e4a8596f49cf1a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 03:53:21 2015 +0100

    Update license and copyright information

 COPYING | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

commit 874a0e51d3a38596006b3ef7396e62194f467abf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 19:39:47 2015 +0200

    Update arc4random module from OpenBSD and LibreSSL
    
    Rework arc4random_stir() and arc4random_addrandom() code over the new
    internal API, and documentation in the man page. Adapt the code to the
    local build system.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85827

 configure.ac             |   2 +-
 man/arc4random.3         | 100 +++++++------
 src/Makefile.am          |   7 +
 src/arc4random.c         | 356 ++++++++++++++++++-----------------------------
 src/arc4random.h         |  29 ++++
 src/arc4random_bsd.h     |  86 ++++++++++++
 src/arc4random_linux.h   |  86 ++++++++++++
 src/arc4random_openbsd.h |  61 ++++++++
 src/arc4random_uniform.c |  57 ++++++++
 src/arc4random_unix.h    |  80 +++++++++++
 src/chacha_private.h     | 222 +++++++++++++++++++++++++++++
 11 files changed, 820 insertions(+), 266 deletions(-)

commit 9a9a8b2dba2f511c0888499726597add59ae1215
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 19:39:47 2015 +0200

    Add private getentropy module from OpenBSD and LibreSSL
    
    Adapt the code to the local build system.

 configure.ac             |   4 +-
 src/Makefile.am          |  12 ++
 src/getentropy.c         |  43 ++++
 src/getentropy_aix.c     | 425 ++++++++++++++++++++++++++++++++++++
 src/getentropy_bsd.c     |  62 ++++++
 src/getentropy_hpux.c    | 419 ++++++++++++++++++++++++++++++++++++
 src/getentropy_linux.c   | 547 +++++++++++++++++++++++++++++++++++++++++++++++
 src/getentropy_osx.c     | 429 +++++++++++++++++++++++++++++++++++++
 src/getentropy_solaris.c | 445 ++++++++++++++++++++++++++++++++++++++
 9 files changed, 2385 insertions(+), 1 deletion(-)

commit 5f9265f81601f591336616a4acd3bae0ece4b6fc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 20:13:33 2015 +0200

    Add private SHA512 module from FreeBSD

 src/Makefile.am    |   2 +
 src/hash/sha512.h  |  51 +++++++++
 src/hash/sha512c.c | 320 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 373 insertions(+)

commit 1f77cdb40a997575fed193d1edbe16af03ea733e
Author: Marek Vasut <marex@denx.de>
Date:   Mon Nov 30 20:39:00 2015 +0100

    Add NIOS2 support to nlist()
    
    Add support for the NIOS2 soft-core CPU provided by Altera.
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Signed-off-by: Guillem Jover <guillem@hadrons.org>
    Cc: Ley Foon Tan <lftan@altera.com>
    Cc: Thomas Chou <thomas@wytron.com.tw>
    Cc: Walter Goossens <waltergoossens@home.nl>

 src/local-elf.h | 6 ++++++
 1 file changed, 6 insertions(+)

commit f3b115540c7490c494a82e0b9c09a1dfa1c0f9b5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 19:32:48 2015 +0100

    man: Rename funopen.3 to funopen.3bsd to avoid clash with funtools
    
    The funtools project ships a man page with the same, name. And although
    it mith probably make more sense to rename the man page there, as BSD
    systems will certainly not do so, this is the easiest and fastest way
    to avoid a file conflict.

 man/Makefile.am                 | 2 +-
 man/{funopen.3 => funopen.3bsd} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

commit 877732ef4d101e9b6c789e9c00f88623761fc8c4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 23:48:17 2015 +0100

    test: Check asprintf() return code

 test/proctitle.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 02bccb0a0135d4aac670c804824335223872f11d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 30 04:17:15 2015 +0200

    test: Add unit test for strmode()

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/strmode.c   | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+)

commit 58bef83f410e8ec9201ecab671c27f56dca98f02
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 16 01:12:24 2015 +0100

    test: Add unit test for arc4random()

 configure.ac      |   5 +++
 test/.gitignore   |   1 +
 test/Makefile.am  |   6 ++++
 test/arc4random.c | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 117 insertions(+)

commit 6e074a2bdc8377a945533d54a0013f5c7f608809
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 23:00:35 2015 +0100

    build: Make git log invocation immune to local configuration

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0871daf7b0031ca999d5c25f71a93a4560d7b042
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 04:12:02 2015 +0100

    build: Move hash/helper.c into new libbsd_la_included_sources
    
    Use this variable in EXTRA_DIST and libbsd_la_DEPENDENCIES.

 src/Makefile.am | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

commit 02c33d50226360de04d5a5da997a040a5413c35f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 30 02:48:23 2015 +0100

    build: Move proctitle_LDFLAGS inside BUILD_LIBBSD_CTOR conditional

 test/Makefile.am | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

commit 45443583df0ece8523f6b9038e305fa6c01b63f7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 19:37:37 2015 +0200

    Add explicit_bzero() function from OpenBSD

 include/bsd/string.h                 |  2 +
 man/Makefile.am                      |  1 +
 man/explicit_bzero.3                 | 72 ++++++++++++++++++++++++++++++++++++
 src/Makefile.am                      |  1 +
 src/explicit_bzero.c                 | 19 ++++++++++
 src/libbsd.map                       |  4 ++
 test/.gitignore                      |  1 +
 test/Makefile.am                     |  1 +
 include/bsd/string.h => test/bzero.c | 33 +++++++++--------
 9 files changed, 118 insertions(+), 16 deletions(-)

commit 8641d8aed711f74179915fe2fde89c9969ff7de4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Sep 24 04:01:11 2015 +0200

    Make closefrom_procfs() fail when reallocarray() fails

 src/closefrom.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

commit 0982dcd98b7561269fdddaef4388da7177de7603
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 07:10:18 2015 +0200

    Lock the file streams in fgetln() and fparseln()
    
    The fparseln() function had the NetBSD uppercase macros stubbed out,
    so replace them with the actual stdio ones. The fgetln() function was
    missing any locking at all.

 src/fgetln.c   | 5 +++++
 src/fparseln.c | 8 +++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

commit ee26e59e727c51fcf4e01d4d4cab3b697bb6b31d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 05:50:52 2015 +0200

    Mark functions handling format strings with __printflike

 include/bsd/err.h    | 12 ++++++++----
 include/bsd/unistd.h |  3 ++-
 2 files changed, 10 insertions(+), 5 deletions(-)

commit 151bc71d64845a1798561e66fa62ee0d62f4a03c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Sep 22 16:22:56 2015 +0200

    Add compile and link-time deprecation warnings for fgetln()
    
    Although the current implementation in libbsd is probably one of the
    safest ones around, it still poses some problems when used with many
    file streams. This function has now a replacement, that is both more
    standard and portable. Ask users to switch to getline(3) instead.

 include/bsd/stdio.h | 7 ++++++-
 src/fgetln.c        | 5 +++++
 test/Makefile.am    | 1 +
 3 files changed, 12 insertions(+), 1 deletion(-)

commit 41ff37bbccea236d67b0d54c97477741a6f13dab
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Sep 22 16:21:12 2015 +0200

    build: Add support for linker warnings

 src/Makefile.am  |  1 +
 src/local-link.h | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

commit 53d989a223f4d5ab789b8813451263528536f927
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 13 21:28:36 2014 +0100

    Switch fparseln() implementation from fgetln() to getline()

 man/fparseln.3 |  6 +++---
 src/fparseln.c | 12 +++++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

commit f50b197ea597e6517ffeb9666b469b227ea88387
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Sep 22 22:30:17 2015 +0200

    test: Add fparseln() unit test

 src/fparseln.c   | 33 --------------------
 test/.gitignore  |  1 +
 test/Makefile.am |  2 ++
 test/fparseln.c  | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 95 insertions(+), 33 deletions(-)

commit 54f153414a00b2de606f1aeaf9d76f8792e062f6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Sep 22 20:56:15 2015 +0200

    test: Refactor stream testing functions into a new module

 test/Makefile.am   |  2 ++
 test/fgetln.c      | 56 ++----------------------------------
 test/test-stream.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 test/test-stream.h | 37 ++++++++++++++++++++++++
 4 files changed, 125 insertions(+), 54 deletions(-)

commit 9688ab26b921e372cc296d4d1b0d48cbcf6a96c5
Author: Brent Cook <bcook@openbsd.org>
Date:   Sat Dec 13 08:55:59 2014 +0100

    Avoid left shift overflow in reallocarray
    
    Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting
    1UL 32-bits to the left causes an overflow. This replaces the constant
    1UL with (size_t)1 so that we get the correct constant size for the
    platform.
    
    Import from OpenBSD.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/reallocarray.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 025b44800e97f61c31b9979cc61a7b443feda05e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Nov 4 05:34:46 2014 +0100

    Make mergesort setup() static

 src/merge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a6a101effacbdf88b5879af2f63b7e5dbc4a05b9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Nov 4 05:33:26 2014 +0100

    Use ANSI C prototypes

 src/heapsort.c      |  6 ++----
 src/inet_net_pton.c | 11 ++---------
 src/merge.c         | 19 ++++++-------------
 src/nlist.c         | 25 ++++++-------------------
 src/strmode.c       |  4 +---
 5 files changed, 17 insertions(+), 48 deletions(-)

commit 32388fe59f526a150058b58a8bc22785e4b6b4cc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 3 23:21:52 2014 +0100

    Use reallocarray() instead of malloc() or realloc()

 src/fgetwln.c    | 2 +-
 src/radixsort.c  | 3 ++-
 src/setmode.c    | 5 +++--
 src/stringlist.c | 6 +++---
 test/fgetln.c    | 4 ++--
 5 files changed, 11 insertions(+), 9 deletions(-)

commit 30e328cbf14d03fc9f6569e93e0dac41526264d8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Nov 3 00:43:27 2014 +0100

    Do not close file descriptors while scanning the /proc filesystem
    
    Closing file descriptors changes the content of the fd directories in
    the /proc filesystem, which means readdir() might get very confused.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85663

 src/closefrom.c | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

commit 4cc43915f22c282ded2a9c3875ad7865fcb91fa5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 2 23:58:23 2014 +0100

    Move procfs based implementation into a new closefrom_procfs() function

 src/closefrom.c | 44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

commit 34df1426653e79d170de399dfadc5b2709f85815
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Nov 5 20:01:53 2014 +0100

    Refactor file descriptor closure into a new closefrom_close()

 src/closefrom.c | 32 +++++++++++++++-----------------
 1 file changed, 15 insertions(+), 17 deletions(-)

commit 3881c4fc68c7257ed22e1a25804039db5c9a0c95
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 2 00:23:00 2014 +0100

    Update closefrom() function
    
    Import from sudo. Adapt the build system to detect the required features.

 configure.ac    |   5 +--
 src/closefrom.c | 105 +++++++++++++++++++++++++++++++++++++-------------------
 2 files changed, 72 insertions(+), 38 deletions(-)

commit 3a3d87d7301794bd4950bb583dfa590981b842e2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Sep 23 04:40:21 2015 +0200

    test: Add closefrom() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/closefrom.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 55 insertions(+)

commit d62f7d8facf087b5e93508067ec228864fe76990
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:55:55 2014 +0100

    test: Add test case for fpurge(NULL)

 test/fpurge.c | 3 +++
 1 file changed, 3 insertions(+)

commit cfb4d462a9be19c1dfd5e7793ea267a0bb111a11
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:54:09 2014 +0100

    test: Move and activate fpurge() test case from module to a dedicated file

 src/fpurge.c           | 20 --------------------
 test/.gitignore        |  1 +
 test/Makefile.am       |  1 +
 {src => test}/fpurge.c | 21 ---------------------
 4 files changed, 2 insertions(+), 41 deletions(-)

commit 205827a2dd16e5a14628631eea926f9da9b672a7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:52:42 2014 +0100

    build: Centralize testsuite LDADD setting in a single variable

 test/Makefile.am | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

commit c7e01e9884a2478360a2629aea5583eaf7be0ea2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:22:28 2014 +0100

    Sync queue(3) from FreeBSD
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85147

 include/bsd/sys/queue.h | 118 ++++++++++++++++++++++++------
 man/queue.3bsd          | 186 ++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 274 insertions(+), 30 deletions(-)

commit 326711448308c4197923d75f40ae02162f152ce8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:21:30 2014 +0100

    Add __offsetof, __rangeof and __containerof to sys/cdefs.h
    
    Import and adapt from FreeBSD.

 include/bsd/sys/cdefs.h | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

commit 0e4e3ab2698a29a329beb5b85b9da5d425e296a6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Nov 1 00:20:23 2014 +0100

    Add __DECONST, __DEVOLATILE and __DEQUALIFY macros to sys/cdefs.h
    
    Import from FreeBSD.

 include/bsd/sys/cdefs.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

commit a6fe103c1b4ff4ae8d78840ed964dc632ccd4d7c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 31 17:29:54 2014 +0100

    Add new man page for reallocarray(3)
    
    Import man page from OpenBSD.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=85622

 man/Makefile.am    |   1 +
 man/reallocarray.3 | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+)

commit 02b55488c5ed1067f7b4d4139806a60919bb2e78
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Aug 12 12:32:34 2014 +0200

    Use stdint integer types instead of BSD legacy ones

 include/bsd/md5.h    | 16 +++++++++-------
 include/bsd/stdlib.h |  4 ++--
 man/arc4random.3     |  6 +++---
 man/mdX.3bsd         |  8 ++++----
 src/arc4random.c     | 30 +++++++++++++++---------------
 src/hash/helper.c    |  2 +-
 src/hash/md5.c       | 20 ++++++++++----------
 7 files changed, 44 insertions(+), 42 deletions(-)

commit 6378351169696f9d446de93a3efd75b4b061fecc
Author: Callum Davies <calrogman@gmail.com>
Date:   Sun Aug 10 12:34:44 2014 +0100

    Fix arc4random() and arc4random_stir() prototypes
    
    These two functions accept no arguments.  The prototypes should reflect
    this.  This change lets the compiler warn about certain (admittedly
    silly) mistakes.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 include/bsd/stdlib.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit e390651b646c173ccd0648d05d3fcc4585613b01
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jul 29 03:00:08 2014 +0200

    Release libbsd 0.7.0

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit e8d3d04177c8718f1e7f583cbcca15f8e0b9602e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jul 20 01:48:20 2014 +0200

    build: Remove hard requirement for GNU .init_array section support
    
    In case the support is not available, just stop building the
    libbsd-ctor.a library, which is a nice to have thing, but should not
    have been a hard requirement from the start. This should allow to
    build libbsd on non-glibc based systems using another libc.

 configure.ac     | 5 ++---
 src/Makefile.am  | 9 +++++++--
 test/.gitignore  | 1 +
 test/Makefile.am | 9 ++++++++-
 test/proctitle.c | 6 +++++-
 5 files changed, 23 insertions(+), 7 deletions(-)

commit faa005cb3209239bdbdf001e387cbcf9f088b12c
Author: Benjamin Baier <programmer@netzbasis.de>
Date:   Fri Jun 27 02:05:11 2014 +0200

    Add reallocarray() function from OpenBSD
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING              |  2 ++
 include/bsd/stdlib.h |  1 +
 src/Makefile.am      |  1 +
 src/libbsd.map       |  2 ++
 src/reallocarray.c   | 38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 44 insertions(+)

commit 36aca8c06ee6b41e917eb4f70622831852ad72f7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 26 21:43:55 2014 +0200

    Add stringlist module from NetBSD

 COPYING                  |   7 ++-
 include/Makefile.am      |   1 +
 include/bsd/stringlist.h |  54 +++++++++++++++++
 man/Makefile.am          |   1 +
 man/stringlist.3         | 147 ++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am          |   1 +
 src/libbsd.map           |   5 ++
 src/stringlist.c         | 155 +++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 370 insertions(+), 1 deletion(-)

commit e8f930035525b5bb7a66c4894ffc1d37e4250f7a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 26 21:32:11 2014 +0200

    Add getbsize() function
    
    Import code from DragonFlyBSD and man page from FreeBSD.

 include/bsd/stdlib.h |   2 +
 man/Makefile.am      |   1 +
 man/getbsize.3       |  95 +++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am      |   1 +
 src/getbsize.c       | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libbsd.map       |   2 +
 6 files changed, 203 insertions(+)

commit a88bb8380db5343c57130ac80c787c7869eae3c7
Author: Christian Svensson <debian@cmd.nu>
Date:   Thu Mar 6 22:10:36 2014 +0100

    Add OpenRISC support to nlist()
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/local-elf.h | 6 ++++++
 1 file changed, 6 insertions(+)

commit 8d16c3df6799c93a7c01117b27318e864e34c5a2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 11 05:43:42 2013 +0200

    Add timeconv module from FreeBSD
    
    Inline license information from FreeBSD root dir COPYRIGHT file.

 COPYING                |   9 ++++
 include/Makefile.am    |   1 +
 include/bsd/timeconv.h |  57 +++++++++++++++++++++++
 src/Makefile.am        |   1 +
 src/libbsd.map         |   9 ++++
 src/timeconv.c         | 119 +++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 196 insertions(+)

commit f41fdcf186abbe26b11ba10fb3d4d0c1f109501e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Oct 21 05:07:56 2013 +0200

    Add funopen() function
    
    This is a wrapper over the glibc fopencookie() function.
    
    We diverge from the FreeBSD, OpenBSD and DragonFlyBSD declarations,
    because seekfn() there wrongly uses fpos_t, assuming it's an integral
    type, and any code using that on a system where fpos_t is a struct
    (such as GNU-based systems or NetBSD) will fail to build. In which case,
    as the code has to be modified anyway, we might just as well use the
    correct declaration.

 configure.ac        |   2 +-
 include/bsd/stdio.h |  17 +++++
 man/Makefile.am     |   1 +
 man/funopen.3       | 191 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am     |   1 +
 src/funopen.c       | 142 ++++++++++++++++++++++++++++++++++++++
 src/libbsd.map      |   4 ++
 test/.gitignore     |   1 +
 test/Makefile.am    |   2 +
 test/funopen.c      | 178 ++++++++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 538 insertions(+), 1 deletion(-)

commit 86cbff385a756f428091441674a5867603b1c910
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 11 05:11:42 2013 +0200

    Handle glibc partial header inclusions
    
    The glibc headers use selective inclusions through the __need_NAME
    mechanism to avoid circular dependencies.
    
    The problem is that if we are being overlaid, and have been requested
    a partial inclusion, when we pass control to the system header, then
    we might miss definitions needed by our own header, resulting in build
    failures.
    
    Workaround that by catching current partial requests, and skip the
    current inclusion.

 include/bsd/stdio.h |  9 ++++++++-
 include/bsd/wchar.h | 10 +++++++++-
 2 files changed, 17 insertions(+), 2 deletions(-)

commit ee04e8de14e49f9cf2bf2f7c90e1314c6ba0e500
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Oct 10 09:49:04 2013 +0200

    build: Set subdir-objects automake option
    
    Bump automake minimal version to 1.9.

 .gitignore   | 1 +
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

commit 61b2dbb8f5ee52c4a50918e0a9c40300678bae50
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 15 01:44:30 2013 +0200

    Fix dehumanize_number() to correctly detect overflows
    
    Do not allow numbers greated than INT64_MAX and smaller than INT64_MIN.
    Clarify the positive sign value by prefixing it with an explicit +.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66909

 src/dehumanize_number.c | 14 ++++++++++----
 test/humanize.c         | 13 +++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)

commit 119417462e21b71a2c5818a7ba8837e1caaa2b7a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jul 14 10:58:20 2013 +0200

    Release libbsd 0.6.0

 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 948bcf1db8aca0b500174d487da3bcf3977838eb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 13 02:11:20 2013 +0200

    Warn when setproctitle() gets called before initialization
    
    Try to give a helpful message in case the program is not initializing
    the setproctitle() machinery.

 src/setproctitle.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

commit c5b959028734ca2281250c85773d9b5e1d259bc8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jul 11 12:25:54 2013 +0200

    Move setproctitle() automatic initialization to its own library
    
    The automatic initialization cannot be part of the main shared library,
    because there is no thread-safe way to change the environ global
    variable. This is not a problem if the initializaion happens just at
    program load time, but becomes one if the shared library is directly or
    indirectly dlopen()ed during the execution of the program, which could
    have either kept references to the old environ or could change it in
    some other thread. This has been observed for example on systems using
    Samba NSS modules.
    
    To avoid any other possible fallout, the constructor is split into a
    new static library that needs to be linked explicitly into programs
    using setproctitle(). As an additional safety measure the pkg-config
    linker flags will mark the program as not allowing to be dlopen()ed
    so that we avoid the problem described above.
    
    Reported-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66679

 configure.ac                                    |  1 +
 include/bsd/unistd.h                            |  4 ++
 man/setproctitle.3                              | 16 +++++++
 src/Makefile.am                                 |  7 +++
 src/libbsd-ctor.pc.in                           | 12 +++++
 src/libbsd.map                                  |  5 +++
 src/setproctitle.c                              | 12 +----
 include/bsd/unistd.h => src/setproctitle_ctor.c | 60 ++++++++++---------------
 test/Makefile.am                                |  6 ++-
 9 files changed, 76 insertions(+), 47 deletions(-)

commit 3077d2fffc55aff310eb4f5e2bb82ba176bce5c1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jul 12 22:15:58 2013 +0200

    build: Move version ABI from Makefile to configure.ac
    
    It's easier to find there, and the value can be reused in case we have
    to provide another shared library.

 configure.ac    | 7 +++++++
 src/Makefile.am | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

commit 1bf0a55579d823fadccb1ff2d58770cbb404c810
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jun 8 17:43:42 2013 +0200

    Release libbsd 0.5.2

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit ad613d9d09e12c2397d8804c66f65ff1f89eed64
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 7 07:11:50 2013 +0200

    Create a shallow copy of environ before replacing it in setproctitle()
    
    Because clearenv() or setenv() might free the environ array of pointers,
    we should make sure to copy it so that we can access it later on when
    doing the deep copy via setenv().
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65470

 src/setproctitle.c | 43 ++++++++++++++++++++++++++++++++++---------
 1 file changed, 34 insertions(+), 9 deletions(-)

commit e084ce3fa75d38067c3f0b2a4c73410070742238
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 7 04:46:29 2013 +0200

    Specify setproctitle_stub() signature manually if typeof is missing
    
    Do not stop exporting the function in the version node even if typeof
    is not available, as that would break ABI.

 src/setproctitle.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

commit 50e4c55afddad7f1001c80f3682ea7400a808747
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jun 8 17:55:19 2013 +0200

    Try to check if setproctitle() constructor got passed arguments

 src/setproctitle.c | 4 ++++
 1 file changed, 4 insertions(+)

commit 6faea4d2a0eb7782187dd6d92749a0813e7405bd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 29 02:23:56 2013 +0200

    Force setproctitle() into .init_array section
    
    The GNU .init_array support is an extension over the standard System V
    ABI .init_array support, which passes the main() arguments to the init
    function.
    
    This support comes in three parts. First the dynamic linker (from glibc)
    needs to support it. Then function pointers need to be placed in the
    section, for example by using __attribute__((constructor)), that the
    compiler (gcc or clang for example) might place in section .ctors and
    the linker (from binutils) will move to .init_array on the output
    object, or by placing them directly into .init_array by the compiler
    when compiling. If this does not happen and the function pointers end
    up in .ctors, then they will not get passed the main() arguments, which
    we do really need in this case.
    
    But this relies on recent binutils or gcc having native .init_array
    support, and not having it disabled through --disable-initfini-array.
    
    To guarantee we get the correct behaviour, let's just place the function
    pointer in the .init_array section directly, so we only require a recent
    enough glibc.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65029

 configure.ac       | 45 +++++++++++++++++++++++++++++++++++++++++++++
 src/setproctitle.c | 12 ++++++++++--
 2 files changed, 55 insertions(+), 2 deletions(-)

commit 367e036537109f8955221123af0569329868edf1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jun 8 08:15:21 2013 +0200

    test: Try setting and getting an environment variable after setproctitle()

 COPYING          | 2 +-
 test/proctitle.c | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

commit dc8b09783f429a7d1c6d69f1fec8e55b943577f4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu May 30 04:09:25 2013 +0200

    build: Ignore automake 1.13+ test suite generated files

 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

commit 46633647838505c22fa4a5523a3013c3470e3861
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 27 06:52:05 2013 +0200

    Release libbsd 0.5.1

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit df5aebd7e139e588c67c1f299bbcc6231cab0ab7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 27 06:49:57 2013 +0200

    test: Mark a literal integer as long long
    
    This fixes build failures on 32-bit architectures.

 test/humanize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9587882316f91ab880bf0ad9df2f0f98f2747f7c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 21 04:34:34 2013 +0200

    Release libbsd 0.5.0

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 01f146c28e3c0d4dd9844c7b454b37aa4d12f45b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 27 04:41:58 2013 +0200

    build: Handle the ChangeLog as a distributed-only file
    
    The ChangeLog file is distributed, and cannot be regenerated outside
    of the git repository, so do not remove it in DISTCLEANFILES, and move
    the generation code into dist-hook, which also avoids unnecessary
    computation during normal builds.

 Makefile.am | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

commit 509841b53319068d8e943d5584288ad2042e3b3c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 25 15:44:57 2013 +0200

    build: Use AM_V_at for mkdir

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 06f0585c4855fac5f219ba0d99fbaf0f3e8f65e1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 21 10:31:59 2013 +0200

    build: Compress the distribution tarball with xz instead of gzip

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 7c4caa679a5065d1a34608c583c479a6e66a37e3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 25 15:36:11 2013 +0200

    Fix comparison between signed and unsigned integer compiler warnings

 src/heapsort.c  | 2 +-
 src/nlist.c     | 3 ++-
 src/radixsort.c | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

commit 30349f8922db271043ec334a719f9910f79eecf1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 25 15:35:39 2013 +0200

    Update radixsort module from NetBSD
    
    Merge some interesting changes.

 man/radixsort.3 | 23 ++++++++++++-------
 src/radixsort.c | 68 +++++++++++++++++++++++++--------------------------------
 2 files changed, 45 insertions(+), 46 deletions(-)

commit 96a2dae3525ba28cea954d6d445bb2d03c0cff66
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 25 15:31:45 2013 +0200

    Update setmode module from NetBSD
    
    Merge some interesting changes.

 man/setmode.3 | 91 +++++++++++++++++++++++++++++++++++++++++----------------
 src/setmode.c | 94 +++++++++++++++++++++++++++++++++++++----------------------
 2 files changed, 125 insertions(+), 60 deletions(-)

commit a4812cdf240fac5d0461288094cc94e03e030272
Author: Casper Dik <casper.dik@oracle.com>
Date:   Fri Mar 15 01:13:58 2013 +0100

    Fix getpeereid() compilation on Solaris
    
    The code in getpeereid() is unlikely to compile as ucred_t is an opaque
    struct (ucred_t * works but ucred_t does not). Either you need to give
    a pointer initialized to NULL and getpeerucred() allocates a new ucred
    or you call it with an allocated ucred as in this patch.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 src/getpeereid.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit d3a09e1cf4daa6f8a2eededa55ff4c812e11e858
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Dec 27 11:19:20 2012 +0100

    Switch dehumanize_number() to use expand_number()
    
    The function is a duplicate of expand_number(), but covering less
    prefixes and with a slightly different function signature.
    
    Spotted-by: Peter da Silva <resuna@gmail.com>

 COPYING                 |   2 +-
 src/dehumanize_number.c | 124 ++++++++++++++----------------------------------
 2 files changed, 37 insertions(+), 89 deletions(-)

commit 330b569fe3333f91eb7c0192ab0c5af7e15c616f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun May 26 04:34:57 2013 +0200

    test: Add new humanize unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  2 ++
 test/humanize.c  | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)

commit 8c26c40ad2cc606a3ac1a4f7ea50d72864d21f17
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Nov 27 14:23:26 2012 +0100

    test: Add setproctitle() unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  2 ++
 test/proctitle.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

commit e9933255d4234a7d16f5e2f261376dd10747d469
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 25 17:11:53 2013 +0200

    Make setproctitle() available in 0.2 and 0.5 version nodes
    
    Make the 0.5 version the default, so that code wanting the actual
    implemented version can get a proper versioned depdendency. For code
    linked against the old version, make it available as an alias.

 configure.ac       |  1 +
 src/libbsd.map     |  5 +++--
 src/setproctitle.c | 12 +++++++++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

commit c984dacd65920b2f48cf0f4e579030488799f496
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Nov 27 14:24:13 2012 +0100

    Implement sendmail semantics for setproctitle()
    
    Prefix the title with "progname: ", and skip it if the format string
    starts with '-' (which gets skipped on output too).

 src/setproctitle.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

commit 35785f8dd1be73ef8e08c18a88e77e00fe332b6c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 25 21:10:53 2012 +0100

    Modify setproctitle() to conform to project coding style
    
    Use local getprogname()/setprogname() instead of reimplementing them
    locally. Use clearenv() if available, not just on glibc. Use bool
    instead of _Bool. Use paranthesis on sizeof. Fold the SPT_MIN macro
    into spt_min(). Make spt_init() static. Avoid unnecessary gotos.

 COPYING            |   1 +
 configure.ac       |   2 +-
 src/setproctitle.c | 219 ++++++++++++++++++++++++-----------------------------
 3 files changed, 99 insertions(+), 123 deletions(-)

commit 2a0260d08c5f9ecc43fef99c4e180c0d977deba5
Author: William Ahern <william@25thandClement.com>
Date:   Wed Nov 28 11:09:02 2012 +0100

    Add a setproctitle() implementation
    
    Taken from libnostd.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING            |  23 +++++
 src/setproctitle.c | 284 +++++++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 279 insertions(+), 28 deletions(-)

commit f8d52ead5e913a74a44351f7a805987bfda0ac18
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Nov 23 18:33:23 2012 +0100

    Add x32 support to nlist()

 src/local-elf.h | 4 ++++
 1 file changed, 4 insertions(+)

commit cf683a275a13c2d8bd0ebc9a5953bb974aba3fae
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Nov 23 18:32:35 2012 +0100

    Add arm64 (aka aarch64) to nlist()

 src/local-elf.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

commit 7196b4dccaaa796dd96358162fdf143393162a8d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu May 23 02:05:19 2013 +0200

    test: Add new fgetln() and fgetwln() unit test

 test/.gitignore  |   1 +
 test/Makefile.am |   3 +
 test/fgetln.c    | 263 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 267 insertions(+)

commit a97ce513e031b29a47965b740be14fb9a84277fc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Nov 23 21:19:45 2012 +0100

    Add new fgetwln() function
    
    Man page taken from FreeBSD.

 include/bsd/wchar.h                  |   2 +
 man/Makefile.am                      |   1 +
 man/fgetwln.3                        | 117 +++++++++++++++++++++++++++++++++++
 src/Makefile.am                      |   1 +
 include/bsd/wchar.h => src/fgetwln.c |  70 ++++++++++++++++-----
 src/libbsd.map                       |   1 +
 6 files changed, 178 insertions(+), 14 deletions(-)

commit ee0489eb2bd09298f547c57a59f28dcd094d781e
Author: Strake <strake888@gmail.com>
Date:   Tue Aug 7 08:44:30 2012 -0500

    Add new fparseln() function
    
    Taken from NetBSD.
    
    [guillem@hadrons.org:
     - Import from NetBSD instead of FreeBSD to get a 3-clause BSD license,
       instead of a 4-clause one.
     - Define compatibility macros.
     - Change library from libc to libbsd and header in man page.
     - Add copyright information to COPYING.
     - Add symbol to map file. ]
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING               |   3 +
 include/bsd/libutil.h |  13 +++
 man/Makefile.am       |   1 +
 man/fparseln.3        | 149 ++++++++++++++++++++++++++++++++
 src/Makefile.am       |   1 +
 src/fparseln.c        | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libbsd.map        |   2 +
 7 files changed, 399 insertions(+)

commit cb7bc0d85ea9ec5eb8e9c922c2ad0ea7498620e9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 25 22:09:43 2012 +0100

    Add file buffer pool support to fgetln()
    
    This avoids buffer overwrites during concurrent or intermixed calls to
    fgetln() when using more than one different stream (currently 32), which
    the original interface supports natively by using an internal buffer
    from the FILE structure. Although this workaround is rudimentary, it
    should cover most of the theoretically problematic cases.

 COPYING      |  2 +-
 src/fgetln.c | 30 +++++++++++++++++++++++++-----
 2 files changed, 26 insertions(+), 6 deletions(-)

commit 1be0bdb2c98be6ce1126fd2b400060198c78a8e3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Nov 25 21:13:38 2012 +0100

    Add new strnstr() function
    
    Taken from FreeBSD.

 COPYING              |   4 ++
 include/bsd/string.h |   1 +
 man/Makefile.am      |   1 +
 man/strnstr.3        | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am      |   1 +
 src/libbsd.map       |   2 +
 src/strnstr.c        |  65 ++++++++++++++++++++++++++++++
 7 files changed, 184 insertions(+)

commit ff0d700df095a4eb2091ccf197d213e43a89edd4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Nov 23 17:16:43 2012 +0100

    Add new wcslcat() and wcslcpy() functions
    
    Taken from FreeBSD.

 include/Makefile.am |  1 +
 include/bsd/wchar.h | 45 ++++++++++++++++++++++++++++++++
 man/Makefile.am     |  2 ++
 man/wcslcat.3       |  1 +
 man/wcslcpy.3       | 67 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am     |  2 ++
 src/libbsd.map      |  5 ++++
 src/wcslcat.c       | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/wcslcpy.c       | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 267 insertions(+)

commit 386276487229a5ee0635130e4886f1d89b1c31d0
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 21 04:13:55 2013 +0200

    Coalesce identical BSD-2-clause licenses

 COPYING | 163 ++++++----------------------------------------------------------
 1 file changed, 13 insertions(+), 150 deletions(-)

commit 918a4dba4a35fdc241381a2ff9f1e697653adf88
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 27 09:15:15 2012 +0200

    Release libbsd 0.4.2

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 444bd1fbb8f53047b1ee2b69dc4a8eb65537bc68
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 21 10:16:14 2012 +0200

    man: Use minus signs and hyphens consistently
    
    Any string that can be copy & pasted into a terminal, for example,
    needs to correctly use minus signs (escaped dashes), instead of the
    default hyphen.

 man/flopen.3  | 2 +-
 man/pidfile.3 | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

commit 1d69ae1cd56855b0e9cf5c40f24854f77d9009ca
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jun 4 05:47:26 2012 +0200

    man: Recode flopen(3) to UTF-8
    
    Spotted-by: Eric Smith <eric@brouhaha.com>

 man/flopen.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 14524b545d7b3f3f8c01405e9ef5ba45d438424c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jun 3 07:39:42 2012 +0200

    build: Set default compiler variables from configure
    
    This centralizes the setting so there's no duplication anymore,
    makes sure the user supplied variables are never overridden, and
    are only set when using gcc.
    
    Reported-by: Samuli Suominen <ssuominen@gentoo.org>

 configure.ac     | 8 ++++++++
 src/Makefile.am  | 3 ---
 test/Makefile.am | 3 ---
 3 files changed, 8 insertions(+), 6 deletions(-)

commit c21d788fea18ddb8f6eb309c73783df5ccd6bf53
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 1 08:20:37 2012 +0200

    Release libbsd 0.4.1

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit fdcae5770799b232d50bf311d69c375f730a1ed3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 1 08:17:42 2012 +0200

    build: Set runtimelibdir to libdir
    
    This makes sure the install-exec-hook under src works as expected even
    when no runtimelibdir was specified, otherwise the symlinks end up
    pointing to non-existing targets.
    
    Reported-by: Ryan Mullen <rmmullen@gmail.com>

 src/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

commit e9e4a60d7e18c103be6df33cbbeaf249578a1ac5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 1 08:15:00 2012 +0200

    build: Use MKDIR_P variable instead of literal «mkdir -p»

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 309c82a016d5cfc84d71066f21edc7cd7f5ab95d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 29 04:38:07 2012 +0200

    Release libbsd 0.4.0

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit cd67cb14173b4329d4cb8c74ea88240e5e4bf2c3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue May 29 07:17:46 2012 +0200

    Use implicit <md5.h> from overlay instead explicit <bsd/md5.h>
    
    This was assuming an installed <bsd/md5.h> on the system, due to the
    build system not including -Iinclude/ anymore.
    
    Regression introduced in commit 901ed630fc64fca828e031bc8fa6780db9f05db1.

 src/Makefile.am | 2 +-
 src/hash/md5.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 1b5b1cd52ab0209d6213f02ba62fbb959d534fd2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Apr 24 04:20:58 2012 +0200

    Move mdX.3 man page to section 3bsd
    
    This makes sure there will be no collisions on systems where a mdX.3
    provided by a third party is already present.

 man/Makefile.am         | 4 ++--
 man/{mdX.3 => mdX.3bsd} | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

commit ddefaae330f95d89cd1046bdde43d51fd0783c1b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Apr 24 04:05:48 2012 +0200

    Do not quote man page titles

 man/flopen.3   | 2 +-
 man/pidfile.3  | 2 +-
 man/strtonum.3 | 2 +-
 man/tree.3     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

commit e7f3976088b038687e54a2df09cb9e3332af42df
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Mar 23 10:31:42 2012 +0100

    Add email address to my name

 COPYING                  | 2 +-
 include/bsd/bsd.h        | 2 +-
 include/bsd/err.h        | 2 +-
 include/bsd/getopt.h     | 2 +-
 include/bsd/nlist.h      | 2 +-
 include/bsd/stdio.h      | 2 +-
 include/bsd/stdlib.h     | 2 +-
 include/bsd/string.h     | 2 +-
 include/bsd/sys/cdefs.h  | 2 +-
 include/bsd/sys/endian.h | 2 +-
 include/bsd/sys/poll.h   | 2 +-
 include/bsd/unistd.h     | 2 +-
 src/fgetln.c             | 2 +-
 src/fpurge.c             | 2 +-
 src/getpeereid.c         | 2 +-
 src/local-elf.h          | 2 +-
 src/setproctitle.c       | 2 +-
 17 files changed, 17 insertions(+), 17 deletions(-)

commit e59ac2c96c4f9299912868cd86fa650639050f78
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Mar 23 10:11:57 2012 +0100

    Clarify that the 4-clause BSD licenses are only for man pages

 COPYING | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit 7cfa7e4304756151b7987a62fb304300f1205a42
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jan 12 19:13:16 2012 +0100

    Add new man page for tree(3)
    
    Taken from FreeBSD.

 man/Makefile.am |   1 +
 man/tree.3      | 504 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 505 insertions(+)

commit 7620fef70bac36435dae756554f575826cb89f8b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jan 12 20:56:24 2012 +0100

    Remove UC Berkeley advertising clause
    
    As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.

 man/bitstring.3 | 4 ----
 man/queue.3bsd  | 4 ----
 2 files changed, 8 deletions(-)

commit 08139dd50e6b728a1d9052e852799f60a7f8482d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jan 12 19:13:16 2012 +0100

    Add new man pages for bitstring(3) and queue(3)
    
    Taken from FreeBSD.

 man/Makefile.am |    2 +
 man/bitstring.3 |  190 ++++++++++
 man/queue.3bsd  | 1044 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 1236 insertions(+)

commit d90ce079f727a8595dbc953e62dbc119e3914c53
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 14 14:18:57 2011 +0200

    Add new man pages for getprogname(3) and setprogname(3)
    
    Taken from FreeBSD.

 COPYING           | 32 +++++++++++++++++++
 man/Makefile.am   |  2 ++
 man/getprogname.3 | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 man/setprogname.3 |  1 +
 4 files changed, 130 insertions(+)

commit c1d086c224c1c98832d448a3e817767530d22e71
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 14 14:18:57 2011 +0200

    Add new man page for setproctitle(3)
    
    Taken from FreeBSD.

 COPYING            |  21 +++++++++
 man/Makefile.am    |   1 +
 man/setproctitle.3 | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 146 insertions(+)

commit e37293a18a55e5c3be33725527f65ccb4025ca6c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jan 12 18:16:55 2012 +0100

    Add <bitstring.h> for compatibility with NetBSD and OpenBSD

 include/Makefile.am     |  1 +
 include/bsd/bitstring.h | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

commit 34bf1068a27add441a0d6ef90ead4ed644c71c80
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Mar 23 10:43:33 2012 +0100

    test: Add a unit test for endian encoder/decoder

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/endian.c    | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+)

commit 4eab0cc35130d182e5ab54ab13a0c9a0a8405886
Author: Robert Millan <rmh@debian.org>
Date:   Tue Jan 3 05:29:36 2012 +0100

    Add inline endian encoding/decoding functions
    
    Taken from FreeBSD.
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING                  |  26 +++++++++
 include/bsd/sys/endian.h | 136 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 162 insertions(+)

commit 752997462a922402531c92b22dd7ab5af352f408
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 08:58:01 2012 +0100

    Base getprogname() on program_invocation_short_name presence instead of glibc

 configure.ac   | 9 +++++++++
 src/progname.c | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

commit d5d91869372f50d755cfa66803a52eece02dee43
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 09:08:35 2012 +0100

    Base fpurge() implementation on __fpurge presence instead of glibc

 configure.ac | 2 +-
 src/fpurge.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit f8e80630796cd65ada70f9bf49a8737cfcd444ca
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 08:40:18 2012 +0100

    Base fgetln() implementation on getline presence instead of glibc

 configure.ac | 2 +-
 src/fgetln.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 786d1439207b689fb0219ab38f535891ec90dbf1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Mar 24 20:37:55 2012 +0100

    test: Add new overlay unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/overlay.c   | 23 +++++++++++++++++++++++
 3 files changed, 25 insertions(+)

commit 866f73af914ba72815cb94d6c42ba4620fb22350
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 05:39:22 2012 +0100

    Move overlay inclusions outside of header protection
    
    Glibc tends to include standard headers with special definitions
    that make few declarations or macros visible, this stomps over the
    overlay #include_next <> logic.
    
    Based-on-patch-by: Robert Millan <rmh@debian.org>

 include/bsd/err.h        | 12 ++++++------
 include/bsd/getopt.h     |  5 -----
 include/bsd/stdio.h      | 12 ++++++------
 include/bsd/stdlib.h     | 14 +++++++-------
 include/bsd/string.h     | 12 ++++++------
 include/bsd/sys/cdefs.h  |  6 +++---
 include/bsd/sys/endian.h |  6 +++---
 include/bsd/sys/poll.h   |  6 +++---
 include/bsd/unistd.h     | 12 ++++++------
 9 files changed, 40 insertions(+), 45 deletions(-)

commit f71d8e050178ab23ab9b06ee4ccab901ce4284bf
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Mar 21 04:10:37 2012 +0100

    Remove bogus deprecation warning from <getopt.h>

 include/bsd/getopt.h | 1 -
 1 file changed, 1 deletion(-)

commit 0b96e1a218b700448adf3c016ab25c11f207f6f6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 07:32:53 2012 +0100

    Remove deprecated compatibility includes in headers

 include/bsd/bsd.h    |  5 -----
 include/bsd/stdlib.h | 11 -----------
 include/bsd/string.h |  9 ---------
 3 files changed, 25 deletions(-)

commit 109cafb3932c5c74500e1f53e54059670a173cfb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 07:32:37 2012 +0100

    Remove deprecated headers

 include/Makefile.am   |  8 --------
 include/bsd/cdefs.h   | 42 ------------------------------------------
 include/bsd/inet.h    | 38 --------------------------------------
 include/bsd/ip_icmp.h | 42 ------------------------------------------
 include/bsd/queue.h   | 42 ------------------------------------------
 include/bsd/random.h  | 42 ------------------------------------------
 include/libutil.h     | 38 --------------------------------------
 include/nlist.h       | 38 --------------------------------------
 include/vis.h         | 38 --------------------------------------
 9 files changed, 328 deletions(-)

commit 64348583148e2ae3b97e27916b90bbbe0b74461e
Author: Robert Millan <rmh@debian.org>
Date:   Sat Dec 31 04:30:48 2011 +0100

    Add new expand_number() function
    
    Taken from FreeBSD.
    
    [guillem@hadrons.org:
     - Include <stdint.h> in <bsd/libutil.h>. ]
    
    Signed-off-by: Guillem Jover <guillem@hadrons.org>

 COPYING               |  27 ++++++++++++++
 include/bsd/libutil.h |   2 +
 man/Makefile.am       |   1 +
 man/expand_number.3   |  87 +++++++++++++++++++++++++++++++++++++++++++
 src/Makefile.am       |   1 +
 src/expand_number.c   | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libbsd.map        |   1 +
 7 files changed, 220 insertions(+)

commit 943939d0e57257c83a8113102eb9e9703963cc5c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 31 08:39:44 2011 +0100

    Add new closefrom() function
    
    Code taken from sudo, man page from FreeBSD.

 COPYING              |  30 ++++++++++++-
 configure.ac         |  10 ++++-
 include/bsd/unistd.h |   2 +
 man/Makefile.am      |   1 +
 man/closefrom.3      |  54 +++++++++++++++++++++++
 src/Makefile.am      |   1 +
 src/closefrom.c      | 122 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/libbsd.map       |   4 ++
 8 files changed, 222 insertions(+), 2 deletions(-)

commit 3d614131b598e52b34c487866dae4853df5ec86a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 31 06:01:27 2011 +0100

    Base errc() and warnc() on vwarnc() and verrc() respectively

 src/err.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

commit 87232260404f10c6884756796306f270a527628e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 6 16:29:26 2011 +0200

    Use system __progname variable in progname module if available

 configure.ac   | 9 +++++++++
 src/progname.c | 4 ++++
 2 files changed, 13 insertions(+)

commit b5cc17d66498c3da0aa862a517f630b4aa5d5dc6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jul 5 23:27:31 2011 +0200

    Use getexecname() if available for getprogname()
    
    This function is present on Solaris.

 configure.ac   | 1 +
 src/progname.c | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

commit abf14c3940a5ec08bb9fce9ddfb7375309a4d97f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Mar 24 20:37:55 2012 +0100

    test: Add new headers unit test

 test/.gitignore  |  1 +
 test/Makefile.am |  1 +
 test/headers.c   | 25 +++++++++++++++++++++++++
 3 files changed, 27 insertions(+)

commit 23973e2221628ba038119957543a49d72c8376d7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Mar 23 10:43:33 2012 +0100

    build: Add a test suite infrastructure

 Makefile.am      |  2 +-
 configure.ac     |  1 +
 test/Makefile.am | 16 ++++++++++++++++
 3 files changed, 18 insertions(+), 1 deletion(-)

commit 980f04f77b7ddfcd047ef77b30677b678bebf711
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 08:58:52 2012 +0100

    build: Do not define already defined _GNU_SOURCE
    
    The macro is defined by configure on config.h which is now implicitly
    included by all source files.

 src/Makefile.am | 2 +-
 src/fpurge.c    | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

commit 8d2f12d7f032312dd509599a867296059d5bfef7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jan 3 08:45:05 2012 +0100

    build: Include <config.h> through -include for all source files

 src/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

commit 88004b30ff173caac5d76f6d65750bb4144f3cec
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 31 07:31:47 2011 +0100

    build: Set -Wno-unused-parameter to default CFLAGS

 src/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit dcaa93d9843d6e0ac77c48541036a69bc4cadd21
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 17 11:13:04 2010 +0100

    build: Switch to autotools

 .gitignore          |  13 +++
 Makefile            | 237 ----------------------------------------------------
 Makefile.am         |  19 +++++
 autogen             |   5 ++
 configure.ac        |  50 +++++++++++
 get-version         |   3 +-
 include/Makefile.am |  31 +++++++
 man/Makefile.am     |  45 ++++++++++
 src/Makefile.am     |  85 +++++++++++++++++++
 9 files changed, 250 insertions(+), 238 deletions(-)

commit 0aa777f47e6ed96c963cc6de4aee7e78f8f9b07f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 31 07:35:52 2011 +0100

    Move .pc and .map files to src/

 Makefile                                         | 6 +++---
 libbsd-overlay.pc.in => src/libbsd-overlay.pc.in | 0
 libbsd.map => src/libbsd.map                     | 0
 libbsd.pc.in => src/libbsd.pc.in                 | 0
 4 files changed, 3 insertions(+), 3 deletions(-)

commit 540ab03b1802bdad34999a5b5042d1b476588e39
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 31 06:50:40 2011 +0100

    Move man pages to man/

 Makefile                            | 6 +++---
 {src => man}/.gitignore             | 0
 {src => man}/arc4random.3           | 0
 {src => man}/arc4random_addrandom.3 | 0
 {src => man}/arc4random_buf.3       | 0
 {src => man}/arc4random_stir.3      | 0
 {src => man}/arc4random_uniform.3   | 0
 {src => man}/dehumanize_number.3    | 0
 {src => man}/fgetln.3               | 0
 {src => man}/flopen.3               | 0
 {src => man}/fmtcheck.3             | 0
 {src => man}/getmode.3              | 0
 {src => man}/getpeereid.3           | 0
 {src => man}/heapsort.3             | 0
 {src => man}/humanize_number.3      | 0
 {src => man}/mdX.3                  | 0
 {src => man}/mergesort.3            | 0
 {src => man}/nlist.3                | 0
 {src => man}/pidfile.3              | 0
 {src => man}/radixsort.3            | 0
 {src => man}/readpassphrase.3       | 0
 {src => man}/reallocf.3             | 0
 {src => man}/setmode.3              | 0
 {src => man}/sradixsort.3           | 0
 {src => man}/strlcat.3              | 0
 {src => man}/strlcpy.3              | 0
 {src => man}/strmode.3              | 0
 {src => man}/strtonum.3             | 0
 {src => man}/unvis.3                | 0
 {src => man}/vis.3                  | 0
 30 files changed, 3 insertions(+), 3 deletions(-)

commit 93321224f66d65acfade35305c454d5887fc9f07
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Dec 11 07:57:05 2011 +0100

    Rename version script from Versions to libbsd.map

 Makefile               | 2 +-
 Versions => libbsd.map | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

commit 2fb7200d4505dbd4ec44c9937e86652a30eb782e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Oct 23 19:27:44 2011 +0200

    Fix typos in source comments
    
    Found by codespell.

 src/heapsort.c | 2 +-
 src/nlist.c    | 6 +++---
 src/pidfile.c  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

commit 0acd86f6eb1637b54911428d067e15c9a414c883
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jul 5 21:01:57 2011 +0200

    build: Use -isystem instead of -I

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 901ed630fc64fca828e031bc8fa6780db9f05db1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jul 5 21:01:18 2011 +0200

    build: Do not add -Iinclude/ to MK_CPPFLAGS
    
    The source code should not be using any of the headers there.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 059f89ca95991d5570980846020385f8947be60e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Jul 5 20:59:04 2011 +0200

    Add missing semicolon to bsd_getopt() declaration
    
    Accidentally lost in commit 4a6303ba3b64504ab0077b9cfebd2a4b918d531d.

 include/bsd/unistd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 4a6303ba3b64504ab0077b9cfebd2a4b918d531d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 8 02:10:38 2011 +0200

    Constify bsd_getopt(3) arguments
    
    This matches the standard declaration for getopt(3).

 include/bsd/unistd.h | 2 +-
 src/bsd_getopt.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 7446f029b52f15b318402c3827802cdf31727566
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 2 19:16:57 2011 +0200

    Release libbsd 0.3.0

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit e80d338b180e499ccfa92a03e0a71b9d7abfb382
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jun 2 19:14:44 2011 +0200

    Add a COPYING file to ease the distributors work
    
    This file includes all the copyright and license notices from the source
    code in a single place.

 COPYING | 444 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 444 insertions(+)

commit b891772ad6c26a30f4ae0e1d3ead306c2eab6fd1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun May 29 02:49:14 2011 +0200

    Remove blank lines at EOF

 Makefile              | 1 -
 README                | 1 -
 Versions              | 1 -
 get-version           | 1 -
 include/bsd/cdefs.h   | 1 -
 include/bsd/inet.h    | 1 -
 include/bsd/ip_icmp.h | 1 -
 include/bsd/nlist.h   | 1 -
 include/bsd/queue.h   | 1 -
 include/bsd/random.h  | 1 -
 src/fgetln.c          | 1 -
 src/local-elf.h       | 1 -
 src/setproctitle.c    | 1 -
 13 files changed, 13 deletions(-)

commit b0eb19970a2953e4f689e4d7584e78595ef93622
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 28 11:40:36 2011 +0200

    Move bsd_getopt() from <bsd/getopt.h> to <bsd/unistd.h>
    
    Deprecate <bsd/getopt.h>.

 include/bsd/getopt.h | 19 ++++---------------
 include/bsd/unistd.h | 10 ++++++++++
 2 files changed, 14 insertions(+), 15 deletions(-)

commit 0bf3d3913fe2adb5974add44f93a5de78bd06710
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 28 10:39:54 2011 +0200

    Include the correct deprecated headeres when using the overlay

 include/bsd/cdefs.h   | 4 ++++
 include/bsd/ip_icmp.h | 4 ++++
 include/bsd/queue.h   | 4 ++++
 include/bsd/random.h  | 4 ++++
 include/bsd/stdlib.h  | 5 +++++
 include/bsd/string.h  | 4 ++++
 6 files changed, 25 insertions(+)

commit 913cdd91b1d696e02dff22273b7721d8dad4bf2a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 28 06:35:18 2011 +0200

    Do not use the same header inclusion protector for <nlist.h> and <bsd/nlist.h>
    
    Regression introduced in commit f7caf2b30da93d46528ec706dffaf5cbde5266d9.

 include/nlist.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 200eeb1265ec50ef54660d054f41af71c49e57fc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 21:58:20 2011 +0200

    Add LIBBSD_DISABLE_DEPRECATED to deprecated headers
    
    When enabled this will make the inclusion of deprecated headers a
    fatal error so that it's easier to spot.

 include/bsd/cdefs.h   | 4 ++++
 include/bsd/inet.h    | 4 ++++
 include/bsd/ip_icmp.h | 4 ++++
 include/bsd/queue.h   | 4 ++++
 include/bsd/random.h  | 4 ++++
 include/libutil.h     | 4 ++++
 include/nlist.h       | 4 ++++
 include/vis.h         | 4 ++++
 8 files changed, 32 insertions(+)

commit fbd622971d0a22dd94cf23c93dab72f5c6a42bf6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 22:11:28 2011 +0200

    Condense and clarify header deprecation warnings
    
    Mention the possibility of using libbsd-overlay.pc.

 include/bsd/cdefs.h   | 2 +-
 include/bsd/inet.h    | 2 +-
 include/bsd/ip_icmp.h | 2 +-
 include/bsd/queue.h   | 2 +-
 include/bsd/random.h  | 2 +-
 include/libutil.h     | 2 +-
 include/nlist.h       | 2 +-
 include/vis.h         | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

commit 755d86be011bd3fc3edb575316daed1a641ed7d4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 21:39:14 2011 +0200

    Rename LIBBSD_CLEAN_INCLUDES to LIBBSD_DISABLE_DEPRECATED

 Makefile             | 2 +-
 include/bsd/bsd.h    | 2 +-
 include/bsd/stdlib.h | 2 +-
 include/bsd/string.h | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

commit cd4996cebe5c57120b504630832441038211f7b7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 21:23:18 2011 +0200

    Namespace header protector in <bsd/sys/cdefs.h> with LIBBSD_SYS_

 include/bsd/sys/cdefs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit a7dd4457f5acd43452d9aada135314c3c62eac29
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 21:13:18 2011 +0200

    Add new <bsd/sys/poll.h> header

 Makefile               |  1 +
 include/bsd/sys/poll.h | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

commit 8be40010cea2bc38cd8a4db9acd9552836d2b4d3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 27 20:37:10 2011 +0200

    Add new <bsd/sys/endian.h> header

 Makefile                 |  1 +
 include/bsd/sys/endian.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

commit e1f2a6f86906e2dd308a280ab832349eff4fe397
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 21:27:58 2011 +0200

    Add new __packed, __aligned and __nonnull attributes

 include/bsd/sys/cdefs.h | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

commit 87dd203c26f2828de9506da5a0073aa0f6593c9e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 21:27:12 2011 +0200

    Define __dead2 and __pure2 to actual gcc attributes if possible

 include/bsd/sys/cdefs.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

commit de2062873f2b90bb8d09d213931ee1150ffd6b77
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 21:25:54 2011 +0200

    Define <sys/cdefs.h> attributes conditional to the supported gcc version

 include/bsd/sys/cdefs.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

commit 71e5db4cde2f194cc9a93d3d2e1b524bf11e7c01
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 21:02:40 2011 +0200

    Define _SYS_CDEFS_H and _SYS_CDEFS_H after including <sys/cdefs.h>
    
    This makes sure the “standard” inclusion protectors are in place, as at
    least some FreeBSD kernel headers expect these to be defined to do some
    sanity checks.

 include/bsd/sys/cdefs.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

commit 9d042171749b94510b071c9e800ed0d2a4e95bb9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 07:38:36 2011 +0200

    Map getopt to bsd_getopt if we are using the overlay
    
    This will ensure the code can safely and correctly use optreset
    transparently.

 include/bsd/getopt.h | 5 +++++
 src/bsd_getopt.c     | 6 +++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

commit 17a9a8472ec3f9a40ab2fcf2e21f1fa9468e0288
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 25 07:36:19 2011 +0200

    Rename transparent support to overlay
    
    This affects the pkg-config file now named libbsd-overlay.pc, and the
    macro to use the overlay LIBBSD_OVERLAY.

 Makefile                                         | 10 +++++-----
 include/bsd/err.h                                |  4 ++--
 include/bsd/getopt.h                             |  4 ++--
 include/bsd/stdio.h                              |  2 +-
 include/bsd/stdlib.h                             |  4 ++--
 include/bsd/string.h                             |  4 ++--
 include/bsd/sys/cdefs.h                          |  4 ++--
 include/bsd/unistd.h                             |  4 ++--
 libbsd-transparent.pc.in => libbsd-overlay.pc.in |  4 ++--
 9 files changed, 20 insertions(+), 20 deletions(-)

commit 94fe901edabdfbafc602e4d194a21c5e0f372cba
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 14 18:12:48 2011 +0200

    Abort compilation if fgetln cannot be wrapped

 src/fgetln.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 28585a58bdd0308c516d2b1caee76977283942da
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 14 17:58:08 2011 +0200

    Add fpurge function

 Makefile                            |  1 +
 Versions                            |  2 ++
 include/bsd/stdio.h                 |  4 +++-
 include/bsd/stdio.h => src/fpurge.c | 47 +++++++++++++++++++++++++++----------
 4 files changed, 41 insertions(+), 13 deletions(-)

commit b36c59c0edbd1c215737f16d4bb83feb035d785a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 12:39:58 2011 +0100

    Conditionalize <time.h> inclusion from <bsd/bsd.h>
    
    This was added long time ago to fix some software which was implicitly
    depending on the header through some other header, and to avoid having
    to modify such software. Conditionalize it on LIBBSD_CLEAN_INCLUDES,
    so that buildability can be tested for its future removal.

 include/bsd/bsd.h | 2 ++
 1 file changed, 2 insertions(+)

commit 8b6a74775b918f203ceee3d70ca8b9f7e0256b5f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 12:38:42 2011 +0100

    Conditionalize temporary compatibility inclusions
    
    These inclusions were in place for backward compatibility purposes,
    when the headers were split so that code using them would not break.
    Make it possible for applications to disable them by defining
    LIBBSD_CLEAN_INCLUDES so that buildability can be tested and fixed
    before they get removed in a subsequent release.

 Makefile             | 4 +++-
 include/bsd/stdlib.h | 2 ++
 include/bsd/string.h | 2 ++
 src/vis.c            | 1 +
 4 files changed, 8 insertions(+), 1 deletion(-)

commit c594192bac39e8ec9487f729b22dc0037d58b8c5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat May 14 14:17:44 2011 +0200

    Correct library name in man pages

 src/heapsort.3  | 3 ++-
 src/radixsort.3 | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

commit 8478e57463db7a4f1b27d165d45de17c6d992ada
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 13:14:22 2011 +0100

    Update libbsd header references in man pages
    
    Point to the namespaced path for libbsd specific headers.

 TODO                  | 1 -
 src/arc4random.3      | 2 +-
 src/fgetln.3          | 2 +-
 src/flopen.3          | 2 +-
 src/fmtcheck.3        | 2 +-
 src/getpeereid.3      | 2 +-
 src/heapsort.3        | 2 +-
 src/humanize_number.3 | 2 +-
 src/mdX.3             | 2 +-
 src/nlist.3           | 2 +-
 src/pidfile.3         | 2 +-
 src/radixsort.3       | 2 +-
 src/readpassphrase.3  | 2 +-
 src/reallocf.3        | 2 +-
 src/setmode.3         | 2 +-
 src/strlcpy.3         | 2 +-
 src/strmode.3         | 2 +-
 src/strtonum.3        | 2 +-
 src/unvis.3           | 2 +-
 src/vis.3             | 2 +-
 20 files changed, 19 insertions(+), 20 deletions(-)

commit f7caf2b30da93d46528ec706dffaf5cbde5266d9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 11:07:30 2011 +0100

    Move all header files to /usr/include/bsd/ and deprecate /usr/include/
    
    First stage of the transition to avoid possible clashes with other
    software by moving out of the way the remaining headers from
    /usr/include/.
    
    At least nlist.h is known to cause file conflicts with some libelf
    implementations. libutil.h is not really complete and might cause
    confusion if software detects its availability w/o someone actually
    checking. And lastly vis.h is not known to cause any problem and it's
    complete, but better be safe than sorry.
    
    The compatibility headers will be removed in a later release.

 Makefile                    |  3 ++
 include/{ => bsd}/libutil.h |  0
 include/{ => bsd}/nlist.h   |  0
 include/{ => bsd}/vis.h     |  0
 include/libutil.h           | 78 ++++++++++----------------------------
 include/nlist.h             | 10 ++---
 include/vis.h               | 92 ++++++++++-----------------------------------
 7 files changed, 44 insertions(+), 139 deletions(-)

commit 520682e59647eadf697e6384021e6781164b11b0
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 14:04:57 2011 +0100

    Add support for transparent compilation
    
    This means that software being ported should not need to be modified in
    the usual case, as the libbsd headers will take over the standard
    namespace and fill the missing gaps, and include the system headers.
    
    To use this the new libbsd-transparent.pc file can be used through
    pkg-config, which should end up doing the right thing.

 Makefile                 |  7 +++++--
 include/bsd/err.h        |  8 +++++++-
 include/bsd/getopt.h     |  5 +++++
 include/bsd/stdio.h      |  5 +++++
 include/bsd/stdlib.h     |  9 +++++++++
 include/bsd/string.h     |  6 ++++++
 include/bsd/sys/cdefs.h  |  4 ++++
 include/bsd/unistd.h     |  6 ++++++
 libbsd-transparent.pc.in | 11 +++++++++++
 src/bsd_getopt.c         |  2 +-
 src/err.c                |  2 +-
 src/flopen.c             |  1 -
 src/progname.c           |  3 +--
 src/readpassphrase.c     |  2 +-
 14 files changed, 62 insertions(+), 9 deletions(-)

commit 4c01261f3963c51ac0ee0f2b539cbf9298e8cc26
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 14:15:43 2011 +0100

    Move each version symbol declaration into its own line

 Versions | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

commit 8a99226f16b3cf638d93b23a1c80f9df2d16fd0e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 23 14:01:06 2011 +0100

    Generalize pkg-config file handling
    
    Use a make pattern for the .pc rule to allow using more than one .pc
    file. And generalize the .gitignore entry.

 .gitignore | 2 +-
 Makefile   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 1497d34760d53777648f91b357762ba8bbb2d5ce
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 25 13:52:59 2011 +0100

    Initialize __progname to program_invocation_short_name
    
    As we do not have cooperation from the crt0 code to set __progname, we
    have to set it ourselves from getprogname() in case it's NULL. On GNU
    systems we can use program_invocation_short_name which is actually set
    on crt0.

 src/progname.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit 741eb5876341c0310fe485cc9dd3af75bc9f4ab9
Author: Kevin McCarthy <signals@gentoo.org>
Date:   Tue Feb 22 20:44:21 2011 +0100

    Add missing prototypes for arc4random_buf and arc4random_uniform
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=34511

 include/bsd/stdlib.h | 2 ++
 1 file changed, 2 insertions(+)

commit 9baf9640b9af3bbdb041703e684d3928263fb363
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 22 20:19:37 2011 +0100

    Add new <bsd/sys/bitstring.h> header
    
    Taken from FreeBSD.

 Makefile                    |   1 +
 include/bsd/sys/bitstring.h | 146 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 147 insertions(+)

commit 4b95e82a32f07ec80445dd4103103ebaa356c89b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 25 18:48:10 2011 +0100

    Add new radixsort and sradixsort functions
    
    Taken from FreeBSD.

 Makefile             |   3 +
 Versions             |   2 +
 include/bsd/stdlib.h |   4 +
 src/radixsort.3      | 160 +++++++++++++++++++++++++
 src/radixsort.c      | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/sradixsort.3     |   1 +
 6 files changed, 497 insertions(+)

commit c766e58acf3a894644291d21f9c98d322ef8cd11
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 25 18:25:17 2011 +0100

    Add man pages for heapsort and mergesort
    
    Taken from FreeBSD, originally as qsort.3 but qsort references stripped.

 Makefile        |   2 +
 src/heapsort.3  | 207 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/mergesort.3 |   1 +
 3 files changed, 210 insertions(+)

commit be6ab549869d5d6e0ab52eac52537963fa6f71c4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Feb 25 18:17:16 2011 +0100

    Add new mergesort function
    
    Taken from FreeBSD.

 Makefile             |   1 +
 Versions             |   2 +
 include/bsd/stdlib.h |   4 +-
 src/merge.c          | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 357 insertions(+), 1 deletion(-)

commit 5b19adfa82b49bdb9b46c857b618c181f238290b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 17 10:50:56 2010 +0100

    Add getpeereid function

 Makefile             |   2 +
 Versions             |   1 +
 include/bsd/unistd.h |   2 +
 src/getpeereid.3     | 138 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/getpeereid.c     | 132 ++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 275 insertions(+)

commit acb7c42d7c394acf9a59c14e5aaf4f43be309acb
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Fri Jul 30 08:00:41 2010 +0200

    Add reallocf function

 Makefile             |   2 +
 Versions             |   4 ++
 include/bsd/stdlib.h |   2 +
 src/reallocf.3       | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/reallocf.c       |  48 +++++++++++++++++++++++
 5 files changed, 163 insertions(+)

commit 06a60a166ab19000b024dc1f70880278c09d8bc3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 31 14:13:24 2010 +0100

    build: Use proper user variables during build
    
    To compile we need to use CPPFLAGS and CFLAGS, to link CFLAGS and
    LDFLAGS. Rename MK_CFLAGS to MK_CPPFLAGS as those are only relevant
    at compilation time.
    
    Reported-by: Eric Smith <eric@brouhaha.com>

 Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

commit 51863b6cf92883b6f2d58aa764b107e15d834b6f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 30 22:43:29 2010 +0100

    build: Use new AR variable instead of hardcoded command

 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 08afd5d4c9a8579edabc5539e7404677a4f3df71
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 30 22:42:00 2010 +0100

    build: Refactor COMPILER and LINK commands into new variables

 Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

commit 1f0b0b23cd0a215c575a4becf686e5e005732848
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 30 22:40:01 2010 +0100

    build: Use CCLD instead of hardcoded gcc for linking

 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 32d79b0310b6602e4846a5972bebde6b169945f3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 30 22:39:18 2010 +0100

    build: By default set CC to gcc

 Makefile | 2 ++
 1 file changed, 2 insertions(+)

commit cd730a02c36397e4b962271fa6d9119dc820dd4d
Author: Eric Smith <eric@brouhaha.com>
Date:   Sat Jan 30 22:13:18 2010 +0100

    build: Install shared library with 755 permission
    
    The Makefile should install the shared library with 755 permission
    rather than 644. That's standard practice, and required when building
    RPMs on Fedora to get a debuginfo package.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 11f2c32df2722a758f150fb3242d208904ffdacb
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 30 22:00:18 2010 +0100

    Fix setprogname to strip leading paths from progname

 src/progname.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

commit 30c794083f5211ecf82f5c3614f35a16a7e4d354
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu Jan 21 14:34:55 2010 +0100

    Make setprogname and getprogname arguments and return value const
    
    This is more correct as the strings are not going to be changed, and it
    matches the function signatures on other BSDs.
    
    Suggested-by: Aurelien Jarno <aurel32@debian.org>

 include/bsd/stdlib.h | 6 +++---
 src/progname.c       | 9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

commit ddebbd6792e5c7ae53fb96cdc46566fc843adaa5
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 12:04:03 2010 +0100

    Release libbsd 0.2.0

 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit abe0a4a7e6e0c8d9c7b8bdb55ade9535ec342578
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 11:02:13 2010 +0100

    Reformat code to KNF

 src/bsd_getopt.c | 13 ++++++-------
 src/err.c        | 46 ++++++++++++++++++++++++----------------------
 src/fgetln.c     |  2 +-
 src/progname.c   |  8 ++++----
 4 files changed, 35 insertions(+), 34 deletions(-)

commit 2872bfa15193c0b45bf7c212879533b96a8cc2fd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 01:41:27 2010 +0100

    Add vis and unvis man pages
    
    Taken from OpenBSD.

 Makefile    |   2 +
 src/unvis.3 | 198 +++++++++++++++++++++++++++++++++++++
 src/vis.3   | 321 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 521 insertions(+)

commit e544a41f62b223cb03c417d7b250557dbec58a3f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 01:37:18 2010 +0100

    Add dehumanize_number man page link

 Makefile                | 1 +
 src/dehumanize_number.3 | 1 +
 2 files changed, 2 insertions(+)

commit 7b3873bc1e80b9ddb3505b56735c713917b25945
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 01:35:27 2010 +0100

    Update vis and unvis modules from OpenBSD

 src/unvis.c |  7 ++++---
 src/vis.c   | 17 ++++-------------
 2 files changed, 8 insertions(+), 16 deletions(-)

commit 8103fe1486cdb95e4d985194cac79bc5940e82ce
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 01:33:07 2010 +0100

    Update strlcat and strlcpy from OpenBSD

 src/strlcat.c | 43 ++++++++++++-------------------------------
 src/strlcpy.3 | 52 +++++++++++++++++++---------------------------------
 src/strlcpy.c | 52 +++++++++++++++++-----------------------------------
 3 files changed, 48 insertions(+), 99 deletions(-)

commit d63e081303521c45baeaabd002c706196c51048e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 00:57:07 2010 +0100

    Add arc4random_buf and arc4random_uniform functions
    
    Update arc4random module from FreeBSD.

 Makefile                 |   2 +
 Versions                 |   3 +
 src/arc4random.3         |  28 ++++++-
 src/arc4random.c         | 195 +++++++++++++++++++++++++++++++++--------------
 src/arc4random_buf.3     |   1 +
 src/arc4random_uniform.3 |   1 +
 6 files changed, 167 insertions(+), 63 deletions(-)

commit 3fed78e5b08f78256e533788b4bcd6502b0949d7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 00:37:03 2010 +0100

    Replace setproctitle dummy macro with a function stub
    
    This way we can replace it later on with a real implementation so that
    applications can immediately benefit from it w/o the need to recompile
    them.

 Makefile                                   |  1 +
 Versions                                   |  2 ++
 include/bsd/sys/cdefs.h                    |  4 ----
 include/bsd/unistd.h                       |  2 ++
 include/bsd/unistd.h => src/setproctitle.c | 23 +++++++----------------
 5 files changed, 12 insertions(+), 20 deletions(-)

commit 2a81893cc028b40f7832bf033821a1aacfaaea68
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jan 10 00:10:21 2010 +0100

    Add pidfile functions
    
    Taken from FreeBSD.
    
    Remove MAXPATHLEN from ‘struct pidfh’ and allocate pf_path dynamically,
    as some systems do not have such limits. Use dev_t instead of __dev_t.
    Replace EDOOFUS with EINVAL.

 Makefile          |   2 +
 Versions          |   5 ++
 include/libutil.h |  12 +++
 src/pidfile.3     | 254 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/pidfile.c     | 255 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 528 insertions(+)

commit 98a2479f0ba02a0c54ff360aa5745ff5a6939b2e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 9 23:49:32 2010 +0100

    Add flopen function
    
    Taken from FreeBSD.

 Makefile          |   2 ++
 Versions          |   2 ++
 include/libutil.h |   2 ++
 src/flopen.3      | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/flopen.c      | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 213 insertions(+)

commit 57cc5326cf75826c5d3b415673e2574384d12850
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 9 20:17:16 2010 +0100

    Move man pages to the same directory as the source code
    
    This matches BSD style source tree, and makes it easier to see what's
    missing.

 Makefile                            | 6 +++---
 {man => src}/.gitignore             | 0
 {man => src}/arc4random.3           | 0
 {man => src}/arc4random_addrandom.3 | 0
 {man => src}/arc4random_stir.3      | 0
 {man => src}/fgetln.3               | 0
 {man => src}/fmtcheck.3             | 0
 {man => src}/getmode.3              | 0
 {man => src}/humanize_number.3      | 0
 {man => src}/mdX.3                  | 0
 {man => src}/nlist.3                | 0
 {man => src}/readpassphrase.3       | 0
 {man => src}/setmode.3              | 0
 {man => src}/strlcat.3              | 0
 {man => src}/strlcpy.3              | 0
 {man => src}/strmode.3              | 0
 {man => src}/strtonum.3             | 0
 17 files changed, 3 insertions(+), 3 deletions(-)

commit 9e4adc4633b321bf4f3f41feeac7597162cf88f9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Dec 13 01:52:03 2009 +0100

    build: Untangle the package version from the soversion
    
    Add a new script to generate the package version from git. Use that for
    the pkg-config file and the tarball name.

 Makefile    |  7 +++++--
 get-version | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 2 deletions(-)

commit db406fe24ce18ddce4aa0c5985a77233347d3f27
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Dec 12 01:46:25 2009 +0100

    build: Make dist use files from git plus few autogenerated ones
    
    To avoid forgetting to include files, we'll use “git ls-files” and will
    include few precious autogenerated files that cannot be generated later
    on w/o git. This includes mainly the ChangeLog.

 Makefile | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

commit 9396cc62cf01f282feef7ef9f212f73691100d04
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jan 9 19:56:45 2010 +0100

    build: Do not duplicate generated filenames in several variables

 Makefile | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

commit 7a70f1b019a64902a3c8a722ee5287d72a1cbf5b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:24:31 2009 +0100

    Move fmtcheck and fgetln declarations to <bsd/stdio.h>
    
    This is were they are located on the BSDs.

 Makefile                          |  1 +
 include/bsd/{string.h => stdio.h} | 10 ++++------
 include/bsd/stdlib.h              |  5 ++---
 include/bsd/string.h              |  6 +++---
 4 files changed, 10 insertions(+), 12 deletions(-)

commit ca28f28046b2cc4beb38cb4b63c75f0ac6379bcd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:21:14 2009 +0100

    Move setmode and getmode declarations to <bsd/unistd.h>
    
    This is were they are located on the BSDs.

 Makefile                           |  1 +
 include/bsd/stdlib.h               | 10 +++-------
 include/bsd/{stdlib.h => unistd.h} | 29 +++--------------------------
 3 files changed, 7 insertions(+), 33 deletions(-)

commit dd2756e000208ee9e4cde3373f217fc7c98f0610
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:13:42 2009 +0100

    Mark inclusion of <time.h> from <bsd/bsd.h> deprecated
    
    This will be removed at some point in the future.

 include/bsd/bsd.h | 2 ++
 1 file changed, 2 insertions(+)

commit 3c9182b85e785159b349106c04ccc1b4ec045350
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:12:26 2009 +0100

    Move arc4random declarations to <bsd/stdlib.h>
    
    This is were they are located on the BSDs.

 include/bsd/bsd.h    | 1 -
 include/bsd/random.h | 9 ++-------
 include/bsd/stdlib.h | 4 ++++
 3 files changed, 6 insertions(+), 8 deletions(-)

commit 4d17a18db559a3e3485d049cddf808090f38e8be
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:06:27 2009 +0100

    Deprecate <bsd/inet.h>
    
    The only function declared in that header file was inet_net_pton, which
    is already provided by glibc. Will be removed on the next SONAME bump.

 Versions           | 3 ++-
 include/bsd/inet.h | 7 ++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

commit 7da57b293f96d0c52e5b76b539e934db49323ee2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:01:02 2009 +0100

    Remove traces of fgetwln, it was never included
    
    This function was exposed in the header file and the versioning symbol
    file, but the actual code was never here.

 Versions             | 1 -
 include/bsd/string.h | 2 --
 2 files changed, 3 deletions(-)

commit 254808d9ef26c5910f981f8119af62db3d7fd72e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 23:26:44 2009 +0100

    Define NetBSD version 5.0 for .Nx to avoid groff warning
    
    This is a temporary workaround, the proper fix is to get groff to know
    newest BSD versions.

 man/humanize_number.3 | 2 ++
 1 file changed, 2 insertions(+)

commit 183cc3cbf1c42eedbde8cf18da52ec0004b9049f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Dec 11 21:31:48 2009 +0100

    Correct library name in man pages

 man/arc4random.3      | 3 ++-
 man/fgetln.3          | 3 ++-
 man/fmtcheck.3        | 3 ++-
 man/humanize_number.3 | 3 +++
 man/mdX.3             | 3 +++
 man/nlist.3           | 3 ++-
 man/readpassphrase.3  | 3 +++
 man/setmode.3         | 3 ++-
 man/strlcpy.3         | 3 ++-
 man/strmode.3         | 3 ++-
 man/strtonum.3        | 3 +++
 11 files changed, 26 insertions(+), 7 deletions(-)

commit c17c7e13c3522c6d72ceb4bc207308b8c7452b44
Author: Thorsten Glaser <tg@mirbsd.org>
Date:   Thu Dec 10 18:07:25 2009 +0100

    Expand on API guarantee for fgetln
    
    OpenBSD has begun using the API guarantee that *len is not 0 if
    the fgetln(3) return value is not NULL; document this explicitly
    in the manpage and add a comment to the function implementation
    that this doesn’t need to be checked because getdelim/getline have
    similar guarantees.
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>

 man/fgetln.3 | 2 +-
 src/fgetln.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

commit a5dbef45e77f1de47b11669443ece451e90b85ab
Author: Thorsten Glaser <tg@mirbsd.org>
Date:   Thu Dec 10 21:02:30 2009 +0100

    Make RCS macros take arguments
    
    This was breaking code actually using those macros.
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>

 include/bsd/sys/cdefs.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 27842d7f773557031790f9479a417ba7c2110e96
Author: Thorsten Glaser <tg@mirbsd.org>
Date:   Thu Dec 10 21:00:45 2009 +0100

    Track bug IDs for __unused collision
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>

 include/bsd/sys/cdefs.h | 1 +
 1 file changed, 1 insertion(+)

commit c5398adfe22819f336eb637568050748d0227cad
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Oct 24 00:19:47 2009 +0200

    Add readpassphrase function
    
    Taken from OpenBSD.

 Makefile                     |   3 +
 Versions                     |   2 +
 include/bsd/readpassphrase.h |  41 ++++++++++
 man/readpassphrase.3         | 165 ++++++++++++++++++++++++++++++++++++++
 src/readpassphrase.c         | 187 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 398 insertions(+)

commit 538bc87998624377ba72589a0ee68e4527f82489
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Oct 24 00:17:57 2009 +0200

    Add dehumanize_number function
    
    Taken from NetBSD.

 Makefile                |   1 +
 Versions                |   2 +
 include/bsd/stdlib.h    |   6 +++
 src/dehumanize_number.c | 114 ++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 123 insertions(+)

commit 04250f6a7c3e2d22a9861b82615329e1dc328c93
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Oct 24 00:15:57 2009 +0200

    Add strnvis and strnunvis functions
    
    Taken from OpenBSD.

 Versions      |  3 +++
 include/vis.h |  2 ++
 src/unvis.c   | 41 +++++++++++++++++++++++++++++++++++++++
 src/vis.c     | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 4 files changed, 105 insertions(+), 2 deletions(-)

commit 5c078ce2f581e1bdfc918326051c587e0cb1d0d6
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 23 23:31:07 2009 +0200

    Move <bsd/ip_icmp.h> to <bsd/netinet/ip_icmp.h>
    
    This maps more closely the location of the real header. For
    transitional purposes keep a <bsd/ip_icmp.h> that warns and includes
    <bsd/netinet/ip_icmp.h>.

 Makefile                            |   4 +-
 include/bsd/bsd.h                   |   2 +-
 include/bsd/ip_icmp.h               | 202 +++---------------------------------
 include/bsd/{ => netinet}/ip_icmp.h |   0
 4 files changed, 21 insertions(+), 187 deletions(-)

commit 614eb0402a2f8f6f16da9e293aa3c5203143fd38
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Oct 12 01:43:02 2009 +0200

    Add new <bsd/sys/tree.h> header

 Makefile               |   1 +
 include/bsd/bsd.h      |   1 +
 include/bsd/sys/tree.h | 765 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 767 insertions(+)

commit b6e8469059c447c17cd84e59dbe5d51cd178376f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Oct 12 01:47:54 2009 +0200

    Move <bsd/queue.h> to <bsd/sys/queue.h>
    
    This maps more closely the location of the real header. For
    transitional purposes keep a <bsd/queue.h> that warns and includes
    <bsd/sys/queue.h>.

 Makefile                      |   3 +-
 include/bsd/bsd.h             |   2 +-
 include/bsd/queue.h           | 625 ++----------------------------------------
 include/bsd/{ => sys}/queue.h |   0
 4 files changed, 22 insertions(+), 608 deletions(-)

commit d3e14ea99e39a2916928afc50a7cf29e152dcb75
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 23 23:04:42 2009 +0200

    Move <bsd/cdefs.h> to <bsd/sys/cdefs.h>
    
    This maps more closely the location of the real header. For
    transitional purposes keep a <bsd/cdefs.h> that warns and includes
    <bsd/sys/cdefs.h>.

 Makefile                      |  4 ++-
 include/bsd/bsd.h             |  2 +-
 include/bsd/cdefs.h           | 67 ++++---------------------------------------
 include/bsd/{ => sys}/cdefs.h |  0
 4 files changed, 9 insertions(+), 64 deletions(-)

commit e51be45c4086dcf9e533899cf2ca4e9250773a2d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Oct 12 01:43:52 2009 +0200

    Update <sys/queue.h>
    
    Taken from FreeBSD.

 include/bsd/queue.h | 191 +++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 130 insertions(+), 61 deletions(-)

commit 56ddcfe65ac1526fe9c048c50f836cedd434dbac
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Oct 11 21:07:53 2009 +0200

    Add strtonum function
    
    Taken from FreeBSD.

 Makefile             |   2 +
 Versions             |   4 ++
 include/bsd/stdlib.h |   3 +
 man/strtonum.3       | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/strtonum.c       |  68 ++++++++++++++++++++++
 5 files changed, 233 insertions(+)

commit 1bf8b96ac8fd99a4764ef13f5234853a943f3140
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Oct 24 01:06:09 2009 +0200

    Do not append a slash after DESTDIR

 Makefile | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

commit 16e6ac99fefbb297299e7e4c876c860d11a4b5b8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Oct 11 20:54:23 2009 +0200

    Update git web interface URL
    
    FreeDesktop.Org switched from gitweb to cgit.

 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 56f2e55b7afd257b56773048129093fce19c1a62
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Aug 30 12:18:11 2009 +0200

    Release libbsd 0.1.6

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5ac14531b5ffc9e9ea5c890a21e562bf664e0504
Author: Hirokazu Takata <takata@linux-m32r.org>
Date:   Sun Aug 30 12:16:01 2009 +0200

    Fix typos in M32R local-elf.h endian definitions

 src/local-elf.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 2543c5a78bc84eca4af52d11b808dc848601e501
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jul 17 13:37:38 2009 +0200

    Release libbsd 0.1.5

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 33ef70b9e170536115a4139df2c53f6af935418f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jul 17 13:35:37 2009 +0200

    Add __pure2 dummy macro

 include/bsd/cdefs.h | 4 ++++
 1 file changed, 4 insertions(+)

commit 8ef0ecdf4431b84d9419d89f9460a38a24be19d7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jul 17 13:34:30 2009 +0200

    Add more dummy id macros

 include/bsd/cdefs.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

commit 6660397589657e95cfa67cf045814795fd4a043a
Author: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Date:   Fri Jul 17 12:50:07 2009 +0200

    Fix typos in AVR32 and SH local-elf.h endian definitions

 src/local-elf.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 391c75b4270a6bde57b316e557d3ae6eec017969
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 29 02:48:00 2009 +0200

    Release libbsd 0.1.4

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 45783ae4ca20b0b55f549785e5f63209750b60ed
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 29 02:45:54 2009 +0200

    Define N_SYMSIZE in case the system does not do it
    
    Fixes build failures on some non-Linux ports.
    
    Based-on-patch-by: Petr Salinger <Petr.Salinger@seznam.cz>

 src/nlist.c | 3 +++
 1 file changed, 3 insertions(+)

commit 5902730a03a2df02a0ad71c62ce83046fc6c2bb8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 29 02:28:49 2009 +0200

    Create a relative symlink for .so if libdir and usrlibdir are the same

 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

commit 42601170ace98fe62c1f63a4d1b820a0bacf3e1a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 10:02:26 2009 +0200

    Change @libdir@ in the pkg-config file to be $(usrlibdir)
    
    The variable in the .pc file points to the directory where the .so
    symlink is present, which is never going to be something like /lib,
    but something like /usr/lib.

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0bd48c4a4d5382fd4d1e71b63b0d875637765dc1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 09:57:14 2009 +0200

    Preserve the variables unexpanded in the pkg-config file

 Makefile | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

commit d03b2b07fc7f8084e8f56b69dc65a11c74caf5b7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 09:37:39 2009 +0200

    Release libbsd 0.1.3

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit cb1346e5b3bdeb98e4118053e2520ae68d2111b1
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 09:25:13 2009 +0200

    Export public functions as extern C

 include/bsd/err.h    | 4 ++++
 include/bsd/getopt.h | 4 ++++
 include/bsd/inet.h   | 5 ++++-
 include/bsd/random.h | 5 ++++-
 include/bsd/stdlib.h | 5 ++++-
 include/bsd/string.h | 3 +++
 6 files changed, 23 insertions(+), 3 deletions(-)

commit 61fa98ea9e288abb4aa5b12be8fed9f73e2a1a9c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 09:12:45 2009 +0200

    Add missing <stdarg.h> include in <bsd/err.h>

 include/bsd/err.h | 1 +
 1 file changed, 1 insertion(+)

commit 931e04343038cfc543f6d931488e597c9bee2d7e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 08:56:34 2009 +0200

    Add new __RCSID macro
    
    Define it to nothing, so that source imported from BSDs can be easily
    compiled w/o needing to modify them.

 include/bsd/cdefs.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit f984a7006bd8b456d4ea8aebc717e4e758676d7c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 06:57:50 2009 +0200

    Release libbsd 0.1.2

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 326a3a76193161f096990a073d97d288f73f3408
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 06:57:03 2009 +0200

    Install humanize_number(3) man page

 Makefile | 1 +
 1 file changed, 1 insertion(+)

commit e4aff3d9fc9e22287cfeab040e4b968d53a9255e
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 06:41:42 2009 +0200

    Use N_SYMSIZE instead of directly accessing ‘struct exec’
    
    On Linux alpha ‘struct exec’ does not have an a_syms member, and the
    N_SYMSIZE is mapped to 0.

 src/nlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit c3feeb0092ace00f95aa981fc907ab654afaa5f7
Author: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Date:   Fri May 22 20:44:35 2009 -0300

    Add some man page links
    
    Add man page links for strlcat, getmode and arc4random_*.
    
    Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>

 Makefile                   | 4 ++++
 man/arc4random_addrandom.3 | 1 +
 man/arc4random_stir.3      | 1 +
 man/getmode.3              | 1 +
 man/strlcat.3              | 1 +
 5 files changed, 8 insertions(+)

commit 80c3954e3cf66efa907b8a8862632f56eeea9543
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 06:23:01 2009 +0200

    Use the correct path when including a.out.h
    
    Reported-by: Aurélien Jarno <aurelien@aurel32.net>

 include/nlist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 4c3e03efebe725b22fe52a981235314ae6ee4218
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon May 25 06:22:22 2009 +0200

    Add man/md5.3bsd to .gitignore

 man/.gitignore | 1 +
 1 file changed, 1 insertion(+)

commit 9b30dae90952053dd0be1740d0a6f494c638b8dd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Thu May 21 05:04:09 2009 +0200

    Fix typos (‘ELFDATA2MSG’ → ‘ELFDATA2MSB’)

 src/local-elf.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 25dd60b9cc5f0a5ae867f9e7215cda7c28e89562
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 20 05:14:32 2009 +0200

    Release libbsd 0.1.1

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5b16707e95d89d6a6b485bf3b26d4d340e2d9c6a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 20 05:13:31 2009 +0200

    Install nlist header and man page

 Makefile | 2 ++
 1 file changed, 2 insertions(+)

commit 1f0b016e97611a35151eca4952277211a0ee4656
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 20 04:20:21 2009 +0200

    Use UTF-8 copyright symbols for non-imported files

 include/bsd/bsd.h    | 2 +-
 include/bsd/cdefs.h  | 2 +-
 include/bsd/err.h    | 2 +-
 include/bsd/getopt.h | 2 +-
 include/bsd/inet.h   | 2 +-
 include/bsd/random.h | 2 +-
 include/bsd/stdlib.h | 6 +++---
 include/bsd/string.h | 2 +-
 include/nlist.h      | 2 +-
 src/bsd_getopt.c     | 2 +-
 src/err.c            | 2 +-
 src/fgetln.c         | 4 ++--
 src/local-elf.h      | 2 +-
 src/progname.c       | 2 +-
 14 files changed, 17 insertions(+), 17 deletions(-)

commit dcaec44a6fd4ede2b8d8050a7c05185c28f66917
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed May 20 04:11:57 2009 +0200

    Add nlist function

 Makefile        |   1 +
 Versions        |   3 +
 include/nlist.h |  38 +++++
 man/nlist.3     |  77 +++++++++++
 src/local-elf.h | 197 ++++++++++++++++++++++++++
 src/nlist.c     | 419 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 735 insertions(+)

commit 8dbfb3529b0253ba8067042dabaebe3ad89cb039
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 15 21:40:45 2009 +0200

    Add strmode function

 Makefile             |   6 ++-
 Versions             |   5 ++
 include/bsd/string.h |   4 +-
 man/strmode.3        | 144 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/strmode.c        | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 305 insertions(+), 3 deletions(-)

commit 74ae34e792a08de78ab671a683abdf48c27eccd3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 15 21:26:09 2009 +0200

    Fix buffer leaks in fgetln
    
    Cache the size and the buffer allocated by getline as static variables.

 src/fgetln.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit deb9f56ceb560f96448ff9bfa1befdf7ed9849de
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri May 15 21:23:03 2009 +0200

    Change fgetln to return the correct length value
    
    Set len to 0 on error conditions to mimmic FreeBSD behaviour, and return
    the amount of read characters on success, instead of the allocated size
    by getline.
    
    Reported-by: Jief L. <jief1.l@gmail.com>

 src/fgetln.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

commit aefc6f441aa1ae51135fea33d25572e39222cce7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 26 22:42:39 2008 +0300

    Do not include .gitignore in the dist tarball

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit f2d93325e6d073681c55f6959bed3a172bc15989
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 26 22:39:29 2008 +0300

    Install md5.3 as md5.3bsd
    
    This man page is pretty common in other source projects, so we use a
    suffix to distinguish it.

 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 5e1a78211983e2547838ce3fd2dd607e0a320393
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 26 22:36:14 2008 +0300

    Add a TODO list

 TODO | 4 ++++
 1 file changed, 4 insertions(+)

commit 4c9c8ed74c946338310a46cc41122b904d0b934d
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 26 22:35:31 2008 +0300

    Add a new header file to expose inet_net_pton prototype

 Makefile           |  1 +
 include/bsd/inet.h | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

commit 6dc84320cc267b5ed6c2e1de9e4b9d49e465dc54
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 26 22:25:22 2008 +0300

    Add a micro version part

 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit acc23243fb450adb18f4c0a2b28bbf9ebae11053
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 08:00:17 2008 +0300

    Unify description

 libbsd.pc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9a2b946fce5c6606f45c4f7627645701448d39f4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:59:14 2008 +0300

    Move LIB_PKGCONFIG dependency to the libs target

 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit ad52f2eb4c5d8370298de587f090e84727d8bcf2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:55:57 2008 +0300

    Use sigprocmask instead of _sigprocmask

 src/setmode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 2729ca824d2c277bd1e32cebfe43739996705087
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:53:03 2008 +0300

    Define default CFLAGS overridable by the environment

 Makefile | 3 +++
 1 file changed, 3 insertions(+)

commit 83210a83a4a13115ce653ec5f1419279a63191f7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:48:10 2008 +0300

    Switch remaining variables to single expanded ones

 Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

commit 69c94c50d98e3aa6ffbaaa9d29e5c257adc58865
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:46:53 2008 +0300

    Remove useless comment header

 Makefile | 4 ----
 1 file changed, 4 deletions(-)

commit 2d5c088a173913a01daa3f5042d9fa6f245d958c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:46:37 2008 +0300

    Move each groups of related files to their own line

 Makefile | 53 ++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 42 insertions(+), 11 deletions(-)

commit 3de930e682026512f7333194abcefdeb621e6adc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:41:07 2008 +0300

    Make action targets PHONY

 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit e9cb0d1cf4556db22b755a1fa34c9c219b78d2f0
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:37:13 2008 +0300

    New README file

 Makefile |  2 +-
 README   | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)

commit 87d6d656335858cd0768aa5dd30b4d0d5967bd10
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:31:59 2008 +0300

    Automatically generate libbsd.pc from libbsd.pc.in

 .gitignore                |  1 +
 Makefile                  | 14 ++++++++++++--
 libbsd.pc => libbsd.pc.in | 10 +++++-----
 3 files changed, 18 insertions(+), 7 deletions(-)

commit ff8539bc035800ff551174b99bb17da27890b660
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:29:24 2008 +0300

    Add new path variables

 Makefile | 33 ++++++++++++++++++++++-----------
 1 file changed, 22 insertions(+), 11 deletions(-)

commit 8c7f053ab0d9a3f54a38b752ffbcc2c6ef226f8c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 07:00:19 2008 +0300

    Automatically generate the ChangeLog on 'make dist'

 .gitignore | 1 +
 Makefile   | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

commit c1615a50d35da13c174a9e162995de7fcb024773
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 06:46:18 2008 +0300

    Define a LIB_PKGCONFIG variable

 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit e42791d0d3e09848da10e2062f5e32d8b52effc7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 06:41:10 2008 +0300

    Move filename related variables to the beginning of the file
    
    Switch them to single expanded varibles.

 Makefile | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

commit 1e1ab1875895b432966686402ac3debd2b384256
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sat Jul 12 06:35:45 2008 +0300

    Define a LIB_VERSION variable

 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit ba7ece7791d2617de8693a877b517260c51f5dc7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 09:25:34 2008 +0300

    Create an armored detached signature on 'make dist'

 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 84d311d03872a1c18305abe8218c0a3d3f5434d2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 09:07:58 2008 +0300

    Remove link_addr and link_ntoa symbols from the version script

 Versions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 38829bdc8b5dd17d8d10a2daf350605e7c6f70a4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 09:07:03 2008 +0300

    Add new setmode and getmode functions from FreeBSD

 Makefile             |   3 +-
 Versions             |   4 +
 include/bsd/stdlib.h |   9 ++
 man/setmode.3        | 114 +++++++++++++
 src/setmode.c        | 444 +++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 573 insertions(+), 1 deletion(-)

commit a5f7d1a8f12b0ce3b76a23dccb8a5ffdc31ebf39
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 09:04:51 2008 +0300

    Include the rest of the header files

 include/bsd/bsd.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit 8b95dc5865f26d746651479fd893e77e1f594b56
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 09:04:27 2008 +0300

    Disable __bounded__ __attribute__

 include/bsd/cdefs.h | 4 ++++
 1 file changed, 4 insertions(+)

commit 96358a2ad649ec2520357470abe3ae86837bf68b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 08:47:09 2008 +0300

    Add support for 'make dist'

 Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

commit fafffd1f7eebdf73a5e3ceb343025272493ebf21
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 08:26:07 2008 +0300

    fgetln: Fix coding style

 src/fgetln.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 47109e39d5995c7addaa932625fb0ea1e0e8200a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 08:22:30 2008 +0300

    fgetln: Fix function to make it actually work
    
    Reported by Thorsten Glaser.

 src/fgetln.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

commit da92787d48723ef900d3976072f37960d7a96d8b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 07:46:23 2008 +0300

    Ansify function arguments

 src/fgetln.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

commit fc163cee2fd148ef121e2481dfc08065b36b6b2b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 07:23:49 2008 +0300

    Move version and library name to the beginning of the file

 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

commit 1512d0d4ab508d47aff2d301d90317c11dd50846
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 07:22:30 2008 +0300

    Renumber 4th clause from BSD license to 3rd
    
    Those files have only three clauses.

 include/bsd/ip_icmp.h | 2 +-
 include/bsd/queue.h   | 2 +-
 include/vis.h         | 2 +-
 man/fgetln.3          | 2 +-
 src/heapsort.c        | 2 +-
 src/unvis.c           | 2 +-
 src/vis.c             | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

commit 7b1c361f4d09522b5af9398814f2e809f42d7b9b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 07:17:20 2008 +0300

    Remove RCS tag

 Makefile | 2 --
 1 file changed, 2 deletions(-)

commit b0f64624bb41ccc00d80f218acb0d2758dd8d5d3
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jul 9 07:16:20 2008 +0300

    Add missing license headers
    
    With permission from Robert Millan and Aurelien Jarno.

 include/bsd/err.h    | 26 ++++++++++++++++++++++++++
 include/bsd/getopt.h | 26 ++++++++++++++++++++++++++
 include/bsd/stdlib.h | 27 +++++++++++++++++++++++++++
 3 files changed, 79 insertions(+)

commit efa9658ba60be9a48f7a750a6b93932462757a97
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:51:53 2008 +0300

    Remove link_addr and link_ntoa functions
    
    The address familiy used is kernel dependent, so the application will
    have to be ported regardless.

 Makefile       |   4 +-
 src/linkaddr.c | 156 ---------------------------------------------------------
 2 files changed, 2 insertions(+), 158 deletions(-)

commit a5709cbc88543a894fcb12da181b33e7ccc68a7b
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:47:58 2008 +0300

    Add license header

 include/libutil.h | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

commit bf4eeb29f049e374b33b788a8df02357d659183c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:44:18 2008 +0300

    Add arc4random_stir and arc4random_addrandom functions

 Makefile             |  2 +-
 Versions             |  2 ++
 include/bsd/random.h |  2 ++
 src/arc4random.c     | 28 ++++++++++++++++++++++++++++
 4 files changed, 33 insertions(+), 1 deletion(-)

commit 26ab4750eebff515ca5717ee272a79fa3866ab55
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:25:48 2008 +0300

    Add a pkg-config file

 Makefile  |  2 ++
 libbsd.pc | 11 +++++++++++
 2 files changed, 13 insertions(+)

commit b37f1039efda597cf821be7be88b280aaf14c2b9
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:19:41 2008 +0300

    Replace current md5 code with one from MirBSD and OpenBSD
    
    This adds the following public functions:
    MD5Transform, MD5End, MD5File, MD5FileChunk, MD5Data

 Makefile            |  20 +++-
 Versions            |   6 +
 include/bsd/md5.h   |  77 ++++++------
 man/.gitignore      |   1 +
 man/mdX.3           | 223 ++++++++++++++++++++++++++++++++++
 src/hash/.gitignore |   1 +
 src/hash/helper.c   | 100 ++++++++++++++++
 src/hash/md5.c      | 248 ++++++++++++++++++++++++++++++++++++++
 src/md5.copyright   |  21 ----
 src/md5c.c          | 338 ----------------------------------------------------
 10 files changed, 636 insertions(+), 399 deletions(-)

commit 20bf55ffa5a56d3ee062aa199e5b3033ea29c52a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:09:51 2008 +0300

    Include missing stddef.h

 include/bsd/string.h | 1 +
 1 file changed, 1 insertion(+)

commit d699e4bc0e5196520dcb23e6768d977570de42f8
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:05:23 2008 +0300

    Add license header
    
    With Hector's agreement.

 src/fgetln.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

commit 3b51d12e1fd7bbdde21dc2fe3fc720a75cf9d8c7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 08:00:10 2008 +0300

    Add a .gitignore file

 .gitignore | 4 ++++
 1 file changed, 4 insertions(+)

commit d033e58045ab39b159e74d390eda76c3988a06fd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 07:59:43 2008 +0300

    Remove cruft macros and includes

 include/bsd/bsd.h | 26 --------------------------
 1 file changed, 26 deletions(-)

commit c14d23b5d749d8f06fc857003f848f25ee87638f
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Jun 18 07:49:44 2008 +0300

    Add license header

 include/bsd/bsd.h    | 26 ++++++++++++++++++++++++++
 include/bsd/cdefs.h  | 26 ++++++++++++++++++++++++++
 include/bsd/random.h | 26 ++++++++++++++++++++++++++
 include/bsd/string.h | 26 ++++++++++++++++++++++++++
 4 files changed, 104 insertions(+)

commit d83f5791e9a0b5d4c4004c8406c27ad8cb3134bd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 13 06:49:03 2008 +0300

    Remove ChangeLog file

 ChangeLog | 174 --------------------------------------------------------------
 1 file changed, 174 deletions(-)

commit acb577d6c150370ea17fe5a07bd1361bfa4d18e2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 13 05:25:57 2008 +0300

    Sync humanize_number from NetBSD
    
    Add the missing man page.

 man/humanize_number.3 | 166 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/humanize_number.c |   9 ++-
 2 files changed, 173 insertions(+), 2 deletions(-)

commit 0be77c90b57f7c1af8796701aa294258400f1cc4
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Jun 13 05:23:39 2008 +0300

    Convert TNF licenses to new 2 clause variant
    
    This follows NetBSD upstream:
    <http://mail-index.netbsd.org/source-changes/2008/04/30/msg005553.html>

 man/fmtcheck.3        | 7 -------
 src/fmtcheck.c        | 7 -------
 src/humanize_number.c | 7 -------
 3 files changed, 21 deletions(-)

commit 8ca3d66d47c1a9685835dd8d91c18289f4c6ed14
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sun Mar 16 17:20:48 2008 +0000

    Add license header

 src/bsd_getopt.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

commit 532aec99b6dccbf02fe9504ba9e852f6da7dbbc0
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sun Mar 16 16:49:41 2008 +0000

    Relicense err.c and progname.c to avoid trouble with 4-clause BSD code

 src/err.c      | 41 +++++++++++++++++++++++++----------------
 src/progname.c | 41 +++++++++++++++++++++++++----------------
 2 files changed, 50 insertions(+), 32 deletions(-)

commit 44706ade0647dc5a77213529ab234a2007eb06e7
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Mar 16 16:46:29 2008 +0000

    Remove UC Berkeley advertising clause
    
    As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.

 ChangeLog    | 1 +
 man/fgetln.3 | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

commit f5b8317051c54df10b9bb6ce83d82dcb8dc19439
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Mar 16 14:30:51 2008 +0000

    Remove UC Berkeley advertising clause
    
    As per <ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>.

 ChangeLog      | 9 +++++++++
 include/vis.h  | 4 ----
 src/heapsort.c | 4 ----
 src/linkaddr.c | 4 ----
 src/unvis.c    | 4 ----
 src/vis.c      | 4 ----
 6 files changed, 9 insertions(+), 20 deletions(-)

commit c5793d47d19a07f42c5b32e1fc4672222e9af8fd
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Date:   Tue Dec 18 14:20:20 2007 +0000

    bsd/queue.h: Sync with current glibc variant from GNU/kFreeBSD

 ChangeLog           | 4 ++++
 include/bsd/queue.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

commit ac32eefec50a1f9a6c4a75b7467731fc99a0a109
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Date:   Tue Jan 9 13:26:33 2007 +0000

    bsd/bsd.h: Cleanup

 include/bsd/bsd.h | 54 +++++-------------------------------------------------
 1 file changed, 5 insertions(+), 49 deletions(-)

commit 2ef27385c5a4d757f19a07096bbcc2d0a3e36d85
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Tue Nov 7 23:41:16 2006 +0000

    link_addr: New function

 ChangeLog      |   7 +++
 Makefile       |   4 +-
 Versions       |   1 +
 src/linkaddr.c | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 170 insertions(+), 2 deletions(-)

commit 30176335f9e09f038c107bbc78eaba8b5c2cd057
Author: Petr Salinger <Petr.Salinger@seznam.cz>
Date:   Fri Aug 25 13:39:32 2006 +0000

    humanize_number: New function

 ChangeLog             |   7 +++
 Makefile              |   5 +-
 Versions              |   1 +
 include/libutil.h     |  22 ++++++++
 src/humanize_number.c | 145 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 178 insertions(+), 2 deletions(-)

commit 326d210f1774a30e309062c3d5819e5868e4ee4b
Author: Robert Millan <rmh@aybabtu.com>
Date:   Thu Mar 30 13:53:34 2006 +0000

    Revert 1d87476250217a87319df48a8f473415c0515106

 src/progname.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

commit 1d87476250217a87319df48a8f473415c0515106
Author: Robert Millan <rmh@aybabtu.com>
Date:   Thu Mar 30 11:14:56 2006 +0000

    Duplicate setprogname argument
    
    For some reason, accessing the argv vector directly may cause SIGSEV.

 src/progname.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

commit 3462d1261f2cd9ff26faaf4a0027c661b37af999
Author: Robert Millan <rmh@aybabtu.com>
Date:   Wed Mar 29 13:55:22 2006 +0000

    Add heapsort

 ChangeLog            |   7 ++
 Makefile             |   2 +-
 Versions             |   1 +
 include/bsd/stdlib.h |   2 +
 src/heapsort.c       | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 190 insertions(+), 1 deletion(-)

commit daccb6a8507c6eb35bb08177834ae15150acddab
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Sun Mar 26 17:10:13 2006 +0000

    Fix some c++isms

 src/inet_net_pton.c | 2 +-
 src/md5c.c          | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

commit 1e28f3480721c916b89e643c5cdfceaef69ad0f1
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Sun Mar 26 17:09:24 2006 +0000

    Directly call the function fmtcheck instead of using __weak_reference

 src/fmtcheck.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit d493e6cd987a2d0c6b7d1df1c28883f1974260a9
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sat Mar 25 20:03:00 2006 +0000

    Move shared library to /lib
    
    Needed by binaries in /bin and /sbin.

 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

commit 37c5b9a2af298b299ca6553f44dbea15f3b7b796
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sun Mar 19 11:12:07 2006 +0000

    Fix install paths so that /usr/include also works

 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

commit 40bb012fee0ab5bea95af3e3de49686562ff0dba
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sun Mar 19 10:25:49 2006 +0000

    Add vis and unvis

 ChangeLog     |   8 ++
 Makefile      |   8 +-
 Versions      |   2 +
 include/vis.h |  90 ++++++++++++++++++
 src/unvis.c   | 291 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/vis.c     | 199 +++++++++++++++++++++++++++++++++++++++
 6 files changed, 594 insertions(+), 4 deletions(-)

commit a84fcb45ef036cb0c7ea6c4933ecccc9e8edeca0
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sat Mar 18 12:53:39 2006 +0000

    Fix syntax error

 src/progname.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 31461c563abc61807e8fbbacdb70d6e94f79edce
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sat Mar 18 09:19:50 2006 +0000

    Initialize __progname as NULL

 src/progname.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 5bd834027d4c6b520ee058d753b479e31e6faf26
Author: Robert Millan <rmh@aybabtu.com>
Date:   Fri Mar 17 19:55:21 2006 +0000

    Add getprogname and setprogname

 ChangeLog            |  7 +++++++
 Makefile             |  2 +-
 Versions             |  1 +
 include/bsd/stdlib.h |  7 ++++++-
 src/progname.c       | 36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 51 insertions(+), 2 deletions(-)

commit 1e8b819b4579d85654d46df2c16f3a58e9b6b878
Author: Guillem Jover <guillem@hadrons.org>
Date:   Wed Feb 15 20:41:06 2006 +0000

    Disable __unused
    
    It conflicts with a struct member in a Linux header.

 ChangeLog           | 5 +++++
 include/bsd/cdefs.h | 4 ++++
 2 files changed, 9 insertions(+)

commit 67e48af044abf058167a60b79d4165f0431fac5a
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 07:01:21 2006 +0000

    Remove unused includes and protect header

 ChangeLog            | 5 +++++
 include/bsd/getopt.h | 6 ++++++
 include/bsd/stdlib.h | 3 ---
 3 files changed, 11 insertions(+), 3 deletions(-)

commit 8a2e8584d9a46c0bf8ba431098741cee7e548ddc
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 06:55:53 2006 +0000

    Revert 39db45e45a8d49a92d1d897a532e48480e561f75

 ChangeLog | 4 ----
 Versions  | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

commit c9e733b215be209ea028453e10dace2d91a79887
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 06:45:41 2006 +0000

    Remove commented out macros

 ChangeLog         |  4 ++++
 include/bsd/bsd.h | 14 --------------
 2 files changed, 4 insertions(+), 14 deletions(-)

commit 815047342080dc3e8eff1daac0a4694d06e1ae03
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 06:43:04 2006 +0000

    Move some macros to cdefs.h

 ChangeLog           |  8 ++++++++
 Makefile            |  2 +-
 include/bsd/bsd.h   | 14 +-------------
 include/bsd/cdefs.h | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 44 insertions(+), 14 deletions(-)

commit 5372b7368573739ee3bd38c5bb76b187e8241279
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 05:39:29 2006 +0000

    Move sources to src/

 ChangeLog                              | 24 ++++++++++++++++++++++++
 Makefile                               |  5 +++--
 arc4random.c => src/arc4random.c       |  0
 bsd_getopt.c => src/bsd_getopt.c       |  0
 err.c => src/err.c                     |  0
 fgetln.c => src/fgetln.c               |  0
 fmtcheck.c => src/fmtcheck.c           |  0
 inet_net_pton.c => src/inet_net_pton.c |  0
 md5.copyright => src/md5.copyright     |  0
 md5c.c => src/md5c.c                   |  0
 strlcat.c => src/strlcat.c             |  0
 strlcpy.c => src/strlcpy.c             |  0
 12 files changed, 27 insertions(+), 2 deletions(-)

commit 6be6380e10b4f87575060e7839e530642a0182fa
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 05:33:38 2006 +0000

    Add missing %

 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 7bd6e03ae0a4d2b039ba6e8fc3b53104dba24512
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 05:26:48 2006 +0000

    Makefile: Cleanup
    
    (LIB_SRCS): Line wrap.
    (LIB_INCLUDES): List only the files, automatically prefix the dir.
    (LIB_MANS): Likewise.

 ChangeLog |  6 ++++++
 Makefile  | 10 +++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

commit 39db45e45a8d49a92d1d897a532e48480e561f75
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 05:22:15 2006 +0000

    Remove optreset

 ChangeLog | 4 ++++
 Versions  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

commit bddcccbcdf4da266893d6f8f5bef807bf39f9bfd
Author: Guillem Jover <guillem@hadrons.org>
Date:   Tue Feb 14 05:17:19 2006 +0000

    Fix ChangeLog format

 ChangeLog | 51 +++++++++++++++++++++++++++------------------------
 1 file changed, 27 insertions(+), 24 deletions(-)

commit 7aed0593e00f6369d0b29fbc8cfde653e5187c60
Author: Robert Millan <rmh@aybabtu.com>
Date:   Mon Feb 13 20:56:47 2006 +0000

    Add bsd_getopt

 ChangeLog            |  8 ++++++++
 Makefile             |  4 ++--
 Versions             |  1 +
 bsd_getopt.c         | 15 +++++++++++++++
 include/bsd/getopt.h |  4 ++++
 5 files changed, 30 insertions(+), 2 deletions(-)

commit 7a8c1c864879b3162e1048ddcb3ad59540bb0e0e
Author: Robert Millan <rmh@aybabtu.com>
Date:   Mon Feb 13 20:45:13 2006 +0000

    Use the same macro (_SYS_QUEUE_H) as <sys/queue.h> for header protection
    
    This prevents collisions.

 include/bsd/queue.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

commit 019b5818da4db2c7a053c0b4e065b2fd17979f48
Author: Robert Millan <rmh@aybabtu.com>
Date:   Mon Feb 13 20:25:22 2006 +0000

    Revert c849ba32af231fba36f4500d0d3290821f4dd7b7
    
    Will use bsd_getopt() wrapper instead.

 ChangeLog      |  8 --------
 Makefile       |  2 +-
 Versions       |  4 ++--
 reset_getopt.c | 51 ---------------------------------------------------
 4 files changed, 3 insertions(+), 62 deletions(-)

commit 34b269a1cfb9218ba54c05ec2e8148808ebc419d
Author: Robert Millan <rmh@aybabtu.com>
Date:   Mon Feb 13 13:02:11 2006 +0000

    Fix that FIXME

 reset_getopt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit c849ba32af231fba36f4500d0d3290821f4dd7b7
Author: Robert Millan <rmh@aybabtu.com>
Date:   Mon Feb 13 09:02:17 2006 +0000

    reset_getopt: New function (borrowed from e2fsprogs)

 ChangeLog      |  8 ++++++++
 Makefile       |  2 +-
 Versions       |  4 ++--
 reset_getopt.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 62 insertions(+), 3 deletions(-)

commit 19cc95400b7761073ee3503593a84f299524064a
Author: Robert Millan <rmh@aybabtu.com>
Date:   Sat Feb 11 07:06:17 2006 +0000

    bsd/queue.h: Replace with patched copy of glibc's <sys/queue.h>
    
    This doesn't affect freebsd6-buildutils.

 include/bsd/queue.h | 414 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 408 insertions(+), 6 deletions(-)

commit e8d3b08cc6892c5e5a34458852e556830d05ae07
Author: Robert Millan <rmh@aybabtu.com>
Date:   Fri Feb 10 15:22:58 2006 +0000

    Add __unused

 include/bsd/bsd.h | 1 +
 1 file changed, 1 insertion(+)

commit 33eb3ecc41af581080a97300f052df2eea4722e7
Author: Robert Millan <rmh@aybabtu.com>
Date:   Fri Feb 10 14:59:03 2006 +0000

    Add errc, warnc, verrc and vwarnc

 ChangeLog         | 10 ++++++++-
 Makefile          |  4 ++--
 Versions          |  1 +
 err.c             | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/bsd/err.h | 11 ++++++++++
 5 files changed, 86 insertions(+), 3 deletions(-)

commit bc2b90c07b5dbf2850698a4336bdd13384a43087
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Tue Dec 20 21:05:34 2005 +0000

    Makefile: Fix typo

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit dedb8169c4df522f1b9fe5e20e7828dd0861bf84
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Tue Dec 20 20:29:47 2005 +0000

    Added manpages and fixed fmtcheck

 ChangeLog            |   5 +-
 Makefile             |   8 +-
 Versions             |   1 +
 include/bsd/stdlib.h |   9 +++
 include/bsd/string.h |   2 +-
 man/arc4random.3     | 107 +++++++++++++++++++++++++++
 man/fgetln.3         | 128 ++++++++++++++++++++++++++++++++
 man/fmtcheck.3       | 117 +++++++++++++++++++++++++++++
 man/strlcpy.3        | 204 +++++++++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 575 insertions(+), 6 deletions(-)

commit 91473e2748a0081962a2ecae8ab7787858722efd
Author: Aurelien Jarno <aurel32@debian.org>
Date:   Sun Dec 18 04:02:56 2005 +0000

    fmtcheck: New function

 ChangeLog            |   6 ++
 Makefile             |   2 +-
 Versions             |   1 +
 fmtcheck.c           | 267 +++++++++++++++++++++++++++++++++++++++++++++++++++
 include/bsd/string.h |   1 +
 5 files changed, 276 insertions(+), 1 deletion(-)

commit 657f1b59ceec215ae13f57d03a5ce39c03d30b21
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Oct 31 22:57:10 2005 +0000

    Reorganize header files

 ChangeLog                          |  14 ++
 Makefile                           |   2 +-
 bsd.h                              | 266 -------------------------------------
 include/bsd/bsd.h                  | 110 +++++++++++++++
 ip_icmp.h => include/bsd/ip_icmp.h |   0
 md5.h => include/bsd/md5.h         |   0
 include/bsd/queue.h                | 151 +++++++++++++++++++++
 include/bsd/random.h               |   9 ++
 include/bsd/string.h               |  11 ++
 md5c.c                             |   2 +-
 10 files changed, 297 insertions(+), 268 deletions(-)

commit 5c2938f589ac8de18646566821dce336fa73a707
Author: Guillem Jover <guillem@hadrons.org>
Date:   Fri Oct 28 19:18:39 2005 +0000

    Fix ChangeLog

 ChangeLog | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

commit 14b06b3178aeec49947f062d44cf0799c98f831c
Author: Hector Garcia <hector@debian.org>
Date:   Fri Aug 5 19:52:06 2005 +0000

    Added long description

 ChangeLog | 3 +++
 1 file changed, 3 insertions(+)

commit a636112284e859557d2acc63c1fb24b2615144ab
Author: Hector Garcia <hector@debian.org>
Date:   Wed Aug 3 16:12:59 2005 +0000

    General cleanup
    
    Changes on Makefile to fix lack of soft links on shared lib.
    Changes on md5.h to reflect md5c.c.
    Fixed few packaging problems.

 ChangeLog | 9 +++++++++
 Makefile  | 6 ++++--
 md5.h     | 8 ++++----
 3 files changed, 17 insertions(+), 6 deletions(-)

commit 8928a72173c96d637c080f44b8ecc9763fa3ee94
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 25 23:38:43 2005 +0000

    Makefile: Add "md5.h" to LIB_INCLUDES

 ChangeLog | 4 ++++
 Makefile  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

commit 3bd2ba1a90fbacd1aa52f683f9666dd66841c6ca
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 25 23:37:06 2005 +0000

    Versions: Add MD5Init, MD5Update, MD5Pad and MD5Final to LIBBSD_0.0

 ChangeLog | 5 +++++
 Versions  | 4 ++++
 2 files changed, 9 insertions(+)

commit 88129874541ecd0039f3cbee20e69a4eb8735252
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 25 23:32:52 2005 +0000

    Fix ChangeLog format

 ChangeLog | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

commit 2154e96175c123584730cf6d2a06e4a20ce737be
Author: Hector Garcia <hector@debian.org>
Date:   Mon Jul 25 23:02:40 2005 +0000

    Changed files to compile md5c.c

 ChangeLog |  5 +++++
 Makefile  |  4 +---
 md5.h     | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
 md5c.c    |  2 +-
 4 files changed, 55 insertions(+), 8 deletions(-)

commit b478b9dd03793e329d81e5b930d62f16fd70c750
Author: Guillem Jover <guillem@hadrons.org>
Date:   Mon Jul 25 00:07:29 2005 +0000

    fgetln: Cleanup function
    
    Reindent, remove commented code and translate variable names to english

 ChangeLog |  5 +++++
 fgetln.c  | 22 +++++++++-------------
 2 files changed, 14 insertions(+), 13 deletions(-)

commit aa605d5f8621f8fe2f96cb4f946c5e11dad885b2
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jul 24 23:55:15 2005 +0000

    Add versioned symbols support

 ChangeLog |  5 +++++
 Makefile  |  5 ++++-
 Versions  | 10 ++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

commit 07a58e79ab36e023276d45e4a08f94032d652888
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jul 24 23:35:23 2005 +0000

    General cleanup

 Makefile | 94 +++++++++++++++++++++++++++++++++++++++++-----------------------
 md5c.c   |  2 +-
 2 files changed, 62 insertions(+), 34 deletions(-)

commit 400f4cd55da0bf04f5cc1853b8d45734fb530f7c
Author: Guillem Jover <guillem@hadrons.org>
Date:   Sun Jul 24 22:55:16 2005 +0000

    Remove autogenerated cruft

 build-stamp     | 0
 configure-stamp | 0
 2 files changed, 0 insertions(+), 0 deletions(-)

commit 8654206a04995cf97273e1338a22c05d9a542cad
Author: Hector Garcia <hector@debian.org>
Date:   Sun Jul 24 22:51:34 2005 +0000

    Importing libbsd

 Makefile        |  34 ++++++
 arc4random.c    | 191 ++++++++++++++++++++++++++++++++
 bsd.h           | 266 ++++++++++++++++++++++++++++++++++++++++++++
 build-stamp     |   0
 configure-stamp |   0
 fgetln.c        |  32 ++++++
 inet_net_pton.c | 214 ++++++++++++++++++++++++++++++++++++
 ip_icmp.h       | 203 ++++++++++++++++++++++++++++++++++
 md5.copyright   |  21 ++++
 md5.h           |   4 +
 md5c.c          | 336 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 strlcat.c       |  74 +++++++++++++
 strlcpy.c       |  69 ++++++++++++
 13 files changed, 1444 insertions(+)