Skip to content

Commit b1404f4

Browse files
simbit18xiaoxiang781216
authored andcommitted
include: Fix nxstyle errors
error: Long line found
1 parent e7df243 commit b1404f4

File tree

15 files changed

+363
-322
lines changed

15 files changed

+363
-322
lines changed

include/fcntl.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/********************************************************************************
1+
/****************************************************************************
22
* include/fcntl.h
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,23 +16,23 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
********************************************************************************/
19+
****************************************************************************/
2020

2121
#ifndef __INCLUDE_FCNTL_H
2222
#define __INCLUDE_FCNTL_H
2323

24-
/********************************************************************************
24+
/****************************************************************************
2525
* Included Files
26-
********************************************************************************/
26+
****************************************************************************/
2727

2828
#include <nuttx/config.h>
2929

3030
#include <sys/types.h>
3131
#include <stdint.h>
3232

33-
/********************************************************************************
33+
/****************************************************************************
3434
* Pre-processor Definitions
35-
********************************************************************************/
35+
****************************************************************************/
3636

3737
/* open flag settings for open() (and related APIs) */
3838

@@ -162,9 +162,9 @@
162162
# define posix_fallocate64 posix_fallocate
163163
#endif
164164

165-
/********************************************************************************
165+
/****************************************************************************
166166
* Public Type Definitions
167-
********************************************************************************/
167+
****************************************************************************/
168168

169169
/* struct flock is the third argument for F_GETLK, F_SETLK and F_SETLKW */
170170

@@ -177,9 +177,9 @@ struct flock
177177
pid_t l_pid; /* PID of process blocking our lock (F_GETLK only) */
178178
};
179179

180-
/********************************************************************************
180+
/****************************************************************************
181181
* Public Function Prototypes
182-
********************************************************************************/
182+
****************************************************************************/
183183

184184
#undef EXTERN
185185
#if defined(__cplusplus)
@@ -190,9 +190,9 @@ extern "C"
190190
#define EXTERN extern
191191
#endif
192192

193-
/********************************************************************************
193+
/****************************************************************************
194194
* Public Data
195-
********************************************************************************/
195+
****************************************************************************/
196196

197197
/* POSIX-like File System Interfaces */
198198

include/limits.h

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/********************************************************************************
1+
/****************************************************************************
22
* include/limits.h
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,26 +16,26 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
********************************************************************************/
19+
****************************************************************************/
2020

2121
#ifndef __INCLUDE_LIMITS_H
2222
#define __INCLUDE_LIMITS_H
2323

24-
/********************************************************************************
24+
/****************************************************************************
2525
* Included Files
26-
********************************************************************************/
26+
****************************************************************************/
2727

2828
#include <nuttx/config.h>
2929

3030
/* Architecture specific limits */
3131

3232
#include <arch/limits.h>
3333

34-
/********************************************************************************
34+
/****************************************************************************
3535
* Pre-processor Definitions
36-
********************************************************************************/
36+
****************************************************************************/
3737

38-
/* Default values for user configurable limits **********************************/
38+
/* Default values for user configurable limits ******************************/
3939

4040
/* Maximum number of bytes in a filename (not including terminating null). */
4141

@@ -62,7 +62,7 @@
6262

6363
#define MB_LEN_MAX 4
6464

65-
/* Configurable limits required by POSIX ****************************************
65+
/* Configurable limits required by POSIX ************************************
6666
*
6767
* Required for all implementations:
6868
*
@@ -74,15 +74,18 @@
7474
* _POSIX_NAME_MAX Number of bytes in a file or pathname component
7575
* _POSIX_NGROUPS_MAX Number supplementary group IDs
7676
* _POSIX_OPEN_MAX Number of files a task can have open at once
77-
* _POSIX_PATH_MAX Number of bytes in a full pathname (including NULL)
77+
* _POSIX_PATH_MAX Number of bytes in a full pathname
78+
* (including NULL)
7879
* _POSIX_PIPE_BUF Number of bytes for atomic write into pipe
79-
* _POSIX_SSIZE_MAX Largest filesystem write; also max value of ssize_t
80+
* _POSIX_SSIZE_MAX Largest filesystem write; also max value
81+
* of ssize_t
8082
* _POSIX_STREAM_MAX Number of std I/O streams open at once
8183
* _POSIX_TZNAME_MAX Max number of bytes of a timezone name
8284
*
8385
* Required for sigqueue
8486
*
85-
* _POSIX_RTSIG_MAX Number of realtime signals reserved for application
87+
* _POSIX_RTSIG_MAX Number of realtime signals reserved
88+
* for application
8689
* _POSIX_SIGQUEUE_MAX Max number signals a task can queue
8790
*
8891
* Required for POSIX timers
@@ -107,9 +110,9 @@
107110
* _POSIX_SEM_VALUE_MAX Max value a semaphore may have
108111
*
109112
* Required for symbolic links
110-
* _POSIX_SYMLOOP_MAX Maximum number of symbolic links that can be
111-
* reliably traversed in the resolution of a pathname
112-
* in the absence of a loop.
113+
* _POSIX_SYMLOOP_MAX Maximum number of symbolic links that can be
114+
* reliably traversed in the resolution of a pathname
115+
* in the absence of a loop.
113116
*
114117
*/
115118

