?? call.c
字號(hào):
#include "call.h"#include <sys/uio.h> /* struct iovec *//* * Place the call by sending the "args" to the calling server, * and reading a file descriptor back. */intcall(const char *args){ int csfd, len; struct iovec iov[2]; /* * Create connection to connection server. */ if ((csfd = cli_conn(CS_CALL)) < 0) err_sys("cli_conn error"); iov[0].iov_base = CL_CALL " "; iov[0].iov_len = strlen(CL_CALL) + 1; iov[1].iov_base = (char *) args; /* null at end of args always sent */ iov[1].iov_len = strlen(args) + 1; len = iov[0].iov_len + iov[1].iov_len; if (writev(csfd, &iov[0], 2) != len) err_sys("writev error"); /* * Read back the descriptor. Returned errors are handled * by write(). */ return(recv_fd(csfd, write));}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -