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