diff options
author | Bruno Haible <bruno@clisp.org> | 2019-09-28 17:46:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-09-28 17:46:43 +0200 |
commit | 325321ef5c5f60bc75d757ce8048f86a597c7479 (patch) | |
tree | d89596257c6aadb23223da056e6b038858c92931 /tests | |
parent | 49939c10add166e81112043bf3238b7a782e9b48 (diff) | |
download | gnulib-325321ef5c5f60bc75d757ce8048f86a597c7479.tar.gz |
Update comments that refer to POSIX.
* lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
sentence about trailing slashes.
* lib/fflush.c: Clarify the reasoning.
* tests/test-fflush2.c: Cite the relevant sentence.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-fflush2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-fflush2.c b/tests/test-fflush2.c index e7bfa654d8..4caf868a0e 100644 --- a/tests/test-fflush2.c +++ b/tests/test-fflush2.c @@ -69,7 +69,10 @@ 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/fflush.html> */ + <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..." */ c = fgetc (stdin); ASSERT (c == '#'); |