-
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.
lgetxattr02: Convert docs to docparse
Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Ma Xinjian <[email protected]> Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
17 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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
/* | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Author: Jinbao Huang <[email protected]> | ||
*/ | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Author: Jinbao Huang <[email protected]> | ||
*/ | ||
|
||
/* | ||
* Test Name: lgetxattr02 | ||
* | ||
* Description: | ||
* 1) lgetxattr(2) fails if the named attribute does not exist. | ||
* 2) lgetxattr(2) fails if the size of the value buffer is too small | ||
* to hold the result. | ||
* 3) lgetxattr(2) fails when attemptes to read from a invalid address. | ||
* | ||
* Expected Result: | ||
* 1) lgetxattr(2) should return -1 and set errno to ENODATA. | ||
* 2) lgetxattr(2) should return -1 and set errno to ERANGE. | ||
* 3) lgetxattr(2) should return -1 and set errno to EFAULT. | ||
*/ | ||
/*\ | ||
* [Description] | ||
* | ||
* Verify that, lgetxattr(2) returns -1 and sets errno to | ||
* | ||
* 1. ENODATA if the named attribute does not exist. | ||
* 2. ERANGE if the size of the value buffer is too small to hold the result. | ||
* 3. EFAULT when reading from an invalid address. | ||
*/ | ||
|
||
#include "config.h" | ||
#include <errno.h> | ||
|