00001 /** @file 00002 00003 A brief file description 00004 00005 @section license License 00006 00007 Licensed to the Apache Software Foundation (ASF) under one 00008 or more contributor license agreements. See the NOTICE file 00009 distributed with this work for additional information 00010 regarding copyright ownership. The ASF licenses this file 00011 to you under the Apache License, Version 2.0 (the 00012 "License"); you may not use this file except in compliance 00013 with the License. You may obtain a copy of the License at 00014 00015 http://www.apache.org/licenses/LICENSE-2.0 00016 00017 Unless required by applicable law or agreed to in writing, software 00018 distributed under the License is distributed on an "AS IS" BASIS, 00019 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00020 See the License for the specific language governing permissions and 00021 limitations under the License. 00022 */ 00023 00024 /**************************************************************************** 00025 00026 Async Struct definition. 00027 00028 00029 00030 ****************************************************************************/ 00031 00032 #ifndef _ink_aiocb_h_ 00033 #define _ink_aiocb_h_ 00034 00035 #include "ink_defs.h" 00036 00037 /* TODO use native aiocb where possible */ 00038 00039 #define LIO_READ 0x1 00040 #define LIO_WRITE 0x2 00041 00042 struct ink_aiocb 00043 { 00044 int aio_fildes; 00045 #if defined(__STDC__) 00046 volatile void *aio_buf; /* buffer location */ 00047 #else 00048 void *aio_buf; /* buffer location */ 00049 #endif 00050 size_t aio_nbytes; /* length of transfer */ 00051 00052 // TODO change to off_t 00053 off_t aio_offset; /* file offset */ 00054 00055 int aio_reqprio; /* request priority offset */ 00056 // struct sigevent aio_sigevent; /* signal number and offset */ 00057 int aio_lio_opcode; /* listio operation */ 00058 // aio_result_t aio_resultp; /* results */ 00059 int aio_state; /* state flag for List I/O */ 00060 int aio__pad[1]; /* extension padding */ 00061 }; 00062 00063 #endif