<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/remove.c, branch DU-FTS</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=DU-FTS</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=DU-FTS'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2003-01-21T18:49:49Z</updated>
<entry>
<title>(remove_entry) [ROOT_CAN_UNLINK_DIRS &amp;&amp; HAVE_STRUCT_DIRENT_D_TYPE]: If a file</title>
<updated>2003-01-21T18:49:49Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-21T18:49:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c59a8e2d32e25ab8807335dbb2d34f19b23e2825'/>
<id>urn:sha1:c59a8e2d32e25ab8807335dbb2d34f19b23e2825</id>
<content type='text'>
has d_type == DT_UNKNOWN it may still be a directory -- or not (e.g., with
FreeBSD on an NFS-mounted file system), so resort to calling lstat to find out.
</content>
</entry>
<entry>
<title>Rename type: DS -&gt; Dirstack_state.</title>
<updated>2003-01-20T15:43:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-20T15:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8df5caa41460e76dee9ed78fd5fe572e165e1996'/>
<id>urn:sha1:8df5caa41460e76dee9ed78fd5fe572e165e1996</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove some unnecessary parentheses.</title>
<updated>2003-01-20T15:40:25Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-20T15:40:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3c7f4321a0aff450ba884fce79665706b679d2fa'/>
<id>urn:sha1:3c7f4321a0aff450ba884fce79665706b679d2fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tweak comment</title>
<updated>2003-01-07T16:36:45Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-07T16:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d31fd7a77ee2a8d6f951befef1833899f8cf3c89'/>
<id>urn:sha1:d31fd7a77ee2a8d6f951befef1833899f8cf3c89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add a comment</title>
<updated>2003-01-07T16:06:56Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-07T16:06:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ef6e79882ef1a020060b66f85e60fd196932d6f'/>
<id>urn:sha1:1ef6e79882ef1a020060b66f85e60fd196932d6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rm could be tricked into mistakenly reporting a cycle.</title>
<updated>2003-01-04T10:07:44Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-04T10:07:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8b6b22bcefc27f212b66d9d895a1809c885ac106'/>
<id>urn:sha1:8b6b22bcefc27f212b66d9d895a1809c885ac106</id>
<content type='text'>
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.

When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include &lt;setjmp.h&gt;
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.

* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
</content>
</entry>
<entry>
<title>Don't include trailing /. in diagnostics about directories.</title>
<updated>2003-01-04T09:45:54Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-04T09:45:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a3e6d3aa63ef885e69e9a8835c5a138666ba0a49'/>
<id>urn:sha1:a3e6d3aa63ef885e69e9a8835c5a138666ba0a49</id>
<content type='text'>
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
</content>
</entry>
<entry>
<title>(remove_cwd_entries): Fix typos in comment.</title>
<updated>2003-01-04T09:42:53Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-04T09:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b09da5c9d0bcff53bd6fd3fca3561ca5c94d38d4'/>
<id>urn:sha1:b09da5c9d0bcff53bd6fd3fca3561ca5c94d38d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(struct dirstack_state): Define.</title>
<updated>2003-01-04T09:41:24Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-04T09:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=818c25f6862a2e53b8bf95415e20b1504173d610'/>
<id>urn:sha1:818c25f6862a2e53b8bf95415e20b1504173d610</id>
<content type='text'>
To be used in place of these file-scoped globals ...
(dir_stack, len_stack, Active_dir): Remove globals.
(ds_init, ds_free): New functions.
(full_filename): Define.
(full_filename_): Rename from full_filename.



Begin to make AD_* functions more generic.

(AD_push_initial): Don't set status to RM_OK here.
(AD_push): Likewise.
(AD_INIT_OTHER_MEMBERS): Define.
(remove_dir): Define the `status' member manually after each
call to AD_push or AD_push_initial.
</content>
</entry>
<entry>
<title>[S_ISLNK]: Don't define.  It's already defined in sys2.h.</title>
<updated>2003-01-04T08:44:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2003-01-04T08:44:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a4efa35cd766978879bb99f3843baacab897f681'/>
<id>urn:sha1:a4efa35cd766978879bb99f3843baacab897f681</id>
<content type='text'>
</content>
</entry>
</feed>
