/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dockdeps.c | 210 char buf[512]; local 222 (void) snprintf(buf, sizeof (buf), ERR_INCOMP_VERS, pkginst, pkgname); 223 puttext(stderr, buf, 4, 0); 231 char buf[512]; local 252 (void) snprintf(buf, sizeof (buf), ERR_PRENCI, pkginst, 254 puttext(stderr, buf, 4, 0); 257 (void) snprintf(buf, sizeof (buf), ERR_PRERE 278 char buf[512]; local [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | autoconf.c | 218 getlongprop_buf(int id, char *name, char *buf, int maxlen) argument 226 if (-1 == prom_getprop((pnode_t)id, name, buf)) 235 if (buf[size - 1] != '\0') { 236 buf[size] = '\0'; 250 char buf[OBP_MAXPROPNAME]; local 280 if (getlongprop_buf(snid, OBP_NAME, buf, 281 sizeof (buf)) > 0) { 282 if (check_status(snid, buf, parent) == 284 (void) ddi_add_child(parent, buf, 296 if (getlongprop_buf(cnid, OBP_NAME, buf, sizeo 333 char *buf; local [all...] |
/illumos-gate/usr/src/cmd/lp/filter/postscript/download/ |
H A D | download.c | 109 char buf[2048]; /* input file line buffer */ variable 343 sprintf(buf, "/etc/lp/printers/%s/residentfonts", printer); 344 path = buf; 348 while ( fscanf(fp, "%s", buf) != EOF ) 349 if ( buf[0] == '%' ) 351 else if ( (n = lookup(buf)) < next ) 440 while ( fgets(buf, sizeof(buf), fp_in) != NULL ) { 442 fprintf(fp_temp, "%s", buf); 443 if ( buf[ [all...] |
/illumos-gate/usr/src/lib/libdll/common/ |
H A D | dllnext.c | 75 char buf[1024]; local 139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); 145 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: skip %s\n", vp)); 152 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dl [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | gconvert.c | 38 _gcvt(ndigit, pd, trailing, buf) 41 char *buf; 54 p = buf; 140 gconvert(number, ndigit, trailing, buf) 143 char *buf; 153 _gcvt(ndigit, &dr, trailing, buf); 154 return (buf); 158 gcvt(number, ndigit, buf) 161 char *buf; 163 return (gconvert(number, ndigit, 0, buf)); [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ttyname.c | 360 static char buf[MAX_DEV_PATH]; local 363 (void) strcpy(buf, "/dev/pts/"); 364 itoa(minor(fsb->st_rdev), buf+strlen(buf)); 366 if (stat64(buf, &stb) != 0) 371 return (buf); 374 return (buf); 387 static char buf[16]; /* big enough for "/dev/XtyXX" */ local 424 (void) snprintf(buf, sizeof (buf), "/de 623 char *buf, *ebuf; local 738 char buf[256]; local [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | logger.c | 140 char buf[512]; local 153 vsnprintf (buf, sizeof (buf), format, args); 181 snprintf (logmsg, sizeof(logmsg), "[%d]: %s.%03d %s %s:%d: %s\n", pid, tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf); 183 snprintf (logmsg, sizeof(logmsg), "%s.%03d %s %s:%d: %s\n", tbuf, (int)(tnow.tv_usec/1000), pri, file, line, buf); 213 char buf[512]; local 227 vsnprintf (buf, sizeof (buf), format, args); 234 syslog (LOG_INFO, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); 236 fprintf (stderr, "%d: %s.%03d: %s", pid, tbuf, (int)(tnow.tv_usec/1000), buf); [all...] |
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | v3451.c | 33 struct termios buf; local 54 (void) ioctl(FD, TCGETS, &buf); 55 buf.c_cflag |= HUPCL; 56 (void) ioctl(FD, TCSETSF, &buf); 131 char buf[300]; local 132 char *rp = buf; 151 while (notin(cp, buf) && rp < buf + sizeof (buf) - 1) { 152 if (online && notin("FAILED CALL", buf) [all...] |
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmpeek.c | 74 for(j=0; j<peek_ptr->len; j++) peek_ptr->buf[j] &= 0x7F; 120 struct strbuf *ptr) /* ptr that holds data in ptr->buf */ 126 if (ptr->buf[i] == '\0') { 129 } else if ((ptr->buf[i] == '\n') || (ptr->buf[i] == '\r')) { 149 * - return a ptr to the buf that contains the data 160 static char buf[BUFSIZ]; local 170 peekp->ctlbuf.buf = buf; 172 peekp->databuf.buf [all...] |
/illumos-gate/usr/src/uts/common/sys/sbp2/ |
H A D | impl.h | 80 #define SBP2_ALLOC_BUF(t, buf) (t)->t_bus->sb_alloc_buf((t)->t_bus_hdl, buf) 81 #define SBP2_FREE_BUF(t, buf) (t)->t_bus->sb_free_buf((t)->t_bus_hdl, buf) 82 #define SBP2_SYNC_BUF(t, buf, offset, length, type) \ 83 (t)->t_bus->sb_sync_buf((t)->t_bus_hdl, buf, offset, length, type) 84 #define SBP2_BUF_RD_DONE(t, buf, reqh, error) \ 85 (t)->t_bus->sb_buf_rd_done((t)->t_bus_hdl, buf, reqh, error) 86 #define SBP2_BUF_WR_DONE(t, buf, reqh, error) \ 87 (t)->t_bus->sb_buf_wr_done((t)->t_bus_hdl, buf, req [all...] |
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | lpsched-jobs.c | 63 char buf[256]; local 109 char buf[BUFSIZ]; local 111 papiAttributeListToString(tmp, " ", buf, sizeof (buf)); 112 if ((s = strchr(buf, '=')) != NULL) 134 char buf[256]; local 148 snprintf(buf, sizeof (buf), "%s%s%s", user, 150 user = buf; 180 char buf[12 local 204 char buf[128]; local 273 char *buf = malloc(1024); local 474 char buf[BUFSIZ]; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | mime.c | 125 char buf[MAXLINE]; local 164 cataddr(pvp, NULL, buf, sizeof(buf), '\0', false); 165 cte = sm_rpool_strdup_x(e->e_rpool, buf); 243 (void) sm_snprintf(buf, sizeof(buf), "%.100s/%.100s", type, subtype); 244 if (wordinclass(buf, 'n') || (cte != NULL && !wordinclass(cte, 'e'))) 248 if (wordinclass(buf, 'b') || wordinclass(type, 'b')) 251 if (wordinclass(buf, 'q') || wordinclass(type, 'q')) 327 while (sm_io_fgets(e->e_dfp, SM_TIME_DEFAULT, buf, sizeo 756 static unsigned char buf[128]; /* need not be a full line */ local 1043 char buf[MAXLINE]; local [all...] |
/illumos-gate/usr/src/cmd/mail/ |
H A D | copylet.c | 75 char buf[LSIZE], lastc; local 106 num = ((k < sizeof(buf)) ? k+1 : sizeof(buf)); 107 if (fgets (buf, num, tmpf) == NULL) { 110 if ((n = strlen (buf)) == 0) { 115 lastc = buf[n-1]; 120 htype = isheader (buf, &ctf); 121 Dout(pn, 5, "loop 1: buf = %s, htype= %d/%s\n", buf, htype, header[htype].tag); 124 savehdrs(buf,htyp [all...] |
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/mandoc/ |
H A D | man.c | 59 man_parseln(struct roff_man *man, int ln, char *buf, int offs) argument 65 return roff_getcontrol(man->roff, buf, &offs) ? 66 man_pmacro(man, ln, buf, offs) : 67 man_ptext(man, ln, buf, offs); 91 man_ptext(struct roff_man *man, int line, char *buf, int offs) argument 98 roff_word_alloc(man, line, offs, buf + offs); 103 for (i = offs; buf[i] == ' '; i++) 111 if (buf[i] == '\0') { 126 i = (int)strlen(buf); 129 if (' ' == buf[ 159 man_pmacro(struct roff_man *man, int ln, char *buf, int offs) argument [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_decode.c | 50 retval = asn1_get_tag_2(buf,&tinfo);\ 60 asn1_error_code asn1_decode_integer(asn1buf *buf, long int *val) argument 70 retval = asn1buf_remove_octet(buf, &o); 85 asn1_error_code asn1_decode_unsigned_integer(asn1buf *buf, long unsigned int *val) argument 95 retval = asn1buf_remove_octet(buf, &o); 119 asn1_error_code asn1_decode_maybe_unsigned(asn1buf *buf, unsigned long *val) argument 133 retval = asn1buf_remove_octet(buf, &o); 153 asn1_error_code asn1_decode_oid(asn1buf *buf, unsigned int *retlen, asn1_octet **val) argument 157 retval = asn1buf_remove_octetstring(buf, length, val); 163 asn1_error_code asn1_decode_octetstring(asn1buf *buf, unsigne argument 173 asn1_decode_charstring(asn1buf *buf, unsigned int *retlen, char **val) argument 184 asn1_decode_generalstring(asn1buf *buf, unsigned int *retlen, char **val) argument 195 asn1_decode_null(asn1buf *buf) argument 203 asn1_decode_printablestring(asn1buf *buf, int *retlen, char **val) argument 213 asn1_decode_ia5string(asn1buf *buf, int *retlen, char **val) argument 223 asn1_decode_generaltime(asn1buf *buf, time_t *val) argument [all...] |
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpc_prot.c | 143 int32_t *buf; local 151 (buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT + (rndup = 153 IXDR_PUT_INT32(buf, rmsg->rm_xid); 154 IXDR_PUT_ENUM(buf, rmsg->rm_direction); 155 IXDR_PUT_ENUM(buf, rmsg->rm_reply.rp_stat); 158 IXDR_PUT_ENUM(buf, oa->oa_flavor); 159 IXDR_PUT_INT32(buf, oa->oa_length); 161 bcopy(oa->oa_base, buf, oa->oa_length); 162 buf = (int32_t *)(((caddr_t)buf) 258 int32_t *buf; local [all...] |
/illumos-gate/usr/src/lib/libresolv2/include/ |
H A D | port_before.h | 73 #define NET_R_ARGS char *buf, int buflen 75 #define NET_R_COPY buf, buflen 92 #define GROUP_R_ARGS char *buf, int buflen 97 #define HOST_R_ARGS char *buf, int buflen, int *h_errnop 99 #define HOST_R_COPY buf, buflen 100 #define HOST_R_COPY_ARGS char *buf, int buflen 112 #define NGR_R_ARGS char *buf, int buflen 114 #define NGR_R_COPY buf, buflen 132 #define PROTO_R_ARGS char *buf, int buflen 134 #define PROTO_R_COPY buf, bufle [all...] |
/illumos-gate/usr/src/lib/libnsl/des/ |
H A D | des_crypt.c | 92 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument 99 err = common_crypt(key, buf, len, mode, &dp); 109 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument 114 return (common_crypt(key, buf, len, mode, &dp)); 123 common_crypt(char *key, char *buf, unsigned len, unsigned mode, argument 149 DESCOPY(buf, desp->des_data, len); 151 DESCOPY(desp->des_data, buf, len); 153 desp->des_buf = (uchar_t *)buf; 163 if (!__des_crypt(buf, len, desp)) 169 desN_crypt(des_block keys[], int keynum, char *buf, unsigne argument 207 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len, uint_t mode, char *ivec) argument [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_statvfs.c | 65 pr_statvfs(struct ps_prochandle *Pr, const char *path, statvfs_t *buf) argument 76 return (statvfs(path, buf)); 93 adp->arg_object = buf; 94 adp->arg_size = sizeof (*buf); 97 adp->arg_object = buf; 98 adp->arg_size = sizeof (*buf); 109 statvfs_32_to_n(&statvfs32, buf); 118 pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf) argument 129 return (fstatvfs(fd, buf)); 146 adp->arg_object = buf; [all...] |
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kalloc.c | 89 * 'buf' and 'maxlen' fields of each. 141 p.udata->udata.buf = NULL; 171 _alloc_buf(struct netbuf *buf, t_scalar_t n) argument 175 buf->buf = kmem_zalloc(1024, KM_SLEEP); 176 buf->maxlen = 1024; 177 buf->len = 0; 182 buf->buf = NULL; 183 buf [all...] |
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | getcwd.c | 51 int index; /* index from end of buf */ 104 * return value is placed in buf of len chars 105 * if buf is 0 then space is allocated via malloc() with 111 getcwd(char* buf, size_t len) 144 if (buf && !len) ERROR(EINVAL); 150 if (buf) 154 else if (!(buf = newof(0, char, namlen, len))) ERROR(ENOMEM); 155 return (char*)memcpy(buf, p, namlen); 174 if (!buf) 178 if (!(buf [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 101 char buf[24]; local 109 sprintf(buf, "0x%016llx", (unsigned long long)rsdp); 110 setenv("hint.acpi.0.rsdp", buf, 1); 114 sprintf(buf, "%d", revision); 115 setenv("hint.acpi.0.revision", buf, 1); 116 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId)); 117 buf[sizeof(rsdp->OemId)] = '\0'; 118 setenv("hint.acpi.0.oem", buf, 1); 119 sprintf(buf, "0x%016x", rsdp->RsdtPhysicalAddress); 120 setenv("hint.acpi.0.rsdt", buf, [all...] |
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | bootparams_getbyname.c | 92 if (be->buf == 0 && 93 (be->buf = (char *)malloc(be->minbuf)) == 0) { 102 char *instr = be->buf; 153 if (args->buf.buflen <= linelen) { /* not enough buffer */ 157 (void) memcpy(args->buf.buffer, p, linelen); 158 args->buf.buffer[linelen] = '\0'; 159 args->returnval = args->buf.result;
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetent.c | 40 static int nettoa(int anet, char *buf, int buflen, char **pnull); 105 nettoa(int anet, char *buf, int buflen, char **pnull) argument 113 if (buf == 0) 117 (void) strncpy(buf, inet_ntoa(in), buflen); 119 p = strchr(buf, '.'); 125 p = strchr(buf, '.'); 134 p = strrchr(buf, '.');
|