Commit 21f4052c5b376800c4251462e10fa4b9630c6c69

Guillem Jover 2019-06-13T23:36:09

man: Add doc-str-Lb-libbsd aliases for str-Lb-libbsd groff(1) has changed the internal layout for the .Lb doc strings, but to preserve backwards compatibility we cannot simply rename them, we need to create new aliases so that these will work with old and new macros. Signed-off-by: Guillem Jover <guillem@hadrons.org>

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
diff --git a/man/arc4random.3bsd b/man/arc4random.3bsd
index 1de6508..c509a8e 100644
--- a/man/arc4random.3bsd
+++ b/man/arc4random.3bsd
@@ -42,6 +42,7 @@
 .Nd arc4 random number generator
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/closefrom.3bsd b/man/closefrom.3bsd
index d3a08c3..b2d3853 100644
--- a/man/closefrom.3bsd
+++ b/man/closefrom.3bsd
@@ -33,6 +33,7 @@
 .Nd delete open file descriptors
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In unistd.h
diff --git a/man/errc.3bsd b/man/errc.3bsd
index 954dfae..0fa61a8 100644
--- a/man/errc.3bsd
+++ b/man/errc.3bsd
@@ -38,6 +38,7 @@
 .Nd formatted error messages
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In err.h
diff --git a/man/expand_number.3bsd b/man/expand_number.3bsd
index 14327fa..e0ba501 100644
--- a/man/expand_number.3bsd
+++ b/man/expand_number.3bsd
@@ -33,6 +33,7 @@
 .Nd format a number from human readable form
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In libutil.h
diff --git a/man/explicit_bzero.3bsd b/man/explicit_bzero.3bsd
index cf67c56..ca077b3 100644
--- a/man/explicit_bzero.3bsd
+++ b/man/explicit_bzero.3bsd
@@ -37,6 +37,7 @@
 .Nd write zeroes to a byte string
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In string.h
diff --git a/man/fgetln.3bsd b/man/fgetln.3bsd
index dae47e7..c9f7059 100644
--- a/man/fgetln.3bsd
+++ b/man/fgetln.3bsd
@@ -36,6 +36,7 @@
 .Nd get a line from a stream
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/fgetwln.3bsd b/man/fgetwln.3bsd
index 71bc167..21b8695 100644
--- a/man/fgetwln.3bsd
+++ b/man/fgetwln.3bsd
@@ -36,6 +36,7 @@
 .Nd get a line of wide characters from a stream
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/flopen.3bsd b/man/flopen.3bsd
index b3cd8c9..6ee153c 100644
--- a/man/flopen.3bsd
+++ b/man/flopen.3bsd
@@ -34,6 +34,7 @@
 .Nd "Reliably open and lock a file"
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/fcntl.h
diff --git a/man/fmtcheck.3bsd b/man/fmtcheck.3bsd
index 886ecb9..93e7673 100644
--- a/man/fmtcheck.3bsd
+++ b/man/fmtcheck.3bsd
@@ -34,6 +34,7 @@
 .Nd sanitizes user-supplied printf(3)-style format string
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/fparseln.3bsd b/man/fparseln.3bsd
index ab1039b..0f9ebc8 100644
--- a/man/fparseln.3bsd
+++ b/man/fparseln.3bsd
@@ -30,6 +30,7 @@
 .Nd return the next logical line from a stream
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/fpurge.3bsd b/man/fpurge.3bsd
index 435dd39..eb3fc95 100644
--- a/man/fpurge.3bsd
+++ b/man/fpurge.3bsd
@@ -39,6 +39,7 @@
 .Nd flush a stream
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/funopen.3bsd b/man/funopen.3bsd
index cc73cc1..b322525 100644
--- a/man/funopen.3bsd
+++ b/man/funopen.3bsd
@@ -40,6 +40,7 @@
 .Nd open a stream
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdio.h
diff --git a/man/getbsize.3bsd b/man/getbsize.3bsd
index d9e9e8c..d091db3 100644
--- a/man/getbsize.3bsd
+++ b/man/getbsize.3bsd
@@ -36,6 +36,7 @@
 .Nd get preferred block size
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/getpeereid.3bsd b/man/getpeereid.3bsd
index f1d2609..cce3909 100644
--- a/man/getpeereid.3bsd
+++ b/man/getpeereid.3bsd
@@ -33,6 +33,7 @@
 .Nd get the effective credentials of a UNIX-domain peer
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/types.h
diff --git a/man/getprogname.3bsd b/man/getprogname.3bsd
index 013935f..d2a3e34 100644
--- a/man/getprogname.3bsd
+++ b/man/getprogname.3bsd
@@ -40,6 +40,7 @@
 .Nd get or set the program name
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/heapsort.3bsd b/man/heapsort.3bsd
index 8ec4a6d..106de56 100644
--- a/man/heapsort.3bsd
+++ b/man/heapsort.3bsd
@@ -40,6 +40,7 @@
 .Nd sort functions
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/humanize_number.3bsd b/man/humanize_number.3bsd
index d5e484c..ff1db2b 100644
--- a/man/humanize_number.3bsd
+++ b/man/humanize_number.3bsd
@@ -36,6 +36,7 @@
 .Nd format a number into a human readable form and viceversa
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/mdX.3bsd b/man/mdX.3bsd
index 248b90a..c36308a 100644
--- a/man/mdX.3bsd
+++ b/man/mdX.3bsd
@@ -25,6 +25,7 @@
 .Nd calculate the RSA Data Security, Inc., ``MDX'' message digest
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/types.h
diff --git a/man/nlist.3bsd b/man/nlist.3bsd
index f837000..7903ea7 100644
--- a/man/nlist.3bsd
+++ b/man/nlist.3bsd
@@ -36,6 +36,7 @@
 .Nd retrieve symbol table name list from an executable file
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In nlist.h
diff --git a/man/pidfile.3bsd b/man/pidfile.3bsd
index e8974ae..489419b 100644
--- a/man/pidfile.3bsd
+++ b/man/pidfile.3bsd
@@ -36,6 +36,7 @@
 .Nd "library for PID files handling"
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In libutil.h
diff --git a/man/radixsort.3bsd b/man/radixsort.3bsd
index 29a90c7..306a311 100644
--- a/man/radixsort.3bsd
+++ b/man/radixsort.3bsd
@@ -38,6 +38,7 @@
 .Nd radix sort
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In limits.h
diff --git a/man/readpassphrase.3bsd b/man/readpassphrase.3bsd
index 53ad52d..9887eb9 100644
--- a/man/readpassphrase.3bsd
+++ b/man/readpassphrase.3bsd
@@ -26,6 +26,7 @@
 .Nd get a passphrase from the user
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In readpassphrase.h
diff --git a/man/reallocarray.3bsd b/man/reallocarray.3bsd
index 96563ea..1a37d33 100644
--- a/man/reallocarray.3bsd
+++ b/man/reallocarray.3bsd
@@ -40,6 +40,7 @@
 .Nd memory allocation and deallocation
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/reallocf.3bsd b/man/reallocf.3bsd
index 57d6033..5d8b66d 100644
--- a/man/reallocf.3bsd
+++ b/man/reallocf.3bsd
@@ -40,6 +40,7 @@
 .Nd general purpose memory allocation functions
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stdlib.h
diff --git a/man/setmode.3bsd b/man/setmode.3bsd
index eb8f770..0710f2a 100644
--- a/man/setmode.3bsd
+++ b/man/setmode.3bsd
@@ -39,6 +39,7 @@
 .Nd modify mode bits
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In unistd.h
diff --git a/man/setproctitle.3bsd b/man/setproctitle.3bsd
index 7425b77..ad1f44f 100644
--- a/man/setproctitle.3bsd
+++ b/man/setproctitle.3bsd
@@ -28,6 +28,7 @@
 .Nd set process title
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/types.h
diff --git a/man/stringlist.3bsd b/man/stringlist.3bsd
index 804aa6a..d5c0756 100644
--- a/man/stringlist.3bsd
+++ b/man/stringlist.3bsd
@@ -39,6 +39,7 @@
 .Nd stringlist manipulation functions
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In stringlist.h
diff --git a/man/strlcpy.3bsd b/man/strlcpy.3bsd
index 54a3eed..fd5d71d 100644
--- a/man/strlcpy.3bsd
+++ b/man/strlcpy.3bsd
@@ -23,6 +23,7 @@
 .Nd size-bounded string copying and concatenation
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In string.h
diff --git a/man/strmode.3bsd b/man/strmode.3bsd
index ad4a11c..224e099 100644
--- a/man/strmode.3bsd
+++ b/man/strmode.3bsd
@@ -36,6 +36,7 @@
 .Nd convert inode status information into a symbolic string
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In string.h
diff --git a/man/strnstr.3bsd b/man/strnstr.3bsd
index 0e1f5b5..e7a116d 100644
--- a/man/strnstr.3bsd
+++ b/man/strnstr.3bsd
@@ -41,6 +41,7 @@
 .Nd locate a substring in a string
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In string.h
diff --git a/man/strtoi.3bsd b/man/strtoi.3bsd
index 273d336..62c441e 100644
--- a/man/strtoi.3bsd
+++ b/man/strtoi.3bsd
@@ -44,6 +44,7 @@
 .Nd convert string value to an intmax_t integer
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In inttypes.h
diff --git a/man/strtonum.3bsd b/man/strtonum.3bsd
index 7d82fc8..e06347b 100644
--- a/man/strtonum.3bsd
+++ b/man/strtonum.3bsd
@@ -23,6 +23,7 @@
 .Nd reliably convert string value to an integer
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In limits.h
diff --git a/man/strtou.3bsd b/man/strtou.3bsd
index fc0f901..6bdc284 100644
--- a/man/strtou.3bsd
+++ b/man/strtou.3bsd
@@ -44,6 +44,7 @@
 .Nd convert a string to an uintmax_t integer
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In inttypes.h
diff --git a/man/timeradd.3bsd b/man/timeradd.3bsd
index 607383a..e9e78e9 100644
--- a/man/timeradd.3bsd
+++ b/man/timeradd.3bsd
@@ -47,6 +47,7 @@
 .Nd operations on time structure
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/time.h
diff --git a/man/timeval.3bsd b/man/timeval.3bsd
index 39c4c65..31431a3 100644
--- a/man/timeval.3bsd
+++ b/man/timeval.3bsd
@@ -36,6 +36,7 @@
 .Nd time structures
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In sys/time.h
diff --git a/man/unvis.3bsd b/man/unvis.3bsd
index 693fbda..22ed7c9 100644
--- a/man/unvis.3bsd
+++ b/man/unvis.3bsd
@@ -41,6 +41,7 @@
 .Nd decode a visual representation of characters
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In vis.h
diff --git a/man/vis.3bsd b/man/vis.3bsd
index 25280a8..00d9ebe 100644
--- a/man/vis.3bsd
+++ b/man/vis.3bsd
@@ -51,6 +51,7 @@
 .Nd visually encode characters
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In vis.h
diff --git a/man/wcslcpy.3bsd b/man/wcslcpy.3bsd
index 4195581..c112ff3 100644
--- a/man/wcslcpy.3bsd
+++ b/man/wcslcpy.3bsd
@@ -44,6 +44,7 @@
 .Nd wide character string manipulation operations
 .Sh LIBRARY
 .ds str-Lb-libbsd Utility functions from BSD systems (libbsd, \-lbsd)
+.ds doc-str-Lb-libbsd \*[str-Lb-libbsd]
 .Lb libbsd
 .Sh SYNOPSIS
 .In wchar.h