<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/system.h, branch v8.18</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.18</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.18'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2012-07-21T10:08:31Z</updated>
<entry>
<title>maint: stzncpy: restrict pointer parameters</title>
<updated>2012-07-21T10:08:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-07-21T10:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7308099bbc38c64fef2da2f5cf8d32c149400065'/>
<id>urn:sha1:7308099bbc38c64fef2da2f5cf8d32c149400065</id>
<content type='text'>
* src/system.h (stzncpy): Add "restrict" attribute to each pointer
parameter and note in the comment that the buffers must not overlap.
</content>
</entry>
<entry>
<title>pinky,who: fix bug in latest change</title>
<updated>2012-07-15T17:11:45Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-07-15T16:18:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ac00d23e1a90dc5a8cd0f6de0e61eb401d5089d5'/>
<id>urn:sha1:ac00d23e1a90dc5a8cd0f6de0e61eb401d5089d5</id>
<content type='text'>
* src/system.h (stzncpy): New function.
* src/pinky.c (print_entry): Use stzncpy, not stpncpy.
The latter does not NUL-terminate.  I assumed that strncpy was
the only function with such a horrible API.  Today I learned that
stpncpy also may not NUL-terminate its result.
The bugs were introduced in commit v8.17-48-gf79263d.
* src/who.c (print_user): Likewise.
Thanks to Erik Auerswald for spotting my error.
</content>
</entry>
<entry>
<title>maint: refactor common mode bits used to create files</title>
<updated>2012-06-22T10:17:38Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-06-22T10:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=30a604e631291b80b9812e03e0f325489ae0d77e'/>
<id>urn:sha1:30a604e631291b80b9812e03e0f325489ae0d77e</id>
<content type='text'>
* src/system.h (MODE_RW_UGO): The new refactored define (666).
* src/mkfifo.c: Use the new define.
* src/mknod.c: Likewise.
* src/split.c: Likewise.
* src/system.h: Likewise.
* src/touch.c: Likewise.
* src/truncate.c: Likewise.

Suggested-by: Jim Meyering
</content>
</entry>
<entry>
<title>maint: handle file sizes more reliably</title>
<updated>2012-05-10T09:02:42Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-05-10T06:53:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9d308df13271a852aee7d46c65432fa84145ea31'/>
<id>urn:sha1:9d308df13271a852aee7d46c65432fa84145ea31</id>
<content type='text'>
Problem reported by Samuel Thibault in &lt;http://bugs.gnu.org/11424&gt;.
* NEWS: Document this.
* src/dd.c (skip): Handle skipping past EOF on shared or typed
memory objects the same way as with regular files.
(dd_copy): It's OK to truncate shared memory objects.
* src/du.c (duinfo_add): Check for overflow.
(print_only_size): Report overflow.
(process_file): Ignore negative file sizes in the --apparent-size case.
* src/od.c (skip): Fix comment about st_size.
* src/split.c (main):
* src/truncate.c (do_ftruncate, main):
On files where st_size is not portable, fall back on using lseek
with SEEK_END to determine the size.  Although strictly speaking
POSIX says the behavior is implementation-defined, in practice
if lseek returns a nonnegative value it's a reasonable one to
use for the file size.
* src/system.h (usable_st_size): Symlinks have reliable st_size too.
* tests/misc/truncate-dir-fail: Don't assume that getting the size
of a dir is not allowed, as it's now allowed on many platforms,
e.g., GNU/Linux.
</content>
</entry>
<entry>
<title>maint: new function: usable_st_size</title>
<updated>2012-05-08T08:34:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-05-07T09:20:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=452dc6b5ef39d3a9c26208d960085fe992f4c3b7'/>
<id>urn:sha1:452dc6b5ef39d3a9c26208d960085fe992f4c3b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>maint: ensure PATH_MAX is set correctly</title>
<updated>2012-03-22T12:12:26Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-03-22T04:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=049f1dbe6869a4918c9b2181b1014db6c0e3259b'/>
<id>urn:sha1:049f1dbe6869a4918c9b2181b1014db6c0e3259b</id>
<content type='text'>
This reverts part of commit v8.12-103-g54cbe6e.

* src/system.h: Include gnulib's pathmax.h to honor
system specific limits, and then we set PATH_MAX only if needed.
Note pathmax.h no longer uses pathconf ("/", _PC_PATH_MAX).
Note I didn't reinstate the comments about limits.h inclusion
order, because pathmax.h includes limits.h anyway.
</content>
</entry>
<entry>
<title>maint: refactor copy to use is_nul()</title>
<updated>2012-03-06T23:43:21Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-03-01T11:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4b4a465798a212925670cc4fef7610678d221d69'/>
<id>urn:sha1:4b4a465798a212925670cc4fef7610678d221d69</id>
<content type='text'>
* src/dd.c: Move is_nul() from here to ...
* src/system.h: ... here
* src/copy.c (sparse_copy): Adjust to use the refactored is_nul()
</content>
</entry>
<entry>
<title>doc: clarify a comment in system.h</title>
<updated>2012-02-24T11:22:52Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-02-24T09:02:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4624581d53709bc408d5d49e05c04f175bbb62b1'/>
<id>urn:sha1:4624581d53709bc408d5d49e05c04f175bbb62b1</id>
<content type='text'>
* src/system.h (STRNCMP_LIT): Clarify comment.
Suggested by Bruno Haible.
</content>
</entry>
<entry>
<title>maint: use single copyright year range</title>
<updated>2012-01-27T10:35:24Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-27T10:35:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d7878454cd02518959b0d6036db3a5b6ff00ca57'/>
<id>urn:sha1:d7878454cd02518959b0d6036db3a5b6ff00ca57</id>
<content type='text'>
Run "make update-copyright".
</content>
</entry>
<entry>
<title>maint: src/*.[ch]: convert more `...' to '...'</title>
<updated>2012-01-09T20:51:59Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-08T20:03:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3ba8b044267a5f7cfa8a7b0d7f19dab3f21431da'/>
<id>urn:sha1:3ba8b044267a5f7cfa8a7b0d7f19dab3f21431da</id>
<content type='text'>
Run this (twice):
  git grep -E -l '`.+'\' src/*.[ch] \
    |xargs perl -pi -e 's/`(.+?'\'')/'\''$1/'
</content>
</entry>
</feed>
