DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

Intro(SLIB-osr5)


Intro -- introduction to socket library functions

Description

This section describes functions that may be found in various libraries. The library functions are those other than the functions which directly invoke socket system primitives, described in section SSC-osr5. All of these functions are accessible from the socket library, libsocket. The link editor ld(CP) and the C compiler cc(CP) search this library when the -lsocket option is given. The socket library also includes all the functions described in section SSC-osr5.

List of functions

Name Appears on Page Description
build_authentication snmp_authentication(SLIB-osr5) perform ASN.1 compilation to build SNMP packet
build_pdu snmp_pdu(SLIB-osr5) perform ASN.1 compilation to make PDU
build_v1_mesg_from_pdu snmp_authentication(SLIB-osr5) build SNMPv1 packet
closelog syslog(SLIB-osr5) close log file
close_up snmpio_api(SLIB-osr5) close file descriptor associated with UDP socket
decode_SMUX_PDU smux_pdu(SLIB-osr5) create SMUX PDU data structure from SNMP packet
dn_comp resolver(SLIB-osr5) compresses domain name
dn_expand resolver(SLIB-osr5) expands domain name
dump_object smux_util(SLIB-osr5) dump object information
dump_object_by_tree smux_util(SLIB-osr5) dump information about objects in a subtree
dump_objects_by_tree smux_util(SLIB-osr5) dump information about compiled objects in ccitt(0) and iso(1) subtrees
encode_SMUX_PDU smux_pdu(SLIB-osr5) perform ASN.1 compilation to build SMUX PDU
endhostent gethostbyname(SLIB-osr5) closes TCP connection
endnetent getnetent(SLIB-osr5) end network entry
endprotoent getprotoent(SLIB-osr5) end protocol entry
endservent getservent(SLIB-osr5) end service entry
endtosent gettos(SLIB-osr5) close the /etc/iptos file
ether_aton ether(SLIB-osr5) convert ASCII string to 48-bit Ethernet address
ether_ntoa ether(SLIB-osr5) convert 48-bit Ethernet address to ASCII format

 +-----------------------+---------------------------+---------------------------+
 |Name                   | Appears on Page           | Description               |
 +-----------------------+---------------------------+---------------------------+
 |build_authentication   | snmp_authentication(SLIB-osr5) | perform ASN.1 compilation |
 |                       |                           | to build SNMP packet      |
 +-----------------------+---------------------------+---------------------------+
 |build_pdu              | snmp_pdu(SLIB-osr5)            | perform ASN.1 compilation |
 |                       |                           | to make PDU               |
 +-----------------------+---------------------------+---------------------------+
 |build_v1_mesg_from_pdu | snmp_authentication(SLIB-osr5) | build SNMPv1 packet       |
 +-----------------------+---------------------------+---------------------------+
 |closelog               | syslog(SLIB-osr5)              | close log file            |
 +-----------------------+---------------------------+---------------------------+
 |close_up               | snmpio_api(SLIB-osr5)          | close file descriptor     |
 |                       |                           | associated with UDP       |
 |                       |                           | socket                    |
 +-----------------------+---------------------------+---------------------------+
 |decode_SMUX_PDU        | smux_pdu(SLIB-osr5)            | create SMUX PDU data      |
 |                       |                           | structure from SNMP       |
 |                       |                           | packet                    |
 +-----------------------+---------------------------+---------------------------+
 |dn_comp                | resolver(SLIB-osr5)            | compresses domain name    |
 +-----------------------+---------------------------+---------------------------+
 |dn_expand              | resolver(SLIB-osr5)            | expands domain name       |
 +-----------------------+---------------------------+---------------------------+
 |dump_object            | smux_util(SLIB-osr5)           | dump object information   |
 +-----------------------+---------------------------+---------------------------+
 |dump_object_by_tree    | smux_util(SLIB-osr5)           | dump information about    |
 |                       |                           | objects in a subtree      |
 +-----------------------+---------------------------+---------------------------+
 |dump_objects_by_tree   | smux_util(SLIB-osr5)           | dump information about    |
 |                       |                           | compiled objects in       |
 |                       |                           | ccitt(0) and iso(1)       |
 |                       |                           | subtrees                  |
 +-----------------------+---------------------------+---------------------------+
 |encode_SMUX_PDU        | smux_pdu(SLIB-osr5)            | perform ASN.1 compilation |
 |                       |                           | to build SMUX PDU         |
 +-----------------------+---------------------------+---------------------------+
 |endhostent             | gethostbyname(SLIB-osr5)       | closes TCP connection     |
 +-----------------------+---------------------------+---------------------------+
 |endnetent              | getnetent(SLIB-osr5)           | end network entry         |
 +-----------------------+---------------------------+---------------------------+
 |endprotoent            | getprotoent(SLIB-osr5)         | end protocol entry        |
 +-----------------------+---------------------------+---------------------------+
 |endservent             | getservent(SLIB-osr5)          | end service entry         |
 +-----------------------+---------------------------+---------------------------+
 |endtosent              | gettos(SLIB-osr5)              | close the /etc/iptos file |
 +-----------------------+---------------------------+---------------------------+
 |ether_aton             | ether(SLIB-osr5)               | convert ASCII string to   |
 |                       |                           | 48-bit Ethernet address   |
 +-----------------------+---------------------------+---------------------------+
 |ether_ntoa             | ether(SLIB-osr5)               | convert 48-bit Ethernet   |
 |                       |                           | address to ASCII format   |
 +-----------------------+---------------------------+---------------------------+

