head 1.7; access; symbols netbsd-10-0-RELEASE:1.7 netbsd-10-0-RC6:1.7 netbsd-10-0-RC5:1.7 netbsd-10-0-RC4:1.7 netbsd-10-0-RC3:1.7 netbsd-10-0-RC2:1.7 netbsd-10-0-RC1:1.7 netbsd-10:1.7.0.60 netbsd-10-base:1.7 netbsd-9-3-RELEASE:1.7 cjep_sun2x-base1:1.7 cjep_sun2x:1.7.0.58 cjep_sun2x-base:1.7 cjep_staticlib_x-base1:1.7 netbsd-9-2-RELEASE:1.7 cjep_staticlib_x:1.7.0.56 cjep_staticlib_x-base:1.7 netbsd-9-1-RELEASE:1.7 phil-wifi-20200421:1.7 phil-wifi-20200411:1.7 is-mlppp:1.7.0.54 is-mlppp-base:1.7 phil-wifi-20200406:1.7 netbsd-8-2-RELEASE:1.7 netbsd-9-0-RELEASE:1.7 netbsd-9-0-RC2:1.7 netbsd-9-0-RC1:1.7 phil-wifi-20191119:1.7 netbsd-9:1.7.0.52 netbsd-9-base:1.7 phil-wifi-20190609:1.7 netbsd-8-1-RELEASE:1.7 netbsd-8-1-RC1:1.7 pgoyette-compat-merge-20190127:1.7 pgoyette-compat-20190127:1.7 pgoyette-compat-20190118:1.7 pgoyette-compat-1226:1.7 pgoyette-compat-1126:1.7 pgoyette-compat-1020:1.7 pgoyette-compat-0930:1.7 pgoyette-compat-0906:1.7 netbsd-7-2-RELEASE:1.7 pgoyette-compat-0728:1.7 netbsd-8-0-RELEASE:1.7 phil-wifi:1.7.0.50 phil-wifi-base:1.7 pgoyette-compat-0625:1.7 netbsd-8-0-RC2:1.7 pgoyette-compat-0521:1.7 pgoyette-compat-0502:1.7 pgoyette-compat-0422:1.7 netbsd-8-0-RC1:1.7 pgoyette-compat-0415:1.7 pgoyette-compat-0407:1.7 pgoyette-compat-0330:1.7 pgoyette-compat-0322:1.7 pgoyette-compat-0315:1.7 netbsd-7-1-2-RELEASE:1.7 pgoyette-compat:1.7.0.48 pgoyette-compat-base:1.7 netbsd-7-1-1-RELEASE:1.7 matt-nb8-mediatek:1.7.0.46 matt-nb8-mediatek-base:1.7 perseant-stdc-iso10646:1.7.0.44 perseant-stdc-iso10646-base:1.7 netbsd-8:1.7.0.42 netbsd-8-base:1.7 prg-localcount2-base3:1.7 prg-localcount2-base2:1.7 prg-localcount2-base1:1.7 prg-localcount2:1.7.0.40 prg-localcount2-base:1.7 pgoyette-localcount-20170426:1.7 bouyer-socketcan-base1:1.7 pgoyette-localcount-20170320:1.7 netbsd-7-1:1.7.0.38 netbsd-7-1-RELEASE:1.7 netbsd-7-1-RC2:1.7 netbsd-7-nhusb-base-20170116:1.7 bouyer-socketcan:1.7.0.36 bouyer-socketcan-base:1.7 pgoyette-localcount-20170107:1.7 netbsd-7-1-RC1:1.7 pgoyette-localcount-20161104:1.7 netbsd-7-0-2-RELEASE:1.7 localcount-20160914:1.7 netbsd-7-nhusb:1.7.0.34 netbsd-7-nhusb-base:1.7 pgoyette-localcount-20160806:1.7 pgoyette-localcount-20160726:1.7 pgoyette-localcount:1.7.0.32 pgoyette-localcount-base:1.7 netbsd-7-0-1-RELEASE:1.7 netbsd-7-0:1.7.0.30 netbsd-7-0-RELEASE:1.7 netbsd-7-0-RC3:1.7 netbsd-7-0-RC2:1.7 netbsd-7-0-RC1:1.7 netbsd-5-2-3-RELEASE:1.5 netbsd-5-1-5-RELEASE:1.5 netbsd-6-0-6-RELEASE:1.7 netbsd-6-1-5-RELEASE:1.7 netbsd-7:1.7.0.28 netbsd-7-base:1.7 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.7 netbsd-6-1-4-RELEASE:1.7 netbsd-6-0-5-RELEASE:1.7 tls-earlyentropy:1.7.0.26 tls-earlyentropy-base:1.7 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 netbsd-6-1-3-RELEASE:1.7 netbsd-6-0-4-RELEASE:1.7 netbsd-5-2-2-RELEASE:1.5 netbsd-5-1-4-RELEASE:1.5 netbsd-6-1-2-RELEASE:1.7 netbsd-6-0-3-RELEASE:1.7 netbsd-5-2-1-RELEASE:1.5 netbsd-5-1-3-RELEASE:1.5 netbsd-6-1-1-RELEASE:1.7 riastradh-drm2-base2:1.7 riastradh-drm2-base1:1.7 riastradh-drm2:1.7.0.20 riastradh-drm2-base:1.7 netbsd-6-1:1.7.0.24 netbsd-6-0-2-RELEASE:1.7 netbsd-6-1-RELEASE:1.7 netbsd-6-1-RC4:1.7 netbsd-6-1-RC3:1.7 agc-symver:1.7.0.22 agc-symver-base:1.7 netbsd-6-1-RC2:1.7 netbsd-6-1-RC1:1.7 yamt-pagecache-base8:1.7 netbsd-5-2:1.5.0.4 netbsd-6-0-1-RELEASE:1.7 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.5 netbsd-5-2-RC1:1.5 matt-nb6-plus-nbase:1.7 yamt-pagecache-base6:1.7 netbsd-6-0:1.7.0.18 netbsd-6-0-RELEASE:1.7 netbsd-6-0-RC2:1.7 tls-maxphys:1.7.0.16 tls-maxphys-base:1.7 matt-nb6-plus:1.7.0.14 matt-nb6-plus-base:1.7 netbsd-6-0-RC1:1.7 yamt-pagecache-base5:1.7 yamt-pagecache-base4:1.7 netbsd-6:1.7.0.12 netbsd-6-base:1.7 netbsd-5-1-2-RELEASE:1.5 netbsd-5-1-1-RELEASE:1.5 yamt-pagecache-base3:1.7 yamt-pagecache-base2:1.7 yamt-pagecache:1.7.0.10 yamt-pagecache-base:1.7 cherry-xenmp:1.7.0.8 cherry-xenmp-base:1.7 uebayasi-xip-base7:1.7 bouyer-quota2-nbase:1.7 bouyer-quota2:1.7.0.6 bouyer-quota2-base:1.7 matt-mips64-premerge-20101231:1.7 matt-nb5-mips64-premerge-20101231:1.5 matt-nb5-pq3:1.5.0.16 matt-nb5-pq3-base:1.5 netbsd-5-1:1.5.0.14 uebayasi-xip-base6:1.7 uebayasi-xip-base5:1.7 netbsd-5-1-RELEASE:1.5 uebayasi-xip-base4:1.7 uebayasi-xip-base3:1.7 netbsd-5-1-RC4:1.5 matt-nb5-mips64-k15:1.5 uebayasi-xip-base2:1.7 netbsd-5-1-RC3:1.5 netbsd-5-1-RC2:1.5 uebayasi-xip-base1:1.7 netbsd-5-1-RC1:1.5 uebayasi-xip:1.7.0.4 uebayasi-xip-base:1.7 netbsd-5-0-2-RELEASE:1.5 matt-nb5-mips64-premerge-20091211:1.5 matt-premerge-20091211:1.7 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5 matt-nb4-mips64-k7-u2a-k9b:1.5 matt-nb5-mips64-u1-k1-k5:1.5 matt-nb5-mips64:1.5.0.12 netbsd-5-0-1-RELEASE:1.5 jym-xensuspend-nbase:1.7 netbsd-5-0:1.5.0.10 netbsd-5-0-RELEASE:1.5 netbsd-5-0-RC4:1.5 netbsd-5-0-RC3:1.5 netbsd-5-0-RC2:1.5 jym-xensuspend:1.7.0.2 jym-xensuspend-base:1.7 netbsd-5-0-RC1:1.5 christos-time_t-nbase:1.5 christos-time_t:1.5.0.8 christos-time_t-base:1.5 netbsd-5:1.5.0.6 netbsd-5-base:1.5 matt-mips64-base2:1.5 matt-mips64:1.3.0.6 wrstuden-revivesa-base-3:1.5 wrstuden-revivesa-base-2:1.5 wrstuden-revivesa-base-1:1.5 simonb-wapbl-nbase:1.5 yamt-pf42-base4:1.5 simonb-wapbl:1.5.0.2 simonb-wapbl-base:1.5 yamt-pf42-base3:1.5 hpcarm-cleanup-nbase:1.4 yamt-pf42-baseX:1.4 yamt-pf42-base2:1.4 wrstuden-revivesa:1.4.0.8 wrstuden-revivesa-base:1.5 yamt-pf42:1.4.0.6 yamt-pf42-base:1.4 keiichi-mipv6:1.4.0.4 keiichi-mipv6-base:1.4 matt-armv6-nbase:1.4 matt-armv6-prevmlocking:1.3 cube-autoconf:1.4.0.2 cube-autoconf-base:1.4 matt-armv6:1.3.0.4 matt-armv6-base:1.3 matt-mips64-base:1.3 hpcarm-cleanup:1.3.0.2 hpcarm-cleanup-base:1.4; locks; strict; comment @ * @; 1.7 date 2009.01.13.15.11.09; author christos; state Exp; branches; next 1.6; 1.6 date 2009.01.11.03.04.12; author christos; state Exp; branches; next 1.5; 1.5 date 2008.05.26.17.45.51; author rmind; state Exp; branches 1.5.8.1; next 1.4; 1.4 date 2007.11.28.19.30.55; author rmind; state Exp; branches 1.4.6.1 1.4.8.1; next 1.3; 1.3 date 2007.06.30.16.36.35; author rmind; state Exp; branches 1.3.4.1; next 1.2; 1.2 date 2007.05.03.21.22.33; author rmind; state Exp; branches; next 1.1; 1.1 date 2007.04.30.14.44.29; author rmind; state Exp; branches; next ; 1.5.8.1 date 2008.05.26.17.45.51; author christos; state dead; branches; next 1.5.8.2; 1.5.8.2 date 2008.11.08.21.13.13; author christos; state Exp; branches; next ; 1.4.6.1 date 2008.06.04.02.04.33; author yamt; state Exp; branches; next ; 1.4.8.1 date 2008.06.23.04.29.29; author wrstuden; state Exp; branches; next ; 1.3.4.1 date 2008.01.09.01.33.04; author matt; state Exp; branches; next ; desc @@ 1.7 log @fix reversed test from Tobias Nygren. @ text @/* $NetBSD: aio.h,v 1.6 2009/01/11 03:04:12 christos Exp $ */ /* * Copyright (c) 2007, Mindaugas Rasiukevicius * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef _AIO_H_ #define _AIO_H_ #include #include #include #include #include #include __BEGIN_DECLS int aio_cancel(int, struct aiocb *); int aio_error(const struct aiocb *); int aio_fsync(int, struct aiocb *); int aio_read(struct aiocb *); ssize_t aio_return(struct aiocb *); #ifndef __LIBC12_SOURCE__ int aio_suspend(const struct aiocb * const [], int, const struct timespec *) __RENAME(__aio_suspend50); #endif int aio_write(struct aiocb *); int lio_listio(int, struct aiocb * const * __restrict, int, struct sigevent * __restrict); __END_DECLS #endif /* _AIO_H_ */ @ 1.6 log @merge christos-time_t @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.5.8.1 2008/11/08 21:13:13 christos Exp $ */ d47 1 a47 1 #ifdef __LIBC12_SOURCE__ @ 1.5 log @Adjust and thus unify my license. @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.4 2007/11/28 19:30:55 rmind Exp $ */ d47 1 d49 2 a50 1 const struct timespec *); @ 1.5.8.1 log @file aio.h was added on branch christos-time_t on 2008-11-08 21:13:13 +0000 @ text @d1 54 @ 1.5.8.2 log @changes for 64 bit time_t @ text @a0 56 /* $NetBSD: aio.h,v 1.5.8.1 2008/11/08 21:13:13 christos Exp $ */ /* * Copyright (c) 2007, Mindaugas Rasiukevicius * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #ifndef _AIO_H_ #define _AIO_H_ #include #include #include #include #include #include __BEGIN_DECLS int aio_cancel(int, struct aiocb *); int aio_error(const struct aiocb *); int aio_fsync(int, struct aiocb *); int aio_read(struct aiocb *); ssize_t aio_return(struct aiocb *); #ifdef __LIBC12_SOURCE__ int aio_suspend(const struct aiocb * const [], int, const struct timespec *) __RENAME(__aio_suspend50); #endif int aio_write(struct aiocb *); int lio_listio(int, struct aiocb * const * __restrict, int, struct sigevent * __restrict); __END_DECLS #endif /* _AIO_H_ */ @ 1.4 log @Unify the license: All rights reserved. No functional change. @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.3 2007/06/30 16:36:35 rmind Exp $ */ d16 11 a26 11 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. @ 1.4.8.1 log @Sync w/ -current. 34 merge conflicts to follow. @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.4 2007/11/28 19:30:55 rmind Exp $ */ d16 11 a26 11 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. @ 1.4.6.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.4 2007/11/28 19:30:55 rmind Exp $ */ d16 11 a26 11 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. @ 1.3 log @Fix the C99 restrict keyword with array defintion in prototype problem. http://mail-index.netbsd.org/tech-userlevel/2007/06/17/0004.html Closes PR/36451. @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.2 2007/05/03 21:22:33 rmind Exp $ */ d5 1 @ 1.3.4.1 log @sync with HEAD @ text @d1 1 a1 1 /* $NetBSD$ */ a4 1 * All rights reserved. @ 1.2 log @- Add linkage for C++ - KNF Patch from , thanks! @ text @d1 1 a1 1 /* $NetBSD: aio.h,v 1.1 2007/04/30 14:44:29 rmind Exp $ */ d49 1 a49 1 int lio_listio(int, struct aiocb * const __restrict [], @ 1.1 log @Import of POSIX Asynchronous I/O. Seems to be quite stable. Some work still left to do. Please note, that syscalls are not yet MP-safe, because of the file and vnode subsystems. Reviewed by: , @ text @d1 1 a1 1 /* $NetBSD$ */ d28 2 a29 2 #ifndef _AIO_H_ #define _AIO_H_ d34 2 a37 4 /* * NOTE: Asynchronous I/O block structure and * constants are defined in sys/aio.h header. */ d40 12 a51 9 /* Prototypes */ int aio_cancel(int, struct aiocb *); int aio_error(const struct aiocb *); int aio_fsync(int, struct aiocb *); int aio_read(struct aiocb *); ssize_t aio_return(struct aiocb *); int aio_suspend(const struct aiocb *const[], int, const struct timespec *); int aio_write(struct aiocb *); int lio_listio(int, struct aiocb *const[], int, struct sigevent *); d53 1 a53 1 #endif /* _AIO_H_ */ @