* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
[gnulib.git] / modules / fchdir
1 Description:
2 fchdir() function: change current directory, given an open file descriptor.
3
4 Files:
5 lib/fchdir.c
6 lib/dirent_.h
7 m4/fchdir.m4
8
9 Depends-on:
10 include_next
11 dup2
12 fcntl
13 unistd
14 canonicalize-lgpl
15 dirfd
16 strdup
17
18 configure.ac:
19 gl_FUNC_FCHDIR
20 gl_UNISTD_MODULE_INDICATOR([fchdir])
21
22 Makefile.am:
23 BUILT_SOURCES += $(DIRENT_H)
24
25 # We need the following in order to create <dirent.h> when the system
26 # doesn't have one that works with the given compiler.
27 dirent.h: dirent_.h
28         rm -f $@-t $@
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
32               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
33               < $(srcdir)/dirent_.h; \
34         } > $@-t
35         mv $@-t $@
36 MOSTLYCLEANFILES += dirent.h dirent.h-t
37
38 Include:
39 #include <unistd.h>
40
41 License:
42 LGPL
43
44 Maintainer:
45 Bruno Haible