<feed xmlns='http://www.w3.org/2005/Atom'>
<title>plan9port/src/lib9/open.c, branch patch</title>
<subtitle>Plan 9 from User Space (with patches)</subtitle>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/'/>
<entry>
<title>lib9: avoid unportable use of d_namlen in dirread</title>
<updated>2020-05-18T21:04:36+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-18T21:03:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=c53ad837a734f7570badcb3666ccb3604e7e6467'/>
<id>c53ad837a734f7570badcb3666ccb3604e7e6467</id>
<content type='text'>
Fixes #395.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #395.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib9: use opendir/readdir to read directories</title>
<updated>2020-05-18T00:15:41+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-18T00:02:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=8cb7308f3a24249ed091c7decf22005c64099783'/>
<id>8cb7308f3a24249ed091c7decf22005c64099783</id>
<content type='text'>
getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago).
Using it requires disabling 64-bit inodes, but that in turn makes binaries
incompatible with some dynamic libraries, most notably ASAN.

At some point getdirentries(2) will actually be removed.

For both these reasons, switch to opendir/readdir.
A little clunky since we have to keep the DIR* hidden away
to preserve the int fd interfaces, but it lets us remove a bunch
of OS-specific code too.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago).
Using it requires disabling 64-bit inodes, but that in turn makes binaries
incompatible with some dynamic libraries, most notably ASAN.

At some point getdirentries(2) will actually be removed.

For both these reasons, switch to opendir/readdir.
A little clunky since we have to keep the DIR* hidden away
to preserve the int fd interfaces, but it lets us remove a bunch
of OS-specific code too.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib9: move seek into open.c</title>
<updated>2020-05-18T00:15:41+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-17T16:38:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=16f60479e16e3714b376e633c6b902a32e0607ea'/>
<id>16f60479e16e3714b376e633c6b902a32e0607ea</id>
<content type='text'>
More preparation for opendir.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More preparation for opendir.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib9: add close</title>
<updated>2020-05-18T00:15:41+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-17T16:37:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=6fd4e901ce48f2e056c505c81320f786175588ff'/>
<id>6fd4e901ce48f2e056c505c81320f786175588ff</id>
<content type='text'>
More preparation for opendir.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More preparation for opendir.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib9: merge create, open, dirread into open.c</title>
<updated>2020-05-18T00:15:41+00:00</updated>
<author>
<name>Russ Cox</name>
<email>rsc@swtch.com</email>
</author>
<published>2020-05-17T16:35:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=58fdc083addda3f95eb8895f474da5a52f145be0'/>
<id>58fdc083addda3f95eb8895f474da5a52f145be0</id>
<content type='text'>
Preparation for using opendir.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Preparation for using opendir.
</pre>
</div>
</content>
</entry>
<entry>
<title>better error message</title>
<updated>2005-03-18T19:03:45+00:00</updated>
<author>
<name>rsc</name>
<email>devnull@localhost</email>
</author>
<published>2005-03-18T19:03:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=915734a70cf929702f84671c8ea63d483acd34db'/>
<id>915734a70cf929702f84671c8ea63d483acd34db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hard code list of plan 9 services in case they are not in /etc/services</title>
<updated>2005-02-11T16:58:23+00:00</updated>
<author>
<name>rsc</name>
<email>devnull@localhost</email>
</author>
<published>2005-02-11T16:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=b589fce2fbf05ae18a6f015240f87ce2a163521f'/>
<id>b589fce2fbf05ae18a6f015240f87ce2a163521f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>debugging for sam, and an old fix forgotten</title>
<updated>2005-01-07T18:03:36+00:00</updated>
<author>
<name>rsc</name>
<email>devnull@localhost</email>
</author>
<published>2005-01-07T18:03:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=a19ff5b204a5e36ae522feb4acc0f31542b95f38'/>
<id>a19ff5b204a5e36ae522feb4acc0f31542b95f38</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>do not depend on flock</title>
<updated>2005-01-07T07:19:35+00:00</updated>
<author>
<name>rsc</name>
<email>devnull@localhost</email>
</author>
<published>2005-01-07T07:19:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=c71af67adc9946fe2a560259f5e79174dfa07e8d'/>
<id>c71af67adc9946fe2a560259f5e79174dfa07e8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>get this right</title>
<updated>2004-06-11T18:57:32+00:00</updated>
<author>
<name>rsc</name>
<email>devnull@localhost</email>
</author>
<published>2004-06-11T18:57:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rctt.net/plan9port/commit/?id=d9e16d252a4f84a6b30a7837ed6524e2dffec5ec'/>
<id>d9e16d252a4f84a6b30a7837ed6524e2dffec5ec</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