include/mqueue.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/********************************************************************************
1+
/****************************************************************************
22
* include/mqueue.h
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,27 +16,27 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
********************************************************************************/
19+
****************************************************************************/
2020

2121
#ifndef __INCLUDE_MQUEUE_H
2222
#define __INCLUDE_MQUEUE_H
2323

24-
/********************************************************************************
24+
/****************************************************************************
2525
* Included Files
26-
********************************************************************************/
26+
****************************************************************************/
2727

2828
#include <sys/types.h>
2929
#include <signal.h>
3030

31-
/********************************************************************************
31+
/****************************************************************************
3232
* Pre-processor Definitions
33-
********************************************************************************/
33+
****************************************************************************/
3434

3535
#define MQ_NONBLOCK O_NONBLOCK
3636

37-
/********************************************************************************
37+
/****************************************************************************
3838
* Public Type Declarations
39-
********************************************************************************/
39+
****************************************************************************/
4040

4141
/* Message queue attributes */
4242

@@ -52,9 +52,9 @@ struct mq_attr
5252

5353
typedef int mqd_t;
5454

55-
/********************************************************************************
55+
/****************************************************************************
5656
* Public Data
57-
********************************************************************************/
57+
****************************************************************************/
5858

5959
#ifdef __cplusplus
6060
#define EXTERN extern "C"
@@ -64,9 +64,9 @@ extern "C"
6464
#define EXTERN extern
6565
#endif
6666

67-
/********************************************************************************
67+
/****************************************************************************
6868
* Public Function Prototypes
69-
********************************************************************************/
69+
****************************************************************************/
7070

7171
mqd_t mq_open(FAR const char *mq_name, int oflags, ...);
7272
int mq_close(mqd_t mqdes);

include/nuttx/analog/comp.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/************************************************************************************
1+
/****************************************************************************
22
* include/nuttx/analog/comp.h
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,14 +16,14 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
************************************************************************************/
19+
****************************************************************************/
2020

2121
#ifndef __INCLUDE_NUTTX_ANALOG_COMP_H
2222
#define __INCLUDE_NUTTX_ANALOG_COMP_H
2323

24-
/************************************************************************************
24+
/****************************************************************************
2525
* Included Files
26-
************************************************************************************/
26+
****************************************************************************/
2727

2828
#include <nuttx/config.h>
2929
#include <nuttx/compiler.h>
@@ -40,15 +40,15 @@
4040
# define CONFIG_DEV_COMP_NPOLLWAITERS 2
4141
#endif
4242

43-
/************************************************************************************
43+
/****************************************************************************
4444
* Public Types
45-
************************************************************************************/
45+
****************************************************************************/
4646

