1*b5a37565Sflorian /* $OpenBSD: dirent.h,v 1.2 2024/04/15 15:47:58 florian Exp $ */ 2209e3952Sguenther /* 3209e3952Sguenther * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> 4209e3952Sguenther * 5209e3952Sguenther * Permission to use, copy, modify, and distribute this software for any 6209e3952Sguenther * purpose with or without fee is hereby granted, provided that the above 7209e3952Sguenther * copyright notice and this permission notice appear in all copies. 8209e3952Sguenther * 9209e3952Sguenther * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10209e3952Sguenther * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11209e3952Sguenther * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12209e3952Sguenther * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13209e3952Sguenther * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14209e3952Sguenther * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15209e3952Sguenther * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16209e3952Sguenther */ 17209e3952Sguenther 18209e3952Sguenther #ifndef _LIBC_DIRENT_H_ 19209e3952Sguenther #define _LIBC_DIRENT_H_ 20209e3952Sguenther 21209e3952Sguenther #include_next <dirent.h> 22209e3952Sguenther 23*b5a37565Sflorian __BEGIN_HIDDEN_DECLS 24*b5a37565Sflorian DIR *__fdopendir(int fd); 25*b5a37565Sflorian __END_HIDDEN_DECLS 26*b5a37565Sflorian 27209e3952Sguenther PROTO_DEPRECATED(alphasort); 28209e3952Sguenther PROTO_NORMAL(closedir); 29209e3952Sguenther PROTO_NORMAL(dirfd); 30209e3952Sguenther PROTO_NORMAL(fdopendir); 31209e3952Sguenther PROTO_NORMAL(getdents); 32209e3952Sguenther PROTO_NORMAL(opendir); 33209e3952Sguenther PROTO_NORMAL(readdir); 34209e3952Sguenther PROTO_DEPRECATED(readdir_r); 35209e3952Sguenther PROTO_DEPRECATED(rewinddir); 36209e3952Sguenther PROTO_DEPRECATED(scandir); 37*b5a37565Sflorian PROTO_DEPRECATED(scandirat); 38209e3952Sguenther PROTO_NORMAL(seekdir); 39209e3952Sguenther PROTO_NORMAL(telldir); 40209e3952Sguenther 41209e3952Sguenther #endif /* !_LIBC_DIRENT_H_ */ 42