From: Brian Norris <computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Michael Kerrisk
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
libc-alpha-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org
Subject: Re: [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
Date: Mon, 18 Apr 2016 09:39:26 -0700 [thread overview]
Message-ID: <20160418163926.GB52272@google.com> (raw)
In-Reply-To: <1460860245-14895-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
+ man-page and glibc folks
On Sat, Apr 16, 2016 at 10:30:45PM -0400, Mike Frysinger wrote:
> These functions have always been defined in sys/sysmacros.h under
> Linux C libraries. For some, including sys/types.h implicitly
> includes that as well, but glibc wants to deprecate that, and some
> others already have. Include the header explicitly for the funcs.
>
> Signed-off-by: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
Patch looks fine to me, thanks. Pushed to mtd-utils.git.
But I don't see this change documented anywhere. (Helpfully, I do see
the change from your other patch -- _BSD_SOURCE -> _DEFAULT_SOURCE --
documented though!) Should the man-pages project be updated? I see the
latest makedev(5) still recommends #include <sys/types.h>.
Brian
> ---
> include/common.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/common.h b/include/common.h
> index fb0ca83..8cb3142 100644
> --- a/include/common.h
> +++ b/include/common.h
> @@ -28,6 +28,7 @@
> #include <errno.h>
> #include <features.h>
> #include <inttypes.h>
> +#include <sys/sysmacros.h>
> #include "version.h"
>
> #ifndef PROGRAM_NAME
> --
> 2.7.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Brian Norris <computersforpeace@gmail.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-mtd@lists.infradead.org,
Michael Kerrisk <mtk.manpages@gmail.com>,
linux-man@vger.kernel.org, libc-alpha@sourceware.org
Subject: Re: [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
Date: Mon, 18 Apr 2016 09:39:26 -0700 [thread overview]
Message-ID: <20160418163926.GB52272@google.com> (raw)
In-Reply-To: <1460860245-14895-1-git-send-email-vapier@gentoo.org>
+ man-page and glibc folks
On Sat, Apr 16, 2016 at 10:30:45PM -0400, Mike Frysinger wrote:
> These functions have always been defined in sys/sysmacros.h under
> Linux C libraries. For some, including sys/types.h implicitly
> includes that as well, but glibc wants to deprecate that, and some
> others already have. Include the header explicitly for the funcs.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Patch looks fine to me, thanks. Pushed to mtd-utils.git.
But I don't see this change documented anywhere. (Helpfully, I do see
the change from your other patch -- _BSD_SOURCE -> _DEFAULT_SOURCE --
documented though!) Should the man-pages project be updated? I see the
latest makedev(5) still recommends #include <sys/types.h>.
Brian
> ---
> include/common.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/common.h b/include/common.h
> index fb0ca83..8cb3142 100644
> --- a/include/common.h
> +++ b/include/common.h
> @@ -28,6 +28,7 @@
> #include <errno.h>
> #include <features.h>
> #include <inttypes.h>
> +#include <sys/sysmacros.h>
> #include "version.h"
>
> #ifndef PROGRAM_NAME
> --
> 2.7.4
>
next prev parent reply other threads:[~2016-04-18 16:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-17 2:30 [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev Mike Frysinger
[not found] ` <1460860245-14895-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-04-18 16:39 ` Brian Norris [this message]
2016-04-18 16:39 ` Brian Norris
[not found] ` <20160418163926.GB52272-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-04-18 16:49 ` Mike Frysinger
2016-04-18 16:49 ` Mike Frysinger
[not found] ` <20160418164908.GR5369-UgUKS2FnFs9+urZeOPWqwQ@public.gmane.org>
2016-04-19 5:52 ` [PATCH] makedev(3): point people at sys/sysmacros.h Mike Frysinger
2016-04-19 5:52 ` Mike Frysinger
[not found] ` <1461045163-21248-1-git-send-email-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2016-04-20 11:31 ` Michael Kerrisk (man-pages)
2016-04-20 11:31 ` Michael Kerrisk (man-pages)
2016-04-20 11:47 ` Zack Weinberg
[not found] ` <CAKCAbMiMNtMmCP4EPZnZ5DpSNaNc=SDbbdKKZmoRybmWHyOoTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-20 12:38 ` Michael Kerrisk (man-pages)
2016-04-20 12:38 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160418163926.GB52272@google.com \
--to=computersforpeace-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=libc-alpha-9JcytcrH/bA+uJoB2kUjGw@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.