Avoid some "gcc -pedantic" warnings.
[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|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33               -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
34               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
35               < $(srcdir)/dirent.in.h; \
36         } > $@-t
37         mv $@-t $@
38 MOSTLYCLEANFILES += dirent.h dirent.h-t
39
40 Include:
41 #include <unistd.h>
42
43 License:
44 LGPL
45
46 Maintainer:
47 Bruno Haible