-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Ma Xinjian <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,17 @@ | |
* Author: Xiao Yang <[email protected]> | ||
*/ | ||
|
||
/* | ||
* Description: | ||
* Testcase to check the basic functionality of the preadv2(2). | ||
* 1) If the file offset argument is not -1, preadv2() should succeed | ||
* in reading the expected content of data and the file offset is | ||
* not changed after reading. | ||
* 2) If the file offset argument is -1, preadv2() should succeed in | ||
* reading the expected content of data and the current file offset | ||
* is used and changed after reading. | ||
/*\ | ||
* [Description] | ||
* | ||
* Verify the basic functionality of the preadv2(2): | ||
* | ||
* 1. If the file offset argument is not -1, preadv2() should succeed | ||
* in reading the expected content of data and the file offset is not | ||
* changed after reading. | ||
* 2. If the file offset argument is -1, preadv2() should succeed in | ||
* reading the expected content of data and the current file offset | ||
* is used and changed after reading. | ||
*/ | ||
|
||
#define _GNU_SOURCE | ||
|