Run all .c and .h files in PR235 through tools/nxstyle.

This commit is contained in:
Gregory Nutt 2020-02-09 07:32:52 -06:00
parent ac53600e44
commit 934f468e4a
4 changed files with 11 additions and 10 deletions

View File

@ -52,6 +52,7 @@
/********************************************************************************
* Pre-processor Definitions
********************************************************************************/
/* Task Management Definitions **************************************************/
/* POSIX-like scheduling policies */
@ -81,7 +82,8 @@
#define PTHREAD_KEYS_MAX CONFIG_NPTHREAD_KEYS
/* CPU affinity mask helpers ***************************************************/
/* CPU affinity mask helpers ****************************************************/
/* These are not standard but are defined for Linux compatibility */
#ifdef CONFIG_SMP
@ -129,6 +131,7 @@
# define CPU_EQUAL(s1,s2) (*(s2) == *(s2))
/* REVISIT: Variably sized CPU sets are not supported */
/* FAR cpu_set_t *CPU_ALLOC(int num_cpus); */
# define CPU_ALLOC(n) (FAR cpu_set_t *)malloc(sizeof(cpu_set_t));

View File

@ -2,7 +2,7 @@
* include/sys/syscall.h
* This file contains the system call numbers.
*
* Copyright (C) 2011-2019 Gregory Nutt. All rights reserved.
* Copyright (C) 2011-2019, 2020 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -636,7 +636,7 @@ EXTERN const uintptr_t g_stublookup[SYS_nsyscalls];
EXTERN const uint8_t g_funcnparms[SYS_nsyscalls];
/****************************************************************************
* Public Functions
* Public Function Prototypes
****************************************************************************/
#undef EXTERN

View File

@ -408,16 +408,13 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
#endif
/* The following is defined only if entropy pool random number generator
* is enabled. */
* is enabled.
*/
#ifdef CONFIG_CRYPTO_RANDOM_POOL
SYSCALL_LOOKUP(getrandom, 2, STUB_getrandom)
#endif
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
* Public Function Prototypes
****************************************************************************/

View File

@ -426,7 +426,8 @@ uintptr_t STUB_prctl(int nbr, uintptr_t parm1, uintptr_t parm2,
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5);
/* The following is defined only if entropy pool random number generator
* is enabled. */
* is enabled.
*/
uintptr_t STUB_getrandom(int nbr, uintptr_t parm1, uintptr_t parm2);