<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/sys/aio_waitcomplete.2, branch release/11.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Fully handle size_t lengths in AIO requests.</title>
<updated>2016-03-21T21:37:33+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2016-03-21T21:37:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bb430bc7406fea7e7f361fb66f4d4391829b07ee'/>
<id>bb430bc7406fea7e7f361fb66f4d4391829b07ee</id>
<content type='text'>
First, update the return types of aio_return() and aio_waitcomplete() to
ssize_t.

POSIX requires aio_return() to return a ssize_t so that it can represent
all return values from read() and write().  aio_waitcomplete() should use
ssize_t for the same reason.

aio_return() has used ssize_t in &lt;aio.h&gt; since r31620 but the manpage and
system call entry were not updated.  aio_waitcomplete() has always
returned int.

Note that this does not require new system call stubs as this is
effectively only an API change in how the compiler interprets the return
value.

Second, allow aio_nbytes values up to IOSIZE_MAX instead of just INT_MAX.

aio_read/write should now honor the same length limits as normal read/write.

Third, use longs instead of ints in the aio_return() and aio_waitcomplete()
system call functions so that the 64-bit size_t in the in-kernel aiocb
isn't truncated to 32-bits before being copied out to userland or
being returned.

Finally, a simple test has been added to verify the bounds checking on the
maximum read size from a file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
First, update the return types of aio_return() and aio_waitcomplete() to
ssize_t.

POSIX requires aio_return() to return a ssize_t so that it can represent
all return values from read() and write().  aio_waitcomplete() should use
ssize_t for the same reason.

aio_return() has used ssize_t in &lt;aio.h&gt; since r31620 but the manpage and
system call entry were not updated.  aio_waitcomplete() has always
returned int.

Note that this does not require new system call stubs as this is
effectively only an API change in how the compiler interprets the return
value.

Second, allow aio_nbytes values up to IOSIZE_MAX instead of just INT_MAX.

aio_read/write should now honor the same length limits as normal read/write.

Third, use longs instead of ints in the aio_return() and aio_waitcomplete()
system call functions so that the 64-bit size_t in the in-kernel aiocb
isn't truncated to 32-bits before being copied out to userland or
being returned.

Finally, a simple test has been added to verify the bounds checking on the
maximum read size from a file.
</pre>
</div>
</content>
</entry>
<entry>
<title>use .Mt to mark up email addresses consistently (part4)</title>
<updated>2014-06-23T08:25:03+00:00</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2014-06-23T08:25:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8fbf3d50e331929dfa82912749a2a5ce240d475b'/>
<id>8fbf3d50e331929dfa82912749a2a5ce240d475b</id>
<content type='text'>
PR:		191174
Submitted by:	Franco Fichtner  &lt;franco at lastsummer.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		191174
Submitted by:	Franco Fichtner  &lt;franco at lastsummer.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: Tidy up the syscall language.</title>
<updated>2002-12-18T09:22:32+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2002-12-18T09:22:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3'/>
<id>2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3</id>
<content type='text'>
Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stop calling system calls "function calls".

Use "The .Fn system call" a-la "The .Nm utility".

When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
</pre>
</div>
</content>
</entry>
<entry>
<title>* Modernize aio(4), providing instructions for static and dynamic kernel</title>
<updated>2002-10-24T12:57:05+00:00</updated>
<author>
<name>Sheldon Hearn</name>
<email>sheldonh@FreeBSD.org</email>
</author>
<published>2002-10-24T12:57:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a7af55af93a1535d44d0fefbdc4c6054f7a746a9'/>
<id>a7af55af93a1535d44d0fefbdc4c6054f7a746a9</id>
<content type='text'>
  linking.

* Fix disorder in the SEE ALSO sections of aio_*(2).

* Remove unnecessary cross-references from the SEE ALSO sections of
  aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced
  from aio(4).

* Remove the KERNEL OPTIONS sections from aio_*(2), now that these
  pages cross-reference aio(4), which contains suitable kernel linking
  reference material.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  linking.

* Fix disorder in the SEE ALSO sections of aio_*(2).

* Remove unnecessary cross-references from the SEE ALSO sections of
  aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced
  from aio(4).

* Remove the KERNEL OPTIONS sections from aio_*(2), now that these
  pages cross-reference aio(4), which contains suitable kernel linking
  reference material.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add cross-references to the aio(4) manual page.</title>
<updated>2002-10-24T12:22:57+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2002-10-24T12:22:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=47ae1efd8dfe8cb1fc3f4b8835487d35594afd51'/>
<id>47ae1efd8dfe8cb1fc3f4b8835487d35594afd51</id>
<content type='text'>
Submitted by:	Craig Rodrigues &lt;rodrigc@attbi.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Submitted by:	Craig Rodrigues &lt;rodrigc@attbi.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Explain to users that they may want to kldload aio.</title>
<updated>2002-10-22T16:12:27+00:00</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-10-22T16:12:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9ed01b5d3b3864a4dd2baedfd4db7821b01f5132'/>
<id>9ed01b5d3b3864a4dd2baedfd4db7821b01f5132</id>
<content type='text'>
Move Xref sections.

Submitted by: Craig Rodrigues &lt;rodrigc@attbi.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Move Xref sections.

Submitted by: Craig Rodrigues &lt;rodrigc@attbi.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: Use the new .In macro for #include statements.</title>
<updated>2001-10-01T16:09:29+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-10-01T16:09:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=32eef9aeb1f39a1623cea55da147c89abbd5b9a5'/>
<id>32eef9aeb1f39a1623cea55da147c89abbd5b9a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>mdoc(7) police: split punctuation characters + misc fixes.</title>
<updated>2001-02-01T16:38:02+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2001-02-01T16:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d0353b836e88609b9400851d32e0aa6645ff9be3'/>
<id>d0353b836e88609b9400851d32e0aa6645ff9be3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use Fx macro wherever possible.</title>
<updated>2000-11-14T11:20:58+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2000-11-14T11:20:58+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5c508fba33452c36601090d080ddc688efad870'/>
<id>b5c508fba33452c36601090d080ddc688efad870</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark up errno as a variable (Va), not as a defined value (Dv).</title>
<updated>2000-06-23T15:02:29+00:00</updated>
<author>
<name>Sheldon Hearn</name>
<email>sheldonh@FreeBSD.org</email>
</author>
<published>2000-06-23T15:02:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8a4272bf513f016397579fd6e82fa8326d30833c'/>
<id>8a4272bf513f016397579fd6e82fa8326d30833c</id>
<content type='text'>
Do not terminate the cross-reference list in the SEE ALSO section with
a period.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not terminate the cross-reference list in the SEE ALSO section with
a period.
</pre>
</div>
</content>
</entry>
</feed>
