musl/include/net/if.h, branch master musl - an implementation of the standard library for Linux-based systems add additional uapi guards for Linux kernel header files 2018年01月09日T18:08:25+00:00 Hauke Mehrtens hauke@hauke-m.de 2018年01月06日T22:32:52+00:00 b583c5d3b4cc2c54c68eef5eb7855ecfacee8bfc With Linux kernel 4.16 it will be possible to guard more parts of the Linux header files from a libc. Make use of this in musl to guard all the structures and other definitions from the Linux header files which are also defined by the header files provided by musl. This will make it possible to compile source files which include both the libc headers and the kernel userspace headers. This extends the definitions done in commit 04983f227238 ("make netinet/in.h suppress clashing definitions from kernel headers")
With Linux kernel 4.16 it will be possible to guard more parts of the
Linux header files from a libc. Make use of this in musl to guard all
the structures and other definitions from the Linux header files which
are also defined by the header files provided by musl. This will make
it possible to compile source files which include both the libc
headers and the kernel userspace headers.
This extends the definitions done in commit 04983f227238 ("make
netinet/in.h suppress clashing definitions from kernel headers")
fix ifru_data and ifcu_buf types in net/if.h 2016年09月16日T21:59:54+00:00 Daniel Sabogal dsabogalcc@gmail.com 2016年09月16日T17:34:24+00:00 3848a99f65952a77c03bbd905cae988f37f13ea6 glibc, freebsd, and openbsd use character pointers (caddr_t) for these fields. only linux uses void pointer for the ifru_data type.
glibc, freebsd, and openbsd use character pointers (caddr_t) for
these fields. only linux uses void pointer for the ifru_data type.
make brace placement in public header struct definitions consistent 2016年07月03日T19:02:25+00:00 Rich Felker dalias@aerifal.cx 2016年07月03日T18:40:11+00:00 befa5866ee30d09c0c96e88af2eabff5911342ea placing the opening brace on the same line as the struct keyword/tag is the style I prefer and seems to be the prevailing practice in more recent additions. these changes were generated by the command: find include/ arch/*/bits -name '*.h' \ -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} + and subsequently checked by hand to ensure that the regex did not pick up any false positives.
placing the opening brace on the same line as the struct keyword/tag
is the style I prefer and seems to be the prevailing practice in more
recent additions.
these changes were generated by the command:
find include/ arch/*/bits -name '*.h' \
-exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} +
and subsequently checked by hand to ensure that the regex did not pick
up any false positives.
net/if.h: add some missing IFF_ constants 2013年04月05日T17:26:23+00:00 rofl0r retnyg@gmx.net 2013年04月05日T16:57:06+00:00 5ffe4940507110f6d0220496cdfc411b8b89aa3d
default features: make musl usable without feature test macros 2012年09月08日T03:13:55+00:00 Rich Felker dalias@aerifal.cx 2012年09月08日T03:13:55+00:00 c1a9658bd19245ff0fb52d3da567815d822fb622 the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
the old behavior of exposing nothing except plain ISO C can be
obtained by defining __STRICT_ANSI__ or using a compiler option (such
as -std=c99) that predefines it. the new default featureset is POSIX
with XSI plus _BSD_SOURCE. any explicit feature test macros will
inhibit the default.
installation docs have also been updated to reflect this change.
support _BSD_SOURCE feature test macro 2012年05月23日T01:52:08+00:00 Rich Felker dalias@aerifal.cx 2012年05月23日T01:52:08+00:00 419ae6d5c95629d3ebaff6f1880d52cb027ba924 patch by Isaac Dunham. matched closely (maybe not exact) to glibc's idea of what _BSD_SOURCE should make visible.
patch by Isaac Dunham. matched closely (maybe not exact) to glibc's
idea of what _BSD_SOURCE should make visible.
fix all missing instances of __cplusplus checks/extern "C" in headers 2011年11月11日T01:40:06+00:00 Rich Felker dalias@aerifal.cx 2011年11月11日T01:40:06+00:00 3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b patch by Arvid Picciani (aep)
patch by Arvid Picciani (aep)
initial check-in, version 0.5.0 2011年02月12日T05:22:29+00:00 Rich Felker dalias@aerifal.cx 2011年02月12日T05:22:29+00:00 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01

AltStyle によって変換されたページ (->オリジナル) /