<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/lib/openat.c, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2006-08-21T07:26:38Z</updated>
<entry>
<title>Remove from CVS, since the bootstrap script generates them automatically.</title>
<updated>2006-08-21T07:26:38Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-08-21T07:26:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0f7a044109b860443ecaa4f8a37652b1b4423057'/>
<id>urn:sha1:0f7a044109b860443ecaa4f8a37652b1b4423057</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[./]</title>
<updated>2006-08-15T19:17:30Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-08-15T19:17:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2ee444b5fe414a627f8600cb3989b8eed1676b9f'/>
<id>urn:sha1:2ee444b5fe414a627f8600cb3989b8eed1676b9f</id>
<content type='text'>
* .x-sc_require_config_h: Add lib/at-func.c.
[lib/]
* at-func.c: New file, with the logic of all emulated at-functions.
* openat-priv.h: Include &lt;errno.h&gt; and define ENOSYS,
in support of the EXPECTED_ERRNO macro.
* openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
Instead, define the appropriate symbols and include "at-func.c".
* mkdirat.c (mkdirat): Likewise.
* fchmodat.c (fchmodat): Likewise.
(ENOSYS): Remove definition.
* openat.c: Don't include &lt;errno.h&gt;, now that "openat-priv.h" does it.
Don't include "unistd--.h" -- it wasn't ever used.
[m4/]
* openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
</content>
</entry>
<entry>
<title>(openat): Use ?:, not if, to work around GCC bug 4210.</title>
<updated>2006-06-20T19:20:25Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2006-06-20T19:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9d5fbcc019a802d14dcbd02c7c2a8659cc79ad55'/>
<id>urn:sha1:9d5fbcc019a802d14dcbd02c7c2a8659cc79ad55</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix typo in comment: s/nerrower/narrower/</title>
<updated>2006-06-20T10:19:40Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-06-20T10:19:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8280381dd703340cc2ad32e9c66e9de33f86444d'/>
<id>urn:sha1:8280381dd703340cc2ad32e9c66e9de33f86444d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include lstat.h, so that uses of lstat are converted</title>
<updated>2006-02-16T23:10:01Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-02-16T23:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd'/>
<id>urn:sha1:1ec610ba19ae961a3ee114c3f0e9ee64fd8731dd</id>
<content type='text'>
to uses of rpl_lstat, e.g., on Solaris 9.  Otherwise, programs like
du (which now uses the openat-enabled fts and hence fstatat) would
mistakenly fail to dereference a symlink-to-directory specified
with a trailing slash.
</content>
</entry>
<entry>
<title>(openat_needs_fchdir): New function.</title>
<updated>2006-01-17T17:43:10Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-01-17T17:43:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d55e2d85284674dc6a0f623759aef0174d802f9e'/>
<id>urn:sha1:d55e2d85284674dc6a0f623759aef0174d802f9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(fchownat): New function.</title>
<updated>2006-01-11T13:32:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2006-01-11T13:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9cbd6c03665e0d531215e957710becb71e5e6a7b'/>
<id>urn:sha1:9cbd6c03665e0d531215e957710becb71e5e6a7b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Include "fcntl--.h" and "unistd--.h", to map open</title>
<updated>2005-12-22T14:34:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-12-22T14:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b6c621211bc3e0620affe71acde0c99ad12ce773'/>
<id>urn:sha1:b6c621211bc3e0620affe71acde0c99ad12ce773</id>
<content type='text'>
and dup to open_safer and dup_safer, respectively.
(openat_permissive): Fix typo in comment.
</content>
</entry>
<entry>
<title>Don't include &lt;stdlib.h&gt;, &lt;unistd.h&gt;, &lt;fcntl.h&gt;,</title>
<updated>2005-12-17T06:55:32Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2005-12-17T06:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3f86aaadcfc70682baab8b676de5cfd7e2340e2c'/>
<id>urn:sha1:3f86aaadcfc70682baab8b676de5cfd7e2340e2c</id>
<content type='text'>
"gettext.h"; either no longer needed or are guaranteed by openat.h.
(_): Remove; no longer needed.
(openat): Renamed from rpl_openat; no need for rpl_openat
since openat.h renames openat for us.
Replace most of the body with a call to openat_permissive,
to avoid duplicate code.
Port to (probably hypothetical) environments were mode_t is
wider than int.
(openat_permissive): Require mode arg, so that we can check
types better.  Put it just after flags.  Change cwd failure
indicator from pointer-to-bool to pointer-to-errno-value.
All callers changed.
Invoke openat_save_fail and/or openat_restore_fail if
cwd_errno is null, so that openat can call us.
(openat_permissive, fdopendir, fstatat, unlinkat):
Simplify errno handling to avoid some duplicate code,
as it's OK to set errno on success.
</content>
</entry>
<entry>
<title>Include openat-priv.h.</title>
<updated>2005-11-30T13:04:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2005-11-30T13:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=798f577bec2584377e9b81a56a561c9d8c85d47a'/>
<id>urn:sha1:798f577bec2584377e9b81a56a561c9d8c85d47a</id>
<content type='text'>
Remove definitions of macros defined therein.
</content>
</entry>
</feed>
