<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/ls.c, branch v5.2.0</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v5.2.0</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v5.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2004-02-02T07:59:23Z</updated>
<entry>
<title>(TIMESPEC_NS): Remove definition.</title>
<updated>2004-02-02T07:59:23Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2004-02-02T07:59:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=19b1ba88d561213ab34da7e1ec5eb88c14df122e'/>
<id>urn:sha1:19b1ba88d561213ab34da7e1ec5eb88c14df122e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(usage): Use EXIT_SUCCESS, not 0, for clarity.</title>
<updated>2004-01-21T23:20:16Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2004-01-21T23:20:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c399132b6eb0263d1ca79f1ced201b43b2886424'/>
<id>urn:sha1:c399132b6eb0263d1ca79f1ced201b43b2886424</id>
<content type='text'>
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
</content>
</entry>
<entry>
<title>(length_of_file_names_and_frills):</title>
<updated>2003-12-24T16:38:36Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-12-24T16:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=80de43f4881b7420ad3bbc889698fa85322f2005'/>
<id>urn:sha1:80de43f4881b7420ad3bbc889698fa85322f2005</id>
<content type='text'>
Remove forward decl; not needed.
(print_file_name_and_frills, length_of_file_name_and_frills):
With -m, don't output spaces before inum or size.
(print_with_commas): Don't output space just before newline.
</content>
</entry>
<entry>
<title>(format_user): Increment dired_pos via two statements,</title>
<updated>2003-12-18T17:15:38Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-12-18T17:15:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=513aae0e6a10a23c63b3ebc23530741123ca6949'/>
<id>urn:sha1:513aae0e6a10a23c63b3ebc23530741123ca6949</id>
<content type='text'>
`dired_pos += width; dired_pos++;' rather than one,
`dired_pos += width + 1;' since the latter could conceivably overflow.
(format_group): Likewise.
</content>
</entry>
<entry>
<title>(INODE_DIGITS, LOGIN_NAME_MAX, ID_LENGTH_MAX): Remove.</title>
<updated>2003-12-08T08:34:40Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-12-08T08:34:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a010053815eab8b2c96d3711293a87c21f3cbe30'/>
<id>urn:sha1:a010053815eab8b2c96d3711293a87c21f3cbe30</id>
<content type='text'>
(format_user_width, format_group_width, unsigned_file_size,
format_group): New functions.
(block_size_width): Renamed from block_size_size.
(inode_number_width, nlink_width, owner_width, group_width,
author_width, major_device_number_width, minor_device_number_width,
file_size_width): New vars.
(clear_files): Initialize them.
(gobble_file): Set them.  Don't ceiling block_size_width to 7.
(print_long_file): Use them.
(gobble_file): Use a new local variable 'f' to make the code
smaller and more consistent with other functions.
(format_user): Output to stdout, not to a buffer, so that we
don't have to worry about buffer overrun.  Update dired_pos.
(print_long_file): Don't put owner, group, author into buffer;
just print them directly.  Don't assume link counts and
major and minor numbers fit into unsigned long int.
From Paul Eggert.
</content>
</entry>
<entry>
<title>(extract_dirs_from_files): Avoid useless copy operations.</title>
<updated>2003-11-12T09:23:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-11-12T09:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9bdd30ba17f6a2490c670e121395a70abcca7233'/>
<id>urn:sha1:9bdd30ba17f6a2490c670e121395a70abcca7233</id>
<content type='text'>
This avoids a warning valgrind about memcpy with overlapping
source and destination.
</content>
</entry>
<entry>
<title>(dev_ino_hash): Adjust to reflect</title>
<updated>2003-10-25T15:32:07Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-25T15:32:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b2c8266f8be2b0f917a42a7231ebafb64a51eaab'/>
<id>urn:sha1:b2c8266f8be2b0f917a42a7231ebafb64a51eaab</id>
<content type='text'>
type changes (unsigned int -&gt; size_t) in hash.c.
</content>
</entry>
<entry>
<title>Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change</title>
<updated>2003-10-18T10:05:47Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-18T10:05:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cf4fdf373fa202877d8141fcf7c1ef655a8e06d9'/>
<id>urn:sha1:cf4fdf373fa202877d8141fcf7c1ef655a8e06d9</id>
<content type='text'>
of 2003-09-19.  Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.

* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
</content>
</entry>
<entry>
<title>(decode_switches) [TIOCGWINSZ]: Comment out the</title>
<updated>2003-10-14T20:59:50Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-14T20:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=92f4be12b1e2f8e77260b34cc609a5b850c8719c'/>
<id>urn:sha1:92f4be12b1e2f8e77260b34cc609a5b850c8719c</id>
<content type='text'>
warning-inducing test, ws.ws_col &lt;= SIZE_MAX, since it was always
true on Linux.
</content>
</entry>
<entry>
<title>Fix to avoid a denial-of-service attack if the display width is</title>
<updated>2003-10-14T09:09:43Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-10-14T09:09:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d7bed21394dc27fa3ff40af2fe5963baf73e1311'/>
<id>urn:sha1:d7bed21394dc27fa3ff40af2fe5963baf73e1311</id>
<content type='text'>
enormous.  Also, clean up the code a bit by removing duplicate code.

(init_column_info): Remove forward decl; no longer needed.
(calculate_columns): New function, that contains code that used
to be common to print_many_per_line and print_horizontal.
(print_many_per_line, print_horizontal): Use it.
(decode_switches): Set max_idx here, not in calculate_columns.
(print_current_files): Don't call init_column_info; calculate_columns
now does that.
(init_column_info): Don't allocate a lot more space than is needed
to represent the current set of files.  Allocate all the new
size_t cells in one call to xnmalloc, rather than a row at a time.
</content>
</entry>
</feed>
