Home
last modified time | relevance | path

Searched refs:resbuf (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/dev/usb/
H A Dusb_hub_acpi.c275 unsigned char *resbuf; in acpi_uhub_parse_pld() local
286 resbuf = obj1->Buffer.Pointer; in acpi_uhub_parse_pld()
289 resbuf = obj->Buffer.Pointer; in acpi_uhub_parse_pld()
294 memcpy(port->pld, resbuf, len); in acpi_uhub_parse_pld()
302 resbuf[0] & 0x7f); in acpi_uhub_parse_pld()
303 if ((resbuf[0] & 0x80) == 0) { in acpi_uhub_parse_pld()
306 resbuf[1], resbuf[2], in acpi_uhub_parse_pld()
307 resbuf[3]); in acpi_uhub_parse_pld()
310 resbuf[4] | (resbuf[5] << 8), in acpi_uhub_parse_pld()
311 resbuf[6] | (resbuf[7] << 8)); in acpi_uhub_parse_pld()
[all …]
/freebsd/libexec/phttpget/
H A Dphttpget.c220 readln(int sd, char * resbuf, int * resbuflen, int * resbufpos) in readln() argument
224 while (strnstr(resbuf + *resbufpos, "\r\n", in readln()
228 memmove(resbuf, resbuf + *resbufpos, in readln()
239 len = recv(sd, resbuf + *resbuflen, BUFSIZ - *resbuflen, 0); in readln()
252 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, in copybytes() argument
264 len = write(fd, resbuf + *resbufpos, len); in copybytes()
273 len = recv(sd, resbuf, BUFSIZ, 0); in copybytes()
295 char * resbuf = NULL; /* Response buffer */ in main() local
334 resbuf = malloc(BUFSIZ); in main()
335 if (resbuf == NULL) in main()
[all …]
/freebsd/usr.bin/ruptime/
H A Druptime.c114 static char resbuf[32]; in interval() local
118 (void)snprintf(resbuf, sizeof(resbuf), "%s ??:??", updown); in interval()
119 return (resbuf); in interval()
128 (void)snprintf(resbuf, sizeof(resbuf), in interval()
131 (void)snprintf(resbuf, sizeof(resbuf), in interval()
133 return (resbuf); in interval()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/nfs/
H A Dtst.call3.c354 void *resbuf = NULL; in dotest() local
398 resbuf = realloc(resbuf, test->ressize); in dotest()
399 if ((argbuf == NULL) || (resbuf == NULL)) { in dotest()
404 bzero(resbuf, test->ressize); in dotest()
407 test->xdrres, resbuf, in dotest()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctf.c528 typedef struct resbuf { struct
665 resbuf_t resbuf; in write_compressed_buffer() local
666 resbuf.rb_size = RES_BUF_CHUNK_SIZE; in write_compressed_buffer()
667 resbuf.rb_base = xmalloc(resbuf.rb_size); in write_compressed_buffer()
668 bcopy(h, resbuf.rb_base, sizeof (ctf_header_t)); in write_compressed_buffer()
669 resbuf.rb_ptr = resbuf.rb_base + sizeof (ctf_header_t); in write_compressed_buffer()
671 compress_start(&resbuf); in write_compressed_buffer()
673 &resbuf); in write_compressed_buffer()
674 compress_flush(&resbuf, Z_FULL_FLUSH); in write_compressed_buffer()
675 (void) strtab_write(&buf->ctb_strtab, compress_buffer, &resbuf); in write_compressed_buffer()
[all …]
/freebsd/usr.sbin/rwhod/
H A Drwhod.c748 static char resbuf[32]; in interval() local
752 (void) sprintf(resbuf, " %s ??:??", updown); in interval()
753 return (resbuf); in interval()
761 (void) sprintf(resbuf, "%s %2d+%02d:%02d", in interval()
764 (void) sprintf(resbuf, "%s %2d:%02d", in interval()
767 return (resbuf); in interval()
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c452 u_char *resbuf, embuf[100]; in dsock_input() local
457 if ((resbuf = malloc(resbufsiz + 1)) == NULL) { in dsock_input()
464 if ((len = NgRecvData(fd, resbuf, resbufsiz + 1, hook)) == -1) { in dsock_input()
467 free(resbuf); in dsock_input()
471 free(resbuf); in dsock_input()
477 free(resbuf); in dsock_input()
488 (*d->func)(hook, resbuf, len, d->arg); in dsock_input()
492 free(resbuf); in dsock_input()