/netbsd-current/external/mpl/bind/dist/bin/tests/system/ |
H A D | send.pl | 15 # Send a file to a given address and port using TCP. Used for 22 @ARGV == 2 or die "usage: send.pl host port [file ...]\n"; 25 my $port = shift @ARGV; 27 my $sock = IO::Socket::INET->new(PeerAddr => $host, PeerPort => $port,
|
H A D | testsock.pl | 23 my $port = 0; 25 GetOptions("p=i" => \$port, 46 my $sa = pack_sockaddr_in($port, $addr); 53 inet_ntoa($addr), $port);
|
/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | known_tcp_ports.h | 24 extern const char *add_known_tcp_port(const char *name, const char *port);
|
H A D | host_port.c | 7 /* split string into host and port, destroy string 11 /* const char *host_port(string, host, def_host, port, def_service) 15 /* char **port; 19 /* name or address, and the service name or port number. 30 /* [host]:port, [host]:, [host] 32 /* host:port, host:, host 36 /* :port, port 47 /* Typical client usage allows the user to omit the service port, 49 /* port 117 host_port(char *buf, char **host, char *def_host, char **port, char *def_service) argument 184 char *port; local [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | getaddrinfo_hostspec.c | 40 /* getaddrinfo via string specifying host and port */ 45 int port, 58 int port; member in struct:hst 75 if(port == 0) 76 port = hstp->port; 86 port = strtol (p + 1, &end, 0); 91 snprintf (portstr, sizeof(portstr), "%u", port); 99 int port, 102 return roken_getaddrinfo_hostspec2(hostspec, 0, port, a 43 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument 98 roken_getaddrinfo_hostspec(const char *hostspec, int port, struct addrinfo **ai) argument [all...] |
/netbsd-current/sys/arch/bebox/stand/boot/ |
H A D | io.c | 45 outb(int port, u_char val) argument 48 ISA_io[port] = val; 52 outw(int port, u_short val) argument 55 outb(port, val >> 8); 56 outb(port + 1, val); 60 inb(int port) argument 63 return ISA_io[port]; 67 inw(int port) argument 70 return *((volatile uint16_t *)(&ISA_io[port])); 74 inwrb(int port) argument [all...] |
/netbsd-current/external/bsd/ipf/dist/lib/ |
H A D | getport.c | 14 int getport(fr, name, port, proto) 17 u_short *port; 26 *port = s->s_port; 34 *port = htons((u_short)portval); 41 * Some people will use port names in rules without specifying 61 *port = p1; 63 *port = s->s_port; 79 *port = p1; 86 *port = s->s_port;
|
/netbsd-current/sys/arch/sh3/include/ |
H A D | endian_machdep.h | 4 # error Define SH target CPU endian-ness in port-specific header file.
|
/netbsd-current/sys/external/bsd/drm2/i915drm/ |
H A D | intel_lpe_audio.c | 59 enum port port, const void *eld, int ls_clock, bool dp_output) 58 intel_lpe_audio_notify(struct drm_i915_private *dev_priv, enum pipe pipe, enum port port, const void *eld, int ls_clock, bool dp_output) argument
|
/netbsd-current/lib/libc/net/ |
H A D | getservbyport.c | 49 getservbyport(int port, const char *proto) 54 s = getservbyport_r(port, proto, &_servent_data.serv, &_servent_data);
|
H A D | getservbyport_r.c | 54 _servent_getbyport(struct servent_data *sd, struct servent *sp, int port, argument 68 port = be16toh(port); 76 if (port < 0 || port > 65536) 81 be16enc(buf + 2, port); 92 if (be16dec(data) != port) 105 if (sp->s_port != port) 115 getservbyport_r(int port, const char *proto, struct servent *sp, argument 119 sp = _servent_getbyport(sd, sp, port, prot [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/display/ |
H A D | intel_dsi_dcs_backlight.c | 57 enum port port; local 60 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) { 61 dsi_device = intel_dsi->dsi_hosts[port]->device; 75 enum port port; local 78 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) { 79 dsi_device = intel_dsi->dsi_hosts[port]->device; 89 enum port port; local 124 enum port port; local [all...] |
H A D | vlv_dsi.c | 81 void vlv_dsi_wait_for_fifo_empty(struct intel_dsi *intel_dsi, enum port port) argument 91 if (intel_de_wait_for_set(dev_priv, MIPI_GEN_FIFO_STAT(port), 132 enum port port = intel_dsi_host->port; local 147 data_reg = MIPI_LP_GEN_DATA(port); 149 ctrl_reg = MIPI_LP_GEN_CTRL(port); 152 data_reg = MIPI_HS_GEN_DATA(port); 154 ctrl_reg = MIPI_HS_GEN_CTRL(port); 216 dpi_send_cmd(struct intel_dsi *intel_dsi, u32 cmd, bool hs, enum port port) argument 327 enum port port; local 375 enum port port; local 446 enum port port; local 473 enum port port; local 524 enum port port; local 554 enum port port; local 587 enum port port; local 633 enum port port; local 689 enum port port; local 757 enum port port; local 855 enum port port; local 891 enum port port; local 965 enum port port; local 1045 enum port port; local 1236 enum port port; local 1325 enum port port; local 1514 enum port port; local 1822 enum port port; local [all...] |
H A D | intel_hotplug.h | 18 enum port; 30 enum port port);
|
/netbsd-current/tests/net/inpcb/ |
H A D | broadcast_bind.c | 35 test_bind(char *paddr, struct in_addr *addr, u_int16_t port, int type, argument 44 sin.sin_port = htons(port); 60 warn("bind(%s,%d) (type %d) expected %d, got %d", paddr, port, type, 72 int port = 30000; local 102 rc |= test_bind(argv[1], &uc_addr, port, SOCK_STREAM, 0); 103 rc |= test_bind(argv[2], &err_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 105 rc |= test_bind(argv[3], &bc_addr, port, SOCK_STREAM, 0); 107 rc |= test_bind(argv[3], &bc_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 110 rc |= test_bind(argv[2], &err_addr, port, SOCK_STREAM, EADDRNOTAVAIL); 111 rc |= test_bind(argv[3], &bc_addr, port, SOCK_DGRA [all...] |
/netbsd-current/sys/arch/x86/x86/ |
H A D | vga_post.c | 68 vm86_emu_inb(struct X86EMU *emu, uint16_t port) argument 72 if (port == 0xb2) /* APM scratch register */ 75 if (port >= 0x80 && port < 0x88) /* POST status register */ 78 if (x86emu_i8254_claim_port(&sc->i8254, port) && 0) { 79 return x86emu_i8254_inb(&sc->i8254, port); 81 return inb(port); 85 vm86_emu_inw(struct X86EMU *emu, uint16_t port) argument 87 if (port >= 0x80 && port < 94 vm86_emu_inl(struct X86EMU *emu, uint16_t port) argument 103 vm86_emu_outb(struct X86EMU *emu, uint16_t port, uint8_t val) argument 120 vm86_emu_outw(struct X86EMU *emu, uint16_t port, uint16_t val) argument 129 vm86_emu_outl(struct X86EMU *emu, uint16_t port, uint32_t val) argument [all...] |
/netbsd-current/external/gpl3/gdb.old/dist/gdb/guile/ |
H A D | scm-ports.c | 39 /* Whether we're using Guile < 2.2 and its clumsy port API. */ 51 explicit ioscm_file_port (SCM port); 60 /* Data for a memory port. */ 64 /* Bounds of memory range this port is allowed to access: [start, end). 91 /* This is the stdio port descriptor, scm_ptob_descriptor. */ 99 static /*const*/ char stdio_port_desc_name[] = "gdb:stdio-port"; 101 /* Names of each gdb port. */ 106 /* This is the actual port used from Guile. 113 /* Internal enum for specifying output port. */ 116 /* This is the memory port descripto 163 SCM port; local 217 ioscm_input_waiting(SCM port) argument 281 ioscm_fill_input(SCM port) argument 308 ioscm_write(SCM port, const void *data, size_t size) argument 333 ioscm_flush(SCM port) argument 351 ioscm_read_from_port(SCM port, SCM dst, size_t start, size_t count) argument 374 ioscm_write(SCM port, SCM src, size_t start, size_t count) argument 434 ioscm_init_stdio_buffers(SCM port, long mode_bits) argument 473 ioscm_init_stdio_buffers(SCM port, long mode_bits) argument 493 SCM port; local 566 ioscm_file_port(SCM port) argument 585 ioscm_with_output_to_port_worker(SCM port, SCM thunk, enum oport oport, const char *func_name) argument 635 gdbscm_percent_with_gdb_output_to_port(SCM port, SCM thunk) argument 650 gdbscm_percent_with_gdb_error_to_port(SCM port, SCM thunk) argument 703 gdbscm_memory_port_fill_input(SCM port) argument 733 gdbscm_memory_port_end_input(SCM port, int offset) argument 766 gdbscm_memory_port_flush(SCM port) argument 796 gdbscm_memory_port_seek(SCM port, scm_t_off offset, int whence) argument 888 gdbscm_memory_port_write(SCM port, const void *void_data, size_t size) argument 955 gdbscm_memory_port_close(SCM port) argument 976 gdbscm_memory_port_free(SCM port) argument 990 ioscm_reinit_memory_port(SCM port, size_t read_buf_size, size_t write_buf_size, const char *func_name) argument 1054 gdbscm_get_natural_buffer_sizes(SCM port, size_t *read_size, size_t *write_size) argument 1069 gdbscm_memory_port_read(SCM port, SCM dst, size_t start, size_t count) argument 1093 gdbscm_memory_port_write(SCM port, SCM src, size_t start, size_t count) argument 1116 gdbscm_memory_port_seek(SCM port, scm_t_off offset, int whence) argument 1135 gdbscm_memory_port_close(SCM port) argument 1147 gdbscm_memory_port_print(SCM exp, SCM port, scm_print_state *pstate) argument 1252 ioscm_init_memory_port_buffers(SCM port) argument 1326 SCM port; local 1401 gdbscm_memory_port_range(SCM port) argument 1405 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1416 gdbscm_memory_port_read_buffer_size(SCM port) argument 1421 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1436 gdbscm_set_memory_port_read_buffer_size_x(SCM port, SCM size) argument 1441 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1466 gdbscm_memory_port_write_buffer_size(SCM port) argument 1471 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1486 gdbscm_set_memory_port_write_buffer_size_x(SCM port, SCM size) argument 1491 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdb/guile/ |
H A D | scm-ports.c | 39 /* Whether we're using Guile < 2.2 and its clumsy port API. */ 51 explicit ioscm_file_port (SCM port); 60 /* Data for a memory port. */ 64 /* Bounds of memory range this port is allowed to access: [start, end). 91 /* This is the stdio port descriptor, scm_ptob_descriptor. */ 99 static /*const*/ char stdio_port_desc_name[] = "gdb:stdio-port"; 101 /* Names of each gdb port. */ 106 /* This is the actual port used from Guile. 113 /* Internal enum for specifying output port. */ 116 /* This is the memory port descripto 163 SCM port; local 217 ioscm_input_waiting(SCM port) argument 281 ioscm_fill_input(SCM port) argument 308 ioscm_write(SCM port, const void *data, size_t size) argument 333 ioscm_flush(SCM port) argument 351 ioscm_read_from_port(SCM port, SCM dst, size_t start, size_t count) argument 374 ioscm_write(SCM port, SCM src, size_t start, size_t count) argument 434 ioscm_init_stdio_buffers(SCM port, long mode_bits) argument 473 ioscm_init_stdio_buffers(SCM port, long mode_bits) argument 493 SCM port; local 566 ioscm_file_port(SCM port) argument 585 ioscm_with_output_to_port_worker(SCM port, SCM thunk, enum oport oport, const char *func_name) argument 634 gdbscm_percent_with_gdb_output_to_port(SCM port, SCM thunk) argument 649 gdbscm_percent_with_gdb_error_to_port(SCM port, SCM thunk) argument 702 gdbscm_memory_port_fill_input(SCM port) argument 732 gdbscm_memory_port_end_input(SCM port, int offset) argument 765 gdbscm_memory_port_flush(SCM port) argument 795 gdbscm_memory_port_seek(SCM port, scm_t_off offset, int whence) argument 887 gdbscm_memory_port_write(SCM port, const void *void_data, size_t size) argument 954 gdbscm_memory_port_close(SCM port) argument 975 gdbscm_memory_port_free(SCM port) argument 989 ioscm_reinit_memory_port(SCM port, size_t read_buf_size, size_t write_buf_size, const char *func_name) argument 1053 gdbscm_get_natural_buffer_sizes(SCM port, size_t *read_size, size_t *write_size) argument 1068 gdbscm_memory_port_read(SCM port, SCM dst, size_t start, size_t count) argument 1092 gdbscm_memory_port_write(SCM port, SCM src, size_t start, size_t count) argument 1115 gdbscm_memory_port_seek(SCM port, scm_t_off offset, int whence) argument 1134 gdbscm_memory_port_close(SCM port) argument 1146 gdbscm_memory_port_print(SCM exp, SCM port, scm_print_state *pstate) argument 1251 ioscm_init_memory_port_buffers(SCM port) argument 1325 SCM port; local 1400 gdbscm_memory_port_range(SCM port) argument 1404 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1415 gdbscm_memory_port_read_buffer_size(SCM port) argument 1420 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1435 gdbscm_set_memory_port_read_buffer_size_x(SCM port, SCM size) argument 1440 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1465 gdbscm_memory_port_write_buffer_size(SCM port) argument 1470 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local 1485 gdbscm_set_memory_port_write_buffer_size_x(SCM port, SCM size) argument 1490 SCM_ASSERT_TYPE (gdbscm_is_memory_port (port), port, SCM_ARG1, FUNC_NAME, local [all...] |
/netbsd-current/etc/defaults/ |
H A D | npf.boot.conf | 21 pass stateful out to any port domain 29 pass out family inet4 proto udp from any port bootpc to any port bootps 30 pass in family inet4 proto udp from any port bootps to any port bootpc 31 pass out family inet6 proto udp from any port "dhcpv6-client" to any port "dhcpv6-server" 32 pass in family inet6 proto udp from any port "dhcpv6-server" to any port "dhcpv6-client"
|
/netbsd-current/sys/net/agr/ |
H A D | if_agrmonitor.c | 43 agrport_monitor(struct agr_port *port) argument 45 struct agr_softc *sc = AGR_SC_FROM_PORT(port); 51 if ((~port->port_ifp->if_flags & (IFF_RUNNING | IFF_UP)) == 0) { 54 error = agr_port_getmedia(port, &media, &status); 73 if (port->port_media == media) 76 port->port_media = media; 78 (*sc->sc_iftop->iftop_portstate)(port);
|
/netbsd-current/crypto/external/cpl/trousers/dist/src/tspi/ |
H A D | tsp_tcsi_param.c | 37 get_port_from_env(int *port) argument 52 *port = atoi(raw_port_str); 54 if (*port < 0 || *port > 65535) { 55 LogError("Environment var %s contains invalid port value!", PORT_ENV_VAR); 63 convert_port_to_str(int port, char port_str[TCP_PORT_STR_MAX_LEN]) argument 65 if (snprintf(port_str, TCP_PORT_STR_MAX_LEN, "%d", port) < 0) 74 int rv, port = 0; local 76 // Retrieves port from env var first 77 rv = get_port_from_env(&port); [all...] |
/netbsd-current/lib/libarch/alpha/ |
H A D | alpha_pci_io.c | 150 uint32_t *port; local 153 port = (uint32_t *) ((char *)abw->abw_addr + 158 return (port); 164 uint32_t *port = alpha_pci_io_swiz(ioaddr, 0); local 169 return ((*port >> (8 * offset)) & 0xff); 175 uint32_t *port = alpha_pci_io_swiz(ioaddr, 1); local 180 return ((*port >> (8 * offset)) & 0xffff); 186 uint32_t *port = alpha_pci_io_swiz(ioaddr, 3); local 190 return (*port); 196 uint32_t *port local 207 uint32_t *port = alpha_pci_io_swiz(ioaddr, 1); local 218 uint32_t *port = alpha_pci_io_swiz(ioaddr, 3); local 236 uint8_t *port = (uint8_t *) ((char *)abw->abw_addr + local 249 uint16_t *port = (uint16_t *) ((char *)abw->abw_addr + local 262 uint32_t *port = (uint32_t *) ((char *)abw->abw_addr + local 274 uint8_t *port = (uint8_t *) ((char *)abw->abw_addr + local 286 uint16_t *port = (uint16_t *) ((char *)abw->abw_addr + local 298 uint32_t *port = (uint32_t *) ((char *)abw->abw_addr + local [all...] |
/netbsd-current/sys/dev/ic/ |
H A D | cacvar.h | 45 #define cac_inb(sc, port) \ 46 bus_space_read_1((sc)->sc_iot, (sc)->sc_ioh, port) 47 #define cac_inw(sc, port) \ 48 bus_space_read_2((sc)->sc_iot, (sc)->sc_ioh, port) 49 #define cac_inl(sc, port) \ 50 bus_space_read_4((sc)->sc_iot, (sc)->sc_ioh, port) 51 #define cac_outb(sc, port, val) \ 52 bus_space_write_1((sc)->sc_iot, (sc)->sc_ioh, port, val) 53 #define cac_outw(sc, port, val) \ 54 bus_space_write_2((sc)->sc_iot, (sc)->sc_ioh, port, va [all...] |
/netbsd-current/external/bsd/ntp/dist/lib/isc/include/isc/ |
H A D | portset.h | 25 * (UDP or TCP) port numbers, e.g., for creating an ACL list. An isc_portset_t 26 * object is an opaque instance of a port set, for which the user can add or 27 * remove a specific port or a range of consecutive ports. This object is 51 * Create a port set and initialize it as an empty set. 65 * Destroy a port set. 68 *\li 'mctx' to be valid and must be the same context given when the port set 74 isc_portset_isset(isc_portset_t *portset, in_port_t port); 76 * Test whether the given port is stored in the portset. 82 * \li #ISC_TRUE if the port is found, ISC_FALSE otherwise. 98 isc_portset_add(isc_portset_t *portset, in_port_t port); [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/include/drm/ |
H A D | drm_audio_component.h | 49 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate); 51 * @get_eld: fill the audio state and ELD bytes for the given port 54 * digital port, and also fetch ELD bytes to the given pointer. 62 int (*get_eld)(struct device *, int port, int pipe, bool *enabled, 82 void (*pin_eld_notify)(void *audio_ptr, int port, int pipe); 84 * @pin2port: Check and convert from pin node to port number 87 * number to a port number in the graphics side.
|