/ast/src/lib/libcs/ |
H A D | csfree.c | 25 * free cs state context 31 csfree(register Cs_t* state) argument 33 if (!state || state == &cs) 35 free(state);
|
H A D | csalloc.c | 25 * allocate cs state context 33 register Cs_t* state; local 35 if (state = newof(0, Cs_t, 1, 0)) 37 state->id = cs.id; 38 state->disc = disc ? disc : cs.disc; 40 state->nostream = -1; 43 state->nosocket = -1; 46 return state;
|
H A D | cscontrol.c | 31 cscontrol(register Cs_t* state, int fd) argument
|
H A D | cspipe.c | 31 cspipe(Cs_t* state, int* fds) argument
|
H A D | csfull.c | 31 csfull(register Cs_t* state, unsigned long addr) argument 35 state->flags |= CS_ADDR_FULL; 36 s = csname(state, addr); 37 state->flags &= ~CS_ADDR_FULL; 38 messagef((state->id, NiL, -8, "full(%s) = %s", csntoa(state, addr), s));
|
H A D | csdaemon.c | 40 csdaemon(register Cs_t* state, int fds) argument 46 messagef((state->id, NiL, -8, "daemon(%o) call", fds)); 71 if (!(state->flags & CS_DAEMON_SLAVE)) switch (fork()) 136 messagef((state->id, NiL, -8, "daemon(%o) = 0", fds));
|
H A D | csntoa.c | 31 csntoa(register Cs_t* state, unsigned long addr) argument 38 if ((!addr || p[0] == 127 && p[1] == 0 && p[2] == 0 && p[3] <= 1) && !state->ntoa[sizeof(state->ntoa)-1]) 40 state->ntoa[sizeof(state->ntoa)-1] = 1; 41 addr = csaddr(state, NiL); 42 state->ntoa[sizeof(state->ntoa)-1] = 0; 44 sfsprintf(state->ntoa, sizeof(state [all...] |
H A D | csfrom.c | 31 csfrom(register Cs_t* state, int fd, void* buf, size_t siz, Csaddr_t* addr) argument 41 messagef((state->id, NiL, -1, "from: %d: udp header read error", fd)); 50 if ((n = read(fd, buf, siz)) < 0) messagef((state->id, NiL, -1, "from: %d: udp data read error", fd)); 51 else messagef((state->id, NiL, -8, "from(%d,*,%d) = %d, data = `%-.*s', addr = %s, port = %u", fd, siz, n, n, buf, csntoa(state, udp.host), udp.port)); 65 messagef((state->id, NiL, -1, "from: %d: recvfrom error", fd)); 73 messagef((state->id, NiL, -8, "from(%d,*,%d) = %d, data = `%-.*s', addr = %s, port = %u", fd, siz, n, n, buf, csntoa(state, (unsigned long)nam.sin_addr.s_addr), (unsigned long)nam.sin_port)); 79 messagef((state->id, NiL, -1, "from: %d: udp read not supported", fd));
|
H A D | csinfo.c | 32 csinfo(register Cs_t* state, const char* file, int* line) argument 40 messagef((state->id, NiL, -8, "info(%s) call", file)); 46 sfsprintf(tmp, sizeof(tmp), "%s/%s", n ? csvar(state, CS_VAR_SHARE, 0) : CS_SVC_DIR, file); 53 if (!sp) messagef((state->id, NiL, -1, "info: %s: not found", file));
|
H A D | csnote.c | 52 csnote(register Cs_t* state, const char* name, register Csstat_t* sp) argument
|
H A D | cspeek.c | 36 * NOTE: cspeek() caches the peek state of fd 41 cspeek(register Cs_t* state, int fd, void* buf, size_t siz) argument 51 state->nostream = -1; 54 state->nosocket = -1; 59 if (fd != state->nostream) 70 state->nostream = -1; 74 messagef((state->id, NiL, -1, "peek: %d: ioctl I_PEEK error", fd)); 75 state->nostream = fd; 79 if (fd != state->nosocket) 83 state [all...] |
H A D | csping.c | 34 csping(register Cs_t* state, const char* name) argument 39 sfsprintf(state->temp, sizeof(state->path), "/dev/tcp/%s/inet.echo", name); 40 if ((fd = csopen(state, state->temp, 0)) < 0) return -1; 41 n = (cswrite(state, fd, M, N) != N || csread(state, fd, state->temp, N, CS_LINE) != N || strncmp(M, state->temp, N)) ? -1 : 0; 43 if (n) messagef((state [all...] |
H A D | csport.c | 38 csport(register Cs_t* state, const char* type, const char* serv) argument
|
H A D | cssend.c | 31 cssend(register Cs_t* state, int fd, int* fds, int n) argument 55 messagef((state->id, NiL, -1, "send: %d: hdr write error", fd)); 61 messagef((state->id, NiL, -1, "send: %d: ioctl I_SENDFD error", fd)); 99 s = csvar(state, CS_VAR_LOCAL, 0); 102 messagef((state->id, NiL, -1, "send: %d: %s: invalid authentication directory ", fd, s)); 107 messagef((state->id, NiL, -1, "send: %d: authentication tmp file error", fd)); 112 messagef((state->id, NiL, -1, "send: %d: %s: authentication file creat error", fd, s)); 117 messagef((state->id, NiL, -1, "send: %d: %s: authentication file remove error", fd, s)); 149 if (i) messagef((state->id, NiL, -1, "send: %d: sendmsg error", fd)); 155 messagef((state [all...] |
H A D | csto.c | 31 csto(register Cs_t* state, int fd, const void* buf, size_t siz, Csaddr_t* addr) argument 40 if (cswrite(state, fd, &udp, sizeof(udp)) != sizeof(udp)) 42 messagef((state->id, NiL, -1, "to: %d: hdr write error", fd)); 45 return cswrite(state, fd, buf, siz); 62 messagef((state->id, NiL, -1, "to: %d: not supported", fd));
|
H A D | cswrite.c | 31 cswrite(register Cs_t* state, int fd, const void* buf, register size_t n) argument 38 messagef((state->id, NiL, -9, "write(%d,%d) `%-.*s'", fd, n, n - 1, (n > 0 && *((char*)buf + n - 1) == '\n') ? (char*)buf : "...")); 41 messagef((state->id, NiL, -9, "write(%d,%d) [%d]", fd, n, i));
|
H A D | csbind.c | 35 portbind(register Cs_t* state, const char* type, unsigned long addr, unsigned int port) argument 48 messagef((state->id, NiL, -1, "bind: %s: udp_datagram error", type)); 53 messagef((state->id, NiL, -1, "bind: %s: udp_connect error", type)); 60 messagef((state->id, NiL, -1, "bind: %s: tcp_sock error", type)); 68 state->addr = tcp.laddr; 69 state->port = tcp.lport; 72 messagef((state->id, NiL, -1, "bind: %s %s error", type, addr ? "tcp_connect" : "tcp_listen")); 90 messagef((state->id, NiL, -1, "bind: %s: invalid type", type)); 95 messagef((state->id, NiL, -1, "bind: %s: AF_INET socket error", type)); 101 state 206 csbind(register Cs_t* state, const char* type, unsigned long addr, unsigned long port, unsigned long clone) argument [all...] |
H A D | csname.c | 61 cssetdb(register Cs_t* state) argument 66 if (state->db <= 0 && ++state->db) 84 csname(register Cs_t* state, unsigned long addr) argument 88 messagef((state->id, NiL, -8, "name(%s) call", csntoa(state, addr))); 101 csdb(state); 110 if (!((state->flags | state->disc->flags) & CS_ADDR_FULL)) 117 strncpy(state [all...] |
/ast/src/lib/libdll/ |
H A D | dllerror.c | 28 Dllstate_t state; variable 40 if (state.error) 42 state.error = retain; 43 return state.errorbuf; 48 state.error = retain; 49 sfsprintf(state.errorbuf, sizeof(state.errorbuf), "%s", s);
|
H A D | dlllib.h | 26 #define state _dll_state macro 34 extern Dllstate_t state;
|
/ast/src/lib/libpp/ |
H A D | ppsym.c | 37 register int state; local 55 state = 0; 72 state++; 77 if (state) 84 if (state) 87 state = 0;
|
/ast/src/lib/libast/comp/ |
H A D | re_comp.c | 39 } state; variable in typeref:struct:__anon251 48 if (state.valid) 54 if (state.valid) 56 state.valid = 0; 57 regfree(&state.re); 59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL))) 61 state.valid = 1; 65 regerror(r, &state.re, state.error, sizeof(state [all...] |
/ast/src/lib/libast/regex/ |
H A D | reginit.c | 25 * posix regex state and alloc 43 * state shared by all threads 46 State_t state = variable
|
/ast/src/cmd/mailx/ |
H A D | data.c | 4 * String data and global state. 141 X("[ command ... | dump [ fl[ags] | f[older] | m[essage] | q[ueue] | s[tate] ] ]\nSend command to the IMAP server with message response tracing enabled for the duration of the command, or dump portions of the internal IMAP client state."), 294 "CDPATH", &state.var.cdpath, D|E|N, 0,0, 296 "DEAD", &state.var.dead, D|E|N, "~/dead.letter",0, 298 "EDITOR", &state.var.editor, D|E|N, "ed",0, 300 "HOME", &state.var.home, D|E|N, ".",0, 302 "IMAP", &state.var.imap, D|E|N, "~/.imap",0, 304 "LISTER", &state.var.lister, D|E|N, "ls",0, 306 "MAIL", &state.var.mail, E, "",set_mail, 308 "MAILCAP", &state 520 State_t state = variable [all...] |
/ast/src/lib/libast/misc/ |
H A D | optjoin.c | 56 Optstate_t* state; local 65 state = optstate(&opt_info); 71 state->join = 0; 76 state->join++; 83 state->join = 0; 91 state->join = 0; 109 opt_info.index = state->pindex ? state->pindex : 1; 110 opt_info.offset = state->poffset; 118 state [all...] |