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