Mercurial > gnulib
annotate modules/sys_ioctl @ 14700:6758fa38915e topic/libposix
manual merge
author | Bruce Korb <bkorb@gnu.org> |
---|---|
date | Fri, 06 May 2011 08:15:59 -0700 |
parents | 8636d98120a9 049942251f65 |
children |
rev | line source |
---|---|
10615 | 1 Description: |
2 A <sys/ioctl.h> for systems with missing declarations. | |
3 | |
4 Files: | |
5 lib/sys_ioctl.in.h | |
6 m4/sys_ioctl_h.m4 | |
7 | |
8 Depends-on: | |
9 include_next | |
12943
2c1c5f9d6a39
sys_ioctl: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
10 c++defs |
10615 | 11 unistd |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
12 warn-on-use |
10615 | 13 |
14 configure.ac: | |
15 gl_SYS_IOCTL_H | |
16 AC_PROG_MKDIR_P | |
17 | |
18 Makefile.am: | |
14108
873a3371d1d2
spell the pkginclude directory correctly.
Bruce Korb <bkorb@gnu.org>
parents:
14107
diff
changeset
|
19 nobase_nodist_pkginclude_HEADERS += sys/ioctl.h |
14102
f49fe7e6d028
add _HEADERS primaries to Makefile.am snippets for installable headers
Gary V. Vaughan <gary@gnu.org>
parents:
13761
diff
changeset
|
20 |
12536
cd64e80f94e4
link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents:
12410
diff
changeset
|
21 BUILT_SOURCES += sys/ioctl.h |
10615 | 22 |
23 # We need the following in order to create <sys/ioctl.h> when the system | |
24 # does not have a complete one. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
25 sys/ioctl.h: sys_ioctl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) |
11926
79c91e5cce7a
Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents:
11868
diff
changeset
|
26 $(AM_V_at)$(MKDIR_P) sys |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11801
diff
changeset
|
27 $(AM_V_GEN)rm -f $@-t $@ && \ |
10615 | 28 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
29 sed -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \ | |
30 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | |
31 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
13088
diff
changeset
|
32 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
10615 | 33 -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \ |
34 -e 's|@''GNULIB_IOCTL''@|$(GNULIB_IOCTL)|g' \ | |
35 -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \ | |
11801
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
10615
diff
changeset
|
36 -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \ |
13088
dbbdff0be05d
Fix ioctl's protoype on glibc systems.
Bruno Haible <bruno@clisp.org>
parents:
12943
diff
changeset
|
37 -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \ |
12943
2c1c5f9d6a39
sys_ioctl: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
38 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
39 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
10615 | 40 < $(srcdir)/sys_ioctl.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11801
diff
changeset
|
41 } > $@-t && \ |
10615 | 42 mv $@-t $@ |
43 MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t | |
44 MOSTLYCLEANDIRS += sys | |
45 | |
46 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11926
diff
changeset
|
47 <sys/ioctl.h> |
10615 | 48 |
49 License: | |
50 LGPLv2+ | |
51 | |
52 Maintainer: | |
53 all |