4747
struct comp_dev_s;
4848
struct comp_callback_s
4949
{
50-
/* This method is called from the lower half, platform-specific COMP logic when
51-
* comparator output state changes.
50+
/* This method is called from the lower half, platform-specific COMP logic
51+
* when comparator output state changes.
5252
*
5353
* Input Parameters:
5454
* dev - The COMP device structure that was previously registered by
@@ -64,17 +64,17 @@ struct comp_callback_s
6464

6565
struct comp_ops_s
6666
{
67-
/* Bind the upper-half driver callbacks to the lower-half implementation. This
68-
* must be called early in order to receive COMP event notifications.
67+
/* Bind the upper-half driver callbacks to the lower-half implementation.
68+
* This must be called early in order to receive COMP event notifications.
6969
*/
7070

7171
CODE int (*ao_bind)(FAR struct comp_dev_s *dev,
7272
FAR const struct comp_callback_s *callback);
7373

7474
/* Configure the COMP. This method is called the first time that the COMP
7575
* device is opened. This will occur when the port is first opened.
76-
* This setup includes configuring and attaching COMP interrupts. Interrupts
77-
* are all disabled upon return.
76+
* This setup includes configuring and attaching COMP interrupts.
77+
* Interrupts are all disabled upon return.
7878
*/
7979

8080
CODE int (*ao_setup)(FAR struct comp_dev_s *dev);
@@ -92,7 +92,8 @@ struct comp_ops_s
9292

9393
/* All ioctl calls will be routed through this method */
9494

95-
CODE int (*ao_ioctl)(FAR struct comp_dev_s *dev, int cmd, unsigned long arg);
95+
CODE int (*ao_ioctl)(FAR struct comp_dev_s *dev,
96+
int cmd, unsigned long arg);
9697
};
9798

9899
struct comp_dev_s
@@ -116,9 +117,9 @@ struct comp_dev_s
116117
FAR void *ad_priv; /* Used by the arch-specific logic */
117118
};
118119

119-
/************************************************************************************
120+
/****************************************************************************
120121
* Public Function Prototypes
121-
************************************************************************************/
122+
****************************************************************************/
122123

123124
#if defined(__cplusplus)
124125
extern "C"

include/nuttx/analog/opamp.h

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/************************************************************************************
1+
/****************************************************************************
22
* include/nuttx/analog/opamp.h
33
*
44
* Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,14 +16,14 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
************************************************************************************/
19+
****************************************************************************/
2020

2121
#ifndef __INCLUDE_NUTTX_ANALOG_OPAMP_H
2222
#define __INCLUDE_NUTTX_ANALOG_OPAMP_H
2323

24-
/************************************************************************************
24+
/****************************************************************************
2525
* Included Files
26-
************************************************************************************/
26+
****************************************************************************/
2727

2828
#include <nuttx/config.h>
2929
#include <nuttx/compiler.h>
@@ -35,22 +35,23 @@
3535
#include <nuttx/fs/fs.h>
3636
#include <nuttx/mutex.h>
3737

38-
/************************************************************************************
38+
/****************************************************************************
3939
* Public Types
40-
************************************************************************************/
40+
****************************************************************************/
4141

4242
struct opamp_dev_s;
4343
struct opamp_ops_s
4444
{
4545
/* Configure the OPAMP. This method is called the first time that the OPAMP
4646
* device is opened. This will occur when the port is first opened.
47-
* This setup includes configuring and attaching OPAMP interrupts. Interrupts
48-
* are all disabled upon return.
47+
* This setup includes configuring and attaching OPAMP interrupts.
48+
* Interruptsare all disabled upon return.
4949
*/
5050

5151
CODE int (*ao_setup)(FAR struct opamp_dev_s *dev);
5252

53-
/* Disable the OPAMP. This method is called when the OPAMP device is closed.
53+
/* Disable the OPAMP. This method is called when the OPAMP device
54+
* is closed.
5455
* This method reverses the operation of the setup method.
5556
* Works only if OPAMP device is not locked.
5657
*/
@@ -59,7 +60,8 @@ struct opamp_ops_s
5960

6061
/* All ioctl calls will be routed through this method */
6162

62-
CODE int (*ao_ioctl)(FAR struct opamp_dev_s *dev, int cmd, unsigned long arg);
63+
CODE int (*ao_ioctl)(FAR struct opamp_dev_s *dev,
64+
int cmd, unsigned long arg);
6365
};
6466

6567
struct opamp_dev_s
@@ -77,9 +79,9 @@ struct opamp_dev_s
7779
FAR void *ad_priv; /* Used by the arch-specific logic */
7880
};
7981

80-
/************************************************************************************
82+
/****************************************************************************
8183
* Public Function Prototypes
82-
************************************************************************************/
84+
****************************************************************************/
8385

8486
#if defined(__cplusplus)
8587
extern "C"

0 commit comments

Comments
 (0)