Skip to content

Commit 60079e5

Browse files
committed
syscalls/preadv: Fix docparse
Signed-off-by: Xiao Yang <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
1 parent 746b6db commit 60079e5

File tree

3 files changed

+24
-33
lines changed

3 files changed

+24
-33
lines changed

testcases/kernel/syscalls/preadv/preadv01.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* Author: Xiao Yang <[email protected]>
55
*/
66

7-
/*
8-
* Test Name: preadv01
9-
*
10-
* Test Description:
11-
* Testcase to check the basic functionality of the preadv(2).
12-
* Preadv(2) should succeed to read the expected content of data
13-
* and after reading the file, the file offset is not changed.
14-
*/
7+
/*\
8+
* [Description]
9+
*
10+
* Testcase to check the basic functionality of the preadv(2).
11+
*
12+
* Preadv(2) should succeed to read the expected content of data
13+
* and after reading the file, the file offset is not changed.
14+
*/
1515

1616
#define _GNU_SOURCE
1717

testcases/kernel/syscalls/preadv/preadv02.c

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,18 @@
44
* Author: Xiao Yang <[email protected]>
55
*/
66

7-
/*
8-
* Test Name: preadv02
9-
*
10-
* Description:
11-
* 1) preadv(2) fails if iov_len is invalid.
12-
* 2) preadv(2) fails if the vector count iovcnt is less than zero.
13-
* 3) preadv(2) fails if offset is negative.
14-
* 4) preadv(2) fails when attempts to read into a invalid address.
15-
* 5) preadv(2) fails if file descriptor is invalid.
16-
* 6) preadv(2) fails if file descriptor is not open for reading.
17-
* 7) preadv(2) fails when fd refers to a directory.
18-
* 8) preadv(2) fails if fd is associated with a pipe.
19-
*
20-
* Expected Result:
21-
* 1) preadv(2) should return -1 and set errno to EINVAL.
22-
* 2) preadv(2) should return -1 and set errno to EINVAL.
23-
* 3) preadv(2) should return -1 and set errno to EINVAL.
24-
* 4) preadv(2) should return -1 and set errno to EFAULT.
25-
* 5) preadv(2) should return -1 and set errno to EBADF.
26-
* 6) preadv(2) should return -1 and set errno to EBADF.
27-
* 7) preadv(2) should return -1 and set errno to EISDIR.
28-
* 8) preadv(2) should return -1 and set errno to ESPIPE.
29-
*/
7+
/*\
8+
* [Description]
9+
*
10+
* - EINVAL when iov_len is invalid.
11+
* - EINVAL when the vector count iovcnt is less than zero.
12+
* - EINVAL when offset is negative.
13+
* - EFAULT when attempts to read into a invalid address.
14+
* - EBADF when file descriptor is invalid.
15+
* - EBADF when file descriptor is not open for reading.
16+
* - EISDIR when fd refers to a directory.
17+
* - ESPIPE when fd is associated with a pipe.
18+
*/
3019

3120
#define _GNU_SOURCE
3221

testcases/kernel/syscalls/preadv/preadv03.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
* Author: Xiao Yang <[email protected]>
55
*/
66

7-
/*
8-
* Description:
7+
/*\
8+
* [Description]
9+
*
910
* Check the basic functionality of the preadv(2) for the file
1011
* opened with O_DIRECT in all filesystem.
12+
*
1113
* preadv(2) should succeed to read the expected content of data
1214
* and after reading the file, the file offset is not changed.
1315
*/

0 commit comments

Comments
 (0)