Squashed commit of the following:

syscalls/:  Add syscall support for if_nametoindex() and if_indextoname()
    net/: Update some comments.
This commit is contained in:
Gregory Nutt
2018-06-25 12:41:28 -06:00
parent 7c1394d814
commit c65e1aa3df
22 changed files with 735 additions and 239 deletions
+2
View File
@@ -35,6 +35,8 @@
"getpid","unistd.h","","pid_t"
"getrandom","sys/random.h","defined(CONFIG_CRYPTO_RANDOM_POOL)","void","FAR void*","size_t"
"getsockopt","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int","int","FAR void*","FAR socklen_t*"
"if_indextoname","net/if.h","CONFIG_NETDEV_IFINDEX","FAR char *","unsigned int","FAR char *"
"if_nametoindex","net/if.h","CONFIG_NETDEV_IFINDEX","unsigned int","FAR const char *"
"insmod","nuttx/module.h","defined(CONFIG_MODULE)","FAR void *","FAR const char *","FAR const char *"
"ioctl","sys/ioctl.h","!defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","int","int","unsigned long"
"kill","signal.h","!defined(CONFIG_DISABLE_SIGNALS)","int","pid_t","int"
1 _exit unistd.h void int
35 getpid unistd.h pid_t
36 getrandom sys/random.h defined(CONFIG_CRYPTO_RANDOM_POOL) void FAR void*
37 getsockopt sys/socket.h CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET) int int
38 if_indextoname net/if.h CONFIG_NETDEV_IFINDEX FAR char * unsigned int
39 if_nametoindex net/if.h CONFIG_NETDEV_IFINDEX unsigned int FAR const char *
40 insmod nuttx/module.h defined(CONFIG_MODULE) FAR void * FAR const char *
41 ioctl sys/ioctl.h !defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0) int int
42 kill signal.h !defined(CONFIG_DISABLE_SIGNALS) int pid_t
+4
View File
@@ -211,6 +211,10 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
SYSCALL_LOOKUP(poll, 3, STUB_poll)
SYSCALL_LOOKUP(select, 5, STUB_select)
# endif
# ifdef CONFIG_NETDEV_IFINDEX
SYSCALL_LOOKUP(if_indextoname, 2, STUB_if_indextoname)
SYSCALL_LOOKUP(if_nametoindex, 1, STUB_if_nametoindex)
# endif
# ifdef CONFIG_SERIAL_TERMIOS
SYSCALL_LOOKUP(tcdrain, 1, STUB_tcdrain)
# endif
+9
View File
@@ -206,11 +206,20 @@ uintptr_t STUB_poll(int nbr, uintptr_t parm1, uintptr_t parm2,
uintptr_t STUB_select(int nbr, uintptr_t parm1, uintptr_t parm2,
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5);
/* Asynchronous I/O */
uintptr_t STUB_aio_read(int nbr, uintptr_t parm1);
uintptr_t STUB_aio_write(int nbr, uintptr_t parm1);
uintptr_t STUB_aio_fsync(int nbr, uintptr_t parm1, uintptr_t parm2);
uintptr_t STUB_aio_cancel(int nbr, uintptr_t parm1, uintptr_t parm2);
/* Network interface indices */
uintptr_t STUB_if_indextoname(int nbr, uintptr_t parm1, uintptr_t parm2);
uintptr_t STUB_if_nametoindex(int nbr, uintptr_t parm1);
/* Termios */
uintptr_t STUB_tcdrain(int nbr, uintptr_t parm1);
/* Board support */