Name Appears on Page Description
ether_ntohost ether(SLIB-osr5) map 48-bit Ethernet address to hostname
ether_hostton ether(SLIB-osr5) map hostname string to 48-bit Ethernet address
ether_line ether(SLIB-osr5) acquire and set hostname and Ethernet address by scanning file
free_authentication snmp_authentication(SLIB-osr5) free a trivial authentication header
free_octetstring octetstring(SLIB-osr5) free octetstring memory allocation
free_oid oid(SLIB-osr5) free Object Identifier memory
free_pdu snmp_pdu(SLIB-osr5) free PDU data structure
free_SMUX_ClosePDU smux_pdu(SLIB-osr5) free SMUX_ClosePDU data structure
free_SMUX_GetPDU smux_pdu(SLIB-osr5) free SMUX_Data_PDU data structure
free_SMUX_RReqPDU smux_pdu(SLIB-osr5) free SMUX_RReqPDU data structure
free_SMUX_RRspPDU smux_pdu(SLIB-osr5) free SMUX_RRspPDU data structure
free_SMUX_SimpleOpen smux_pdu(SLIB-osr5) free SMUX_SimpleOpen data structure
free_SMUX_SOutPDU smux_pdu(SLIB-osr5) free SMUX_SoutPDU data structure
free_SMUX_TrapPDU smux_pdu(SLIB-osr5) free SMUX_Trap_PDU data structure
free_SNMP_SMUX_pdu smux_pdu(SLIB-osr5) free PDU data structure
free_varbind_list varbind(SLIB-osr5) free variable binding memory
ftp_accnt ftp_api(SLIB-osr5) send user's account data to remote host
ftp_ascii ftp_api(SLIB-osr5) set data transfer type to ASCII
ftp_binary ftp_api(SLIB-osr5) set data transfer type to BINARY
ftp_bye ftp_api(SLIB-osr5) close the FTP connection
ftp_chdir ftp_api(SLIB-osr5) change directory on remote host
ftp_command ftp_api(SLIB-osr5) send FTP specific information

 +---------------------+---------------------------+---------------------------+
 |Name                 | Appears on Page           | Description               |
 +---------------------+---------------------------+---------------------------+
 |ether_ntohost        | ether(SLIB-osr5)               | map 48-bit Ethernet       |
 |                     |                           | address to hostname       |
 +---------------------+---------------------------+---------------------------+
 |ether_hostton        | ether(SLIB-osr5)               | map hostname string to    |
 |                     |                           | 48-bit Ethernet address   |
 +---------------------+---------------------------+---------------------------+
 |ether_line           | ether(SLIB-osr5)               | acquire and set hostname  |
 |                     |                           | and Ethernet address by   |
 |                     |                           | scanning file             |
 +---------------------+---------------------------+---------------------------+
 |free_authentication  | snmp_authentication(SLIB-osr5) | free a trivial            |
 |                     |                           | authentication header     |
 +---------------------+---------------------------+---------------------------+
 |free_octetstring     | octetstring(SLIB-osr5)         | free octetstring memory   |
 |                     |                           | allocation                |
 +---------------------+---------------------------+---------------------------+
 |free_oid             | oid(SLIB-osr5)                 | free Object Identifier    |
 |                     |                           | memory                    |
 +---------------------+---------------------------+---------------------------+
 |free_pdu             | snmp_pdu(SLIB-osr5)            | free PDU data structure   |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_ClosePDU   | smux_pdu(SLIB-osr5)            | free SMUX_ClosePDU data   |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_GetPDU     | smux_pdu(SLIB-osr5)            | free SMUX_Data_PDU data   |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_RReqPDU    | smux_pdu(SLIB-osr5)            | free SMUX_RReqPDU data    |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_RRspPDU    | smux_pdu(SLIB-osr5)            | free SMUX_RRspPDU data    |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_SimpleOpen | smux_pdu(SLIB-osr5)            | free SMUX_SimpleOpen data |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_SOutPDU    | smux_pdu(SLIB-osr5)            | free SMUX_SoutPDU data    |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SMUX_TrapPDU    | smux_pdu(SLIB-osr5)            | free SMUX_Trap_PDU data   |
 |                     |                           | structure                 |
 +---------------------+---------------------------+---------------------------+
 |free_SNMP_SMUX_pdu   | smux_pdu(SLIB-osr5)            | free PDU data structure   |
 +---------------------+---------------------------+---------------------------+
 |free_varbind_list    | varbind(SLIB-osr5)             | free variable binding     |
 |                     |                           | memory                    |
 +---------------------+---------------------------+---------------------------+
 |ftp_accnt            | ftp_api(SLIB-osr5)             | send user's account data  |
 |                     |                           | to remote host            |
 +---------------------+---------------------------+---------------------------+
 |ftp_ascii            | ftp_api(SLIB-osr5)             | set data transfer type to |
 |                     |                           | ASCII                     |
 +---------------------+---------------------------+---------------------------+
 |ftp_binary           | ftp_api(SLIB-osr5)             | set data transfer type to |
 |                     |                           | BINARY                    |
 +---------------------+---------------------------+---------------------------+
 |ftp_bye              | ftp_api(SLIB-osr5)             | close the FTP connection  |
 +---------------------+---------------------------+---------------------------+
 |ftp_chdir            | ftp_api(SLIB-osr5)             | change directory on       |
 |                     |                           | remote host               |
 +---------------------+---------------------------+---------------------------+
 |ftp_command          | ftp_api(SLIB-osr5)             | send FTP specific         |
 |                     |                           | information               |
 +---------------------+---------------------------+---------------------------+

Name Appears on Page Description
ftp_dataconn ftp_api(SLIB-osr5) open an FTP data channel socket
ftp_del ftp_api(SLIB-osr5) delete file on remote host
ftp_dir ftp_api(SLIB-osr5) list a directory on remote host
ftp_ebcdic ftp_api(SLIB-osr5) set the transfer type to EBCDIC
ftp_getfile ftp_api(SLIB-osr5) transfer a file from a remote host to the local host
ftp_idle ftp_api(SLIB-osr5) set idle time for the FTP connection
ftp_initconn ftp_api(SLIB-osr5) initialize and establish an FTP data channel
ftp_login ftp_api(SLIB-osr5) perform complete login to remote FTP server
ftp_mkdir ftp_api(SLIB-osr5) make a directory on remote host
ftp_passwd ftp_api(SLIB-osr5) send user's password to remote host
ftp_prconnect ftp_api(SLIB-osr5) establish FTP connection with remote host
ftp_putfile ftp_api(SLIB-osr5) transfer a file from the local host to the remote host
ftp_pwd ftp_api(SLIB-osr5) get current working directory on remote host
ftp_rmdir ftp_api(SLIB-osr5) remove directory on remote host
ftp_settype ftp_api(SLIB-osr5) set data transfer type for FTP connection
ftp_site ftp_api(SLIB-osr5) send SITE command to remote FTP server
ftp_tenex ftp_api(SLIB-osr5) set the transfer type to TENEX
ftp_user ftp_api(SLIB-osr5) send the user's name to the remote host
ftruncate truncate(SLIB-osr5) set an ``fd'' named file to a specified length
get_pdu_from_v1_mesg snmp_authentication(SLIB-osr5) extract PDU
get_response snmpio_api(SLIB-osr5) get agent response to send_request
gethostbyaddr gethostbyname(SLIB-osr5) get network host entry by address
gethostbyname gethostbyname(SLIB-osr5) get network host entry by name
gethostname gethostname(SLIB-osr5) get name of current host
getnetbyaddr getnetent(SLIB-osr5) get network entry by address
getnetbyname getnetent(SLIB-osr5) get network entry by name
getnetent getnetent(SLIB-osr5) get network entry
getprotobyname getprotoent(SLIB-osr5) get protocol entry by name
getprotobynumber getprotoent(SLIB-osr5) get protocol entry by address
getprotoent getprotoent(SLIB-osr5) get protocol entry
getservbyname getservent(SLIB-osr5) get service entry by name
getservbyport getservent(SLIB-osr5) get service entry by port number

 +---------------------+---------------------------+------------------------------------+
 |Name                 | Appears on Page           | Description                        |
 +---------------------+---------------------------+------------------------------------+
 |ftp_dataconn         | ftp_api(SLIB-osr5)             | open an FTP data channel socket    |
 +---------------------+---------------------------+------------------------------------+
 |ftp_del              | ftp_api(SLIB-osr5)             | delete file on remote host         |
 +---------------------+---------------------------+------------------------------------+
 |ftp_dir              | ftp_api(SLIB-osr5)             | list a directory on remote host    |
 +---------------------+---------------------------+------------------------------------+
 |ftp_ebcdic           | ftp_api(SLIB-osr5)             | set the transfer type to EBCDIC    |
 +---------------------+---------------------------+------------------------------------+
 |ftp_getfile          | ftp_api(SLIB-osr5)             | transfer a file from a remote host |
 |                     |                           | to the local host                  |
 +---------------------+---------------------------+------------------------------------+
 |ftp_idle             | ftp_api(SLIB-osr5)             | set idle time for the FTP          |
 |                     |                           | connection                         |
 +---------------------+---------------------------+------------------------------------+
 |ftp_initconn         | ftp_api(SLIB-osr5)             | initialize and establish an FTP    |
 |                     |                           | data channel                       |
 +---------------------+---------------------------+------------------------------------+
 |ftp_login            | ftp_api(SLIB-osr5)             | perform complete login to remote   |
 |                     |                           | FTP server                         |
 +---------------------+---------------------------+------------------------------------+
 |ftp_mkdir            | ftp_api(SLIB-osr5)             | make a directory on remote host    |
 +---------------------+---------------------------+------------------------------------+
 |ftp_passwd           | ftp_api(SLIB-osr5)             | send user's password to remote     |
 |                     |                           | host                               |
 +---------------------+---------------------------+------------------------------------+
 |ftp_prconnect        | ftp_api(SLIB-osr5)             | establish FTP connection with      |
 |                     |                           | remote host                        |
 +---------------------+---------------------------+------------------------------------+
 |ftp_putfile          | ftp_api(SLIB-osr5)             | transfer a file from the local     |
 |                     |                           | host to the remote host            |
 +---------------------+---------------------------+------------------------------------+
 |ftp_pwd              | ftp_api(SLIB-osr5)             | get current working directory on   |
 |                     |                           | remote host                        |
 +---------------------+---------------------------+------------------------------------+
 |ftp_rmdir            | ftp_api(SLIB-osr5)             | remove directory on remote host    |
 +---------------------+---------------------------+------------------------------------+
 |ftp_settype          | ftp_api(SLIB-osr5)             | set data transfer type for FTP     |
 |                     |                           | connection                         |
 +---------------------+---------------------------+------------------------------------+
 |ftp_site             | ftp_api(SLIB-osr5)             | send SITE command to remote FTP    |
 |                     |                           | server                             |
 +---------------------+---------------------------+------------------------------------+
 |ftp_tenex            | ftp_api(SLIB-osr5)             | set the transfer type to TENEX     |
 +---------------------+---------------------------+------------------------------------+
 |ftp_user             | ftp_api(SLIB-osr5)             | send the user's name to the remote |
 |                     |                           | host                               |
 +---------------------+---------------------------+------------------------------------+
 |ftruncate            | truncate(SLIB-osr5)            | set an ``fd'' named file to a      |
 |                     |                           | specified length                   |
 +---------------------+---------------------------+------------------------------------+
 |get_pdu_from_v1_mesg | snmp_authentication(SLIB-osr5) | extract PDU                        |
 +---------------------+---------------------------+------------------------------------+
 |get_response         | snmpio_api(SLIB-osr5)          | get agent response to send_request |
 +---------------------+---------------------------+------------------------------------+
 |gethostbyaddr        | gethostbyname(SLIB-osr5)       | get network host entry by address  |
 +---------------------+---------------------------+------------------------------------+
 |gethostbyname        | gethostbyname(SLIB-osr5)       | get network host entry by name     |
 +---------------------+---------------------------+------------------------------------+
 |gethostname          | gethostname(SLIB-osr5)         | get name of current host           |
 +---------------------+---------------------------+------------------------------------+
 |getnetbyaddr         | getnetent(SLIB-osr5)           | get network entry by address       |
 +---------------------+---------------------------+------------------------------------+
 |getnetbyname         | getnetent(SLIB-osr5)           | get network entry by name          |
 +---------------------+---------------------------+------------------------------------+
 |getnetent            | getnetent(SLIB-osr5)           | get network entry                  |
 +---------------------+---------------------------+------------------------------------+
 |getprotobyname       | getprotoent(SLIB-osr5)         | get protocol entry by name         |
 +---------------------+---------------------------+------------------------------------+
 |getprotobynumber     | getprotoent(SLIB-osr5)         | get protocol entry by address      |
 +---------------------+---------------------------+------------------------------------+
 |getprotoent          | getprotoent(SLIB-osr5)         | get protocol entry                 |
 +---------------------+---------------------------+------------------------------------+
 |getservbyname        | getservent(SLIB-osr5)          | get service entry by name          |
 +---------------------+---------------------------+------------------------------------+
 |getservbyport        | getservent(SLIB-osr5)          | get service entry by port number   |
 +---------------------+---------------------------+------------------------------------+

