diff options
| author | Fabián Ezequiel Gallina | 2015-01-28 00:09:39 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2015-01-28 00:09:39 -0300 |
| commit | 8e9166c92c97e7c2041eecee4e00d412a1eca1be (patch) | |
| tree | 41dc296808281e0883fcc3f70b4323fbad65b69c /lib | |
| parent | be2d23e58721b7acc68c0ea654a38e5109df2aa2 (diff) | |
| parent | a012c7bbca887c3da837ce3d7ec01be697cffe64 (diff) | |
| download | emacs-8e9166c92c97e7c2041eecee4e00d412a1eca1be.tar.gz emacs-8e9166c92c97e7c2041eecee4e00d412a1eca1be.zip | |
Merge from origin/emacs-24
a012c7b Fix copyright years by hand
732fd4c Update copyright year to 2015
Conflicts:
INSTALL.REPO
admin/notes/lel-TODO
doc/man/grep-changelog.1
doc/misc/eww.texi
etc/CONTRIBUTE
etc/GNU
etc/NEWS
etc/refcards/emacsver.tex
etc/refcards/ru-refcard.tex
lib-src/grep-changelog
lib-src/test-distrib.c
lib/alloca.in.h
lib/binary-io.h
lib/c-ctype.h
lib/c-strcasecmp.c
lib/c-strncasecmp.c
lib/careadlinkat.c
lib/close-stream.c
lib/dosname.h
lib/dup2.c
lib/filemode.h
lib/fpending.c
lib/fpending.h
lib/getgroups.c
lib/getloadavg.c
lib/getopt.in.h
lib/getopt1.c
lib/getopt_int.h
lib/gettext.h
lib/gettime.c
lib/gettimeofday.c
lib/group-member.c
lib/md5.c
lib/md5.h
lib/memrchr.c
lib/sha1.c
lib/sig2str.c
lib/stdarg.in.h
lib/stdbool.in.h
lib/stdlib.in.h
lib/strftime.c
lib/strtoimax.c
lib/strtol.c
lib/strtoll.c
lib/strtoull.c
lib/tempname.c
lib/time_r.c
lib/unsetenv.c
lib/xalloc-oversized.h
lisp/gnus/gnus-setup.el
lisp/progmodes/cap-words.el
lisp/w32-common-fns.el
m4/alloca.m4
m4/dup2.m4
m4/filemode.m4
m4/getgroups.m4
m4/getloadavg.m4
m4/gettime.m4
m4/gettimeofday.m4
m4/gnulib-common.m4
m4/group-member.m4
m4/manywarnings.m4
m4/memrchr.m4
m4/mktime.m4
m4/pathmax.m4
m4/pthread_sigmask.m4
m4/sig2str.m4
m4/ssize_t.m4
m4/st_dm_mode.m4
m4/stat-time.m4
m4/stdarg.m4
m4/stdbool.m4
m4/stddef_h.m4
m4/stdio_h.m4
m4/strftime.m4
m4/strtoimax.m4
m4/strtoll.m4
m4/strtoull.m4
m4/strtoumax.m4
m4/time_h.m4
m4/timer_time.m4
m4/timespec.m4
m4/unistd_h.m4
m4/utimbuf.m4
nextstep/README
nt/addsection.c
src/insdel.c
src/w32heap.c
test/automated/package-x-test.el
Diffstat (limited to 'lib')
38 files changed, 239 insertions, 53 deletions
diff --git a/lib/alloca.in.h b/lib/alloca.in.h index 906fe92379d..b41c3934ad4 100644 --- a/lib/alloca.in.h +++ b/lib/alloca.in.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Memory allocation on the stack. | 1 | /* Memory allocation on the stack. |
| 2 | 2 | ||
| 3 | Copyright (C) 1995, 1999, 2001-2004, 2006-2015 Free Software Foundation, | 3 | Copyright (C) 1995, 1999, 2001-2004, 2006-2015 Free Software |
| 4 | Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software; you can redistribute it and/or modify it | 6 | This program is free software; you can redistribute it and/or modify it |
| 7 | under the terms of the GNU General Public License as published | 7 | under the terms of the GNU General Public License as published |
diff --git a/lib/binary-io.h b/lib/binary-io.h index f5b66c79095..84780032b2a 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Binary mode I/O. | 1 | /* Binary mode I/O. |
| 2 | Copyright (C) 2001, 2003, 2005, 2008-2015 Free Software Foundation, Inc. | 2 | Copyright (C) 2001, 2003, 2005, 2008-2015 Free Software Foundation, |
| 3 | Inc. | ||
| 3 | 4 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/c-ctype.h b/lib/c-ctype.h index 47644731782..53c443a38cd 100644 --- a/lib/c-ctype.h +++ b/lib/c-ctype.h | |||
| @@ -5,7 +5,8 @@ | |||
| 5 | <ctype.h> functions' behaviour depends on the current locale set via | 5 | <ctype.h> functions' behaviour depends on the current locale set via |
| 6 | setlocale. | 6 | setlocale. |
| 7 | 7 | ||
| 8 | Copyright (C) 2000-2003, 2006, 2008-2015 Free Software Foundation, Inc. | 8 | Copyright (C) 2000-2003, 2006, 2008-2015 Free Software Foundation, |
| 9 | Inc. | ||
| 9 | 10 | ||
| 10 | This program is free software; you can redistribute it and/or modify | 11 | This program is free software; you can redistribute it and/or modify |
| 11 | it under the terms of the GNU General Public License as published by | 12 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/c-strcasecmp.c b/lib/c-strcasecmp.c index 6deb6d1236d..dbf17b2dcda 100644 --- a/lib/c-strcasecmp.c +++ b/lib/c-strcasecmp.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* c-strcasecmp.c -- case insensitive string comparator in C locale | 1 | /* c-strcasecmp.c -- case insensitive string comparator in C locale |
| 2 | Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software Foundation, Inc. | 2 | Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software |
| 3 | Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c index b98e36838ca..580ea237729 100644 --- a/lib/c-strncasecmp.c +++ b/lib/c-strncasecmp.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* c-strncasecmp.c -- case insensitive string comparator in C locale | 1 | /* c-strncasecmp.c -- case insensitive string comparator in C locale |
| 2 | Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software Foundation, Inc. | 2 | Copyright (C) 1998-1999, 2005-2006, 2009-2015 Free Software |
| 3 | Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/careadlinkat.c b/lib/careadlinkat.c index f2f5da23a38..3b3153e81ca 100644 --- a/lib/careadlinkat.c +++ b/lib/careadlinkat.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Read symbolic links into a buffer without size limitation, relative to fd. | 1 | /* Read symbolic links into a buffer without size limitation, relative to fd. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001, 2003-2004, 2007, 2009-2015 Free Software Foundation, | 3 | Copyright (C) 2001, 2003-2004, 2007, 2009-2015 Free Software |
| 4 | Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/close-stream.c b/lib/close-stream.c index 6e3d8658d58..1c4e74c1b64 100644 --- a/lib/close-stream.c +++ b/lib/close-stream.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Close a stream, with nicer error checking than fclose's. | 1 | /* Close a stream, with nicer error checking than fclose's. |
| 2 | 2 | ||
| 3 | Copyright (C) 1998-2002, 2004, 2006-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1998-2002, 2004, 2006-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/dosname.h b/lib/dosname.h index 893baf6ccf3..25aba132b38 100644 --- a/lib/dosname.h +++ b/lib/dosname.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* File names on MS-DOS/Windows systems. | 1 | /* File names on MS-DOS/Windows systems. |
| 2 | 2 | ||
| 3 | Copyright (C) 2000-2001, 2004-2006, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 2000-2001, 2004-2006, 2009-2015 Free Software |
| 4 | Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/dup2.c b/lib/dup2.c index 0e13214c825..94406dff481 100644 --- a/lib/dup2.c +++ b/lib/dup2.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Duplicate an open file descriptor to a specified file descriptor. | 1 | /* Duplicate an open file descriptor to a specified file descriptor. |
| 2 | 2 | ||
| 3 | Copyright (C) 1999, 2004-2007, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2004-2007, 2009-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/filemode.h b/lib/filemode.h index ff0460a5e07..805bc5a24d9 100644 --- a/lib/filemode.h +++ b/lib/filemode.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Make a string describing file modes. | 1 | /* Make a string describing file modes. |
| 2 | 2 | ||
| 3 | Copyright (C) 1998-1999, 2003, 2006, 2009-2015 Free Software Foundation, | 3 | Copyright (C) 1998-1999, 2003, 2006, 2009-2015 Free Software |
| 4 | Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/fpending.c b/lib/fpending.c index c4b4a519611..05e84d34e41 100644 --- a/lib/fpending.c +++ b/lib/fpending.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* fpending.c -- return the number of pending output bytes on a stream | 1 | /* fpending.c -- return the number of pending output bytes on a stream |
| 2 | Copyright (C) 2000, 2004, 2006-2007, 2009-2015 Free Software Foundation, | 2 | Copyright (C) 2000, 2004, 2006-2007, 2009-2015 Free Software |
| 3 | Inc. | 3 | Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/fpending.h b/lib/fpending.h index 5a1b2ad9442..19442821ad8 100644 --- a/lib/fpending.h +++ b/lib/fpending.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Declare __fpending. | 1 | /* Declare __fpending. |
| 2 | 2 | ||
| 3 | Copyright (C) 2000, 2003, 2005-2006, 2009-2015 Free Software Foundation, | 3 | Copyright (C) 2000, 2003, 2005-2006, 2009-2015 Free Software |
| 4 | Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/getgroups.c b/lib/getgroups.c index 5563dfb4280..a7f0f9e2a29 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* provide consistent interface to getgroups for systems that don't allow N==0 | 1 | /* provide consistent interface to getgroups for systems that don't allow N==0 |
| 2 | 2 | ||
| 3 | Copyright (C) 1996, 1999, 2003, 2006-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1996, 1999, 2003, 2006-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 0cbca265b29..119a32b4408 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Get the system load averages. | 1 | /* Get the system load averages. |
| 2 | 2 | ||
| 3 | Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2015 Free Software | 3 | Copyright (C) 1985-1989, 1991-1995, 1997, 1999-2000, 2003-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | NOTE: The canonical source of this file is maintained with gnulib. | 6 | NOTE: The canonical source of this file is maintained with gnulib. |
| 7 | Bugs can be reported to bug-gnulib@gnu.org. | 7 | Bugs can be reported to bug-gnulib@gnu.org. |
diff --git a/lib/getopt.in.h b/lib/getopt.in.h index 9248f76ec8b..168863123ab 100644 --- a/lib/getopt.in.h +++ b/lib/getopt.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Declarations for getopt. | 1 | /* Declarations for getopt. |
| 2 | Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2015 Free Software | 2 | Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2007, 2009-2015 Free |
| 3 | Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
diff --git a/lib/getopt1.c b/lib/getopt1.c index 2b1feb6eadb..60760ea2f9c 100644 --- a/lib/getopt1.c +++ b/lib/getopt1.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* getopt_long and getopt_long_only entry points for GNU getopt. | 1 | /* getopt_long and getopt_long_only entry points for GNU getopt. |
| 2 | Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2015 Free Software | 2 | Copyright (C) 1987-1994, 1996-1998, 2004, 2006, 2009-2015 Free |
| 3 | Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
diff --git a/lib/getopt_int.h b/lib/getopt_int.h index e893a6e133f..89c896a72b7 100644 --- a/lib/getopt_int.h +++ b/lib/getopt_int.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Internal declarations for getopt. | 1 | /* Internal declarations for getopt. |
| 2 | Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2015 Free Software | 2 | Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2015 Free |
| 3 | Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
diff --git a/lib/gettext.h b/lib/gettext.h index 599a14ec1b3..c10c702631b 100644 --- a/lib/gettext.h +++ b/lib/gettext.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Convenience header for conditional use of GNU <libintl.h>. | 1 | /* Convenience header for conditional use of GNU <libintl.h>. |
| 2 | Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2015 Free Software | 2 | Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2015 Free |
| 3 | Foundation, Inc. | 3 | Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/gettime.c b/lib/gettime.c index 1c47e3b2995..3786231d938 100644 --- a/lib/gettime.c +++ b/lib/gettime.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* gettime -- get the system clock | 1 | /* gettime -- get the system clock |
| 2 | 2 | ||
| 3 | Copyright (C) 2002, 2004-2007, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 2002, 2004-2007, 2009-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c index e0e2e696d04..ff6940c05af 100644 --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Provide gettimeofday for systems that don't have it or for which it's broken. | 1 | /* Provide gettimeofday for systems that don't have it or for which it's broken. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2003, 2005-2007, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2003, 2005-2007, 2009-2015 Free Software |
| 4 | Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/group-member.c b/lib/group-member.c index 23074e4f693..a60fae93597 100644 --- a/lib/group-member.c +++ b/lib/group-member.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* group-member.c -- determine whether group id is in calling user's group list | 1 | /* group-member.c -- determine whether group id is in calling user's group list |
| 2 | 2 | ||
| 3 | Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2015 Free Software | 3 | Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Functions to compute MD5 message digest of files or memory blocks. | 1 | /* Functions to compute MD5 message digest of files or memory blocks. |
| 2 | according to the definition of MD5 in RFC 1321 from April 1992. | 2 | according to the definition of MD5 in RFC 1321 from April 1992. |
| 3 | Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2015 Free Software | 3 | Copyright (C) 1995-1997, 1999-2001, 2005-2006, 2008-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | This file is part of the GNU C Library. | 5 | This file is part of the GNU C Library. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify it | 7 | This program is free software; you can redistribute it and/or modify it |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Declaration of functions and data types used for MD5 sum computing | 1 | /* Declaration of functions and data types used for MD5 sum computing |
| 2 | library functions. | 2 | library functions. |
| 3 | Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2015 Free Software | 3 | Copyright (C) 1995-1997, 1999-2001, 2004-2006, 2008-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | This file is part of the GNU C Library. | 5 | This file is part of the GNU C Library. |
| 6 | 6 | ||
| 7 | This program is free software; you can redistribute it and/or modify it | 7 | This program is free software; you can redistribute it and/or modify it |
diff --git a/lib/memrchr.c b/lib/memrchr.c index 3827208d800..45402776c42 100644 --- a/lib/memrchr.c +++ b/lib/memrchr.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* memrchr -- find the last occurrence of a byte in a memory block | 1 | /* memrchr -- find the last occurrence of a byte in a memory block |
| 2 | 2 | ||
| 3 | Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2015 Free Software | 3 | Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | Based on strlen implementation by Torbjorn Granlund (tege@sics.se), | 6 | Based on strlen implementation by Torbjorn Granlund (tege@sics.se), |
| 7 | with help from Dan Sahlin (dan@sics.se) and | 7 | with help from Dan Sahlin (dan@sics.se) and |
diff --git a/lib/sha1.c b/lib/sha1.c index 4411ceec863..90faa4e4357 100644 --- a/lib/sha1.c +++ b/lib/sha1.c | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | /* sha1.c - Functions to compute SHA1 message digest of files or | 1 | /* sha1.c - Functions to compute SHA1 message digest of files or |
| 2 | memory blocks according to the NIST specification FIPS-180-1. | 2 | memory blocks according to the NIST specification FIPS-180-1. |
| 3 | 3 | ||
| 4 | Copyright (C) 2000-2001, 2003-2006, 2008-2015 Free Software Foundation, Inc. | 4 | Copyright (C) 2000-2001, 2003-2006, 2008-2015 Free Software |
| 5 | Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | This program is free software; you can redistribute it and/or modify it | 7 | This program is free software; you can redistribute it and/or modify it |
| 7 | under the terms of the GNU General Public License as published by the | 8 | under the terms of the GNU General Public License as published by the |
diff --git a/lib/sig2str.c b/lib/sig2str.c index 58154daac05..0966dd525ae 100644 --- a/lib/sig2str.c +++ b/lib/sig2str.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* sig2str.c -- convert between signal names and numbers | 1 | /* sig2str.c -- convert between signal names and numbers |
| 2 | 2 | ||
| 3 | Copyright (C) 2002, 2004, 2006, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 2002, 2004, 2006, 2009-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/stdarg.in.h b/lib/stdarg.in.h new file mode 100644 index 00000000000..5239f51af76 --- /dev/null +++ b/lib/stdarg.in.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Substitute for and wrapper around <stdarg.h>. | ||
| 2 | Copyright (C) 2008-2015 Free Software Foundation, Inc. | ||
| 3 | |||
| 4 | This program is free software; you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation; either version 3, or (at your option) | ||
| 7 | any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program; if not, see <http://www.gnu.org/licenses/>. */ | ||
| 16 | |||
| 17 | #ifndef _@GUARD_PREFIX@_STDARG_H | ||
| 18 | |||
| 19 | #if __GNUC__ >= 3 | ||
| 20 | @PRAGMA_SYSTEM_HEADER@ | ||
| 21 | #endif | ||
| 22 | @PRAGMA_COLUMNS@ | ||
| 23 | |||
| 24 | /* The include_next requires a split double-inclusion guard. */ | ||
| 25 | #@INCLUDE_NEXT@ @NEXT_STDARG_H@ | ||
| 26 | |||
| 27 | #ifndef _@GUARD_PREFIX@_STDARG_H | ||
| 28 | #define _@GUARD_PREFIX@_STDARG_H | ||
| 29 | |||
| 30 | #ifndef va_copy | ||
| 31 | # define va_copy(a,b) ((a) = (b)) | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #endif /* _@GUARD_PREFIX@_STDARG_H */ | ||
| 35 | #endif /* _@GUARD_PREFIX@_STDARG_H */ | ||
diff --git a/lib/stdbool.in.h b/lib/stdbool.in.h new file mode 100644 index 00000000000..64a17618255 --- /dev/null +++ b/lib/stdbool.in.h | |||
| @@ -0,0 +1,132 @@ | |||
| 1 | /* Copyright (C) 2001-2003, 2006-2015 Free Software Foundation, Inc. | ||
| 2 | Written by Bruno Haible <haible@clisp.cons.org>, 2001. | ||
| 3 | |||
| 4 | This program is free software; you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation; either version 3, or (at your option) | ||
| 7 | any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program; if not, see <http://www.gnu.org/licenses/>. */ | ||
| 16 | |||
| 17 | #ifndef _GL_STDBOOL_H | ||
| 18 | #define _GL_STDBOOL_H | ||
| 19 | |||
| 20 | /* ISO C 99 <stdbool.h> for platforms that lack it. */ | ||
| 21 | |||
| 22 | /* Usage suggestions: | ||
| 23 | |||
| 24 | Programs that use <stdbool.h> should be aware of some limitations | ||
| 25 | and standards compliance issues. | ||
| 26 | |||
| 27 | Standards compliance: | ||
| 28 | |||
| 29 | - <stdbool.h> must be #included before 'bool', 'false', 'true' | ||
| 30 | can be used. | ||
| 31 | |||
| 32 | - You cannot assume that sizeof (bool) == 1. | ||
| 33 | |||
| 34 | - Programs should not undefine the macros bool, true, and false, | ||
| 35 | as C99 lists that as an "obsolescent feature". | ||
| 36 | |||
| 37 | Limitations of this substitute, when used in a C89 environment: | ||
| 38 | |||
| 39 | - <stdbool.h> must be #included before the '_Bool' type can be used. | ||
| 40 | |||
| 41 | - You cannot assume that _Bool is a typedef; it might be a macro. | ||
| 42 | |||
| 43 | - Bit-fields of type 'bool' are not supported. Portable code | ||
| 44 | should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'. | ||
| 45 | |||
| 46 | - In C99, casts and automatic conversions to '_Bool' or 'bool' are | ||
| 47 | performed in such a way that every nonzero value gets converted | ||
| 48 | to 'true', and zero gets converted to 'false'. This doesn't work | ||
| 49 | with this substitute. With this substitute, only the values 0 and 1 | ||
| 50 | give the expected result when converted to _Bool' or 'bool'. | ||
| 51 | |||
| 52 | - C99 allows the use of (_Bool)0.0 in constant expressions, but | ||
| 53 | this substitute cannot always provide this property. | ||
| 54 | |||
| 55 | Also, it is suggested that programs use 'bool' rather than '_Bool'; | ||
| 56 | this isn't required, but 'bool' is more common. */ | ||
| 57 | |||
| 58 | |||
| 59 | /* 7.16. Boolean type and values */ | ||
| 60 | |||
| 61 | /* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same | ||
| 62 | definitions below, but temporarily we have to #undef them. */ | ||
| 63 | #if defined __BEOS__ && !defined __HAIKU__ | ||
| 64 | # include <OS.h> /* defines bool but not _Bool */ | ||
| 65 | # undef false | ||
| 66 | # undef true | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #ifdef __cplusplus | ||
| 70 | # define _Bool bool | ||
| 71 | # define bool bool | ||
| 72 | #else | ||
| 73 | # if defined __BEOS__ && !defined __HAIKU__ | ||
| 74 | /* A compiler known to have 'bool'. */ | ||
| 75 | /* If the compiler already has both 'bool' and '_Bool', we can assume they | ||
| 76 | are the same types. */ | ||
| 77 | # if !@HAVE__BOOL@ | ||
| 78 | typedef bool _Bool; | ||
| 79 | # endif | ||
| 80 | # else | ||
| 81 | # if !defined __GNUC__ | ||
| 82 | /* If @HAVE__BOOL@: | ||
| 83 | Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when | ||
| 84 | the built-in _Bool type is used. See | ||
| 85 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
| 86 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | ||
| 87 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | ||
| 88 | Similar bugs are likely with other compilers as well; this file | ||
| 89 | wouldn't be used if <stdbool.h> was working. | ||
| 90 | So we override the _Bool type. | ||
| 91 | If !@HAVE__BOOL@: | ||
| 92 | Need to define _Bool ourselves. As 'signed char' or as an enum type? | ||
| 93 | Use of a typedef, with SunPRO C, leads to a stupid | ||
| 94 | "warning: _Bool is a keyword in ISO C99". | ||
| 95 | Use of an enum type, with IRIX cc, leads to a stupid | ||
| 96 | "warning(1185): enumerated type mixed with another type". | ||
| 97 | Even the existence of an enum type, without a typedef, | ||
| 98 | "Invalid enumerator. (badenum)" with HP-UX cc on Tru64. | ||
| 99 | The only benefit of the enum, debuggability, is not important | ||
| 100 | with these compilers. So use 'signed char' and no enum. */ | ||
| 101 | # define _Bool signed char | ||
| 102 | # else | ||
| 103 | /* With this compiler, trust the _Bool type if the compiler has it. */ | ||
| 104 | # if !@HAVE__BOOL@ | ||
| 105 | /* For the sake of symbolic names in gdb, define true and false as | ||
| 106 | enum constants, not only as macros. | ||
| 107 | It is tempting to write | ||
| 108 | typedef enum { false = 0, true = 1 } _Bool; | ||
| 109 | so that gdb prints values of type 'bool' symbolically. But then | ||
| 110 | values of type '_Bool' might promote to 'int' or 'unsigned int' | ||
| 111 | (see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int' | ||
| 112 | (see ISO C 99 6.3.1.1.(2)). So add a negative value to the | ||
| 113 | enum; this ensures that '_Bool' promotes to 'int'. */ | ||
| 114 | typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool; | ||
| 115 | # endif | ||
| 116 | # endif | ||
| 117 | # endif | ||
| 118 | # define bool _Bool | ||
| 119 | #endif | ||
| 120 | |||
| 121 | /* The other macros must be usable in preprocessor directives. */ | ||
| 122 | #ifdef __cplusplus | ||
| 123 | # define false false | ||
| 124 | # define true true | ||
| 125 | #else | ||
| 126 | # define false 0 | ||
| 127 | # define true 1 | ||
| 128 | #endif | ||
| 129 | |||
| 130 | #define __bool_true_false_are_defined 1 | ||
| 131 | |||
| 132 | #endif /* _GL_STDBOOL_H */ | ||
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 428a119188c..490be4629fa 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* A GNU-like <stdlib.h>. | 1 | /* A GNU-like <stdlib.h>. |
| 2 | 2 | ||
| 3 | Copyright (C) 1995, 2001-2004, 2006-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1995, 2001-2004, 2006-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/strftime.c b/lib/strftime.c index 2426aae7052..fdb87b50f18 100644 --- a/lib/strftime.c +++ b/lib/strftime.c | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | /* Copyright (C) 1991-2001, 2003-2007, 2009-2015 Free Software Foundation, Inc. | 1 | /* Copyright (C) 1991-2001, 2003-2007, 2009-2015 Free Software |
| 2 | * Foundation, Inc. | ||
| 2 | 3 | ||
| 3 | NOTE: The canonical source of this file is maintained with the GNU C Library. | 4 | NOTE: The canonical source of this file is maintained with the GNU C Library. |
| 4 | Bugs can be reported to bug-glibc@prep.ai.mit.edu. | 5 | Bugs can be reported to bug-glibc@prep.ai.mit.edu. |
diff --git a/lib/strtoimax.c b/lib/strtoimax.c index 8ff65cee4bc..6575c8719ca 100644 --- a/lib/strtoimax.c +++ b/lib/strtoimax.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Convert string representation of a number into an intmax_t value. | 1 | /* Convert string representation of a number into an intmax_t value. |
| 2 | 2 | ||
| 3 | Copyright (C) 1999, 2001-2004, 2006, 2009-2015 Free Software Foundation, | 3 | Copyright (C) 1999, 2001-2004, 2006, 2009-2015 Free Software |
| 4 | Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/strtol.c b/lib/strtol.c index 1bc143985db..56b38af224e 100644 --- a/lib/strtol.c +++ b/lib/strtol.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Convert string representation of a number into an integer value. | 1 | /* Convert string representation of a number into an integer value. |
| 2 | 2 | ||
| 3 | Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2015 Free Software | 3 | Copyright (C) 1991-1992, 1994-1999, 2003, 2005-2007, 2009-2015 Free |
| 4 | Foundation, Inc. | 4 | Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | NOTE: The canonical source of this file is maintained with the GNU C | 6 | NOTE: The canonical source of this file is maintained with the GNU C |
| 7 | Library. Bugs can be reported to bug-glibc@gnu.org. | 7 | Library. Bugs can be reported to bug-glibc@gnu.org. |
diff --git a/lib/strtoll.c b/lib/strtoll.c index d7123491f3b..e91cc29a010 100644 --- a/lib/strtoll.c +++ b/lib/strtoll.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Function to parse a 'long long int' from text. | 1 | /* Function to parse a 'long long int' from text. |
| 2 | Copyright (C) 1995-1997, 1999, 2001, 2009-2015 Free Software Foundation, | 2 | Copyright (C) 1995-1997, 1999, 2001, 2009-2015 Free Software |
| 3 | Inc. | 3 | Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
diff --git a/lib/strtoull.c b/lib/strtoull.c index 5cd2554c719..4d5e4335538 100644 --- a/lib/strtoull.c +++ b/lib/strtoull.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Function to parse an 'unsigned long long int' from text. | 1 | /* Function to parse an 'unsigned long long int' from text. |
| 2 | Copyright (C) 1995-1997, 1999, 2009-2015 Free Software Foundation, Inc. | 2 | Copyright (C) 1995-1997, 1999, 2009-2015 Free Software Foundation, |
| 3 | Inc. | ||
| 3 | NOTE: The canonical source of this file is maintained with the GNU C | 4 | NOTE: The canonical source of this file is maintained with the GNU C |
| 4 | Library. Bugs can be reported to bug-glibc@gnu.org. | 5 | Library. Bugs can be reported to bug-glibc@gnu.org. |
| 5 | 6 | ||
diff --git a/lib/tempname.c b/lib/tempname.c index 088b224ab96..55fad942219 100644 --- a/lib/tempname.c +++ b/lib/tempname.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* tempname.c - generate the name of a temporary file. | 1 | /* tempname.c - generate the name of a temporary file. |
| 2 | 2 | ||
| 3 | Copyright (C) 1991-2003, 2005-2007, 2009-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1991-2003, 2005-2007, 2009-2015 Free Software |
| 4 | Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/time_r.c b/lib/time_r.c index 0b512de99fe..222705bf898 100644 --- a/lib/time_r.c +++ b/lib/time_r.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Reentrant time functions like localtime_r. | 1 | /* Reentrant time functions like localtime_r. |
| 2 | 2 | ||
| 3 | Copyright (C) 2003, 2006-2007, 2010-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 2003, 2006-2007, 2010-2015 Free Software Foundation, |
| 4 | Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
diff --git a/lib/unsetenv.c b/lib/unsetenv.c index 87f41d59a50..80810e78538 100644 --- a/lib/unsetenv.c +++ b/lib/unsetenv.c | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | /* Copyright (C) 1992, 1995-2002, 2005-2015 Free Software Foundation, Inc. | 1 | /* Copyright (C) 1992, 1995-2002, 2005-2015 Free Software Foundation, |
| 2 | Inc. | ||
| 2 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
| 3 | 4 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
diff --git a/lib/xalloc-oversized.h b/lib/xalloc-oversized.h index f0e9778f738..397a04bd0d1 100644 --- a/lib/xalloc-oversized.h +++ b/lib/xalloc-oversized.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* xalloc-oversized.h -- memory allocation size checking | 1 | /* xalloc-oversized.h -- memory allocation size checking |
| 2 | 2 | ||
| 3 | Copyright (C) 1990-2000, 2003-2004, 2006-2015 Free Software Foundation, Inc. | 3 | Copyright (C) 1990-2000, 2003-2004, 2006-2015 Free Software |
| 4 | Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |