-
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.
llistxattr02: Convert docs to docparse
Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Wei Gao <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Ma Xinjian <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
20 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,25 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
/* | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Author: Xiao Yang <[email protected]> | ||
*/ | ||
|
||
/* | ||
* Test Name: llistxattr02 | ||
* | ||
* Description: | ||
* 1) llistxattr(2) fails if the size of the list buffer is too small | ||
* to hold the result. | ||
* 2) llistxattr(2) fails if path is an empty string. | ||
* 3) llistxattr(2) fails when attempted to read from a invalid address. | ||
* 4) llistxattr(2) fails if path is longer than allowed. | ||
* | ||
* Expected Result: | ||
* 1) llistxattr(2) should return -1 and set errno to ERANGE. | ||
* 2) llistxattr(2) should return -1 and set errno to ENOENT. | ||
* 3) llistxattr(2) should return -1 and set errno to EFAULT. | ||
* 4) llistxattr(2) should return -1 and set errno to ENAMETOOLONG. | ||
*/ | ||
* Copyright (c) 2016 Fujitsu Ltd. | ||
* Author: Xiao Yang <[email protected]> | ||
*/ | ||
|
||
/*\ | ||
* [Description] | ||
* | ||
* Verify llistxattr(2) returns -1 and set proper errno: | ||
* | ||
* - ERANGE if the size of the list buffer is too small to hold the result | ||
* - ENOENT if path is an empty string | ||
* - EFAULT when attempted to read from a invalid address | ||
* - ENAMETOOLONG if path is longer than allowed | ||
*/ | ||
|
||
#include "config.h" | ||
#include <errno.h> | ||
|