Name Appears on Page Description
getservent getservent(SLIB-osr5) get service entry
getsmuxEntrybyidentity smux_util(SLIB-osr5) search for a peer in snmpd.peers
getsmuxEntrybyname smux_util(SLIB-osr5) search for a peer in snmpd.peers
gettosbyname gettos(SLIB-osr5) return /etc/iptos entry
gettosent gettos(SLIB-osr5) return /etc/iptos entry
geturg geturg(SLIB-osr5) get TCP urgent data mode
herror gethostbyname(SLIB-osr5) print error message
hstrerror gethostbyname(SLIB-osr5) return pointer to error message text
htonl byteorder(SLIB-osr5) convert values from host to
network long byte order
htons byteorder(SLIB-osr5) convert values from host to
network short byte order
in_cksum in_cksum(SLIB-osr5) compute the Internet checksum
inaddr2oid smux_util(SLIB-osr5) convert Internet address to OID representation of address
inet_addr inet(SLIB-osr5) converts character string to Internet address
inet_aton inet(SLIB-osr5) differentiates error condition from address of all ones
inet_lnaof inet(SLIB-osr5) extracts local address from
Internet address
inet_makeaddr inet(SLIB-osr5) converts local and network
address into Internet address
inet_netof inet(SLIB-osr5) extracts network address from Internet address
inet_network inet(SLIB-osr5) converts character string to network address
inet_ntoa inet(SLIB-osr5) converts Internet address to ASCII format
init_trap_endpoint snmpio_api(SLIB-osr5) monitor SNMP traps
initialize_io snmpio_api(SLIB-osr5) open UDP socket to SNMP agent
insque insque(SLIB-osr5) insert element from a queue
link_varbind varbind(SLIB-osr5) add a VarBind entry to a PDU
link_varbind_list varbind(SLIB-osr5) append variable bindings to PDU
make_authentication snmp_authentication(SLIB-osr5) create a trivial authentication header
make_dot_from_obj_id oid(SLIB-osr5) make dot notation character string from Object Identifier
make_obj_id_from_dot oid(SLIB-osr5) make Object Identifier from dot notation character string

 +-----------------------+---------------------------+---------------------------------+
 |Name                   | Appears on Page           | Description                     |
 +-----------------------+---------------------------+---------------------------------+
 |getservent             | getservent(SLIB-osr5)          | get service entry               |
 +-----------------------+---------------------------+---------------------------------+
 |getsmuxEntrybyidentity | smux_util(SLIB-osr5)           | search for a peer in            |
 |                       |                           | snmpd.peers                     |
 +-----------------------+---------------------------+---------------------------------+
 |getsmuxEntrybyname     | smux_util(SLIB-osr5)           | search for a peer in            |
 |                       |                           | snmpd.peers                     |
 +-----------------------+---------------------------+---------------------------------+
 |gettosbyname           | gettos(SLIB-osr5)              | return /etc/iptos entry         |
 +-----------------------+---------------------------+---------------------------------+
 |gettosent              | gettos(SLIB-osr5)              | return /etc/iptos entry         |
 +-----------------------+---------------------------+---------------------------------+
 |geturg                 | geturg(SLIB-osr5)              | get TCP urgent data mode        |
 +-----------------------+---------------------------+---------------------------------+
 |herror                 | gethostbyname(SLIB-osr5)       | print error message             |
 +-----------------------+---------------------------+---------------------------------+
 |hstrerror              | gethostbyname(SLIB-osr5)       | return pointer to error message |
 |                       |                           | text                            |
 +-----------------------+---------------------------+---------------------------------+
 |htonl                  | byteorder(SLIB-osr5)           | convert values from host to     |
 |                       |                           | network long byte order         |
 +-----------------------+---------------------------+---------------------------------+
 |htons                  | byteorder(SLIB-osr5)           | convert values from host to     |
 |                       |                           | network short byte order        |
 +-----------------------+---------------------------+---------------------------------+
 |in_cksum               | in_cksum(SLIB-osr5)            | compute the Internet checksum   |
 +-----------------------+---------------------------+---------------------------------+
 |inaddr2oid             | smux_util(SLIB-osr5)           | convert Internet address to OID |
 |                       |                           | representation of address       |
 +-----------------------+---------------------------+---------------------------------+
 |inet_addr              | inet(SLIB-osr5)                | converts character string to    |
 |                       |                           | Internet address                |
 +-----------------------+---------------------------+---------------------------------+
 |inet_aton              | inet(SLIB-osr5)                | differentiates error condition  |
 |                       |                           | from address of all ones        |
 +-----------------------+---------------------------+---------------------------------+
 |inet_lnaof             | inet(SLIB-osr5)                | extracts local address from     |
 |                       |                           | Internet address                |
 +-----------------------+---------------------------+---------------------------------+
 |inet_makeaddr          | inet(SLIB-osr5)                | converts local and network      |
 |                       |                           | address into Internet address   |
 +-----------------------+---------------------------+---------------------------------+
 |inet_netof             | inet(SLIB-osr5)                | extracts network address from   |
 |                       |                           | Internet address                |
 +-----------------------+---------------------------+---------------------------------+
 |inet_network           | inet(SLIB-osr5)                | converts character string to    |
 |                       |                           | network address                 |
 +-----------------------+---------------------------+---------------------------------+
 |inet_ntoa              | inet(SLIB-osr5)                | converts Internet address to    |
 |                       |                           | ASCII format                    |
 +-----------------------+---------------------------+---------------------------------+
 |init_trap_endpoint     | snmpio_api(SLIB-osr5)          | monitor SNMP traps              |
 +-----------------------+---------------------------+---------------------------------+
 |initialize_io          | snmpio_api(SLIB-osr5)          | open UDP socket to SNMP agent   |
 +-----------------------+---------------------------+---------------------------------+
 |insque                 | insque(SLIB-osr5)              | insert element from a queue     |
 +-----------------------+---------------------------+---------------------------------+
 |link_varbind           | varbind(SLIB-osr5)             | add a VarBind entry to a PDU    |
 +-----------------------+---------------------------+---------------------------------+
 |link_varbind_list      | varbind(SLIB-osr5)             | append variable bindings to PDU |
 +-----------------------+---------------------------+---------------------------------+
 |make_authentication    | snmp_authentication(SLIB-osr5) | create a trivial authentication |
 |                       |                           | header                          |
 +-----------------------+---------------------------+---------------------------------+
 |make_dot_from_obj_id   | oid(SLIB-osr5)                 | make dot notation character     |
 |                       |                           | string from Object Identifier   |
 +-----------------------+---------------------------+---------------------------------+
 |make_obj_id_from_dot   | oid(SLIB-osr5)                 | make Object Identifier from dot |
 |                       |                           | notation character string       |
 +-----------------------+---------------------------+---------------------------------+

