from jim-aio.c:1617
static const jim_subcmd_type aio_command_table[] = {
{ "read",
"?-nonewline|-pending|len?",
aio_cmd_read,
0,
2,
},
{ "copyto",
"handle ?size?",
aio_cmd_copy,
1,
2,
},
{ "getfd",
NULL,
aio_cmd_getfd,
0,
0,
},
{ "gets",
"?var?",
aio_cmd_gets,
0,
1,
},
{ "puts",
"?-nonewline? str",
aio_cmd_puts,
1,
2,
},
{ "isatty",
NULL,
aio_cmd_isatty,
0,
0,
},
#if defined(HAVE_SOCKETS) && !defined(JIM_BOOTSTRAP)
{ "recvfrom",
"len ?addrvar?",
aio_cmd_recvfrom,
1,
2,
},
{ "sendto",
"str address",
aio_cmd_sendto,
2,
2,
},
{ "accept",
"?addrvar?",
aio_cmd_accept,
0,
1,
},
{ "listen",
"backlog",
aio_cmd_listen,
1,
1,
},
{ "sockopt",
"?opt 0|1?",
aio_cmd_sockopt,
0,
2,
},
{ "sockname",
NULL,
aio_cmd_sockname,
0,
0,
},
{ "peername",
NULL,
aio_cmd_peername,
0,
0,
},
#endif
{ "flush",
NULL,
aio_cmd_flush,
0,
0,
},
{ "eof",
NULL,
aio_cmd_eof,
0,
0,
},
{ "close",
"?r(ead)|w(rite)?",
aio_cmd_close,
0,
1,
JIM_MODFLAG_FULLARGV,
},
{ "seek",
"offset ?start|current|end",
aio_cmd_seek,
1,
2,
},
{ "tell",
NULL,
aio_cmd_tell,
0,
0,
},
{ "filename",
NULL,
aio_cmd_filename,
0,
0,
},
#ifdef O_NDELAY
{ "ndelay",
"?0|1?",
aio_cmd_ndelay,
0,
1,
},
#endif
#ifdef HAVE_FSYNC
{ "sync",
NULL,
aio_cmd_sync,
0,
0,
},
#endif
{ "buffering",
"none|line|full",
aio_cmd_buffering,
1,
1,
},
#ifdef jim_ext_eventloop
{ "readable",
"?readable-script?",
aio_cmd_readable,
0,
1,
},
{ "writable",
"?writable-script?",
aio_cmd_writable,
0,
1,
},
{ "onexception",
"?exception-script?",
aio_cmd_onexception,
0,
1,
},
#endif
#if !defined(JIM_BOOTSTRAP)
#if defined(JIM_SSL)
{ "ssl",
"?-server cert ?priv?|-sni servername?",
aio_cmd_ssl,
0,
3,
JIM_MODFLAG_FULLARGV
},
{ "verify",
NULL,
aio_cmd_verify,
0,
0,
},
#endif
#if defined(HAVE_STRUCT_FLOCK)
{ "lock",
"?-wait?",
aio_cmd_lock,
0,
1,
},
{ "unlock",
NULL,
aio_cmd_unlock,
0,
0,
},
#endif
#if defined(HAVE_TERMIOS_H)
{ "tty",
"?baud rate? ?data bits? ?stop bits? ?parity even|odd|none? ?handshake xonxoff|rtscts|none? ?input raw|cooked? ?output raw|cooked? ?echo 0|1? ?vmin n? ?vtime n?",
aio_cmd_tty,
0,
-1,
},
#endif
#endif
{ NULL }
};