]> Savannah Git Hosting - gnulib.git/commitdiff
Update URLs and associated text
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Sep 2019 19:41:22 +0000 (12:41 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Sep 2019 19:46:53 +0000 (12:46 -0700)
(Thanks to Bruno Haible for proofreading the earlier patch.)

ChangeLog
build-aux/pmccabe2html
doc/gendocs_template_min
lib/creat.c
lib/fflush.c
lib/fopen.c
lib/open.c
lib/openat.c
tests/test-fflush2.c

index 903757318768c09c208bd178fa5435869a4adf60..17fbaf4e3b48092b18a8fbcd09652b364a2492e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
index a8928e0ffcd98e5fe2b329cd2ade0546ca77eb72..7dcfb0bc1175fc0be1e3d2eb0b0fe29e030b1bbb 100644 (file)
@@ -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
 
index 428ac2b55a79c8bd6dab4a4c25f40abc01adf872..e90cf04a31b74f8ab75ccc396d6e33a7eb22cd64 100644 (file)
@@ -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>
index 89132e2bb2d0fbd8116fcbb20ca84cab604ec012..e63b21957642aa4b718d711c7b9c1a355fa2aa67 100644 (file)
@@ -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
index e61fd215463725ab6c9d0ed3a07a67cb83cdd2c0..63862be19e5060f57fe12fca46b2b8fecb31bcb3 100644 (file)
@@ -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
index f08c06dd9a37aee1633554c708ac283bd27e381f..07e38917965ac285e8c48738e09eacf34450bc1d 100644 (file)
@@ -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>
index 4572ebf6cd2aa7d1a558052ab627354d76745a13..0623d381a2bddc5f92784d058f024b3e7fe00b68 100644 (file)
@@ -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,
index 6deadfdb5865246b20560c6f1768617bd8dfaf77..25ffd770e0047f8c47c259231f2c88a398cae3ba 100644 (file)
@@ -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,
index da60eff6a8e1676da715a7e1f7b8d00d70a3a267..e7bfa654d8b8e88a5a5f0bf076360c7b3aec01bd 100644 (file)
@@ -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 == '#');