Name Appears on Page Description
make_obj_id_from_hex oid(SLIB-osr5) make Object Identifier from hex character string
make_octet_from_hex octetstring(SLIB-osr5) create an octet string from a hex character string
make_octet_from_text octetstring(SLIB-osr5) create an octet string from character text
make_octetstring octetstring(SLIB-osr5) make OctetString library construct
make_oid oid(SLIB-osr5) make Object Identifier library construct
make_pdu snmp_pdu(SLIB-osr5) create PDU data structure to start SNMP packet
make_req_id snmpio_api(SLIB-osr5) generate time stamp for SNMP messages
make_varbind varbind(SLIB-osr5) make a VarBind entry data structure
mediaddr2oid smux_util(SLIB-osr5) stores length of an address and its contents in an OID
name2inst smux_util(SLIB-osr5) returns an instance for the object name
name2obj smux_util(SLIB-osr5) returns object type of an OID
next2inst smux_util(SLIB-osr5) returns an OI for closest object type before the OID
ntohl byteorder(SLIB-osr5) convert values from network to host long byte order
ntohs byteorder(SLIB-osr5) convert values from network to host short byte order
o_integer smux_util(SLIB-osr5) associates INTEGER, Gauge, or Counter object type with its name
o_ipaddr smux_util(SLIB-osr5) associates value of IpAddress with its name
o_longword smux_util(SLIB-osr5) associates INTEGER, Gauge, or Counter object type with its name
o_number smux_util(SLIB-osr5) associates TimeTicks object type with its name
o_specific smux_util(SLIB-osr5) associates value of OBJECT IDENTIFIER with its name
o_string smux_util(SLIB-osr5) associates value of DisplayString, OctetString, etc. with name
octet2str smux_util(SLIB-osr5) convert OctetString to printable string
oid_cmp smux_util(SLIB-osr5) compares two OIDs
oid_cpy smux_util(SLIB-osr5) allocates and copies an OID
oid_extend smux_util(SLIB-osr5) allocates a larger OID
oid_normalize smux_util(SLIB-osr5) initializes new larger OID allocated by oid_extend
oid2ode smux_util(SLIB-osr5) returns printable form OID
openlog syslog(SLIB-osr5) initialize system log file
os_cpy smux_util(SLIB-osr5) allocates and copies an OctetString

 +---------------------+-------------------+-----------------------------------------+
 |Name                 | Appears on Page   | Description                             |
 +---------------------+-------------------+-----------------------------------------+
 |make_obj_id_from_hex | oid(SLIB-osr5)         | make Object Identifier from hex         |
 |                     |                   | character string                        |
 +---------------------+-------------------+-----------------------------------------+
 |make_octet_from_hex  | octetstring(SLIB-osr5) | create an octet string from a hex       |
 |                     |                   | character string                        |
 +---------------------+-------------------+-----------------------------------------+
 |make_octet_from_text | octetstring(SLIB-osr5) | create an octet string from character   |
 |                     |                   | text                                    |
 +---------------------+-------------------+-----------------------------------------+
 |make_octetstring     | octetstring(SLIB-osr5) | make OctetString library construct      |
 +---------------------+-------------------+-----------------------------------------+
 |make_oid             | oid(SLIB-osr5)         | make Object Identifier library          |
 |                     |                   | construct                               |
 +---------------------+-------------------+-----------------------------------------+
 |make_pdu             | snmp_pdu(SLIB-osr5)    | create PDU data structure to start SNMP |
 |                     |                   | packet                                  |
 +---------------------+-------------------+-----------------------------------------+
 |make_req_id          | snmpio_api(SLIB-osr5)  | generate time stamp for SNMP messages   |
 +---------------------+-------------------+-----------------------------------------+
 |make_varbind         | varbind(SLIB-osr5)     | make a VarBind entry data structure     |
 +---------------------+-------------------+-----------------------------------------+
 |mediaddr2oid         | smux_util(SLIB-osr5)   | stores length of an address and its     |
 |                     |                   | contents in an OID                      |
 +---------------------+-------------------+-----------------------------------------+
 |name2inst            | smux_util(SLIB-osr5)   | returns an instance for the object name |
 +---------------------+-------------------+-----------------------------------------+
 |name2obj             | smux_util(SLIB-osr5)   | returns object type of an OID           |
 +---------------------+-------------------+-----------------------------------------+
 |next2inst            | smux_util(SLIB-osr5)   | returns an OI for closest object type   |
 |                     |                   | before the OID                          |
 +---------------------+-------------------+-----------------------------------------+
 |ntohl                | byteorder(SLIB-osr5)   | convert values from network to host     |
 |                     |                   | long byte order                         |
 +---------------------+-------------------+-----------------------------------------+
 |ntohs                | byteorder(SLIB-osr5)   | convert values from network to host     |
 |                     |                   | short byte order                        |
 +---------------------+-------------------+-----------------------------------------+
 |o_integer            | smux_util(SLIB-osr5)   | associates INTEGER, Gauge, or Counter   |
 |                     |                   | object type with its name               |
 +---------------------+-------------------+-----------------------------------------+
 |o_ipaddr             | smux_util(SLIB-osr5)   | associates value of IpAddress with its  |
 |                     |                   | name                                    |
 +---------------------+-------------------+-----------------------------------------+
 |o_longword           | smux_util(SLIB-osr5)   | associates INTEGER, Gauge, or Counter   |
 |                     |                   | object type with its name               |
 +---------------------+-------------------+-----------------------------------------+
 |o_number             | smux_util(SLIB-osr5)   | associates TimeTicks object type with   |
 |                     |                   | its name                                |
 +---------------------+-------------------+-----------------------------------------+
 |o_specific           | smux_util(SLIB-osr5)   | associates value of OBJECT IDENTIFIER   |
 |                     |                   | with its name                           |
 +---------------------+-------------------+-----------------------------------------+
 |o_string             | smux_util(SLIB-osr5)   | associates value of DisplayString,      |
 |                     |                   | OctetString, etc. with name             |
 +---------------------+-------------------+-----------------------------------------+
 |octet2str            | smux_util(SLIB-osr5)   | convert OctetString to printable string |
 +---------------------+-------------------+-----------------------------------------+
 |oid_cmp              | smux_util(SLIB-osr5)   | compares two OIDs                       |
 +---------------------+-------------------+-----------------------------------------+
 |oid_cpy              | smux_util(SLIB-osr5)   | allocates and copies an OID             |
 +---------------------+-------------------+-----------------------------------------+
 |oid_extend           | smux_util(SLIB-osr5)   | allocates a larger OID                  |
 +---------------------+-------------------+-----------------------------------------+
 |oid_normalize        | smux_util(SLIB-osr5)   | initializes new larger OID allocated by |
 |                     |                   | oid_extend                              |
 +---------------------+-------------------+-----------------------------------------+
 |oid2ode              | smux_util(SLIB-osr5)   | returns printable form OID              |
 +---------------------+-------------------+-----------------------------------------+
 |openlog              | syslog(SLIB-osr5)      | initialize system log file              |
 +---------------------+-------------------+-----------------------------------------+
 |os_cpy               | smux_util(SLIB-osr5)   | allocates and copies an OctetString     |
 +---------------------+-------------------+-----------------------------------------+

Name Appears on Page Description
parse_authentication snmp_authentication(SLIB-osr5) create authentication header from SNMP packet
parse_pdu snmp_pdu(SLIB-osr5) create PDU data structure from SNMP packet
parsetos gettos(SLIB-osr5) return t_tos value
print_ascii octetstring(SLIB-osr5) print out octet string as an ascii string
print_octet_string_out octetstring(SLIB-osr5) print out octet string received
print_packet_out snmp_authentication(SLIB-osr5) print out buffer received
print_varbind_list varbind(SLIB-osr5) print VarBind list in human readable form
rcmd rcmd(SLIB-osr5) execute a command on a remote machine
readobjects smux_api(SLIB-osr5) read compiled list of peer-managed objects
remque insque(SLIB-osr5) remove element from a queue
res_init resolver(SLIB-osr5) reads initialization file
res_mkquery resolver(SLIB-osr5) makes a standard query message
res_query resolver(SLIB-osr5) interface to server query mechanism
res_search resolver(SLIB-osr5) extended interface to server query mechanism
res_send resolver(SLIB-osr5) sends a query to name server
rexec rexec(SLIB-osr5) return stream to a remote command
rresvport rcmd(SLIB-osr5) returns a socket descriptor in privileged port space
ruserok rcmd(SLIB-osr5) remote user authentication
send_request snmpio_api(SLIB-osr5) send SNMP request to agent
seteuid seteuid(SLIB-osr5) set user ID
setegid seteuid(SLIB-osr5) set group ID
sethostent gethostbyname(SLIB-osr5) use TCP socket for queries
sethostname gethostname(SLIB-osr5) set name of current host
setlogmask syslog(SLIB-osr5) set log file priority mask
setnetent getnetent(SLIB-osr5) set network entry
setprotoent getprotoent(SLIB-osr5) set protocol entry
setservent getservent(SLIB-osr5) set service entry
settosent gettos(SLIB-osr5) open and rewind /etc/iptos file

 +-----------------------+---------------------------+----------------------------+
 |Name                   | Appears on Page           | Description                |
 +-----------------------+---------------------------+----------------------------+
 |parse_authentication   | snmp_authentication(SLIB-osr5) | create authentication      |
 |                       |                           | header from SNMP packet    |
 +-----------------------+---------------------------+----------------------------+
 |parse_pdu              | snmp_pdu(SLIB-osr5)            | create PDU data structure  |
 |                       |                           | from SNMP packet           |
 +-----------------------+---------------------------+----------------------------+
 |parsetos               | gettos(SLIB-osr5)              | return t_tos value         |
 +-----------------------+---------------------------+----------------------------+
 |print_ascii            | octetstring(SLIB-osr5)         | print out octet string as  |
 |                       |                           | an ascii string            |
 +-----------------------+---------------------------+----------------------------+
 |print_octet_string_out | octetstring(SLIB-osr5)         | print out octet string     |
 |                       |                           | received                   |
 +-----------------------+---------------------------+----------------------------+
 |print_packet_out       | snmp_authentication(SLIB-osr5) | print out buffer received  |
 +-----------------------+---------------------------+----------------------------+
 |print_varbind_list     | varbind(SLIB-osr5)             | print VarBind list in      |
 |                       |                           | human readable form        |
 +-----------------------+---------------------------+----------------------------+
 |rcmd                   | rcmd(SLIB-osr5)                | execute a command on a     |
 |                       |                           | remote machine             |
 +-----------------------+---------------------------+----------------------------+
 |readobjects            | smux_api(SLIB-osr5)            | read compiled list of      |
 |                       |                           | peer-managed objects       |
 +-----------------------+---------------------------+----------------------------+
 |remque                 | insque(SLIB-osr5)              | remove element from a      |
 |                       |                           | queue                      |
 +-----------------------+---------------------------+----------------------------+
 |res_init               | resolver(SLIB-osr5)            | reads initialization file  |
 +-----------------------+---------------------------+----------------------------+
 |res_mkquery            | resolver(SLIB-osr5)            | makes a standard query     |
 |                       |                           | message                    |
 +-----------------------+---------------------------+----------------------------+
 |res_query              | resolver(SLIB-osr5)            | interface to server query  |
 |                       |                           | mechanism                  |
 +-----------------------+---------------------------+----------------------------+
 |res_search             | resolver(SLIB-osr5)            | extended interface to      |
 |                       |                           | server query mechanism     |
 +-----------------------+---------------------------+----------------------------+
 |res_send               | resolver(SLIB-osr5)            | sends a query to name      |
 |                       |                           | server                     |
 +-----------------------+---------------------------+----------------------------+
 |rexec                  | rexec(SLIB-osr5)               | return stream to a remote  |
 |                       |                           | command                    |
 +-----------------------+---------------------------+----------------------------+
 |rresvport              | rcmd(SLIB-osr5)                | returns a socket           |
 |                       |                           | descriptor in privileged   |
 |                       |                           | port space                 |
 +-----------------------+---------------------------+----------------------------+
 |ruserok                | rcmd(SLIB-osr5)                | remote user authentication |
 +-----------------------+---------------------------+----------------------------+
 |send_request           | snmpio_api(SLIB-osr5)          | send SNMP request to agent |
 +-----------------------+---------------------------+----------------------------+
 |seteuid                | seteuid(SLIB-osr5)             | set user ID                |
 +-----------------------+---------------------------+----------------------------+
 |setegid                | seteuid(SLIB-osr5)             | set group ID               |
 +-----------------------+---------------------------+----------------------------+
 |sethostent             | gethostbyname(SLIB-osr5)       | use TCP socket for queries |
 +-----------------------+---------------------------+----------------------------+
 |sethostname            | gethostname(SLIB-osr5)         | set name of current host   |
 +-----------------------+---------------------------+----------------------------+
 |setlogmask             | syslog(SLIB-osr5)              | set log file priority mask |
 +-----------------------+---------------------------+----------------------------+
 |setnetent              | getnetent(SLIB-osr5)           | set network entry          |
 +-----------------------+---------------------------+----------------------------+
 |setprotoent            | getprotoent(SLIB-osr5)         | set protocol entry         |
 +-----------------------+---------------------------+----------------------------+
 |setservent             | getservent(SLIB-osr5)          | set service entry          |
 +-----------------------+---------------------------+----------------------------+
 |settosent              | gettos(SLIB-osr5)              | open and rewind /etc/iptos |
 |                       |                           | file                       |
 +-----------------------+---------------------------+----------------------------+

