2 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH fseeko 3 (date) "Linux man-pages (unreleased)"
8 fseeko, ftello \- seek to or report file position
11 .RI ( libc ", " \-lc )
16 .BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence );
17 .BI "off_t ftello(FILE *" stream );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
28 _FILE_OFFSET_BITS == 64 || _POSIX_C_SOURCE >= 200112L
35 functions are identical to
41 respectively, except that the
45 and the return value of
52 On some architectures, both
56 are 32-bit types, but defining
58 with the value 64 (before including
65 On successful completion,
69 returns the current offset.
70 Otherwise, \-1 is returned and
72 is set to indicate the error.
77 These functions are available since glibc 2.1.
79 For an explanation of the terms used in this section, see
87 Interface Attribute Value
91 T} Thread safety MT-Safe
97 POSIX.1-2001, POSIX.1-2008, SUSv2.
99 The declarations of these functions can also be obtained by defining