[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-cvs
Subject: [Ltp-cvs] ltp/testcases/open_posix_testsuite/conformance/definitions/aio_h 1-1.c,NONE,1.1 1-2.c,NONE
From: Robert Williamson <robbiew () users ! sourceforge ! net>
Date: 2004-12-20 17:04:19
Message-ID: E1CgQxH-00082R-RD () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/ltp/ltp/testcases/open_posix_testsuite/conformance/definitions/aio_h
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30688/conformance/definitions/aio_h
Added Files:
1-1.c 1-2.c 2-1.c 3-1.c 4-1.c assertions.xml
Log Message:
Update to Version 1.5.0
--- NEW FILE: 1-2.c ---
/*
* Copyright (c) 2004, IBM Corporation. All rights reserved.
* Created by: Laurent.Vivier@bull.net
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
/* test if struct aiocb is defined in <aio.h> */
#include <aio.h>
struct aiocb dummy;
--- NEW FILE: assertions.xml ---
<assertions>
<assertion id="1" tag="ref:BD6TC2:7287:7287">
An AIO control block structure aiocb is used in many asynchronous I/O
functions. It is defined in <aio.h>
</assertion>
<assertion id="2" tag="ref:BD6TC2:7287:7295">
The AIO control block structure aiocb has following members:
int aio_fildes
off_t aio_offset
volatile void* aio_buf
size_t aio_nbytes
int aio_reqprio
struct sigevent aio_sigevent
int aio_lio_opcode
</assertion>
<assertion id="3" tag="ref:BD6TC2:7297:7312">
The header <aio.h> shakk include following constants:
AIO_ALLDONE
AIO_CANCELED
AIO_NOTCANCELED
LIO_NOP
LIO_NOWAIT
LIO_READ
LIO_WAIT
LIO_WRITE
</assertion>
<assertion id="4" tag="ref:BD6TC2:7313:7324">
The header <aio.h> shall defines following functions or macros:
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 *restrict const[restrict],
int, struct sigevent *restrict);
</assertion>
</assertions>
--- NEW FILE: 1-1.c ---
/*
* Copyright (c) 2004, IBM Corporation. All rights reserved.
* Created by: Laurent.Vivier@bull.net
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
/* test if aio.h exists and can be included */
#include <aio.h>
--- NEW FILE: 2-1.c ---
/*
* Copyright (c) 2004, IBM Corporation. All rights reserved.
* Created by: Laurent.Vivier@bull.net
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
/* test if aio.h exists and can be included */
#include <aio.h>
int main(void)
{
struct aiocb aiocb;
struct sigevent sigevent;
aiocb.aio_fildes = -1;
aiocb.aio_offset = -1;
aiocb.aio_buf = NULL;
aiocb.aio_nbytes = 0;
aiocb.aio_sigevent = sigevent;
aiocb.aio_reqprio = -1;
}
--- NEW FILE: 3-1.c ---
/*
* Copyright (c) 2004, IBM Corporation. All rights reserved.
* Created by: Laurent.Vivier@bull.net
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
/* test if aio.h exists and can be included */
#include <aio.h>
int dummy0 = AIO_ALLDONE;
int dummy1 = AIO_CANCELED;
int dummy2 = AIO_NOTCANCELED;
int dummy3 = LIO_NOP;
int dummy4 = LIO_NOWAIT;
int dummy5 = LIO_READ;
int dummy6 = LIO_WAIT;
int dummy7 = LIO_WRITE;
--- NEW FILE: 4-1.c ---
/*
* Copyright (c) 2004, IBM Corporation. All rights reserved.
* Created by: Laurent.Vivier@bull.net
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
#include <aio.h>
int (*dummy0)(int, struct aiocb *) = aio_cancel;
int (*dummy1)(const struct aiocb *) = aio_error;
int (*dummy2)(int, struct aiocb *) = aio_fsync;
int (*dummy3)(struct aiocb *) = aio_read;
ssize_t (*dummy4)(struct aiocb *) = aio_return;
int (*dummy5)(const struct aiocb *const[], int,
const struct timespec *) = aio_suspend;
int (*dummy6)(struct aiocb *) = aio_write;
int (*dummy7)(int, struct aiocb *const [],
int, struct sigevent *restrict) = lio_listio;
int main()
{
return 0;
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Ltp-cvs mailing list
Ltp-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic