The MinGW.org Windows System Libraries
修訂 | 45437ae46ecd1f4f82758b394771420ddca71062 (tree) |
---|---|
時間 | 2020-04-12 04:58:43 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Manpage stylistic consistency updates.
@@ -1,3 +1,10 @@ | ||
1 | +2020-04-11 Keith Marshall <keith@users.osdn.me> | |
2 | + | |
3 | + Manpage stylistic consistency updates. | |
4 | + | |
5 | + * man/dirname.3.man man/getline.3.man: Miscellaneous stylistic | |
6 | + formatting changes. | |
7 | + | |
1 | 8 | 2020-04-08 Keith Marshall <keith@users.osdn.me> |
2 | 9 | |
3 | 10 | Ensure PDF manpages are generated from local sources. |
@@ -1,6 +1,6 @@ | ||
1 | 1 | '\" t |
2 | 2 | .\" vim: ft=nroff |
3 | -.TH %PAGEREF% MinGW "Programmer's Reference Manual" | |
3 | +.TH %PAGEREF% MinGW "MinGW Programmer's Reference Manual" | |
4 | 4 | . |
5 | 5 | .SH NAME |
6 | 6 | . |
@@ -48,16 +48,16 @@ Additionally, | ||
48 | 48 | if the |
49 | 49 | .I second |
50 | 50 | character of |
51 | -.I path | |
51 | +.I \%path | |
52 | 52 | is a colon |
53 | 53 | .RB (\(dq : \(dq), |
54 | 54 | the first two characters of |
55 | -.I path | |
55 | +.I \%path | |
56 | 56 | are interpreted as an MS\-Windows drive designator, |
57 | 57 | which will be included in the |
58 | 58 | .B directory name |
59 | 59 | component of |
60 | -.IR path , | |
60 | +.IR \%path , | |
61 | 61 | but is never considered to form part of the |
62 | 62 | .B file name |
63 | 63 | component. |
@@ -66,13 +66,13 @@ component. | ||
66 | 66 | In normal usage, |
67 | 67 | .BR \%dirname () |
68 | 68 | returns a pointer to a string representing the path name component of |
69 | -.IR path , | |
69 | +.IR \%path , | |
70 | 70 | up to but not including the rightmost directory separator, |
71 | 71 | while |
72 | 72 | .BR \%basename () |
73 | 73 | returns a pointer to the component following this separator. |
74 | 74 | Any trailing directory separators present in |
75 | -.I path | |
75 | +.I \%path | |
76 | 76 | are disregarded, |
77 | 77 | when determining the rightmost separator, |
78 | 78 | and, in the case of the return value from |
@@ -82,7 +82,7 @@ are each reduced to a single such character. | ||
82 | 82 | . |
83 | 83 | .PP |
84 | 84 | If |
85 | -.I path | |
85 | +.I \%path | |
86 | 86 | contains no MS\-Windows drive designator, |
87 | 87 | and no directory separator character, |
88 | 88 | then |
@@ -92,9 +92,9 @@ returns the string | ||
92 | 92 | and |
93 | 93 | .BR \%basename () |
94 | 94 | returns a copy of |
95 | -.IR path. | |
95 | +.IR \%path. | |
96 | 96 | If |
97 | -.I path | |
97 | +.I \%path | |
98 | 98 | does commence with an MS\-Windows drive designator, |
99 | 99 | but contains no directory separators, |
100 | 100 | then |
@@ -107,14 +107,14 @@ represents the drive designator, | ||
107 | 107 | while |
108 | 108 | .BR \%basename () |
109 | 109 | returns a copy of |
110 | -.IR path , | |
110 | +.IR \%path , | |
111 | 111 | with its initial two characters, |
112 | 112 | (i.e.\ the drive designator), |
113 | 113 | deleted. |
114 | 114 | . |
115 | 115 | .PP |
116 | 116 | If |
117 | -.I path | |
117 | +.I \%path | |
118 | 118 | is a NULL pointer, |
119 | 119 | or is a pointer to an empty string, |
120 | 120 | then both |
@@ -126,7 +126,7 @@ return the string | ||
126 | 126 | . |
127 | 127 | .PP |
128 | 128 | If |
129 | -.I path | |
129 | +.I \%path | |
130 | 130 | is the string |
131 | 131 | .RB \(dq / \(dq, |
132 | 132 | or the string |
@@ -143,7 +143,7 @@ respectively. | ||
143 | 143 | . |
144 | 144 | .PP |
145 | 145 | If |
146 | -.I path | |
146 | +.I \%path | |
147 | 147 | commences with |
148 | 148 | .I exactly |
149 | 149 | two directory separator characters, |
@@ -156,13 +156,13 @@ This construct does not affect the string returned by | ||
156 | 156 | neither is this behaviour replicated by |
157 | 157 | .BR \%dirname (), |
158 | 158 | if |
159 | -.I path | |
159 | +.I \%path | |
160 | 160 | includes an MS\-Windows drive designator. |
161 | 161 | . |
162 | 162 | .PP |
163 | 163 | In the special case, |
164 | 164 | where |
165 | -.I path | |
165 | +.I \%path | |
166 | 166 | is specified as |
167 | 167 | .I exactly |
168 | 168 | two identical directory separator characters, |
@@ -170,7 +170,7 @@ with no MS\-Windows drive designator, | ||
170 | 170 | and no following path name, |
171 | 171 | .BR \%dirname () |
172 | 172 | returns |
173 | -.I path | |
173 | +.I \%path | |
174 | 174 | unchanged; |
175 | 175 | .BR \%basename () |
176 | 176 | normalises the return string to only a single character, |
@@ -179,7 +179,7 @@ either | ||
179 | 179 | or |
180 | 180 | .RB \(dq \e \(dq, |
181 | 181 | matching the characters used to specify |
182 | -.IR path . | |
182 | +.IR \%path . | |
183 | 183 | . |
184 | 184 | .PP |
185 | 185 | Concatenating the string returned by |
@@ -222,7 +222,7 @@ the test program defines the following function:\(em | ||
222 | 222 | . |
223 | 223 | .PP |
224 | 224 | .RS |
225 | -.nf | |
225 | +.EX | |
226 | 226 | #include <stdio.h> |
227 | 227 | #include <string.h> |
228 | 228 | #include <libgen.h> |
@@ -238,7 +238,7 @@ void result( char *path ) | ||
238 | 238 | free( dir ); |
239 | 239 | free( file ); |
240 | 240 | } |
241 | -.fi | |
241 | +.EE | |
242 | 242 | .RE |
243 | 243 | .PP |
244 | 244 | This illustrates the correct use of the |
@@ -247,14 +247,14 @@ and the | ||
247 | 247 | .BR \%basename () |
248 | 248 | functions, |
249 | 249 | with copies of the original |
250 | -.I path | |
250 | +.I \%path | |
251 | 251 | string being passed in the function calls. |
252 | 252 | Note that the return values from each function are used immediately, |
253 | 253 | in the |
254 | -.BR printf () | |
254 | +.BR \%printf () | |
255 | 255 | call, |
256 | 256 | and the temporary copies of |
257 | -.I path | |
257 | +.I \%path | |
258 | 258 | are discarded, |
259 | 259 | and the associated memory is freed, |
260 | 260 | before these go out of scope. |
@@ -373,7 +373,7 @@ The | ||
373 | 373 | .BR \%dirname () |
374 | 374 | function returns a pointer to a null terminated string, |
375 | 375 | which represents the directory path component of the passed |
376 | -.I path | |
376 | +.I \%path | |
377 | 377 | string, |
378 | 378 | without any trailing directory separator character, |
379 | 379 | and with all internal sequences of directory separator characters |
@@ -385,13 +385,13 @@ The | ||
385 | 385 | function |
386 | 386 | returns a pointer to a null terminated string, |
387 | 387 | which represents the rightmost element of the passed |
388 | -.I path | |
388 | +.I \%path | |
389 | 389 | string, |
390 | 390 | with all trailing directory separator characters removed. |
391 | 391 | . |
392 | 392 | .PP |
393 | 393 | If any MS\-Windows drive designator is specified in the input |
394 | -.I path | |
394 | +.I \%path | |
395 | 395 | string, |
396 | 396 | it is included in the return value of the |
397 | 397 | .BR \%dirname () |
@@ -413,10 +413,10 @@ The | ||
413 | 413 | and |
414 | 414 | .BR \%basename () |
415 | 415 | functions may modify the |
416 | -.I path | |
416 | +.I \%path | |
417 | 417 | string passed to them. |
418 | 418 | Therefore, it is an error to pass a character constant as the |
419 | -.I path | |
419 | +.I \%path | |
420 | 420 | parameter; |
421 | 421 | to do so may result in memory violation errors, |
422 | 422 | (segmentation faults), |
@@ -424,14 +424,14 @@ and consequent abnormal program termination. | ||
424 | 424 | .PP |
425 | 425 | Also note that, |
426 | 426 | since the |
427 | -.I path | |
427 | +.I \%path | |
428 | 428 | argument may be modified by the |
429 | 429 | .BR \%dirname () |
430 | 430 | or the |
431 | 431 | .BR \%basename () |
432 | 432 | function call, |
433 | 433 | if you wish to preserve the original content of |
434 | -.IR path , | |
434 | +.IR \%path , | |
435 | 435 | you should pass a copy to the function. |
436 | 436 | Furthermore, |
437 | 437 | either function may return its result in a statically allocated buffer, |
@@ -443,13 +443,13 @@ and | ||
443 | 443 | .BR \%basename () |
444 | 444 | functions parse path name strings, |
445 | 445 | they are basically just |
446 | -.I string | |
446 | +.I \%string | |
447 | 447 | functions. |
448 | 448 | The presence of an MS\-Windows drive designator is determined |
449 | 449 | by the appearance of a colon |
450 | 450 | .RB (\(dq : \(dq) |
451 | 451 | as the second character of the |
452 | -.I path | |
452 | +.I \%path | |
453 | 453 | string, |
454 | 454 | but neither function performs any check |
455 | 455 | to ensure that the first character represents a valid file system device; |
@@ -461,7 +461,8 @@ represents a valid path name. | ||
461 | 461 | .SH AUTHOR |
462 | 462 | . |
463 | 463 | This manpage was written by \%Keith\ Marshall, |
464 | -\%<keithmarshall@users.sourceforge.net>, to document the | |
464 | +\%<keith@users.osdn.me>, | |
465 | +to document the | |
465 | 466 | .BR \%basename () |
466 | 467 | and |
467 | 468 | .BR \%dirname () |
@@ -469,7 +470,7 @@ functions as they have been implemented for the MinGW.org Project. | ||
469 | 470 | It may be copied, modified and redistributed, |
470 | 471 | without restriction of copyright, |
471 | 472 | provided this acknowledgement of contribution by |
472 | -the original author remains unchanged. | |
473 | +the original author remains in place. | |
473 | 474 | . |
474 | 475 | . |
475 | 476 | .\" EOF |
@@ -1,5 +1,5 @@ | ||
1 | 1 | .\" vim: ft=nroff |
2 | -.TH %PAGEREF% MinGW "Programmer's Reference Manual" | |
2 | +.TH %PAGEREF% MinGW "MinGW Programmer's Reference Manual" | |
3 | 3 | . |
4 | 4 | .SH NAME |
5 | 5 | .BR getline ,\0 getdelim |
@@ -28,8 +28,7 @@ | ||
28 | 28 | .BI * stream |
29 | 29 | .B ); |
30 | 30 | . |
31 | -.PP | |
32 | -.in -4n | |
31 | +.IP \& -4n | |
33 | 32 | Feature Test Macro Requirements for libmingwex: |
34 | 33 | .TP 4 |
35 | 34 | .BR getdelim (),\~ getline (): |
@@ -41,52 +40,52 @@ Available since libmingwex version 3.22: | ||
41 | 40 | . |
42 | 41 | .SH DESCRIPTION |
43 | 42 | The |
44 | -.BR getdelim () | |
43 | +.BR \%getdelim () | |
45 | 44 | function reads data from |
46 | -.IR stream , | |
45 | +.IR \%stream , | |
47 | 46 | until either a character entity matching |
48 | -.IR delim , | |
47 | +.IR \%delim , | |
49 | 48 | or |
50 | 49 | .I EOF |
51 | 50 | is encountered; |
52 | 51 | the data so read, |
53 | 52 | including the |
54 | -.I delim | |
53 | +.I \%delim | |
55 | 54 | character if present, |
56 | 55 | is stored into the buffer referenced by the pointer at |
57 | 56 | .B *\c |
58 | -.IR linebuf , | |
57 | +.IR \%linebuf , | |
59 | 58 | and is |
60 | 59 | .I NUL |
61 | 60 | terminated. |
62 | 61 | .PP |
63 | 62 | The |
64 | -.BR getline () | |
63 | +.BR \%getline () | |
65 | 64 | function is a special case of |
66 | -.BR getdelim (), | |
65 | +.BR \%getdelim (), | |
67 | 66 | with the |
68 | -.I delim | |
67 | +.I \%delim | |
69 | 68 | argument implicitly specified as the POSIX newline character, |
70 | 69 | .IR '\en' . |
71 | 70 | . |
72 | 71 | .PP |
73 | 72 | The |
74 | -.I linebuf | |
73 | +.I \%linebuf | |
75 | 74 | argument must be a reference to a pointer which is safe to pass to |
76 | -.BR free (); | |
75 | +.BR \%free (); | |
77 | 76 | either a |
78 | -.I NULL | |
77 | +.I \%NULL | |
79 | 78 | pointer, |
80 | 79 | or a pointer to a buffer of size as indicated by |
81 | 80 | .B *\c |
82 | 81 | .IR n , |
83 | 82 | allocated by |
84 | -.BR malloc (). | |
83 | +.BR \%malloc (). | |
85 | 84 | Passing a value of |
86 | -.I NULL | |
85 | +.I \%NULL | |
87 | 86 | in |
88 | 87 | .B *\c |
89 | -.IR linebuf , | |
88 | +.IR \%linebuf , | |
90 | 89 | with a value of zero in |
91 | 90 | .B *\c |
92 | 91 | .IR n , |
@@ -96,7 +95,7 @@ of a default buffer. | ||
96 | 95 | . |
97 | 96 | .PP |
98 | 97 | The |
99 | -.I delim | |
98 | +.I \%delim | |
100 | 99 | argument is specified as an |
101 | 100 | .BR int ; |
102 | 101 | it must be passed a value which is representable as an |
@@ -108,21 +107,21 @@ otherwise the behaviour is undefined. | ||
108 | 107 | If |
109 | 108 | .BI * linebuf |
110 | 109 | is initially passed as a |
111 | -.I NULL | |
110 | +.I \%NULL | |
112 | 111 | pointer, |
113 | 112 | then |
114 | -.BR getdelim () | |
113 | +.BR \%getdelim () | |
115 | 114 | or |
116 | -.BR getline () | |
115 | +.BR \%getline () | |
117 | 116 | will call |
118 | -.BR malloc (), | |
117 | +.BR \%malloc (), | |
119 | 118 | in an attempt to allocate |
120 | 119 | .BI * n |
121 | 120 | bytes, |
122 | 121 | or an arbitrarily sized smaller default buffer, |
123 | 122 | if such an allocation is not achievable. |
124 | 123 | In either case, |
125 | -.BI * linebuf | |
124 | +.BI \%* linebuf | |
126 | 125 | and |
127 | 126 | .BI * n |
128 | 127 | will be updated to reflect the allocated buffer location, |
@@ -132,11 +131,11 @@ and the actual size allocated. | ||
132 | 131 | If, |
133 | 132 | at any time during collection of the input record, |
134 | 133 | the buffer referenced by |
135 | -.BI * linebuf | |
134 | +.BI \%* linebuf | |
136 | 135 | becomes too small to store the record, |
137 | 136 | it will be expanded as necessary, |
138 | 137 | and both |
139 | -.BI * linebuf | |
138 | +.BI \%* linebuf | |
140 | 139 | and |
141 | 140 | .BI * n |
142 | 141 | will be adjusted to reflect the change in allocation. |
@@ -145,14 +144,14 @@ will be adjusted to reflect the change in allocation. | ||
145 | 144 | .SH RETURN VALUE |
146 | 145 | . |
147 | 146 | On successful completion, |
148 | -.BR getline () | |
147 | +.BR \%getline () | |
149 | 148 | and |
150 | -.BR getdelim () | |
149 | +.BR \%getdelim () | |
151 | 150 | return the number of characters stored into the buffer at |
152 | 151 | .B *\c |
153 | -.IR linebuf , | |
152 | +.IR \%linebuf , | |
154 | 153 | including the |
155 | -.I delim | |
154 | +.I \%delim | |
156 | 155 | character if this was encountered before |
157 | 156 | .IR EOF , |
158 | 157 | but excluding the terminating |
@@ -162,22 +161,22 @@ character. | ||
162 | 161 | .PP |
163 | 162 | If no characters were read, |
164 | 163 | and |
165 | -.I stream | |
164 | +.I \%stream | |
166 | 165 | is at end-of-file, |
167 | -.BR getline () | |
166 | +.BR \%getline () | |
168 | 167 | and |
169 | -.BR getdelim () | |
168 | +.BR \%getdelim () | |
170 | 169 | return \(mi1, |
171 | 170 | and the end-of-file indicator is set for |
172 | -.IR stream . | |
171 | +.IR \%stream . | |
173 | 172 | . |
174 | 173 | .PP |
175 | 174 | If an error occurs, |
176 | -.BR getline () | |
175 | +.BR \%getline () | |
177 | 176 | and |
178 | -.BR getdelim () | |
177 | +.BR \%getdelim () | |
179 | 178 | set |
180 | -.IR errno , | |
179 | +.IR \%errno , | |
181 | 180 | as indicated under the heading |
182 | 181 | .B ERROR CONDITIONS |
183 | 182 | below, |
@@ -186,95 +185,100 @@ and return \(mi1. | ||
186 | 185 | . |
187 | 186 | .SH ERROR CONDITIONS |
188 | 187 | . |
189 | -.BR getline () | |
188 | +.BR \%getline () | |
190 | 189 | and |
191 | -.BR getdelim | |
190 | +.BR \%getdelim | |
192 | 191 | may fail for any of the reasons described as failure conditions for |
193 | -.BR fgetc (); | |
192 | +.BR \%fgetc (); | |
194 | 193 | when any such error occurs, |
195 | -.I errno | |
194 | +.I \%errno | |
196 | 195 | is left as set by |
197 | -.BR fgetc (), | |
196 | +.BR \%fgetc (), | |
198 | 197 | and |
199 | -.BR getline () | |
198 | +.BR \%getline () | |
200 | 199 | or |
201 | -.BR getdelim () | |
200 | +.BR \%getdelim () | |
202 | 201 | returns \(mi1. |
203 | 202 | . |
204 | 203 | .PP |
205 | 204 | In addition to |
206 | -.BR fgetc () | |
205 | +.BR \%fgetc () | |
207 | 206 | failure conditions, |
208 | -.BR getline () | |
207 | +.BR \%getline () | |
209 | 208 | and |
210 | -.BR getdelim () | |
209 | +.BR \%getdelim () | |
211 | 210 | may fail, |
212 | 211 | returning \(mi1 after setting |
213 | -.I errno | |
212 | +.I \%errno | |
214 | 213 | to indicate occurrence of any of the following errors: |
215 | 214 | . |
216 | 215 | .RS 4 |
217 | 216 | .TP 10 |
218 | -.B EINVAL | |
219 | -.I linebuf | |
217 | +.B \%EINVAL | |
218 | +.I \%linebuf | |
220 | 219 | or |
221 | 220 | .I n |
222 | 221 | is |
223 | -.IR NULL . | |
222 | +.IR \%NULL . | |
224 | 223 | . |
225 | 224 | .TP 10 |
226 | 225 | .B EBADF |
227 | -.I stream | |
226 | +.I \%stream | |
228 | 227 | is a |
229 | -.I NULL | |
228 | +.I \%NULL | |
230 | 229 | pointer, |
231 | 230 | or otherwise is not a valid stream opened for reading, |
232 | 231 | as determined by |
233 | -.BR fgetc (). | |
232 | +.BR \%fgetc (). | |
234 | 233 | . |
235 | 234 | .TP 10 |
236 | 235 | .B ENOMEM |
237 | 236 | An attempt to allocate a buffer, |
238 | 237 | or to expand the buffer referenced by |
239 | 238 | .B * |
240 | -.IR linebuf , | |
239 | +.IR \%linebuf , | |
241 | 240 | was unsuccessful. |
242 | 241 | . |
243 | 242 | .TP 10 |
244 | 243 | .B ERANGE |
245 | 244 | More than |
246 | -.B SSIZE_MAX | |
245 | +.B \%SSIZE_MAX | |
247 | 246 | characters were read, |
248 | 247 | without finding |
249 | -.IR delim . | |
250 | -(Note that POSIX specifies that | |
248 | +.IR \%delim . | |
249 | +(Note that | |
250 | +.B \%POSIX.1 | |
251 | +specifies that | |
251 | 252 | .I errno |
252 | 253 | should be set to |
253 | -.B EOVERFLOW | |
254 | +.B \%EOVERFLOW | |
254 | 255 | for this error condition; |
255 | 256 | see heading |
256 | 257 | .B CAVEATS AND BUGS |
257 | 258 | below, |
258 | 259 | for the rationale for the use of |
259 | -.B ERANGE | |
260 | +.B \%ERANGE | |
260 | 261 | in this implementation). |
261 | 262 | .RE |
262 | 263 | . |
263 | 264 | . |
264 | -.SH CONFORMING TO | |
265 | +.SH STANDARDS CONFORMANCE | |
265 | 266 | . |
266 | 267 | Originally implemented as GNU extension functions, |
267 | 268 | both |
268 | -.BR getline () | |
269 | +.BR \%getline () | |
269 | 270 | and |
270 | -.BR getdelim () | |
271 | -were adopted into POSIX.1-2008; | |
272 | -implementations conforming to this POSIX standard have been | |
273 | -integrated into libmingwex from version 3.22 onwards. | |
271 | +.BR \%getdelim () | |
272 | +were adopted into | |
273 | +.BR \%POSIX.1\(hy2008 ; | |
274 | +implementations conforming to this | |
275 | +.B \%POSIX.1 | |
276 | +standard have been integrated into libmingwex | |
277 | +from version 3.22 onwards. | |
274 | 278 | . |
275 | 279 | . |
276 | 280 | .SH EXAMPLE |
277 | -.nf | |
281 | +.EX | |
278 | 282 | #include <stdio.h> |
279 | 283 | #include <stdlib.h> |
280 | 284 |
@@ -297,62 +301,63 @@ int main () | ||
297 | 301 | fclose (fp); |
298 | 302 | return 0; |
299 | 303 | } |
300 | -.fi | |
304 | +.EE | |
301 | 305 | . |
302 | 306 | . |
303 | 307 | .SH CAVEATS AND BUGS |
304 | 308 | . |
305 | 309 | A return value of \(mi1 may indicate that |
306 | -.I stream | |
310 | +.I \%stream | |
307 | 311 | is already at end-of-file when |
308 | -.BR getline () | |
312 | +.BR \%getline () | |
309 | 313 | or |
310 | -.BR getdelim () | |
314 | +.BR \%getdelim () | |
311 | 315 | is called, |
312 | 316 | or it may indicate an error condition; |
313 | 317 | use |
314 | -.BR ferror () | |
318 | +.BR \%ferror () | |
315 | 319 | or |
316 | -.BR feof () | |
320 | +.BR \%feof () | |
317 | 321 | to distinguish error and end-of-file conditions. |
318 | 322 | . |
319 | 323 | .PP |
320 | 324 | The return type of |
321 | -.I ssize_t | |
325 | +.I \%ssize_t | |
322 | 326 | can accommodate a maximum character count of |
323 | -.BR SSIZE_MAX , | |
327 | +.BR \%SSIZE_MAX , | |
324 | 328 | and thus, |
325 | 329 | the return value will overflow if |
326 | -.BR getline () | |
330 | +.BR \%getline () | |
327 | 331 | or |
328 | -.BR getdelim () | |
332 | +.BR \%getdelim () | |
329 | 333 | reads |
330 | -.B SSIZE_MAX | |
334 | +.B \%SSIZE_MAX | |
331 | 335 | characters without encountering a line delimiter; |
332 | 336 | for this overflow condition, |
333 | -POSIX.1-2008 stipulates an | |
337 | +.B \%POSIX.1\(hy2008 | |
338 | +stipulates an | |
334 | 339 | .I errno |
335 | 340 | condition code of |
336 | -.B EOVERFLOW . | |
341 | +.B \%EOVERFLOW . | |
337 | 342 | However, |
338 | 343 | MSVCRT.DLL provides no significant interpretation for |
339 | 344 | an arbitrarily assigned |
340 | -.B EOVERFLOW | |
341 | -.I errno | |
345 | +.B \%EOVERFLOW | |
346 | +.I \%errno | |
342 | 347 | code. |
343 | 348 | Thus, |
344 | 349 | this implementation of |
345 | -.BR getline () | |
350 | +.BR \%getline () | |
346 | 351 | and |
347 | -.BR getdelim () | |
352 | +.BR \%getdelim () | |
348 | 353 | substitutes the semantically similar, |
349 | 354 | (but not semantically identical), |
350 | -.B ERANGE | |
351 | -.I errno | |
355 | +.B \%ERANGE | |
356 | +.I \%errno | |
352 | 357 | code for |
353 | -.BR EOVERFLOW , | |
358 | +.BR \%EOVERFLOW , | |
354 | 359 | to ensure that MSVCRT.DLL's |
355 | -.BR strerror () | |
360 | +.BR \%strerror () | |
356 | 361 | can return an acceptable description for this error condition. |
357 | 362 | . |
358 | 363 | . |
@@ -361,20 +366,21 @@ can return an acceptable description for this error condition. | ||
361 | 366 | Please refer to Microsoft's documentation, |
362 | 367 | on MSDN, |
363 | 368 | for standard I/O streams, |
364 | -.BR fgetc (), | |
365 | -.BR ferror (), | |
366 | -.BR feof (), | |
367 | -.BR malloc (), | |
368 | -.BR free (), | |
369 | -.BR strerror (), | |
369 | +.BR \%fgetc (), | |
370 | +.BR \%ferror (), | |
371 | +.BR \%feof (), | |
372 | +.BR \%malloc (), | |
373 | +.BR \%free (), | |
374 | +.BR \%strerror (), | |
370 | 375 | and |
371 | -.BR errno . | |
376 | +.BR \%errno . | |
372 | 377 | . |
373 | 378 | . |
374 | 379 | .SH AUTHOR |
375 | 380 | . |
376 | 381 | This manpage was written by \%Keith\ Marshall, |
377 | -\%<keithmarshall@users.sourceforge.net>, to document the | |
382 | +\%<keith@users.osdn.me>, | |
383 | +to document the | |
378 | 384 | .BR \%getline () |
379 | 385 | and |
380 | 386 | .BR \%getdelim () |
@@ -382,6 +388,6 @@ functions as they have been implemented for the MinGW.org Project. | ||
382 | 388 | It may be copied, modified and redistributed, |
383 | 389 | without restriction of copyright, |
384 | 390 | provided this acknowledgement of contribution by |
385 | -the original author remains unchanged. | |
391 | +the original author remains in place. | |
386 | 392 | . |
387 | 393 | .\" EOF |