Lines Matching defs:error
301 int error, count;
314 error = do_aio_cancel( p, fd, 0, TRUE, FALSE );
315 if ( error == AIO_NOTCANCELED ) {
340 * aio_error - return the error status associated with the async IO
341 * request referred to by uap->aiocbp. The error status is the errno
350 int error;
359 error = EINVAL;
367 error = 0;
378 error = 0;
389 error = 0;
395 error = EINVAL;
399 (int)p, (int)uap->aiocbp, error, 0, 0 );
402 return( error );
418 int error;
434 error = EINVAL;
438 error = aio_queue_async_request( p, uap->aiocbp, fsync_kind );
439 if ( error != 0 )
444 (int)p, (int)uap->aiocbp, error, 0, 0 );
446 return( error );
459 int error;
466 error = aio_queue_async_request( p, uap->aiocbp, AIO_READ );
467 if ( error != 0 )
471 (int)p, (int)uap->aiocbp, error, 0, 0 );
473 return( error );
490 int error;
502 error = EINVAL;
528 error = 0;
538 error = EINPROGRESS;
548 error = EINPROGRESS;
554 error = EINVAL;
560 (int)p, (int)uap->aiocbp, error, 0, 0 );
562 return( error );
602 int error, count;
620 error = do_aio_cancel( p, 0, 0, TRUE, TRUE );
621 if ( error == AIO_NOTCANCELED ) {
874 int error;
893 error = EINVAL;
898 error = EINVAL;
904 error = copyin( uap->timeoutp, &ts, sizeof(ts) );
908 error = copyin( uap->timeoutp, &temp, sizeof(temp) );
909 if ( error == 0 ) {
914 if ( error != 0 ) {
915 error = EAGAIN;
920 error = EINVAL;
932 error = EAGAIN;
937 error = copyin( uap->aiocblist, aiocbpp,
940 if ( error != 0 ) {
941 error = EAGAIN;
971 error = 0;
990 error = thread_block( THREAD_CONTINUE_NULL );
992 if ( error == THREAD_AWAKENED ) {
1003 else if ( error == THREAD_TIMED_OUT ) {
1005 error = EAGAIN;
1009 error = EINTR;
1017 (int)p, uap->nent, error, 0, 0 );
1019 return( error );
1032 int error;
1039 error = aio_queue_async_request( p, uap->aiocbp, AIO_WRITE );
1040 if ( error != 0 )
1044 (int)p, (int)uap->aiocbp, error, 0, 0 );
1046 return( error );
1054 * The caller gets error and return status for each aiocb in the list via aio_error
1202 int error;
1216 error = do_aio_read( entryp );
1219 error = do_aio_write( entryp );
1222 error = do_aio_fsync( entryp );
1227 error = EINVAL;
1229 entryp->errorval = error;
1230 if ( error != 0 && call_result == -1 )
1298 int error;
1322 error = do_aio_read( entryp );
1325 error = do_aio_write( entryp );
1328 error = do_aio_fsync( entryp );
1333 error = EINVAL;
1335 entryp->errorval = error;
1605 /* Not really an error, but we need to free our aio_workq_entry. */
1740 /* Not really an error, but we need to free our aio_workq_entry. */
2043 int error;
2046 if ( (error = fp_lookup(entryp->procp, entryp->aiocb.aio_fildes, &fp , 0)) )
2047 return(error);
2060 error = dofileread(&context, fp,
2067 return( error );
2079 int error;
2082 if ( (error = fp_lookup(entryp->procp, entryp->aiocb.aio_fildes, &fp , 0)) )
2083 return(error);
2097 error = dofilewrite(&context,
2107 return( error );
2136 int error;
2140 * AIO_DSYNC is caught before we queue up a request and flagged as an error.
2144 error = fp_getfvp( entryp->procp, entryp->aiocb.aio_fildes, &fp, &vp);
2145 if ( error == 0 ) {
2146 if ( (error = vnode_getwithref(vp)) ) {
2149 return(error);
2154 error = VNOP_FSYNC( vp, MNT_WAIT, &context);
2160 if ( error != 0 )
2163 return( error );