vfs_aio.c (34925) | vfs_aio.c (34961) |
---|---|
1/* 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 2. John S. Dyson's name may not be used to endorse or promote products 10 * derived from this software without specific prior written permission. 11 * 12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything 13 * bad that happens because of using this software isn't the responsibility 14 * of the author. This software is distributed AS-IS. 15 * | 1/* 2 * Copyright (c) 1997 John S. Dyson. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 2. John S. Dyson's name may not be used to endorse or promote products 10 * derived from this software without specific prior written permission. 11 * 12 * DISCLAIMER: This code isn't warranted to do anything useful. Anything 13 * bad that happens because of using this software isn't the responsibility 14 * of the author. This software is distributed AS-IS. 15 * |
16 * $Id: vfs_aio.c,v 1.25 1998/03/28 10:33:09 bde Exp $ | 16 * $Id: vfs_aio.c,v 1.26 1998/03/28 11:50:04 dufault Exp $ |
17 */ 18 19/* 20 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 21 */ 22 23#include <sys/param.h> 24#include <sys/systm.h> --- 1454 unchanged lines hidden (view full) --- 1479 } 1480 1481 if (ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000) 1482 return (EINVAL); 1483 1484 TIMESPEC_TO_TIMEVAL(&atv, &ts) 1485 if (itimerfix(&atv)) 1486 return (EINVAL); | 17 */ 18 19/* 20 * This file contains support for the POSIX 1003.1B AIO/LIO facility. 21 */ 22 23#include <sys/param.h> 24#include <sys/systm.h> --- 1454 unchanged lines hidden (view full) --- 1479 } 1480 1481 if (ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000) 1482 return (EINVAL); 1483 1484 TIMESPEC_TO_TIMEVAL(&atv, &ts) 1485 if (itimerfix(&atv)) 1486 return (EINVAL); |
1487 s = splclock(); 1488 timevaladd(&atv, &time); 1489 timo = hzto(&atv); 1490 splx(s); | 1487 timo = tvtohz(&atv); |
1491 } 1492 1493 ki = p->p_aioinfo; 1494 if (ki == NULL) 1495 return EAGAIN; 1496 1497 njoblist = 0; 1498 ijoblist = zalloc(aiol_zone); --- 555 unchanged lines hidden --- | 1488 } 1489 1490 ki = p->p_aioinfo; 1491 if (ki == NULL) 1492 return EAGAIN; 1493 1494 njoblist = 0; 1495 ijoblist = zalloc(aiol_zone); --- 555 unchanged lines hidden --- |