mirror of
https://github.com/apache/nuttx.git
synced 2026-05-09 23:12:17 +08:00
Add syslog system calls
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"ioctl","sys/ioctl.h","CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0","int","int","int","unsigned long"
|
||||
"kill","signal.h","!defined(CONFIG_DISABLE_SIGNALS)","int","pid_t","int"
|
||||
"listen","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int"
|
||||
"lowvsyslog","syslog.h","","int","int","FAR const char *","va_list"
|
||||
"lseek","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","off_t","int","off_t","int"
|
||||
"mkdir","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*","mode_t"
|
||||
"mkfifo","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR const char*","mode_t"
|
||||
@@ -118,6 +119,7 @@
|
||||
"sendto","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","ssize_t","int","FAR const void*","size_t","int","FAR const struct sockaddr*","socklen_t"
|
||||
"set_errno","errno.h","","void","int"
|
||||
"setenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","const char*","const char*","int"
|
||||
"setlogmask","syslog.h","","int","int"
|
||||
"setsockopt","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int","int","FAR const void*","socklen_t"
|
||||
"shmat", "sys/shm.h", "defined(CONFIG_MM_SHM)", "FAR void *", "int", "FAR const void *", "int"
|
||||
"shmctl", "sys/shm.h", "defined(CONFIG_MM_SHM)", "int", "int", "int", "FAR struct shmid_ds *"
|
||||
@@ -150,6 +152,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 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 137 and column 2.
|
@@ -58,6 +58,12 @@ SYSCALL_LOOKUP(sched_unlock, 0, STUB_sched_unlock)
|
||||
SYSCALL_LOOKUP(sched_yield, 0, STUB_sched_yield)
|
||||
SYSCALL_LOOKUP(set_errno, 1, STUB_set_errno)
|
||||
|
||||
/* SYSLOG */
|
||||
|
||||
SYSCALL_LOOKUP(vsyslog, 3, SYS_vsyslog)
|
||||
SYSCALL_LOOKUP(lowvsyslog, 3, SYS_lowvsyslog)
|
||||
SYSCALL_LOOKUP(setlogmask, 1, SYS_setlogmask)
|
||||
|
||||
/* Semaphores */
|
||||
|
||||
SYSCALL_LOOKUP(sem_destroy, 2, STUB_sem_destroy)
|
||||
|
||||
@@ -75,6 +75,17 @@ uintptr_t STUB_sched_setscheduler(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3);
|
||||
uintptr_t STUB_sched_unlock(int nbr);
|
||||
uintptr_t STUB_sched_yield(int nbr);
|
||||
|
||||
/* SYSLOG */
|
||||
|
||||
uintptr_t STUB_vsyslog(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm2);
|
||||
uintptr_t STUB_lowvsyslog(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm2);
|
||||
uintptr_t STUB_setlogmask(iint nbr, uintptr_t parm1);
|
||||
|
||||
/* Semaphores */
|
||||
|
||||
uintptr_t STUB_sem_close(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_sem_destroy(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_sem_open(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
|
||||
Reference in New Issue
Block a user