headers: Fix headers across the project
Any word started with underscore followed by and uppercase letter or a second underscore is a reserved word according with C99. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
a7fffa9e00
commit
67ca176754
505 changed files with 1463 additions and 1458 deletions
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __MQUEUE_H__
|
||||
#define __MQUEUE_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_MQUEUE_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_MQUEUE_H_
|
||||
|
||||
#include <kernel.h>
|
||||
#include <posix/time.h>
|
||||
|
@ -63,4 +63,4 @@ int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __MQUEUE_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_MQUEUE_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef __POSIX_SCHED_H__
|
||||
#define __POSIX_SCHED_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_POSIX_SCHED_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_POSIX_SCHED_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -42,4 +42,4 @@ int sched_get_priority_max(int policy);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_SCHED_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_POSIX_SCHED_H_ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __PTHREAD_H__
|
||||
#define __PTHREAD_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_PTHREAD_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_PTHREAD_H_
|
||||
|
||||
#include <kernel.h>
|
||||
#include <wait_q.h>
|
||||
|
@ -517,4 +517,4 @@ int pthread_key_delete(pthread_key_t key);
|
|||
int pthread_setspecific(pthread_key_t key, const void *value);
|
||||
void *pthread_getspecific(pthread_key_t key);
|
||||
|
||||
#endif /* __PTHREAD_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_H_ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __POSIX_THREAD_KEY_H__
|
||||
#define __POSIX_THREAD_KEY_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -49,4 +49,4 @@ typedef struct pthread_key_data {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_THREAD_KEY_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_PTHREAD_KEY_H_*/
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef _POSIX_SEMAPHORE_H
|
||||
#define _POSIX_SEMAPHORE_H
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_SEMAPHORE_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_SEMAPHORE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,4 +25,4 @@ int sem_wait(sem_t *semaphore);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* POSIX_SEMAPHORE_H */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_SEMAPHORE_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef __POSIX_SIGNAL_H__
|
||||
#define __POSIX_SIGNAL_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_SIGNAL_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_SIGNAL_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -41,4 +41,4 @@ typedef struct sigevent {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_TIME_H__ */
|
||||
#endif /* POSIX__SIGNAL_H */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __POSIX_STAT_H__
|
||||
#define __POSIX_STAT_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_SYS_STAT_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_SYS_STAT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -54,4 +54,4 @@ struct stat {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_STAT_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_SYS_STAT_H_ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef __POSIX_TYPES_H__
|
||||
#define __POSIX_TYPES_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_SYS_TYPES_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_SYS_TYPES_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -88,4 +88,4 @@ typedef struct pthread_rwlock_obj {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_TYPES_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_SYS_TYPES_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef __POSIX_TIME_H__
|
||||
#define __POSIX_TIME_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_TIME_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_TIME_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -64,4 +64,4 @@ int gettimeofday(struct timeval *tv, const void *tz);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_TIME_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_TIME_H_ */
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef __POSIX_UNISTD_H__
|
||||
#define __POSIX_UNISTD_H__
|
||||
#ifndef ZEPHYR_INCLUDE_POSIX_UNISTD_H_
|
||||
#define ZEPHYR_INCLUDE_POSIX_UNISTD_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -50,4 +50,4 @@ int usleep(useconds_t useconds);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __POSIX_UNISTD_H__ */
|
||||
#endif /* ZEPHYR_INCLUDE_POSIX_UNISTD_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue