]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/fseek.3.patch
Libc-594.9.5.tar.gz
[apple/libc.git] / stdio / FreeBSD / fseek.3.patch
1 --- fseek.3 2004-11-25 11:38:34.000000000 -0800
2 +++ fseek.3.edit 2006-07-12 11:18:41.000000000 -0700
3 @@ -53,20 +53,39 @@
4 .Sh SYNOPSIS
5 .In stdio.h
6 .Ft int
7 -.Fn fseek "FILE *stream" "long offset" "int whence"
8 -.Ft long
9 -.Fn ftell "FILE *stream"
10 -.Ft void
11 -.Fn rewind "FILE *stream"
12 +.Fo fgetpos
13 +.Fa "FILE *restrict stream"
14 +.Fa "fpos_t *restrict pos"
15 +.Fc
16 .Ft int
17 -.Fn fgetpos "FILE * restrict stream" "fpos_t * restrict pos"
18 +.Fo fseek
19 +.Fa "FILE *stream"
20 +.Fa "long offset"
21 +.Fa "int whence"
22 +.Fc
23 .Ft int
24 -.Fn fsetpos "FILE *stream" "const fpos_t *pos"
25 -.In sys/types.h
26 +.Fo fseeko
27 +.Fa "FILE *stream"
28 +.Fa "off_t offset"
29 +.Fa "int whence"
30 +.Fc
31 .Ft int
32 -.Fn fseeko "FILE *stream" "off_t offset" "int whence"
33 +.Fo fsetpos
34 +.Fa "FILE *stream"
35 +.Fa "const fpos_t *pos"
36 +.Fc
37 +.Ft long
38 +.Fo ftell
39 +.Fa "FILE *stream"
40 +.Fc
41 .Ft off_t
42 -.Fn ftello "FILE *stream"
43 +.Fo ftello
44 +.Fa "FILE *stream"
45 +.Fc
46 +.Ft void
47 +.Fo rewind
48 +.Fa "FILE *stream"
49 +.Fc
50 .Sh DESCRIPTION
51 The
52 .Fn fseek
53 @@ -246,12 +265,29 @@
54 .Xr lseek 2 ,
55 and
56 .Xr malloc 3 .
57 +.Sh LEGACY SYNOPSIS
58 +.Fd #include <stdio.h>
59 +.Fd #include <sys/types.h>
60 +.Pp
61 +.Ft int
62 +.br
63 +.Fo fseeko
64 +.Fa "FILE *stream"
65 +.Fa "off_t offset"
66 +.Fa "int whence"
67 +.Fc ;
68 +.Pp
69 +The include file
70 +.In sys/types.h
71 +supplies the definition for
72 +.Vt off_t .
73 .Sh SEE ALSO
74 .Xr lseek 2 ,
75 .Xr clearerr 3 ,
76 .Xr fwide 3 ,
77 .Xr ungetc 3 ,
78 -.Xr ungetwc 3
79 +.Xr ungetwc 3 ,
80 +.Xr compat 5
81 .Sh STANDARDS
82 The
83 .Fn fgetpos ,