/osnet-11/usr/src/lib/libast/common/string/ |
H A D | strvcmp.c | 35 register unsigned long nb; local 41 na = nb = 0; 45 nb = nb * 10 + *b++ - '0'; 46 if (na < nb) 48 if (na > nb)
|
H A D | strnvcmp.c | 37 register unsigned long nb; local 53 na = nb = 0; 57 nb = nb * 10 + *b++ - '0'; 58 if (na < nb) 60 if (na > nb)
|
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | Opaque.java | 63 Opaque(byte[] nb) { argument 64 bytes = nb;
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_overflow.c | 89 size_t nb, plen; local 113 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { 117 nb = MIN(sz, plen); 118 memmove(p, (char *)h + BTDATAOFF, nb); local 121 if ((sz -= nb) == 0) 147 size_t nb, plen; local 165 nb = MIN(sz, plen); 166 memmove((char *)h + BTDATAOFF, p, nb); 174 if ((sz -= nb) == 0) {
|
/osnet-11/usr/src/grub/grub2/grub-core/net/drivers/emu/ |
H A D | emunet.c | 65 struct grub_net_buff *nb; local 67 nb = grub_netbuff_alloc (1536); 68 if (!nb) 73 grub_netbuff_reserve (nb, 2); 74 if (!nb) 76 grub_netbuff_free (nb); 80 actual = read (fd, nb->data, 1536); 83 grub_netbuff_free (nb); 86 grub_netbuff_put (nb, actual); 88 return nb; [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/net/ |
H A D | netbuff.c | 25 grub_netbuff_put (struct grub_net_buff *nb, grub_size_t len) argument 27 nb->tail += len; 28 if (nb->tail > nb->end) 34 grub_netbuff_unput (struct grub_net_buff *nb, grub_size_t len) argument 36 nb->tail -= len; 37 if (nb->tail < nb->head) 44 grub_netbuff_push (struct grub_net_buff *nb, grub_size_t len) argument 46 nb 54 grub_netbuff_pull(struct grub_net_buff *nb, grub_size_t len) argument 64 grub_netbuff_reserve(struct grub_net_buff *nb, grub_size_t len) argument 77 struct grub_net_buff *nb; local 97 grub_netbuff_free(struct grub_net_buff *nb) argument 104 grub_netbuff_clear(struct grub_net_buff *nb) argument [all...] |
H A D | icmp.c | 43 grub_net_recv_icmp_packet (struct grub_net_buff *nb, argument 55 grub_netbuff_free (nb); 59 icmph = (struct icmp_header *) nb->data; 61 if (nb->tail - nb->data < (grub_ssize_t) sizeof (*icmph)) 63 grub_netbuff_free (nb); 69 if (checksum != grub_net_ip_chksum (nb->data, nb->tail - nb->data)) 76 err = grub_netbuff_pull (nb, sizeo [all...] |
H A D | ethernet.c | 53 struct grub_net_buff *nb, 62 err = grub_netbuff_push (nb, sizeof (*eth)); 65 eth = (struct etherhdr *) nb->data; 79 return inf->card->driver->send (inf->card, nb); 83 grub_net_recv_ethernet_packet (struct grub_net_buff *nb, argument 94 eth = (struct etherhdr *) nb->data; 96 err = grub_netbuff_pull (nb, sizeof (*eth)); 102 llch = (struct llchdr *) nb->data; 107 err = grub_netbuff_pull (nb, sizeof (*llch)); 110 snaph = (struct snaphdr *) nb 52 send_ethernet_packet(struct grub_net_network_level_interface *inf, struct grub_net_buff *nb, grub_net_link_level_address_t target_addr, grub_net_ethertype_t ethertype) argument [all...] |
H A D | arp.c | 54 struct grub_net_buff nb; local 73 nb.head = arp_data; 74 nb.end = arp_data + sizeof (arp_data); 75 grub_netbuff_clear (&nb); 76 grub_netbuff_reserve (&nb, 128); 78 err = grub_netbuff_push (&nb, sizeof (*arp_header) + 2 * (6 + addrlen)); 82 arp_header = (struct arphdr *) nb.data; 104 nbd = nb.data; 105 send_ethernet_packet (inf, &nb, target_hw_addr, GRUB_NET_ETHERTYPE_ARP); 113 nb 121 grub_net_arp_receive(struct grub_net_buff *nb, struct grub_net_card *card) argument [all...] |
H A D | udp.c | 35 grub_err_t (*recv_hook) (grub_net_udp_socket_t sock, struct grub_net_buff *nb, 66 struct grub_net_buff *nb, 112 struct grub_net_buff *nb) 119 err = grub_netbuff_push (nb, sizeof (*udph)); 123 udph = (struct udphdr *) nb->data; 128 udph->len = grub_cpu_to_be16 (nb->tail - nb->data); 130 udph->chksum = grub_net_ip_transport_checksum (nb, GRUB_NET_IP_UDP, 135 &(socket->ll_target_addr), nb, 140 grub_net_recv_udp_packet (struct grub_net_buff *nb, argument 63 grub_net_udp_open(grub_net_network_level_address_t addr, grub_uint16_t out_port, grub_err_t (*recv_hook) (grub_net_udp_socket_t sock, struct grub_net_buff *nb, void *data), void *recv_hook_data) argument 111 grub_net_send_udp_packet(const grub_net_udp_socket_t socket, struct grub_net_buff *nb) argument [all...] |
H A D | http.c | 60 ret += pack->nb->tail - pack->nb->data; 162 struct grub_net_buff *nb, 171 char *ptr = (char *) nb->data; 176 ptr = grub_memchr (nb->data, '\n', nb->tail - nb->data); 182 ptr = (char *) nb->tail; 185 data->current_line_len + (ptr - (char *) nb->data)); 188 grub_netbuff_free (nb); 161 http_receive(grub_net_tcp_socket_t sock __attribute__ ((unused)), struct grub_net_buff *nb, void *f) argument 285 struct grub_net_buff *nb; local [all...] |
H A D | bootp.c | 351 grub_net_process_dhcp (struct grub_net_buff *nb, argument 364 0, (const struct grub_net_bootp_packet *) nb->data, 365 (nb->tail - nb->data), 0, 0, 0); 566 struct grub_net_buff *nb; local 573 nb = grub_netbuff_alloc (sizeof (*pack)); 574 if (!nb) 576 grub_netbuff_free (nb); 579 err = grub_netbuff_reserve (nb, sizeof (*pack) + 64 + 128); 582 grub_netbuff_free (nb); [all...] |
H A D | icmp6.c | 104 grub_net_recv_icmp6_packet (struct grub_net_buff *nb, argument 116 icmph = (struct icmp_header *) nb->data; 118 if (nb->tail - nb->data < (grub_ssize_t) sizeof (*icmph)) 120 grub_netbuff_free (nb); 126 if (checksum != grub_net_ip_transport_checksum (nb, 133 grub_net_ip_transport_checksum (nb, 138 grub_netbuff_free (nb); 143 err = grub_netbuff_pull (nb, sizeof (*icmph)); 146 grub_netbuff_free (nb); 442 struct grub_net_buff *nb; local [all...] |
H A D | ip.c | 126 struct grub_net_buff * nb, 137 while (nb->tail - nb->data) 143 if ((grub_ssize_t) len > nb->tail - nb->data) 144 len = nb->tail - nb->data; 162 == nb->tail - nb->data) 175 grub_memcpy (iph + 1, nb 124 send_fragmented(struct grub_net_network_level_interface * inf, const grub_net_network_level_address_t * target, struct grub_net_buff * nb, grub_net_ip_protocol_t proto, grub_net_link_level_address_t ll_target_addr) argument 188 grub_net_send_ip4_packet(struct grub_net_network_level_interface *inf, const grub_net_network_level_address_t *target, const grub_net_link_level_address_t *ll_target_addr, struct grub_net_buff *nb, grub_net_ip_protocol_t proto) argument 222 handle_dgram(struct grub_net_buff *nb, struct grub_net_card *card, const grub_net_link_level_address_t *source_hwaddress, const grub_net_link_level_address_t *hwaddress, grub_net_ip_protocol_t proto, const grub_net_network_level_address_t *source, const grub_net_network_level_address_t *dest, grub_uint8_t ttl) argument 340 struct grub_net_buff **nb; local 365 grub_net_recv_ip4_packets(struct grub_net_buff *nb, struct grub_net_card *card, const grub_net_link_level_address_t *hwaddress, const grub_net_link_level_address_t *src_hwaddress) argument 583 grub_net_send_ip6_packet(struct grub_net_network_level_interface *inf, const grub_net_network_level_address_t *target, const grub_net_link_level_address_t *ll_target_addr, struct grub_net_buff *nb, grub_net_ip_protocol_t proto) argument 611 grub_net_send_ip_packet(struct grub_net_network_level_interface *inf, const grub_net_network_level_address_t *target, const grub_net_link_level_address_t *ll_target_addr, struct grub_net_buff *nb, grub_net_ip_protocol_t proto) argument 629 grub_net_recv_ip6_packets(struct grub_net_buff *nb, struct grub_net_card *card, const grub_net_link_level_address_t *hwaddress, const grub_net_link_level_address_t *src_hwaddress) argument 687 grub_net_recv_ip_packets(struct grub_net_buff *nb, struct grub_net_card *card, const grub_net_link_level_address_t *hwaddress, const grub_net_link_level_address_t *src_hwaddress) argument [all...] |
/osnet-11/usr/src/lib/libnisdb/ |
H A D | db_entry.cc | 94 copy_entry(entry_object * old, entry_object *nb) argument 103 nb->en_type = NULL; 105 nb->en_type = strdup(old->en_type); 106 if (nb->en_type == NULL) 115 nb->en_cols.en_cols_val = NULL; 119 if (nb->en_type) 120 delete nb->en_type; 131 if (nb->en_type) 132 delete nb->en_type; 145 nb [all...] |
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/ |
H A D | file_plus.c | 109 unsigned int nb) 184 ret.sector_count = (sect_size < nb) ? sect_size : nb; 190 unsigned int nb) 197 if (sector+nb < sector /* detect overflow */ 198 || sector+nb > file->sect_nb) /* out of file */ { 207 while (nb) { 208 phy_area = hfsplus_file_find_extent(file, sector, nb); 223 nb -= phy_area.sector_count; /* < nb anywa 108 hfsplus_file_find_extent(HfsPPrivateFile* file, PedSector sector, unsigned int nb) argument 189 hfsplus_file_read(HfsPPrivateFile* file, void *buf, PedSector sector, unsigned int nb) argument 232 hfsplus_file_write(HfsPPrivateFile* file, void *buf, PedSector sector, unsigned int nb) argument [all...] |
/osnet-11/usr/src/lib/libast/common/regex/ |
H A D | regdecomp.c | 84 int nb; local 152 nb = ne = ib = ie = -2; 165 else if (nb < 0) 166 ne = nb = m; 171 if (ne == nb) 175 *s++ = nb; 179 ne = nb = m; 207 if (nb >= 0) 209 *s++ = nb; 210 if (ne != nb) [all...] |
/osnet-11/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 342 struct netbuf *nb = NULL; local 389 struct netbuf *nb; local 394 nb = &(tbind->addr); 400 nb->len = nb->maxlen = sizeof (struct sockaddr_in6); 404 nb->len = nb->maxlen = sizeof (struct sockaddr_in); 413 nb->buf = (char *)calloc(1, nb->maxlen); 414 if (nb 521 struct netbuf *nb = NULL; local [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_nb.c | 32 * $Id: nb.c,v 1.1.1.2 2001/07/06 22:38:42 conrad Exp $ 85 smbfs_nb_ctx_setnbflags(struct nb_ctx *nb, int ns_ena, int bc_ena) argument 87 nb->nb_flags &= ~(NBCF_NS_ENABLE | NBCF_BC_ENABLE); 89 nb->nb_flags |= NBCF_NS_ENABLE; 91 nb->nb_flags |= NBCF_BC_ENABLE;
|
/osnet-11/usr/src/lib/fm/topo/modules/sun4/hostbridge/ |
H A D | hb_sun4.c | 126 busorrc_t *nb; local 132 (nb = busorrc_new(mod, ba, n)) == NULL) { 136 busorrc_insert(mod, list, nb);
|
/osnet-11/usr/src/grub/grub2/grub-core/net/drivers/efi/ |
H A D | efinet.c | 79 struct grub_net_buff *nb; local 89 nb = grub_netbuff_alloc (bufsize); 90 if (!nb) 95 grub_netbuff_reserve (nb, 2); 96 if (!nb) 98 grub_netbuff_free (nb); 103 nb->data, NULL, NULL, NULL); 106 grub_netbuff_free (nb); 110 nb = grub_netbuff_alloc (bufsize); 111 if (!nb) [all...] |
/osnet-11/usr/src/grub/grub2/grub-core/net/drivers/ieee1275/ |
H A D | ofnet.c | 83 struct grub_net_buff *nb; local 85 nb = grub_netbuff_alloc (dev->mtu + 64); 88 grub_netbuff_reserve (nb, 2); 89 if (!nb) 91 grub_netbuff_free (nb); 96 rc = grub_ieee1275_read (data->handle, nb->data, dev->mtu + 64, &actual); 100 grub_netbuff_put (nb, actual); 101 return nb; 103 grub_netbuff_free (nb);
|
/osnet-11/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ufs.c | 171 grub_daddr32_t nb, blkno; local 192 nb = INODE->ic_ib[level]; 193 if (nb == 0) { 196 if (indirblk0 != nb) { 198 blkno = fsbtodb(SUPERBLOCK, nb); 202 indirblk0 = nb; 206 nb = INDIRBLK0[index]; 210 if (indirblk1 != nb) { 211 blkno = fsbtodb(SUPERBLOCK, nb); 215 indirblk1 = nb; [all...] |
/osnet-11/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | pppdump.c | 101 int nb, c2; local 117 nb = 0; 125 if (nb >= 16) { 127 for (k = 0; k < nb; ++k) { 132 nb = 0; 134 buf[nb++] = c; 156 for (k = nb; k < 16; ++k) 159 for (k = 0; k < nb; ++k) { 245 int nb, nl, dn, proto, rv; local 285 nb [all...] |
/osnet-11/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 311 size_t nb; /* size of entire block we need */ local 372 nb = (nbytes + grain - 1) / grain * grain; 373 holdblk = holdhead[nb / grain]; 374 nb = nb + MINHEAD; 398 holdhead[(nb-MINHEAD) / grain] = 401 } else if (((char *)holdblk->unused + nb) < 402 ((char *)holdblk + HOLDSZ(nb))) { 404 ((char *)holdblk->unused+nb); 408 ((char *)holdblk->unused+nb); [all...] |