/illumos-gate/usr/src/cmd/vntsd/ |
H A D | write.c | 56 char *buf; member in struct:write_buf 89 * return number of characters in the buf after skipping terminal null 90 * sequence. buf size must be at least sz+1. 93 skip_terminal_null(char *buf, int sz) argument 104 if (buf[0] != 0x40) { 107 buf[i] = buf[i-1]; 110 buf[0] = 0x5e; 122 buf[i] = buf[ 170 read_vcc(vntsd_cons_t *consp, char *buf, ssize_t *sz) argument 212 char buf[VNTSD_MAX_BUF_SIZE+1]; local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | mbchk.c | 60 char buf[8192]; local 62 if (fread (buf, 1, 8192, fp) < 0) 70 unsigned long magic = *((unsigned long *) (buf + i)); 74 mbh = (multiboot_header_t *) (buf + i);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test_subr.c | 49 new_ent->buf = malloc(size); 50 if (new_ent->buf == NULL) { 58 return (new_ent->buf); 65 void *buf) 70 while ((*p) != NULL && (*p)->buf != buf) 75 free(p1->buf); 86 free(p1->buf); 63 mtest_deallocate_buf( mtest_handle_t handle, void *buf) argument
|
/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | vprojname.c | 43 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, argument 69 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL)
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | psexp.c | 78 char *buf; local 98 buf = alloca(nbytes + 1); 99 (void) regerror(err, &psexp->ps_reg, buf, nbytes); 100 (void) strcat(buf, "\n"); 101 uu_warn(buf);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | lookup.c | 110 char buf[256]; local 125 (void)sprintf(buf, "%.*s redefined", 126 sizeof(buf) - sizeof(" redefined"), name); 127 yyerror(buf); 134 (void)sprintf(buf, "%.*s undefined", 135 sizeof(buf) - sizeof(" undefined"), name); 136 yyerror(buf);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/talk/ |
H A D | io.c | 66 char buf[BUFSIZ]; local 109 nb = read(sockt, buf, sizeof (buf)); 116 display(&rem_win, buf, nb); 128 nb = read(0, buf, nb); 129 display(&my_win, buf, nb); 130 write(sockt, buf, nb);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.daytimed/ |
H A D | in.daytimed.c | 50 static char buf[TIMEBUF_SIZE]; local 53 (void) strlcpy(buf, ctime(&clock), sizeof (buf)); 59 buf[TIMEBUF_SIZE - 2] = '\r'; 60 buf[TIMEBUF_SIZE - 1] = '\n'; 62 return (buf); 67 daytime_dg(int s, const struct sockaddr *sap, int sa_size, const void *buf, argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.discardd/ |
H A D | in.discardd.c | 54 noop(int s, const struct sockaddr *sap, int sa_size, const void *buf, size_t sz) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.echod/ |
H A D | in.echod.c | 55 echo_dg(int s, const struct sockaddr *sap, int sa_size, const void *buf, argument 58 (void) safe_sendto(s, buf, bufsiz, 0, sap, sa_size); 65 char buf[BUFSIZ]; local 70 dg_template(echo_dg, STDIN_FILENO, buf, sizeof (buf));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/ |
H A D | in.timed.c | 72 machtime_dg(int s, const struct sockaddr *sap, int sa_len, const void *buf, argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_adsp.c | 121 static char buf[50]; local 122 char *p = buf; 123 char *tail = &buf[sizeof (buf)]; 129 p += snprintf(p, tail-p, p == buf ? "EOM" : " EOM"); 133 p += snprintf(p, tail-p, p == buf ? "Att" : " Att"); 137 (void) snprintf(p, tail-p, "%s%s", p == buf ? "" : " ", 141 return (buf);
|
H A D | snoop_atp.c | 99 static char buf[50]; local 100 char *p = buf; 102 char *tail = &buf[sizeof (buf)]; 127 return (buf);
|
H A D | snoop_socks.c | 36 static void put_socks5_addr(char *cp, const unsigned char *buf, int fraglen); 46 unsigned char *buf = (unsigned char *)line; local 54 switch (buf[0]) { 56 n = buf[1]; 61 (void) memcpy(&ipaddr, &buf[4], 67 (buf[2] << 8) | buf[3]); 75 if (buf[i] == '\0') 77 *cp++ = buf[i]; 93 n = buf[ 258 unsigned char *buf = (unsigned char *)line; local 365 put_socks5_addr(char *cp, const unsigned char *buf, int fraglen) argument [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | ieee1394_link.c | 79 char *buf, *devfspath; local 94 * ieee1394 HBA id, and stuff it in buf 96 if (devfsadm_enumerate_int(p_path, 0, &buf, re, 1)) { 100 devfsadm_print(debug_mid, "ieee1394_process: p_path=%s buf=%s\n", 101 p_path, buf); 103 (void) snprintf(l_path, sizeof (l_path), "1394/hba%s", buf); 105 free(buf);
|
H A D | smp_link.c | 68 char *buf; local 83 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { 88 (void) strcat(l_path, buf); 89 free(buf);
|
H A D | tape_link.c | 66 char *buf; local 92 * omitting minor name field. The logical tape id is returned in buf. 94 if (devfsadm_enumerate_int(l_path, 0, &buf, rules, 1)) { 99 (void) strcat(l_path, buf); 101 free(buf);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | gendeliv.c | 38 char buf[1024], cbuf[256], ybuf[10]; local 96 /* get date string into buf for later...*/ 98 strcpy(buf, asctime(gmtime(<mp))); 100 p = strrchr(buf,' '); 103 strcat(buf,"GMT "); 104 strcat(buf, ybuf); 105 trimnl(buf); 110 fprintf(outfile,"%s %s\n", header[H_DATE].tag, buf); 124 (void) strlcpy(buf, hptr->value, sizeof (buf)); [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | receipt.c | 56 char buf[BUFSIZ]; local 69 snprintf(buf, sizeof (buf), "%s %s", mail, skin(nameof(mp))); 70 if (pp = npopen(buf, "w")) { 99 char buf[LINESIZE]; local 102 istrcpy(buf, sizeof (buf), s1); 103 return substr(buf, s2) != -1;
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_logio.c | 46 logio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 52 rbytes = IOP_READ(io->io_next, buf, nbytes); 56 (void) IOP_WRITE(logio, buf, rbytes); 66 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument 72 wbytes = IOP_WRITE(io->io_next, buf, nbytes); 75 (void) IOP_WRITE(logio, buf, wbytes);
|
H A D | mdb_memio.c | 44 memio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 51 bcopy(mdp->md_buf + mdp->md_off, buf, nbytes); 56 return (IOP_READ(io->io_next, buf, nbytes)); 102 mdb_memio_create(char *buf, size_t size) argument 107 mdp->md_buf = buf;
|
H A D | mdb_stdlib.c | 43 fptos(const char *p, char *buf, size_t buflen, int decpt, int sign, char expchr) argument 45 char *q = buf; 55 buf[buflen - 1] = '\0'; 56 return (buf); 76 return (buf); 82 * same formatting conventions as sprintf(buf, "%+.*e", precision, d). The 89 static char buf[DECIMAL_STRING_LENGTH]; local 95 return (fptos(p, buf, sizeof (buf), decpt, sign, expchr)); 104 static char buf[DECIMAL_STRING_LENGT local [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kmdb_promif_isadep.c | 47 kmdb_prom_obp_writer(caddr_t buf, size_t len) argument 52 prom_putchar(*buf++);
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | asru.c | 35 char buf[32]; local 38 fmdump_date(buf, sizeof (buf), rp), rp->rec_class); 49 char buf[32], state[32]; local 67 fmdump_date(buf, sizeof (buf), rp), uuid, state + 1); 79 char buf[32], state[32]; local 97 fmdump_year(buf, sizeof (buf), rp), rp->rec_nsec, uuid, state + 1);
|
H A D | error.c | 34 char buf[32]; local 37 fmdump_date(buf, sizeof (buf), rp), rp->rec_class); 47 char buf[32]; local 52 fmdump_date(buf, sizeof (buf), rp), rp->rec_class, ena); 62 char buf[32]; local 65 fmdump_year(buf, sizeof (buf), rp), rp->rec_nsec, rp->rec_class);
|