<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/tail.c, branch v9.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2021-09-21T16:50:54Z</updated>
<entry>
<title>tail: fix detection of closed stdout on macOS</title>
<updated>2021-09-21T16:50:54Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-21T13:01:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a656db664daca129dba9c481e73eb4e76b9d0009'/>
<id>urn:sha1:a656db664daca129dba9c481e73eb4e76b9d0009</id>
<content type='text'>
* bootstrap.conf: We only need poll on Linux and AIX
where poll is not replaced.  Also resinstate dependence
on select so we can use it unconditionally.
* src/tail.c (check_output_alive): Reinstate use of select()
by default as poll was seen to be ineffective for this
application on macOS.
Fixes https://bugs.gnu.org/50714
</content>
</entry>
<entry>
<title>maint: clean up c++ style comments</title>
<updated>2021-09-21T15:22:18Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-09-21T15:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f8819b657f6a15249b5758c7b1160be97f8805cd'/>
<id>urn:sha1:f8819b657f6a15249b5758c7b1160be97f8805cd</id>
<content type='text'>
* src/expand-common.h: Remove commented variables.
* src/remove.h: Change to C style comment.
* src/tail.c: Likewise.
</content>
</entry>
<entry>
<title>maint: prefer rawmemchr to memchr when easy</title>
<updated>2021-09-15T22:08:28Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-09-15T21:09:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2715aba08a381a6099c1c6b054995e6b3df785c8'/>
<id>urn:sha1:2715aba08a381a6099c1c6b054995e6b3df785c8</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add rawmemchr.
* src/csplit.c: Include idx.h.
* src/csplit.c (record_line_starts):
* src/head.c (elide_tail_lines_pipe):
* src/shuf.c (next_line):
* src/split.c (lines_split):
* src/tail.c (pipe_lines):
* src/wc.c (wc_lines):
Prefer rawmemchr to memchr when rawmemchr is easy.
* src/csplit.c (load_buffer):
* src/head.c (struct linebuffer):
Make room for a 1-byte sentinel.
</content>
</entry>
<entry>
<title>tail: use poll, not select</title>
<updated>2021-06-27T01:40:26Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-06-27T01:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=da0d448bca62c6305fc432f67e2c5ccc2da75346'/>
<id>urn:sha1:da0d448bca62c6305fc432f67e2c5ccc2da75346</id>
<content type='text'>
This fixes an unlikely stack out-of-bounds write reported by
Stepan Broz via Kamil Dudka (Bug#49209).
* bootstrap.conf (gnulib_modules): Replace select with poll.
* src/tail.c: Do not include &lt;sys/select.h&gt;.
[!_AIX]: Include poll.h.
(check_output_alive) [!_AIX]: Use poll instead of select.
(tail_forever_inotify): Likewise.  Simplify logic, as there is no
need for a ‘while (len &lt;= evbuf_off)’ loop.
</content>
</entry>
<entry>
<title>maint: while (1) → while (true)</title>
<updated>2021-06-27T01:40:26Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2021-06-27T01:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=53bb0235d5fdcf6b5e0243b53b1713eb2f5474bc'/>
<id>urn:sha1:53bb0235d5fdcf6b5e0243b53b1713eb2f5474bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint: remove redundant checks on buffer sizes in tail</title>
<updated>2021-06-21T12:17:06Z</updated>
<author>
<name>Nikolay Nechaev</name>
<email>Nikolay_Nechaev@mail.ru</email>
</author>
<published>2021-06-20T14:54:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=18dbcae25a421c39030b050de4d42d76d715d512'/>
<id>urn:sha1:18dbcae25a421c39030b050de4d42d76d715d512</id>
<content type='text'>
* src/tail.c: remove redundant size checks before calls to
`xwrite_stdout`
</content>
</entry>
<entry>
<title>maint: consistently free hash structures in dev mode</title>
<updated>2021-05-08T13:57:33Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-05-03T17:11:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=09bbb2b703d78e2d577cba57b8bb3ad339303835'/>
<id>urn:sha1:09bbb2b703d78e2d577cba57b8bb3ad339303835</id>
<content type='text'>
Ensure we call hash_free() to avoid valgrind and leak_sanitizer
"definitely lost" warnings.  These were not real leaks as
we terminate immediately after, but we should avoid these
"definitely lost" warnings where possible.

* src/copy.c: Add dest_info_free() and src_info_free().
* src/copy.h: Declare the above.
* src/cp-hash.c: Don't define unless "lint" is defined.
* src/install.c: Call dest_info_free() in dev mode.
* src/mv.c: Likewise.
* src/cp.c: Likewise. Also call src_info_free().
* src/ln.c: Call hash_free() in dev mode.
* src/tail.c: Call hash_free() even if about to exit, in dev mode.

Fixes https://bugs.gnu.org/48189
</content>
</entry>
<entry>
<title>maint: use "char const *" rather than "const char *"</title>
<updated>2021-04-11T17:33:45Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-04-11T17:23:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ef772bf97f7ec577754cbb5b278504d83cf41a43'/>
<id>urn:sha1:ef772bf97f7ec577754cbb5b278504d83cf41a43</id>
<content type='text'>
* cfg.mk (sc_prohibit-const-char): Add a new syntax-check to
enforce this style.
* *.[ch]: sed -i 's/const char \*/char const */g'
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2021-01-01T16:36:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2021-01-01T16:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=32ff1d1313ff566685b9092ac929251a4c22e7c4'/>
<id>urn:sha1:32ff1d1313ff566685b9092ac929251a4c22e7c4</id>
<content type='text'>
Run "make update-copyright" and then...

* gnulib: Update to latest with copyright year adjusted.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>build: update gnulib submodule to latest</title>
<updated>2020-10-19T17:58:53Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2020-10-19T17:47:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=00ea4bacf6063ccc125209d5186f8f2382c6f0d4'/>
<id>urn:sha1:00ea4bacf6063ccc125209d5186f8f2382c6f0d4</id>
<content type='text'>
* gl/lib/randperm.c, src/cp-hash.c, src/ls.c, src/sort.c, src/tail.c:
Change all instaces of hash_delete to hash_remove to accommodate
change to Gnulib API.
</content>
</entry>
</feed>
