vsyslog is now a system call
This commit is contained in:
parent
3d305ac75b
commit
f5e5908a70
@ -225,11 +225,16 @@
|
|||||||
# define SYS_timer_getoverrun (__SYS_timers+2)
|
# define SYS_timer_getoverrun (__SYS_timers+2)
|
||||||
# define SYS_timer_gettime (__SYS_timers+3)
|
# define SYS_timer_gettime (__SYS_timers+3)
|
||||||
# define SYS_timer_settime (__SYS_timers+4)
|
# define SYS_timer_settime (__SYS_timers+4)
|
||||||
# define __SYS_descriptors (__SYS_timers+5)
|
# define __SYS_syslog (__SYS_timers+5)
|
||||||
#else
|
#else
|
||||||
# define __SYS_descriptors __SYS_timers
|
# define __SYS_syslog __SYS_timers
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Unconditional system logging */
|
||||||
|
|
||||||
|
#define SYS_vsyslog (__SYS_syslog+0)
|
||||||
|
#define __SYS_descriptors (__SYS_syslog+1)
|
||||||
|
|
||||||
/* The following are defined if either file or socket descriptor are
|
/* The following are defined if either file or socket descriptor are
|
||||||
* enabled.
|
* enabled.
|
||||||
*/
|
*/
|
||||||
|
@ -159,6 +159,7 @@
|
|||||||
"up_assert","assert.h","","void","FAR const uint8_t*","int"
|
"up_assert","assert.h","","void","FAR const uint8_t*","int"
|
||||||
#"up_assert","assert.h","","void"
|
#"up_assert","assert.h","","void"
|
||||||
"vfork","unistd.h","defined(CONFIG_ARCH_HAVE_VFORK)","pid_t"
|
"vfork","unistd.h","defined(CONFIG_ARCH_HAVE_VFORK)","pid_t"
|
||||||
|
"vsyslog","syslog.h","","int","int","FAR const IPTR char*","va_list"
|
||||||
"wait","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","pid_t","int*"
|
"wait","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","pid_t","int*"
|
||||||
"waitid","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","int","idtype_t","id_t"," FAR siginfo_t *","int"
|
"waitid","sys/wait.h","defined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)","int","idtype_t","id_t"," FAR siginfo_t *","int"
|
||||||
"waitpid","sys/wait.h","defined(CONFIG_SCHED_WAITPID)","pid_t","pid_t","int*","int"
|
"waitpid","sys/wait.h","defined(CONFIG_SCHED_WAITPID)","pid_t","pid_t","int*","int"
|
||||||
|
Can't render this file because it has a wrong number of fields in line 2.
|
@ -72,6 +72,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <mqueue.h>
|
#include <mqueue.h>
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
|
#include <syslog.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
/* Errno access is awkward. We need to generate get_errno() and set_errno()
|
/* Errno access is awkward. We need to generate get_errno() and set_errno()
|
||||||
|
@ -163,6 +163,10 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
|||||||
SYSCALL_LOOKUP(timer_settime, 4, STUB_timer_settime)
|
SYSCALL_LOOKUP(timer_settime, 4, STUB_timer_settime)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* System logging */
|
||||||
|
|
||||||
|
SYSCALL_LOOKUP(vsyslog, 3, STUB_vsyslog)
|
||||||
|
|
||||||
/* The following are defined if either file or socket descriptor are
|
/* The following are defined if either file or socket descriptor are
|
||||||
* enabled.
|
* enabled.
|
||||||
*/
|
*/
|
||||||
|
@ -165,6 +165,11 @@ uintptr_t STUB_timer_gettime(int nbr, uintptr_t parm1, uintptr_t parm2);
|
|||||||
uintptr_t STUB_timer_settime(int nbr, uintptr_t parm1, uintptr_t parm2,
|
uintptr_t STUB_timer_settime(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||||
uintptr_t parm3, uintptr_t parm4);
|
uintptr_t parm3, uintptr_t parm4);
|
||||||
|
|
||||||
|
/* System logging */
|
||||||
|
|
||||||
|
uintptr_t STUB_vsyslog(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||||
|
uintptr_t parm3);
|
||||||
|
|
||||||
/* The following are defined if either file or socket descriptor are
|
/* The following are defined if either file or socket descriptor are
|
||||||
* enabled.
|
* enabled.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user