/osnet-11/usr/src/lib/libast/common/disc/ |
H A D | sfdcdio.c | 46 static ssize_t diordwr(Sfio_t* f, Void_t* buf, size_t n, Direct_t* di, int type) argument 48 static ssize_t diordwr(f, buf, n, di, type) 50 Void_t* buf; 63 if((P2I(buf)%di->dio.d_mem) == 0 && 77 rv = read(f->file,buf,io); 78 else rv = write(f->file,buf,io); 82 buf = (Void_t*)((char*)buf + rv); 98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,r 105 dioread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument 118 diowrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument [all...] |
/osnet-11/usr/src/lib/libast/common/path/ |
H A D | pathgetlink.c | 37 * return external representation for symbolic link text of name in buf 42 pathgetlink(const char* name, char* buf, int siz) argument 46 if ((n = readlink(name, buf, siz)) < 0) return(-1); 52 buf[n] = 0; 54 if (isspace(*buf)) 63 s = buf; 76 strcpy(buf, tmp);
|
/osnet-11/usr/src/lib/libast/common/port/ |
H A D | astcopy.c | 62 static char* buf; local 84 if (buf) free(buf); 86 if (!(buf = newof(0, char, bufsiz, 0))) return(-1); 88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1;
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfwr.c | 31 static ssize_t sfoutput(Sfio_t* f, char* buf, size_t n) argument 33 static ssize_t sfoutput(f,buf,n) 35 char* buf; 42 wbuf = buf; 43 endbuf = buf+n; 46 { buf += n; 51 sp = buf+1; 52 if(buf[0] == 0 && buf[_Sfpage-1] == 0) 79 if((s = sp-buf) > 125 sfwr(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument [all...] |
/osnet-11/usr/src/lib/libc/port/fp/ |
H A D | aconvert.c | 36 * If arg is finite and nonzero, buf is filled with ndigits hexadecimal 38 * (so ndigits must be at least 1 and buf must be large enough to hold 45 * If arg is zero, buf is filled with ndigits zeros followed by a null, 47 * is called to place an appropriate string in buf, and *exp is set to 56 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) argument 74 fp_infinity : fp_quiet, ndigits, buf); 83 buf[i] = '0'; 84 buf[ndigits] = '\0'; 120 buf[0] = '1'; 123 buf[ 137 __qaconvert(long double *arg, int ndigits, int *exp, int *sign, char *buf) argument 294 __qaconvert(long double *arg, int ndigits, int *exp, int *sign, char *buf) argument 367 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) argument [all...] |
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_stat.c | 69 pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 81 return (stat(path, buf)); 112 adp->arg_object = buf; 113 adp->arg_size = sizeof (*buf); 116 adp->arg_object = buf; 117 adp->arg_size = sizeof (*buf); 135 stat64_32_to_n(&statb64_32, buf); 144 pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 156 return (lstat(path, buf)); 187 adp->arg_object = buf; 219 pr_fstat(struct ps_prochandle *Pr, int fd, struct stat *buf) argument 294 pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 373 pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 452 pr_fstat64(struct ps_prochandle *Pr, int fd, struct stat64 *buf) argument [all...] |
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...] |
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvdis.c | 104 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; 108 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; 149 free(ctlbuf.buf); 151 tiptr->ti_ctlbuf = ctlbuf.buf; 184 pptr = (union T_primitives *)ctlbuf.buf; 219 (void) memcpy(discon->udata.buf, databuf.buf, 230 free(ctlbuf.buf); 232 tiptr->ti_ctlbuf = ctlbuf.buf; 234 free(databuf.buf); [all...] |
H A D | t_alloc.c | 47 static int _alloc_buf(struct netbuf *buf, t_scalar_t n, int fields, 105 * 'buf' and 'maxlen' fields of each. 262 _alloc_buf(struct netbuf *buf, t_scalar_t n, int fields, int api_semantics, argument 268 buf->buf = NULL; 269 buf->maxlen = 0; 292 if ((buf->buf = calloc(1, infalloc)) == NULL) { 296 buf->maxlen = infalloc; 301 if ((buf [all...] |
H A D | t_rcvrel.c | 144 free(ctlbuf.buf); 146 tiptr->ti_ctlbuf = ctlbuf.buf; 175 pptr = (union T_primitives *)ctlbuf.buf; 191 if (_t_register_lookevent(tiptr, databuf.buf, 192 databuf.len, ctlbuf.buf, 211 free(ctlbuf.buf); 213 tiptr->ti_ctlbuf = ctlbuf.buf; 215 free(databuf.buf); 217 tiptr->ti_rcvbuf = databuf.buf; 225 free(ctlbuf.buf); [all...] |
H A D | t_rcvreldata.c | 146 free(ctlbuf.buf); 148 tiptr->ti_ctlbuf = ctlbuf.buf; 177 pptr = (union T_primitives *)ctlbuf.buf; 193 if (_t_register_lookevent(tiptr, databuf.buf, 194 databuf.len, ctlbuf.buf, 213 free(ctlbuf.buf); 215 tiptr->ti_ctlbuf = ctlbuf.buf; 217 free(databuf.buf); 219 tiptr->ti_rcvbuf = databuf.buf; 227 free(ctlbuf.buf); [all...] |
/osnet-11/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...] |
/osnet-11/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...] |
/osnet-11/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...] |
/osnet-11/usr/src/lib/libdhcpsvc/modules/util/ |
H A D | util.c | 154 * Given a buffer `buf' of words separated by one or more of the characters 157 * `fields[i]' to point to the beginning of field i in `buf'. Return the 163 field_split(char *buf, unsigned int nfields, char *fields[], const char *seps) argument 169 fields[i] = buf; 174 * strchr(3C) will match `seps' if `*buf' is the NUL byte 178 ch = strchr(seps, *buf); 181 if (ch != NULL && (buf == fields[i] || buf[-1] != '\\')) 183 buf++; 194 if (*buf 296 char *buf = buffer; local 323 const char *buf = buffer; local 354 char *buf = NULL; local [all...] |
/osnet-11/usr/src/lib/libresolv2/include/ |
H A D | port_before.h | 71 #define NET_R_ARGS char *buf, int buflen 73 #define NET_R_COPY buf, buflen 90 #define GROUP_R_ARGS char *buf, int buflen 95 #define HOST_R_ARGS char *buf, int buflen, int *h_errnop 97 #define HOST_R_COPY buf, buflen 98 #define HOST_R_COPY_ARGS char *buf, int buflen 110 #define NGR_R_ARGS char *buf, int buflen 112 #define NGR_R_COPY buf, buflen 130 #define PROTO_R_ARGS char *buf, int buflen 132 #define PROTO_R_COPY buf, bufle [all...] |
/osnet-11/usr/src/lib/libnsl/des/ |
H A D | des_crypt.c | 98 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec) argument 106 err = common_crypt(key, buf, len, mode, &dp); 122 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode) argument 128 return (common_crypt(key, buf, len, mode, &dp)); 144 common_crypt(char *key, char *buf, unsigned len, unsigned mode, argument 170 DESCOPY(buf, desp->des_data, len); 172 DESCOPY(desp->des_data, buf, len); 174 desp->des_buf = (uchar_t *)buf; 184 if (!__des_crypt(buf, len, desp)) 192 desN_crypt(des_block keys[], int keynum, char *buf, unsigne argument 231 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len, uint_t mode, char *ivec) argument [all...] |
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SAttrMsg.java | 76 StringBuffer buf = new StringBuffer(); 84 hdr.getString(buf, dis); 86 String urlOrServiceType = buf.toString(); 112 hdr.getString(buf, dis); 114 tags = hdr.parseCommaSeparatedListIn(buf.toString(), true); 122 hdr.getString(buf, dis); 124 spi = buf.toString();
|
/osnet-11/usr/src/lib/libdhcputil/common/ |
H A D | dhcpmsg.c | 59 char buf[512]; local 75 (void) snprintf(buf, sizeof (buf), (errlevel == MSG_ERR && 77 (void) vsyslog(err_to_syslog(errlevel), buf, ap); local 83 (void) snprintf(buf, sizeof (buf), (errlevel == MSG_ERR && 88 (void) vfprintf(stderr, buf, ap);
|
/osnet-11/usr/src/lib/libuutil/common/ |
H A D | uu_alloc.c | 56 char *buf = NULL; local 62 buf = uu_zalloc(sz); 63 if (buf != NULL) 64 (void) memcpy(buf, str, sz); 66 return (buf); 96 uu_memdup(const void *buf, size_t sz) argument 103 (void) memcpy(p, buf, sz);
|
/osnet-11/usr/src/lib/nsswitch/files/common/ |
H A D | bootparams_getbyname.c | 89 if (be->buf == 0 && 90 (be->buf = (char *)malloc(be->minbuf)) == 0) { 99 char *instr = be->buf; 150 if (args->buf.buflen <= linelen) { /* not enough buffer */ 154 (void) memcpy(args->buf.buffer, p, linelen); 155 args->buf.buffer[linelen] = '\0'; 156 args->returnval = args->buf.result;
|
/osnet-11/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, '.');
|
/osnet-11/usr/src/lib/fm/libasr/common/ |
H A D | asr.c | 1093 asr_msg_start(asr_handle_t *ah, asr_buf_t *buf) argument 1096 return (asr_msg_tstart(ah, buf, timebuf, sizeof (timebuf))); 1121 asr_msg_tstart(asr_handle_t *ah, asr_buf_t *buf, char *timebuf, size_t tlen) argument 1154 err = asr_buf_append_str(buf, 1156 err |= asr_buf_append_str(buf, 1159 err |= asr_buf_append_str(buf, 1162 err |= asr_buf_append_str(buf, 1165 err |= asr_buf_append_xml_nv(buf, 1, "site-id", site_id); 1166 err |= asr_buf_append_xml_nv(buf, 1, "host-id", ah->asr_host_id); 1167 err |= asr_buf_append_xml_nvtoken(buf, 1229 asr_buf_t *buf = asr_buf_alloc(ASR_ACTIVATE_BUFSIZE); local 1289 asr_buf_t *buf = asr_buf_alloc(1024); local 1319 asr_buf_t *buf = asr_buf_alloc(1024); local 1350 asr_buf_t *mailto, *buf; local 1419 asr_buf_t *buf = asr_buf_alloc(1024); local 1467 asr_buf_t *buf = asr_buf_alloc(1024); local [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_door.c | 50 char *buf = NULL; local 55 if ((err = smbfs_door_encode(SMBIOD_START, NULL, &buf, &buflen)) != 0) 62 if ((err = smbfs_door_call(buf, buflen, &da)) != 0) { 63 free(buf); 66 free(buf); 78 char *buf = NULL; local 87 &buf, &buflen)) != 0) 94 if ((err = smbfs_door_call(buf, buflen, &da)) != 0) { 95 free(buf); 98 free(buf); 111 char *buf = NULL; local 146 smbfs_door_decode(char *buf, size_t buflen, int *cmd, smbfs_passwd_t *pwdinfo) argument 189 smbfs_door_encode(int cmd, smbfs_passwd_t *pwdinfo, char **buf, size_t *buflen) argument 228 smbfs_door_call(char *buf, size_t buflen, door_arg_t *da) argument [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | chk_trans.c | 141 maybe_join (krb5_data *last, krb5_data *buf, unsigned int bufsiz) argument 143 if (buf->length == 0) 145 if (buf->data[0] == '/') { 146 if (last->length + buf->length > bufsiz) { 147 Tprintf (("too big: last=%d cur=%d max=%d\n", last->length, buf->length, bufsiz)); 150 memmove (buf->data+last->length, buf->data, buf->length); 151 memcpy (buf->data, last->data, last->length); 152 buf 177 char buf[MAXLEN], last[MAXLEN]; local [all...] |