public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] posix_fadvise: Convert docs to docparse
@ 2025-01-15 10:38 Shiyang Ruan via ltp
  2025-01-15 12:31 ` Ricardo B. Marliere via ltp
  2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
  0 siblings, 2 replies; 6+ messages in thread
From: Shiyang Ruan via ltp @ 2025-01-15 10:38 UTC (permalink / raw)
  To: ltp, pvorel

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
---
 .../kernel/syscalls/fadvise/posix_fadvise01.c  | 17 +++--------------
 .../kernel/syscalls/fadvise/posix_fadvise02.c  | 17 +++--------------
 .../kernel/syscalls/fadvise/posix_fadvise03.c  | 18 ++++--------------
 .../kernel/syscalls/fadvise/posix_fadvise04.c  | 17 +++--------------
 4 files changed, 13 insertions(+), 56 deletions(-)

diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
index 71e6454d8..650459455 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise01.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise01
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns 0 for permissible ADVISE value.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
index 303f776e4..39a1f1b57 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise02.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong file descriptor.
- *
- * USAGE
- *	posix_fadvise02
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EBADF for wrong file descriptor.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
index 98d8d2930..9bfd42439 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
@@ -3,21 +3,11 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise03.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise03
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EINVAL for the ADVISE value not
+ * permissible on the architecture.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
index 8baf91bb0..2fe7e3577 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
@@ -3,21 +3,10 @@
  * Copyright (c) Red Hat Inc., 2007
  */
 
-/*
- * NAME
- *	posix_fadvise04.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for pipe descriptor.
- *
- * USAGE
- *	posix_fadvise04
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns ESPIPE for pipe descriptor.
  */
 
 #include <fcntl.h>
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [LTP] [PATCH] posix_fadvise: Convert docs to docparse
  2025-01-15 10:38 [LTP] [PATCH] posix_fadvise: Convert docs to docparse Shiyang Ruan via ltp
@ 2025-01-15 12:31 ` Ricardo B. Marliere via ltp
  2025-01-15 12:45   ` Petr Vorel
  2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
  1 sibling, 1 reply; 6+ messages in thread
From: Ricardo B. Marliere via ltp @ 2025-01-15 12:31 UTC (permalink / raw)
  To: Shiyang Ruan; +Cc: ltp

On Wed, Jan 15, 2025 at 06:38:13PM +0800, Shiyang Ruan via ltp wrote:
> Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
> ---
>  .../kernel/syscalls/fadvise/posix_fadvise01.c  | 17 +++--------------
>  .../kernel/syscalls/fadvise/posix_fadvise02.c  | 17 +++--------------
>  .../kernel/syscalls/fadvise/posix_fadvise03.c  | 18 ++++--------------
>  .../kernel/syscalls/fadvise/posix_fadvise04.c  | 17 +++--------------
>  4 files changed, 13 insertions(+), 56 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> index 71e6454d8..650459455 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> @@ -3,21 +3,10 @@
>   * Copyright (c) Red Hat Inc., 2007
>   */
>  
> -/*
> - * NAME
> - *	posix_fadvise01.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong ADVISE value.
> - *
> - * USAGE
> - *	posix_fadvise01
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>

IMHO, you could keep these 'HISTORY' lines below the copyright.

> +/*\
> + * [Description]
>   *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns 0 for permissible ADVISE value.
>   */
>  
>  #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> index 303f776e4..39a1f1b57 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> @@ -3,21 +3,10 @@
>   * Copyright (c) Red Hat Inc., 2007
>   */
>  
> -/*
> - * NAME
> - *	posix_fadvise02.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong file descriptor.
> - *
> - * USAGE
> - *	posix_fadvise02
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>   *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns EBADF for wrong file descriptor.
>   */
>  
>  #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> index 98d8d2930..9bfd42439 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> @@ -3,21 +3,11 @@
>   * Copyright (c) Red Hat Inc., 2007
>   */
>  
> -/*
> - * NAME
> - *	posix_fadvise03.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong ADVISE value.
> - *
> - * USAGE
> - *	posix_fadvise03
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>   *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns EINVAL for the ADVISE value not
> + * permissible on the architecture.
>   */
>  
>  #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> index 8baf91bb0..2fe7e3577 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> @@ -3,21 +3,10 @@
>   * Copyright (c) Red Hat Inc., 2007
>   */
>  
> -/*
> - * NAME
> - *	posix_fadvise04.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for pipe descriptor.
> - *
> - * USAGE
> - *	posix_fadvise04
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>   *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns ESPIPE for pipe descriptor.
>   */
>  
>  #include <fcntl.h>
> -- 
> 2.43.0
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LTP] [PATCH] posix_fadvise: Convert docs to docparse
  2025-01-15 12:31 ` Ricardo B. Marliere via ltp
