Home | History | Annotate | Download | only in import

Lines Matching defs:dirfd

195 /* On kLIBC, dirfd() is a macro that does not work.  Undefine it.  */
196 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) || defined dirfd
197 # undef dirfd
198 # define dirfd rpl_dirfd
200 _GL_FUNCDECL_RPL (dirfd, int, (DIR *) _GL_ARG_NONNULL ((1)));
201 _GL_CXXALIAS_RPL (dirfd, int, (DIR *));
204 /* Gnulib internal hooks needed to maintain the dirfd metadata. */
210 # if defined __cplusplus && defined GNULIB_NAMESPACE && defined dirfd
211 /* dirfd is defined as a macro and not as a function.
213 static inline int (dirfd) (DIR *dp) { return dirfd (dp); }
214 # undef dirfd
216 # if !(@HAVE_DECL_DIRFD@ || defined dirfd)
217 _GL_FUNCDECL_SYS (dirfd, int, (DIR *) _GL_ARG_NONNULL ((1)));
219 _GL_CXXALIAS_SYS (dirfd, int, (DIR *));
221 _GL_CXXALIASWARN (dirfd);
223 # undef dirfd
225 _GL_WARN_ON_USE (dirfd, "dirfd is unportable - "
226 "use gnulib module dirfd for portability");