From eedca9d7c6bdd1d586faf5be931f76b5f215b4d1 Mon Sep 17 00:00:00 2001 From: simbit18 <101105604+simbit18@users.noreply.github.com> Date: Wed, 10 May 2023 10:29:32 +0200 Subject: [PATCH] libs/libc/pthread: Fix nxstyle errors error: Long line found --- .../pthread/pthread_barrierattr_destroy.c | 24 ++++++------ .../pthread/pthread_barrierattr_getpshared.c | 24 ++++++------ libs/libc/pthread/pthread_barrierattr_init.c | 22 +++++------ .../pthread/pthread_barrierattr_setpshared.c | 39 ++++++++++--------- .../libc/pthread/pthread_rwlockattr_destroy.c | 24 ++++++------ .../pthread/pthread_rwlockattr_getpshared.c | 24 ++++++------ libs/libc/pthread/pthread_rwlockattr_init.c | 22 +++++------ .../pthread/pthread_rwlockattr_setpshared.c | 39 ++++++++++--------- 8 files changed, 112 insertions(+), 106 deletions(-) diff --git a/libs/libc/pthread/pthread_barrierattr_destroy.c b/libs/libc/pthread/pthread_barrierattr_destroy.c index 95e0d57af99..ccfaaf8fa91 100644 --- a/libs/libc/pthread/pthread_barrierattr_destroy.c +++ b/libs/libc/pthread/pthread_barrierattr_destroy.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_barrierattr_destroy.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,18 +28,18 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_barrierattr_destroy * * Description: - * The pthread_barrierattr_destroy() function will destroy a barrier attributes - * object. A destroyed attr attributes object can be reinitialized using - * pthread_barrierattr_init(); the results of otherwise referencing the object - * after it has been destroyed are undefined. + * The pthread_barrierattr_destroy() function will destroy a barrier + * attributes object. A destroyed attr attributes object can be + * reinitialized using pthread_barrierattr_init(); the results of otherwise + * referencing the object after it has been destroyed are undefined. * * Input Parameters: * attr - barrier attributes to be destroyed. @@ -49,7 +49,7 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_barrierattr_destroy(FAR pthread_barrierattr_t *attr) { diff --git a/libs/libc/pthread/pthread_barrierattr_getpshared.c b/libs/libc/pthread/pthread_barrierattr_getpshared.c index ee2bcaba0b9..22c7bea7204 100644 --- a/libs/libc/pthread/pthread_barrierattr_getpshared.c +++ b/libs/libc/pthread/pthread_barrierattr_getpshared.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_barrierattr_getpshared.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,27 +28,29 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_barrierattr_getpshared * * Description: - * The pthread_barrierattr_getpshared() function will obtain the value of the - * process-shared attribute from the attributes object referenced by attr. + * The pthread_barrierattr_getpshared() function will obtain the value + * of the process-shared attribute from the attributes object referenced + * by attr. * * Input Parameters: * attr - barrier attributes to be queried. - * pshared - the location to stored the current value of the pshared attribute. + * pshared - the location to stored the current value of the + * pshared attribute. * * Returned Value: * 0 (OK) on success or EINVAL if either attr or pshared is invalid. * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_barrierattr_getpshared(FAR const pthread_barrierattr_t *attr, FAR int *pshared) diff --git a/libs/libc/pthread/pthread_barrierattr_init.c b/libs/libc/pthread/pthread_barrierattr_init.c index 03def08488a..e632babff90 100644 --- a/libs/libc/pthread/pthread_barrierattr_init.c +++ b/libs/libc/pthread/pthread_barrierattr_init.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_barrierattr_init.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,17 +28,17 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_barrierattr_init * * Description: - * The pthread_barrierattr_init() function will initialize a barrier attribute - * object attr with the default value for all of the attributes defined by the - * implementation. + * The pthread_barrierattr_init() function will initialize a barrier + * attribute object attr with the default value for all of the attributes + * defined by the implementation. * * Input Parameters: * attr - barrier attributes to be initialized. @@ -48,7 +48,7 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_barrierattr_init(FAR pthread_barrierattr_t *attr) { diff --git a/libs/libc/pthread/pthread_barrierattr_setpshared.c b/libs/libc/pthread/pthread_barrierattr_setpshared.c index 2d0abf7979c..9b8d3cbab2c 100644 --- a/libs/libc/pthread/pthread_barrierattr_setpshared.c +++ b/libs/libc/pthread/pthread_barrierattr_setpshared.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_barrierattr_setpshared.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,31 +28,31 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Type Declarations - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Public Data - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Data - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Function Prototypes - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_barrierattr_setpshared * * Description: @@ -79,9 +79,10 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ -int pthread_barrierattr_setpshared(FAR pthread_barrierattr_t *attr, int pshared) +int pthread_barrierattr_setpshared(FAR pthread_barrierattr_t *attr, + int pshared) { int ret = OK; diff --git a/libs/libc/pthread/pthread_rwlockattr_destroy.c b/libs/libc/pthread/pthread_rwlockattr_destroy.c index 6e3889c4c81..ecf4e368009 100644 --- a/libs/libc/pthread/pthread_rwlockattr_destroy.c +++ b/libs/libc/pthread/pthread_rwlockattr_destroy.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_rwlockattr_destroy.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,18 +28,18 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_rwlockattr_destroy * * Description: - * The pthread_rwlockattr_destroy() function will destroy a rwlock attributes - * object. A destroyed attr attributes object can be reinitialized using - * pthread_rwlockattr_init(); the results of otherwise referencing the object - * after it has been destroyed are undefined. + * The pthread_rwlockattr_destroy() function will destroy a rwlock + * attributes object. A destroyed attr attributes object can be + * reinitialized using pthread_rwlockattr_init(); the results of otherwise + * referencing the object after it has been destroyed are undefined. * * Input Parameters: * attr - rwlock attributes to be destroyed. @@ -49,7 +49,7 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_rwlockattr_destroy(FAR pthread_rwlockattr_t *attr) { diff --git a/libs/libc/pthread/pthread_rwlockattr_getpshared.c b/libs/libc/pthread/pthread_rwlockattr_getpshared.c index f68f1a4367a..3bec7cad096 100644 --- a/libs/libc/pthread/pthread_rwlockattr_getpshared.c +++ b/libs/libc/pthread/pthread_rwlockattr_getpshared.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_rwlockattr_getpshared.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,27 +28,29 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_rwlockattr_getpshared * * Description: - * The pthread_rwlockattr_getpshared() function will obtain the value of the - * process-shared attribute from the attributes object referenced by attr. + * The pthread_rwlockattr_getpshared() function will obtain the value + * of the process-shared attribute from the attributes object referenced + * by attr. * * Input Parameters: * attr - rwlock attributes to be queried. - * pshared - the location to stored the current value of the pshared attribute. + * pshared - the location to stored the current value of the + * pshared attribute. * * Returned Value: * 0 (OK) on success or EINVAL if either attr or pshared is invalid. * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_rwlockattr_getpshared(FAR const pthread_rwlockattr_t *attr, FAR int *pshared) diff --git a/libs/libc/pthread/pthread_rwlockattr_init.c b/libs/libc/pthread/pthread_rwlockattr_init.c index 8d75b2deceb..2005d2317e1 100644 --- a/libs/libc/pthread/pthread_rwlockattr_init.c +++ b/libs/libc/pthread/pthread_rwlockattr_init.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_rwlockattr_init.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,17 +28,17 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_rwlockattr_init * * Description: - * The pthread_rwlockattr_init() function will initialize a rwlock attribute - * object attr with the default value for all of the attributes defined by the - * implementation. + * The pthread_rwlockattr_init() function will initialize a rwlock + * attribute object attr with the default value for all of the attributes + * defined by the implementation. * * Input Parameters: * attr - rwlock attributes to be initialized. @@ -48,7 +48,7 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ int pthread_rwlockattr_init(FAR pthread_rwlockattr_t *attr) { diff --git a/libs/libc/pthread/pthread_rwlockattr_setpshared.c b/libs/libc/pthread/pthread_rwlockattr_setpshared.c index a3c35d3c345..634c5c20c3e 100644 --- a/libs/libc/pthread/pthread_rwlockattr_setpshared.c +++ b/libs/libc/pthread/pthread_rwlockattr_setpshared.c @@ -1,4 +1,4 @@ -/******************************************************************************** +/**************************************************************************** * libs/libc/pthread/pthread_rwlockattr_setpshared.c * * Licensed to the Apache Software Foundation (ASF) under one or more @@ -16,11 +16,11 @@ * License for the specific language governing permissions and limitations * under the License. * - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Included Files - ********************************************************************************/ + ****************************************************************************/ #include @@ -28,31 +28,31 @@ #include #include -/******************************************************************************** +/**************************************************************************** * Pre-processor Definitions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Type Declarations - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Public Data - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Data - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Private Function Prototypes - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Public Functions - ********************************************************************************/ + ****************************************************************************/ -/******************************************************************************** +/**************************************************************************** * Name: pthread_rwlockattr_setpshared * * Description: @@ -79,9 +79,10 @@ * * Assumptions: * - ********************************************************************************/ + ****************************************************************************/ -int pthread_rwlockattr_setpshared(FAR pthread_rwlockattr_t *attr, int pshared) +int pthread_rwlockattr_setpshared(FAR pthread_rwlockattr_t *attr, + int pshared) { int ret = OK;