Move the OS intensive part of vsyslog and vlowsyslog to drivers/syslog/vsyslog.c and vlowsyslog.c. Also move lib_syslogstrem to drivers/syslog/syslogstream.c

This commit is contained in:
Gregory Nutt
2016-06-19 07:56:24 -06:00
parent f5e5908a70
commit 34f776dce9
15 changed files with 336 additions and 242 deletions
+1 -1
View File
@@ -159,7 +159,7 @@
"up_assert","assert.h","","void","FAR const uint8_t*","int"
#"up_assert","assert.h","","void"
"vfork","unistd.h","defined(CONFIG_ARCH_HAVE_VFORK)","pid_t"
"vsyslog","syslog.h","","int","int","FAR const IPTR char*","va_list"
"_vsyslog","syslog.h","","int","FAR const IPTR char*","va_list"
"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"
"waitpid","sys/wait.h","defined(CONFIG_SCHED_WAITPID)","pid_t","pid_t","int*","int"
Can't render this file because it contains an unexpected character in line 146 and column 2.
-1
View File
@@ -72,7 +72,6 @@
#include <signal.h>
#include <mqueue.h>
#include <spawn.h>
#include <syslog.h>
#include <assert.h>
/* Errno access is awkward. We need to generate get_errno() and set_errno()
+1 -1
View File
@@ -165,7 +165,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
/* System logging */
SYSCALL_LOOKUP(vsyslog, 3, STUB_vsyslog)
SYSCALL_LOOKUP(_vsyslog, 2, STUB__vsyslog)
/* The following are defined if either file or socket descriptor are
* enabled.
+1 -2
View File
@@ -167,8 +167,7 @@ uintptr_t STUB_timer_settime(int nbr, uintptr_t parm1, uintptr_t parm2,
/* System logging */
uintptr_t STUB_vsyslog(int nbr, uintptr_t parm1, uintptr_t parm2,
uintptr_t parm3);
uintptr_t STUB__vsyslog(int nbr, uintptr_t parm1, uintptr_t parm2);
/* The following are defined if either file or socket descriptor are
* enabled.