@ 2025-01-15 12:45   ` Petr Vorel
  2025-01-16  8:15     ` Shiyang Ruan via ltp
  0 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2025-01-15 12:45 UTC (permalink / raw)
  To: Ricardo B. Marliere; +Cc: ltp

Hi Ricardo, Shiyang Ruan,

> On Wed, Jan 15, 2025 at 06:38:13PM +0800, Shiyang Ruan via ltp wrote:
> > Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
> > ---
> >  .../kernel/syscalls/fadvise/posix_fadvise01.c  | 17 +++--------------
> >  .../kernel/syscalls/fadvise/posix_fadvise02.c  | 17 +++--------------
> >  .../kernel/syscalls/fadvise/posix_fadvise03.c  | 18 ++++--------------
> >  .../kernel/syscalls/fadvise/posix_fadvise04.c  | 17 +++--------------
> >  4 files changed, 13 insertions(+), 56 deletions(-)

> > diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> > index 71e6454d8..650459455 100644
> > --- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> > +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> > @@ -3,21 +3,10 @@
> >   * Copyright (c) Red Hat Inc., 2007
> >   */

> > -/*
> > - * NAME
> > - *	posix_fadvise01.c
> > - *
> > - * DESCRIPTION
> > - *	Check the value that posix_fadvise returns for wrong ADVISE value.
> > - *
> > - * USAGE
> > - *	posix_fadvise01
> > - *
> > - * HISTORY
> > - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>

> IMHO, you could keep these 'HISTORY' lines below the copyright.

IMHO we should keep names or whatever info is there. But don't have to keep
messy formatting or original comments. I would personally keep here only:

 * Author: Masatake YAMATO <yamato@redhat.com>
(it's obvious it was initial version and Red Hat copyright 2007)

or more conservative:
 * Initial version by Masatake YAMATO <yamato@redhat.com>

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [LTP] [PATCH] posix_fadvise: Convert docs to docparse
  2025-01-15 12:45   ` Petr Vorel
@ 2025-01-16  8:15     ` Shiyang Ruan via ltp
  0 siblings, 0 replies; 6+ messages in thread
From: Shiyang Ruan via ltp @ 2025-01-16  8:15 UTC (permalink / raw)
  To: Petr Vorel, Ricardo B. Marliere; +Cc: ltp



在 2025/1/15 20:45, Petr Vorel 写道:
> Hi Ricardo, Shiyang Ruan,
> 
>> On Wed, Jan 15, 2025 at 06:38:13PM +0800, Shiyang Ruan via ltp wrote:
>>> Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
>>> ---
>>>   .../kernel/syscalls/fadvise/posix_fadvise01.c  | 17 +++--------------
>>>   .../kernel/syscalls/fadvise/posix_fadvise02.c  | 17 +++--------------
>>>   .../kernel/syscalls/fadvise/posix_fadvise03.c  | 18 ++++--------------
>>>   .../kernel/syscalls/fadvise/posix_fadvise04.c  | 17 +++--------------
>>>   4 files changed, 13 insertions(+), 56 deletions(-)
> 
>>> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
>>> index 71e6454d8..650459455 100644
>>> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
>>> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
>>> @@ -3,21 +3,10 @@
>>>    * Copyright (c) Red Hat Inc., 2007
>>>    */
> 
>>> -/*
>>> - * NAME
>>> - *	posix_fadvise01.c
>>> - *
>>> - * DESCRIPTION
>>> - *	Check the value that posix_fadvise returns for wrong ADVISE value.
>>> - *
>>> - * USAGE
>>> - *	posix_fadvise01
>>> - *
>>> - * HISTORY
>>> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> 
>> IMHO, you could keep these 'HISTORY' lines below the copyright.
> 
> IMHO we should keep names or whatever info is there. But don't have to keep
> messy formatting or original comments. I would personally keep here only:
> 
>   * Author: Masatake YAMATO <yamato@redhat.com>
> (it's obvious it was initial version and Red Hat copyright 2007)
> 
> or more conservative:
>   * Initial version by Masatake YAMATO <yamato@redhat.com>
> 

Got it.  Thanks.

--
Ruan.

> Kind regards,
> Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [LTP] [PATCH v2] posix_fadvise: Convert docs to docparse
  2025-01-15 10:38 [LTP] [PATCH] posix_fadvise: Convert docs to docparse Shiyang Ruan via ltp
  2025-01-15 12:31 ` Ricardo B. Marliere via ltp
@ 2025-01-16  8:46 ` Shiyang Ruan via ltp
  2025-02-05 10:10   ` Shiyang Ruan via ltp
  1 sibling, 1 reply; 6+ messages in thread
From: Shiyang Ruan via ltp @ 2025-01-16  8:46 UTC (permalink / raw)
  To: ltp, rbm, pvorel

Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
---
 .../kernel/syscalls/fadvise/posix_fadvise01.c | 18 ++++--------------
 .../kernel/syscalls/fadvise/posix_fadvise02.c | 18 ++++--------------
 .../kernel/syscalls/fadvise/posix_fadvise03.c | 19 +++++--------------
 .../kernel/syscalls/fadvise/posix_fadvise04.c | 18 ++++--------------
 4 files changed, 17 insertions(+), 56 deletions(-)

diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
index 71e6454d8..2c6d57941 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
@@ -1,23 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) Red Hat Inc., 2007
+ * Author: Masatake YAMATO <yamato@redhat.com>
  */
 
