gen-private.h (82725ba9bf1fd59746a4006a06f24d4d61d142f2) gen-private.h (b54a59f3ba244b76a34488090653df687527e53c)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 37 unchanged lines hidden (view full) ---

46struct _dirdesc {
47 int dd_fd; /* file descriptor associated with directory */
48 long dd_loc; /* offset in current buffer */
49 long dd_size; /* amount of data returned by getdirentries */
50 char *dd_buf; /* data buffer */
51 int dd_len; /* size of data buffer */
52 off_t dd_seek; /* magic cookie returned by getdirentries */
53 int dd_flags; /* flags for readdir */
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 37 unchanged lines hidden (view full) ---

46struct _dirdesc {
47 int dd_fd; /* file descriptor associated with directory */
48 long dd_loc; /* offset in current buffer */
49 long dd_size; /* amount of data returned by getdirentries */
50 char *dd_buf; /* data buffer */
51 int dd_len; /* size of data buffer */
52 off_t dd_seek; /* magic cookie returned by getdirentries */
53 int dd_flags; /* flags for readdir */
54#ifndef IN_RTLD
54 struct pthread_mutex *dd_lock; /* lock */
55 struct pthread_mutex *dd_lock; /* lock */
56#else
57 struct _donotuse *dd_lock; /* unused in rtld, keep same layout */
58#endif
55 struct _telldir *dd_td; /* telldir position recording */
56 void *dd_compat_de; /* compat dirent */
57};
58
59#define _dirfd(dirp) ((dirp)->dd_fd)
60
61struct dirent;
62int __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
63
64#endif /* !_GEN_PRIVATE_H_ */
59 struct _telldir *dd_td; /* telldir position recording */
60 void *dd_compat_de; /* compat dirent */
61};
62
63#define _dirfd(dirp) ((dirp)->dd_fd)
64
65struct dirent;
66int __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
67
68#endif /* !_GEN_PRIVATE_H_ */