From d9c418c8afffa18efba5cfd16b2f91ad5b9f6f66 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Thu, 6 Apr 2017 11:14:14 -0700 Subject: [PATCH] getopt: annotate files with relationship to glibc As the final act in this patchset, adjust the message at the top of each file to indicate which files are synced with glibc. (This has already been done for most of the headers.) * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h: Mention in top-of-file boilerplate that these files are shared between glibc and gnulib. --- ChangeLog | 11 +++++++++++ lib/getopt.c | 6 ++---- lib/getopt1.c | 3 ++- lib/getopt_int.h | 3 ++- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 436e846326..b019c34094 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2017-04-06 Zack Weinberg + getopt: annotate files with relationship to glibc + + As the final act in this patchset, adjust the message at the top of + each file to indicate which files are synced with glibc. (This has + already been done for most of the headers.) + + * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h: + Mention in top-of-file boilerplate that these files are shared + between glibc and gnulib. + + getopt: split up getopt.in.h and eliminate __need_getopt Over in glibc, all of the __need macros are being phased out in favor diff --git a/lib/getopt.c b/lib/getopt.c index 6671787b6f..543c8e7284 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -1,9 +1,7 @@ /* Getopt for GNU. - NOTE: getopt is part of the C library, so if you don't know what - "Keep this file name-space clean" means, talk to drepper@gnu.org - before changing it! Copyright (C) 1987-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. + This file is part of the GNU C Library and is also part of gnulib. + Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/lib/getopt1.c b/lib/getopt1.c index b967d24f57..a1fab22817 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -1,6 +1,7 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. + This file is part of the GNU C Library and is also part of gnulib. + Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/lib/getopt_int.h b/lib/getopt_int.h index 6a029542ab..9a18d5d4e6 100644 --- a/lib/getopt_int.h +++ b/lib/getopt_int.h @@ -1,6 +1,7 @@ /* Internal declarations for getopt. Copyright (C) 1989-2017 Free Software Foundation, Inc. - This file is part of the GNU C Library. + This file is part of the GNU C Library and is also part of gnulib. + Patches to this file should be submitted to both projects. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -- 2.39.5