-/*
- * NAME
- *	posix_fadvise01.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise01
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns 0 for permissible ADVISE value.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
index 303f776e4..bbfbd102e 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
@@ -1,23 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) Red Hat Inc., 2007
+ * Author: Masatake YAMATO <yamato@redhat.com>
  */
 
-/*
- * NAME
- *	posix_fadvise02.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong file descriptor.
- *
- * USAGE
- *	posix_fadvise02
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EBADF for wrong file descriptor.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
index 98d8d2930..7bf500a2b 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
@@ -1,23 +1,14 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) Red Hat Inc., 2007
+ * Author: Masatake YAMATO <yamato@redhat.com>
  */
 
-/*
- * NAME
- *	posix_fadvise03.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for wrong ADVISE value.
- *
- * USAGE
- *	posix_fadvise03
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns EINVAL for the ADVISE value not
+ * permissible on the architecture.
  */
 
 #include <fcntl.h>
diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
index 8baf91bb0..beece6410 100644
--- a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
+++ b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
@@ -1,23 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (c) Red Hat Inc., 2007
+ * Author: Masatake YAMATO <yamato@redhat.com>
  */
 
-/*
- * NAME
- *	posix_fadvise04.c
- *
- * DESCRIPTION
- *	Check the value that posix_fadvise returns for pipe descriptor.
- *
- * USAGE
- *	posix_fadvise04
- *
- * HISTORY
- *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
+/*\
+ * [Description]
  *
- * RESTRICTIONS
- *	None
+ * Verify that posix_fadvise() returns ESPIPE for pipe descriptor.
  */
 
 #include <fcntl.h>
-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [LTP] [PATCH v2] posix_fadvise: Convert docs to docparse
  2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