Name Appears on Page Description
smux_close smux_api(SLIB-osr5) terminate SMUX association with agent
smux_init smux_api(SLIB-osr5) initiate TCP connection with local SNMP agent
smux_register smux_api(SLIB-osr5) export sub-tree to local SNMP agent
smux_response smux_api(SLIB-osr5) send SMUX get-response PDU
smux_simple_open smux_api(SLIB-osr5) initiate SMUX association with SNMP agent
smux_trap smux_api(SLIB-osr5) send trap PDU to SNMP agent
smux_wait smux_api(SLIB-osr5) await arrival of SMUX PDU
sprintoid smux_util(SLIB-osr5) returns printable numeric form of an OID
syslog syslog(SLIB-osr5) control system log
text2inst smux_util(SLIB-osr5) takes a string and returns an instance
text2obj smux_util(SLIB-osr5) takes a string and returns an object type
text2oid smux_util(SLIB-osr5) takes a string and returns an object name
text2syn smux_util(SLIB-osr5) takes a syntax name and returns the associated structure
truncate truncate(SLIB-osr5) set a ``path'' named file to a specified length
vsyslog syslog(SLIB-osr5) control system log
xselect smux_util(SLIB-osr5) simulates system call select

 +-----------------+-----------------+--------------------------------+
 |Name             | Appears on Page | Description                    |
 +-----------------+-----------------+--------------------------------+
 |smux_close       | smux_api(SLIB-osr5)  | terminate SMUX association     |
 |                 |                 | with agent                     |
 +-----------------+-----------------+--------------------------------+
 |smux_init        | smux_api(SLIB-osr5)  | initiate TCP connection with   |
 |                 |                 | local SNMP agent               |
 +-----------------+-----------------+--------------------------------+
 |smux_register    | smux_api(SLIB-osr5)  | export sub-tree to local SNMP  |
 |                 |                 | agent                          |
 +-----------------+-----------------+--------------------------------+
 |smux_response    | smux_api(SLIB-osr5)  | send SMUX get-response PDU     |
 +-----------------+-----------------+--------------------------------+
 |smux_simple_open | smux_api(SLIB-osr5)  | initiate SMUX association with |
 |                 |                 | SNMP agent                     |
 +-----------------+-----------------+--------------------------------+
 |smux_trap        | smux_api(SLIB-osr5)  | send trap PDU to SNMP agent    |
 +-----------------+-----------------+--------------------------------+
 |smux_wait        | smux_api(SLIB-osr5)  | await arrival of SMUX PDU      |
 +-----------------+-----------------+--------------------------------+
 |sprintoid        | smux_util(SLIB-osr5) | returns printable numeric form |
 |                 |                 | of an OID                      |
 +-----------------+-----------------+--------------------------------+
 |syslog           | syslog(SLIB-osr5)    | control system log             |
 +-----------------+-----------------+--------------------------------+
 |text2inst        | smux_util(SLIB-osr5) | takes a string and returns an  |
 |                 |                 | instance                       |
 +-----------------+-----------------+--------------------------------+
 |text2obj         | smux_util(SLIB-osr5) | takes a string and returns an  |
 |                 |                 | object type                    |
 +-----------------+-----------------+--------------------------------+
 |text2oid         | smux_util(SLIB-osr5) | takes a string and returns an  |
 |                 |                 | object name                    |
 +-----------------+-----------------+--------------------------------+
 |text2syn         | smux_util(SLIB-osr5) | takes a syntax name and        |
 |                 |                 | returns the associated         |
 |                 |                 | structure                      |
 +-----------------+-----------------+--------------------------------+
 |truncate         | truncate(SLIB-osr5)  | set a ``path'' named file to a |
 |                 |                 | specified length               |
 +-----------------+-----------------+--------------------------------+
 |vsyslog          | syslog(SLIB-osr5)    | control system log             |
 +-----------------+-----------------+--------------------------------+
 |xselect          | smux_util(SLIB-osr5) | simulates system call select   |
 +-----------------+-----------------+--------------------------------+

Files

/usr/lib/libsocket.a the socket library

See also

Intro(SSC-osr5), cc(CP), ld(CP), nm(CP)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005