* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
[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 absolute-header
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|@''ABSOLUTE_DIRENT_H''@|$(ABSOLUTE_DIRENT_H)|g' \
31               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
32               < $(srcdir)/dirent_.h; \
33         } > $@-t
34         mv $@-t $@
35 MOSTLYCLEANFILES += dirent.h dirent.h-t
36
37 Include:
38 #include <unistd.h>
39
40 License:
41 LGPL
42
43 Maintainer:
44 Bruno Haible
45