Lines Matching defs:p_oct
1251 osm_console_t *p_oct = &p_osm->console;
1254 pollfd[0].fd = p_oct->socket;
1258 pollfd[1].fd = p_oct->in_fd;
1262 fds = p_oct->socket < 0 ? &pollfd[1] : pollfd;
1263 nfds = p_oct->socket < 0 || pollfd[1].fd < 0 ? 1 : 2;
1267 if (p_oct->out) {
1268 loop_command.loop_function(p_osm, p_oct->out);
1269 fflush(p_oct->out);
1284 if ((new_fd = accept(p_oct->socket, &sin, &len)) < 0) {
1288 p_oct->in_fd = -1;
1292 (AF_INET, &sin.sin_addr, p_oct->client_ip,
1293 sizeof(p_oct->client_ip)) == NULL) {
1294 snprintf(p_oct->client_ip, 64, "STRING_UNKNOWN");
1299 snprintf(p_oct->client_hn, 128, "STRING_UNKNOWN");
1301 snprintf(p_oct->client_hn, 128, "%s", hent->h_name);
1303 if (is_authorized(p_oct)) {
1304 cio_open(p_oct, new_fd, p_log);
1308 p_oct->client_hn, p_oct->client_ip);
1318 n = getline(&p_line, &len, p_oct->in);
1323 osm_console_prompt(p_oct->out);
1326 osm_console_exit(p_oct, p_log);