@ 2025-02-05 10:10   ` Shiyang Ruan via ltp
  0 siblings, 0 replies; 6+ messages in thread
From: Shiyang Ruan via ltp @ 2025-02-05 10:10 UTC (permalink / raw)
  To: ltp, rbm, pvorel

Hi

ping~


在 2025/1/16 16:46, Shiyang Ruan 写道:
> Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
> ---
>   .../kernel/syscalls/fadvise/posix_fadvise01.c | 18 ++++--------------
>   .../kernel/syscalls/fadvise/posix_fadvise02.c | 18 ++++--------------
>   .../kernel/syscalls/fadvise/posix_fadvise03.c | 19 +++++--------------
>   .../kernel/syscalls/fadvise/posix_fadvise04.c | 18 ++++--------------
>   4 files changed, 17 insertions(+), 56 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> index 71e6454d8..2c6d57941 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
> @@ -1,23 +1,13 @@
>   // SPDX-License-Identifier: GPL-2.0-or-later
>   /*
>    * Copyright (c) Red Hat Inc., 2007
> + * Author: Masatake YAMATO <yamato@redhat.com>
>    */
>   
> -/*
> - * NAME
> - *	posix_fadvise01.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong ADVISE value.
> - *
> - * USAGE
> - *	posix_fadvise01
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>    *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns 0 for permissible ADVISE value.
>    */
>   
>   #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> index 303f776e4..bbfbd102e 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
> @@ -1,23 +1,13 @@
>   // SPDX-License-Identifier: GPL-2.0-or-later
>   /*
>    * Copyright (c) Red Hat Inc., 2007
> + * Author: Masatake YAMATO <yamato@redhat.com>
>    */
>   
> -/*
> - * NAME
> - *	posix_fadvise02.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong file descriptor.
> - *
> - * USAGE
> - *	posix_fadvise02
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>    *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns EBADF for wrong file descriptor.
>    */
>   
>   #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> index 98d8d2930..7bf500a2b 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
> @@ -1,23 +1,14 @@
>   // SPDX-License-Identifier: GPL-2.0-or-later
>   /*
>    * Copyright (c) Red Hat Inc., 2007
> + * Author: Masatake YAMATO <yamato@redhat.com>
>    */
>   
> -/*
> - * NAME
> - *	posix_fadvise03.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for wrong ADVISE value.
> - *
> - * USAGE
> - *	posix_fadvise03
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>    *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns EINVAL for the ADVISE value not
> + * permissible on the architecture.
>    */
>   
>   #include <fcntl.h>
> diff --git a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> index 8baf91bb0..beece6410 100644
> --- a/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> +++ b/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
> @@ -1,23 +1,13 @@
>   // SPDX-License-Identifier: GPL-2.0-or-later
>   /*
>    * Copyright (c) Red Hat Inc., 2007
> + * Author: Masatake YAMATO <yamato@redhat.com>
>    */
>   
> -/*
> - * NAME
> - *	posix_fadvise04.c
> - *
> - * DESCRIPTION
> - *	Check the value that posix_fadvise returns for pipe descriptor.
> - *
> - * USAGE
> - *	posix_fadvise04
> - *
> - * HISTORY
> - *	11/2007 Initial version by Masatake YAMATO <yamato@redhat.com>
> +/*\
> + * [Description]
>    *
> - * RESTRICTIONS
> - *	None
> + * Verify that posix_fadvise() returns ESPIPE for pipe descriptor.
>    */
>   
>   #include <fcntl.h>

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-05 10:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 10:38 [LTP] [PATCH] posix_fadvise: Convert docs to docparse Shiyang Ruan via ltp
2025-01-15 12:31 ` Ricardo B. Marliere via ltp
2025-01-15 12:45   ` Petr Vorel
2025-01-16  8:15     ` Shiyang Ruan via ltp
2025-01-16  8:46 ` [LTP] [PATCH v2] " Shiyang Ruan via ltp
2025-02-05 10:10   ` Shiyang Ruan via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox