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