/illumos-gate/usr/src/boot/include/arpa/ |
H A D | inet.h | 160 char *inet_ntoa_r(struct in_addr, char *buf, socklen_t size);
|
/illumos-gate/usr/src/boot/include/netinet/ |
H A D | in.h | 407 #define IP_OPTIONS 1 /* buf/ip_opts; set/get IP options */ 648 char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | bootp.c | 623 char *vp, *endv, buf[256]; /* the value buffer */ local 648 vp = buf; 650 endv = buf + sizeof(buf) - 1 - 16; /* last valid write position */ 663 if (vp != buf) 679 bcopy(cp, buf, size); /* cannot overflow */ 680 buf[size] = 0; 694 if (vp != buf) 703 bcopy(cp, buf, size); /* cannot overflow */ 704 buf[siz [all...] |
H A D | bzipfs.c | 67 static int bzf_read(struct open_file *f, void *buf, size_t size, size_t *resid); 230 bzf_read(struct open_file *f, void *buf, size_t size, size_t *resid) argument 235 bzf->bzf_bzstream.next_out = buf; /* where and how much */ 373 char buf[1024]; local 383 err = bzf_read(&f, buf, sizeof(buf), &resid); 384 } while (err == 0 && resid != sizeof(buf));
|
H A D | cd9660.c | 67 static int cd9660_read(struct open_file *f, void *buf, size_t size, 69 static int cd9660_write(struct open_file *f, void *buf, size_t size, 277 void *buf; local 286 buf = malloc(buf_size = ISO_DEFAULT_BLOCK_SIZE); 287 vd = buf; 291 0, ISO_DEFAULT_BLOCK_SIZE, buf, &read); 327 buf, &read); 335 dp = (struct iso_directory_record *) buf; 390 0, ISO_DEFAULT_BLOCK_SIZE, buf, &read); 397 dp = (struct iso_directory_record *)buf; 469 char *buf, *addr; local 502 char *buf, *name; local [all...] |
H A D | dosfs.c | 47 static int dos_read(struct open_file *fd, void *buf, size_t size, size_t *resid); 141 u_char *buf; member in struct:fatcache 164 if (fat.buf != NULL) { /* can we reuse old buffer? */ 166 free(fat.buf); /* no, free old buffer */ 167 fat.buf = NULL; 171 if (fat.buf == NULL) 172 fat.buf = malloc(secbyt(fs->spf)); 174 if (fat.buf != NULL) { 175 if (ioget(fd, fs->lsnfat, 0, fat.buf, secbyt(fs->spf)) == 0) { 181 if (fat.buf ! 196 u_char *buf; local 295 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) argument 422 char buf[11]; local 770 u_char buf[4]; local 825 ioread(DOS_FS *fs, u_int offset, void *buf, u_int nbyte) argument 860 ioget(struct open_file *fd, daddr_t lsec, size_t offset, void *buf, u_int size) argument [all...] |
H A D | ext2fs.c | 99 static int ext2fs_read(struct open_file *f, void *buf, 342 char *cp, *ncp, *path = NULL, *buf = NULL; local 504 if (! buf) 505 buf = malloc(fs->fs_bsize); 513 fs->fs_bsize, buf, &buf_size); 517 bcopy((char *)buf, namebuf, link_len); 541 if (buf) 542 free(buf); 563 char *buf; local 570 buf 762 char *buf; local 821 char *buf; local 887 char *buf; local [all...] |
H A D | gets.c | 42 ngets(char *buf, int n) argument 47 for (lp = buf;;) 56 if (lp > buf) { 67 for (p = buf; p < lp; ++p) 73 lp = buf; 77 if ((n < 1) || ((lp - buf) < n - 1)) { 86 fgetstr(char *buf, int size, int fd) argument 105 *buf++ = c; /* keep char */ 109 *buf = 0;
|
H A D | gzipfs.c | 50 static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid); 240 zf_read(struct open_file *f, void *buf, size_t size, size_t *resid) argument 245 zf->zf_zstream.next_out = buf; /* where and how much */
|
H A D | nandfs.c | 129 nandfs_crc32(uint32_t crc, const uint8_t *buf, size_t len) argument 141 crc ^= buf[i]; 455 void *buf; local 464 error = nandfs_buf_read(fs, &buf, &buf_size); 472 bcopy(buf, addr, csize); 541 void *buf; local 552 if (nandfs_buf_read(fs, &buf, &buf_size)) { 561 dirent = (struct nandfs_dir_entry *)buf; 769 nandfs_daddr_t blknr, u_int nblks, void *buf, int raw) 795 if (ioread(fs->nf_file, pblks[i] * fs->nf_blocksize, buf, 768 nandfs_read_inode(struct nandfs *fs, struct nandfs_node *node, nandfs_daddr_t blknr, u_int nblks, void *buf, int raw) argument 811 nandfs_read_blk(struct nandfs *fs, nandfs_daddr_t blknr, void *buf, int phys) argument 827 uint8_t *buf; local 1011 ioread(struct open_file *f, off_t pos, void *buf, u_int length) argument [all...] |
H A D | net.c | 225 static char buf[17]; /* strlen(".255.255.255.255") + 1 */ local 228 cp = &buf[sizeof buf];
|
H A D | nfs.c | 194 static int nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid); 195 static int nfs_write(struct open_file *f, void *buf, size_t size, size_t *resid); 338 nfs_readlink(struct nfs_iodesc *d, char *buf) argument 372 bcopy(rdata.d.path, buf, rdata.d.len); 373 buf[rdata.d.len] = 0; 445 char buf[2 * NFS_FHSIZE + 3]; local 496 buf[0] = 'X'; 497 cp = &buf[1]; 503 setenv("boot.nfsroot.nfshandle", buf, 1); 653 nfs_read(struct open_file *f, void *buf, size_ argument 697 nfs_write(struct open_file *f, void *buf, size_t size, size_t *resid) argument 756 static char *buf; local 948 nfs_readlink(struct nfs_iodesc *d, char *buf) argument 1087 char buf[2 * NFS_V3MAXFHSIZE + 3]; local 1302 nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) argument 1346 nfs_write(struct open_file *f, void *buf, size_t size, size_t *resid) argument 1404 static char *buf; local [all...] |
H A D | nullfs.c | 81 int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) argument 86 int null_write (struct open_file *f, void *buf, size_t size, size_t *resid) argument
|
H A D | pager.c | 133 char buf[80]; local 144 hmuch = read(fd, buf, sizeof(buf) - 1); 153 buf[hmuch] = 0; 154 if (pager_output(buf)) {
|
H A D | pkgfs.c | 269 pkg_read(struct open_file *f, void *buf, size_t size, size_t *res) argument 284 p = buf; 319 memcpy(tf->tf_cache, buf, tf->tf_cachesz); 333 char buf[512]; local 368 sz = (delta > sizeof(buf)) ? sizeof(buf) : delta; 369 error = pkg_read(f, buf, sz, &res); 440 get_zipped(struct package *pkg, void *buf, size_t bufsz) argument 444 pkg->pkg_zs.next_out = buf; 707 char buf[51 local [all...] |
H A D | printf.c | 61 static char *ksprintn (char *buf, uintmax_t num, int base, int *len, int upper); 91 sprintf(char *buf, const char *cfmt, ...) argument 97 retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap); 98 buf[retval] = '\0'; 104 char *buf; member in struct:print_buf 120 *(pbuf->buf)++ = ch; 125 snprintf(char *buf, size_t size, const char *cfmt, ...) argument 131 arg.buf = buf; 139 *(arg.buf) 144 vsprintf(char *buf, const char *cfmt, va_list ap) argument 153 vsnprintf(char *buf, size_t size, const char *cfmt, va_list ap) argument [all...] |
H A D | splitfs.c | 50 static int splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid); 106 char *buf, *confname, *cp; local 143 buf = malloc(CONF_BUF); 144 while (fgetstr(buf, CONF_BUF, conffd) > 0) { 145 cp = buf; 155 cp = buf; 159 sf->filesv[sf->filesc - 1] = strdup(buf); 162 free(buf); 193 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) argument 202 nread = read(sf->curfd, buf, siz [all...] |
H A D | stand.h | 105 int (*fo_read)(struct open_file *f, void *buf, 107 int (*fo_write)(struct open_file *f, void *buf, 142 size_t offset, size_t size, char *buf, size_t *rsize); 261 extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3); 262 extern int snprintf(char *buf, size_t size, const char *cfmt, ...) __printflike(3, 4); 263 extern void vsprintf(char *buf, const char *cfmt, __va_list); 264 extern void vsnprintf(char *buf, size_t size, const char *cfmt, __va_list); 271 extern int fgetstr(char *buf, int size, int fd); 366 extern int null_read(struct open_file *f, void *buf, size_t size, size_t *resid); 367 extern int null_write(struct open_file *f, void *buf, size_ [all...] |
H A D | tftp.c | 67 static int tftp_parse_oack(struct tftp_handle *h, char *buf, size_t len); 68 static int tftp_read(struct open_file *f, void *buf, size_t size, size_t *resid); 69 static int tftp_write(struct open_file *f, void *buf, size_t size, size_t *resid); 692 tftp_parse_oack(struct tftp_handle *h, char *buf, size_t len) argument 699 char *val = buf; 708 if (buf[i] == '\0') { 709 if (&buf[i] > val) { 711 val = &buf[i] + 1;
|
H A D | ufs.c | 87 static int ufs_write(struct open_file *f, void *buf, size_t size, size_t *resid); 89 static int ufs_read(struct open_file *f, void *buf, size_t size, size_t *resid); 147 char *buf; local 157 buf = malloc(fs->fs_bsize); 161 buf, &rsize); 170 fp->f_di.di1 = ((struct ufs1_dinode *)buf) 173 fp->f_di.di2 = ((struct ufs2_dinode *)buf) 188 free(buf); 450 char *buf; local 459 rc = buf_read_file(f, &buf, 502 char *buf = NULL; local 726 char *buf; local 836 char *buf; local [all...] |
H A D | uuid_to_string.c | 40 * Dump len characters into *buf from val as hex and update *buf 43 tohex(char **buf, int len, uint32_t val) argument 46 char *walker = *buf; 53 *buf = walker + len;
|
/illumos-gate/usr/src/boot/lib/libz/ |
H A D | adler32.c | 18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} 19 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); 20 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); 21 #define DO8(buf,i) DO4(buf, [all...] |
H A D | crc32.c | 200 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8) 204 unsigned long ZEXPORT crc32(crc, buf, len) 206 const unsigned char FAR *buf; 209 if (buf == Z_NULL) return 0UL; 222 return crc32_little(crc, buf, len); 224 return crc32_big(crc, buf, len); 247 local unsigned long crc32_little(crc, buf, len) 249 const unsigned char FAR *buf; 257 while (len && ((ptrdiff_t)buf & 3)) { 258 c = crc_table[0][(c ^ *buf [all...] |
H A D | deflate.c | 87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 1076 local int read_buf(strm, buf, size) 1078 Bytef *buf; 1088 zmemcpy(buf, strm->next_in, len); 1090 strm->adler = adler32(strm->adler, buf, len); 1094 strm->adler = crc32(strm->adler, buf, len);
|
H A D | deflate.h | 298 void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf, 302 void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
|