diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-09-23 12:41:22 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-09-23 12:46:53 -0700 |
commit | 505e3dbfa8a784815ce0830ef891abb90bcce3dd (patch) | |
tree | 49c0f16526d8703b137de7c4bd9f3686d9dfc0d7 | |
parent | 9e78024bad107fe786cc3e5e328a475921ea0873 (diff) | |
download | gnulib-505e3dbfa8a784815ce0830ef891abb90bcce3dd.tar.gz |
Update URLs and associated text
(Thanks to Bruno Haible for proofreading the earlier patch.)
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | build-aux/pmccabe2html | 2 | ||||
-rw-r--r-- | doc/gendocs_template_min | 4 | ||||
-rw-r--r-- | lib/creat.c | 5 | ||||
-rw-r--r-- | lib/fflush.c | 13 | ||||
-rw-r--r-- | lib/fopen.c | 6 | ||||
-rw-r--r-- | lib/open.c | 6 | ||||
-rw-r--r-- | lib/openat.c | 5 | ||||
-rw-r--r-- | tests/test-fflush2.c | 2 |
9 files changed, 31 insertions, 21 deletions
@@ -1,3 +1,12 @@ +2019-09-23 Paul Eggert <eggert@cs.ucla.edu> + + Update URLs and associated text + (Thanks to Bruno Haible for proofreading this patch.) + Prefer https: to http: in URLs where either will do, for the usual + security reasons. I also updated broken and/or moved URLs + discovered during the process. In a few places I had to resort to + archive.org, since I didn't find the originals elsewhere. + 2019-09-15 Paul Smith <psmith@gnu.org> Bruno Haible <bruno@clisp.org> diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html index a8928e0ffc..7dcfb0bc11 100644 --- a/build-aux/pmccabe2html +++ b/build-aux/pmccabe2html @@ -72,7 +72,7 @@ BEGIN { html_epilog = "<hr color=\"black\" size=\"2\"/> \ Copyright (c) 2007, 2008 Free Software Foundation, Inc." html_doctype = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \ -\"https://www.w3.org/TR/html401/loose.dtd\">" +\"http://www.w3.org/TR/html401/loose.dtd\">" html_comment = "<!-- Generated by gnulib's pmccabe2html at " epoch_time " -->" html_title = "Cyclomatic Complexity report for " package_name diff --git a/doc/gendocs_template_min b/doc/gendocs_template_min index 428ac2b55a..e90cf04a31 100644 --- a/doc/gendocs_template_min +++ b/doc/gendocs_template_min @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en"> + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>%%TITLE%% - GNU Project - Free Software Foundation</title> diff --git a/lib/creat.c b/lib/creat.c index 89132e2bb2..e63b219576 100644 --- a/lib/creat.c +++ b/lib/creat.c @@ -44,8 +44,9 @@ int creat (const char *filename, mode_t mode) { #if OPEN_TRAILING_SLASH_BUG - /* If the filename ends in a slash, then fail. - Rationale: POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html> + /* Fail if the filename ends in a slash, + as POSIX says such a filename must name a directory + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>. creat() is defined as being equivalent to open() with flags O_CREAT | O_TRUNC | O_WRONLY. Therefore: If the named file already exists as a directory, then creat() must fail diff --git a/lib/fflush.c b/lib/fflush.c index e61fd21546..63862be19e 100644 --- a/lib/fflush.c +++ b/lib/fflush.c @@ -168,13 +168,12 @@ rpl_fflush (FILE *stream) <https://pubs.opengroup.org/onlinepubs/9699919799/functions/ungetc.html> "The file-position indicator is decremented by each successful call to ungetc()..." - 2) <https://pubs.opengroup.org/onlinepubs/9699919799/functions/ungetc.html> says: - "The value of the file-position indicator for the stream - after all pushed-back bytes have been read, or discarded - by calling fseek(), fseeko(), fsetpos(), or rewind() (but - not fflush()), shall be the same as it was before the - bytes were pushed back." - Here we are discarding all pushed-back bytes. */ + 2) fflush discards bytes pushed back by ungetc: + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fflush.html> + "...any characters pushed back onto the stream by ungetc() + or ungetwc() that have not subsequently been read from the + stream shall be discarded (without further changing the + file offset)." */ /* POSIX does not specify fflush behavior for non-seekable input streams. Some implementations purge unread data, some return diff --git a/lib/fopen.c b/lib/fopen.c index f08c06dd9a..07e3891796 100644 --- a/lib/fopen.c +++ b/lib/fopen.c @@ -53,9 +53,9 @@ rpl_fopen (const char *filename, const char *mode) #endif #if FOPEN_TRAILING_SLASH_BUG - /* If the filename ends in a slash and a mode that requires write access is - specified, then fail. - Rationale: POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html> + /* Fail if the mode requires write access and the filename ends in a slash, + as POSIX says such a filename must name a directory + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>. If the named file already exists as a directory, then if a mode that requires write access is specified, fopen() must fail because POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fopen.html> diff --git a/lib/open.c b/lib/open.c index 4572ebf6cd..0623d381a2 100644 --- a/lib/open.c +++ b/lib/open.c @@ -92,9 +92,9 @@ open (const char *filename, int flags, ...) #endif #if OPEN_TRAILING_SLASH_BUG - /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR - is specified, then fail. - Rationale: POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html> + /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename + ends in a slash, as POSIX says such a filename must name a directory + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>. If the named file already exists as a directory, then - if O_CREAT is specified, open() must fail because of the semantics of O_CREAT, diff --git a/lib/openat.c b/lib/openat.c index 6deadfdb58..25ffd770e0 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -82,8 +82,9 @@ rpl_openat (int dfd, char const *filename, int flags, ...) } # if OPEN_TRAILING_SLASH_BUG - /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR - is specified, then fail. + /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename + ends in a slash, as POSIX says such a filename must name a directory + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>. If the named file already exists as a directory, then - if O_CREAT is specified, open() must fail because of the semantics of O_CREAT, diff --git a/tests/test-fflush2.c b/tests/test-fflush2.c index da60eff6a8..e7bfa654d8 100644 --- a/tests/test-fflush2.c +++ b/tests/test-fflush2.c @@ -69,7 +69,7 @@ main (int argc, char **argv) according to the Austin Group's resolution on 2009-01-08. */ /* Check that fflush after a non-backup ungetc() call discards the ungetc buffer. This is mandated by POSIX - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/ungetc.html> */ + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fflush.html> */ c = fgetc (stdin); ASSERT (c == '#'); |