DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

Intro(SLIB)


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. 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.

List of functions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Files

/usr/lib/libsocket.a the socket library

See also

Intro(SSC), cc(CP), ld(CP), nm(CP)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003