Home
last modified time | relevance | path

Searched refs:sock_fd (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/cmd/vntsd/
H A Dauth.c83 socket_peer_euid(int sock_fd) in socket_peer_euid() argument
90 rc = getpeerucred(sock_fd, &ucredp); in socket_peer_euid()
196 auth_check_fd(int sock_fd, char *group_name) in auth_check_fd() argument
201 peer_euid = socket_peer_euid(sock_fd); in auth_check_fd()
H A Dvntsd.h476 boolean_t auth_check_fd(int sock_fd, char *group_name);
/titanic_44/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c790 int n_ifs, i, sock_fd; in get_ifnames() local
794 sock_fd = socket(AF_INET, SOCK_DGRAM, 0); in get_ifnames()
795 if (sock_fd == -1) in get_ifnames()
798 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) { in get_ifnames()
799 (void) close(sock_fd); in get_ifnames()
808 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) { in get_ifnames()
809 (void) close(sock_fd); in get_ifnames()
817 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0) in get_ifnames()
830 (void) close(sock_fd); in get_ifnames()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c3412 int n_ifs, i, sock_fd; in dhcp_walk_interfaces() local
3414 sock_fd = socket(af, SOCK_DGRAM, 0); in dhcp_walk_interfaces()
3415 if (sock_fd == -1) in dhcp_walk_interfaces()
3426 if (ioctl(sock_fd, SIOCGLIFNUM, &lifn) == -1) in dhcp_walk_interfaces()
3438 if (ioctl(sock_fd, SIOCGLIFCONF, &lifc) == -1) { in dhcp_walk_interfaces()
3439 (void) close(sock_fd); in dhcp_walk_interfaces()
3452 (void) close(sock_fd); in dhcp_walk_interfaces()