libs/libc/pthread: Fix nxstyle errors
error: Long line found
This commit is contained in:
parent
08eef2a700
commit
eedca9d7c6
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,18 +28,18 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
{
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,27 +28,29 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,17 +28,17 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
{
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,31 +28,31 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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;
|
||||
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,18 +28,18 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
{
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,27 +28,29 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,17 +28,17 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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)
|
||||
{
|
||||
|
@ -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 <nuttx/config.h>
|
||||
|
||||
@ -28,31 +28,31 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
/********************************************************************************
|
||||
/****************************************************************************
|
||||
* 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user