<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/sort.c, 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-10T23:16:33Z</updated>
<entry>
<title>sort: by default, do not exceed 3/4 of physical memory</title>
<updated>2012-07-10T23:16:33Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-07-10T23:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c2f590dc9a08dabcd18411bd4a4b85a0a82c2c08'/>
<id>urn:sha1:c2f590dc9a08dabcd18411bd4a4b85a0a82c2c08</id>
<content type='text'>
* src/sort.c (default_sort_size): Do not exceed 3/4 of total memory.
See Jeff Janes's bug report in
&lt;http://lists.gnu.org/archive/html/coreutils/2012-06/msg00018.html&gt;.
</content>
</entry>
<entry>
<title>sort: fix exit-status typo</title>
<updated>2012-07-02T23:46:59Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-07-02T23:19:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f3bd32bae2c902b9dbbe241884feaf2f0a4df7fa'/>
<id>urn:sha1:f3bd32bae2c902b9dbbe241884feaf2f0a4df7fa</id>
<content type='text'>
* src/sort.c (stream_open): EXIT_FAILURE -&gt; SORT_FAILURE.
Suggested by Pádraig Brady in &lt;http://bugs.gnu.org/11816#34&gt;.
</content>
</entry>
<entry>
<title>sort: simplify -o handling to avoid fdopen, assert</title>
<updated>2012-07-02T23:46:59Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-07-02T22:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=59daf05b75f1898ff435ff13983da8d20d4436aa'/>
<id>urn:sha1:59daf05b75f1898ff435ff13983da8d20d4436aa</id>
<content type='text'>
* src/sort.c (outfd): Remove.  All uses replaced by STDOUT_FILENO.
(stream_open): When writing, use stdout rather than fdopen.
(move_fd_or_die): Renamed from dup2_or_die, with the added functionality
of closing its first argument.  All uses changed.
(avoid_trashing_input): Special case for !outfile no longer needed.
(check_output): Arrange for standard output to go to the file,
rather than storing the fd in outfd.
</content>
</entry>
<entry>
<title>sort: avoid redundant processing with inaccessible inputs or output</title>
<updated>2012-07-02T19:14:29Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-07-01T00:14:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=44fbd3fd862e34d42006f8b74cb11c9c56346417'/>
<id>urn:sha1:44fbd3fd862e34d42006f8b74cb11c9c56346417</id>
<content type='text'>
* src/sort.c (check_inputs): A new function to verify all inputs
are accessible before further processing.
(check_output): A new function to open or create a specified
output file, before futher processing.
(stream_open): Adjust to truncating the previously opened
output file rather than opening directly.
(avoid_trashing_input): Optimize to stat the output file
descriptor, rather than the file name.
(main): Call the new functions to check accessibility of
inputs and output, before processing starts.
* tests/misc/sort: Adjust to the changed error message.
* tests/misc/sort-merge-fdlimit: Account for the earlier opened
file descriptor of the specified output file.
* tests/misc/sort-exit-early: A new test to exercise the improvements.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the improvement.

Suggested-by: Bernhard Voelker
</content>
</entry>
<entry>
<title>maint: sort: style adjustment to help clarify size determination</title>
<updated>2012-06-20T06:12:17Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2012-06-20T05:57:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=daab10d9f58d62af896d6b33d06e0d4998f2f114'/>
<id>urn:sha1:daab10d9f58d62af896d6b33d06e0d4998f2f114</id>
<content type='text'>
* src/sort.c (default_sort_size): Move physmem code "down" to first use.
</content>
</entry>
<entry>
<title>maint: add assertions to placate static analysis tools</title>
<updated>2012-05-16T05:36:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-05-14T13:44:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ab163ec071130aef814c262f109b1ac4721d054'/>
<id>urn:sha1:1ab163ec071130aef814c262f109b1ac4721d054</id>
<content type='text'>
A static analysis tool (http://labs.oracle.com/projects/parfait/)
produced some false positive diagnostics.  Add assertions to help
it understand that the code is correct.
* src/stty.c: Include &lt;assert.h&gt;.
(display_changed): Add an assertion to placate parfait.
(display_all): Likewise.
* src/sort.c: Include &lt;assert.h&gt;.
(main): Add an assertion to placate parfait.
* src/fmt.c: Include &lt;assert.h&gt;.
(get_paragraph): Add an assertion to placate parfait.
</content>
</entry>
<entry>
<title>maint: rely on gnulib's new sys_resource module</title>
<updated>2012-05-04T10:13:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-05-04T09:18:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c999133e539cd01860338bf6d0f33d825ae94490'/>
<id>urn:sha1:c999133e539cd01860338bf6d0f33d825ae94490</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add sys_resource.
* src/sort.c: Remove #if HAVE_SYS_RESOURCE_H guard around inclusion
of &lt;sys/resource.h&gt; and move the inclusion "up" into the alphabetized
list of its peers.  This also avoids a failure of the
sc_prohibit_always_true_header_tests syntax-check rule.
* m4/jm-macros.m4 (gl_CHECK_ALL_HEADERS): Remove sys/resource.h.
</content>
</entry>
<entry>
<title>sort: default to physmem/8, not physmem/16</title>
<updated>2012-02-25T18:34:57Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-02-25T18:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a507ed6ede5064b8f15c979e54e6de3bb478d73e'/>
<id>urn:sha1:a507ed6ede5064b8f15c979e54e6de3bb478d73e</id>
<content type='text'>
* src/sort.c (default_sort_size): Don't divide advice by 2.
Just divide the hard limits by 2.  This matches the comments.
Reported by Rogier Wolff in http://bugs.gnu.org/10877
</content>
</entry>
<entry>
<title>maint: sort: remove the last uses of "'%s'" in diagnostics</title>
<updated>2012-01-30T19:43:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-30T11:48:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=447b5d9320e22eed51cd64b8de766ccb1686f230'/>
<id>urn:sha1:447b5d9320e22eed51cd64b8de766ccb1686f230</id>
<content type='text'>
* src/sort.c (key_warnings): Use quote (quote_n, since there are two)
rather than literal single quotes ('%s') in diagnostic.
</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>
</feed>
