2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" References consulted:
7 .\" Linux libc source code
8 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
10 .\" Modified Sat Jul 24 18:25:21 1993 by Rik Faith (faith@cs.unc.edu)
12 .TH seekdir 3 (date) "Linux man-pages (unreleased)"
14 seekdir \- set the position of the next readdir() call in the directory
18 .RI ( libc ", " \-lc )
21 .B #include <dirent.h>
23 .BI "void seekdir(DIR *" dirp ", long " loc );
27 Feature Test Macro Requirements for glibc (see
28 .BR feature_test_macros (7)):
34 || /* glibc >= 2.19: */ _DEFAULT_SOURCE
35 || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
40 function sets the location in the directory stream
46 argument should be a value returned by a previous call to
51 function returns no value.
53 For an explanation of the terms used in this section, see
59 Interface Attribute Value
64 T} Thread safety MT-Safe
71 Up to glibc 2.1.1, the type of the
75 POSIX.1-2001 specifies
77 and this is the type used since glibc 2.1.2.
80 for information on why you should be careful in making any
81 assumptions about the value in this argument.