Searched refs:buf (Results 326 - 350 of 1692) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/lib/nsswitch/compat/common/
H A Dgetgrent.c235 struct group *g = (struct group *)argp->buf.result;
236 char *buf; local
254 if ((buf = malloc(NSS_LINELEN_GROUP)) == 0) {
258 s = buf;
272 if (s + len + 1 <= buf + NSS_LINELEN_GROUP) {
279 free(buf);
285 dlen = s - buf;
292 argp->buf.result = NULL;
294 if (dlen > argp->buf.buflen) {
297 (void) strncpy(argp->buf
[all...]
/osnet-11/usr/src/lib/nsswitch/files/common/
H A Dgetprofattr.c97 char buf[NSS_BUFLEN_PROFATTR]; local
165 res = _kva2str(kv1, buf, sizeof (buf), KV_ASSIGN, KV_DELIMITER);
169 return (strdup(buf));
189 char *buf = alloca(pa->len + 1); local
208 if (_str2profattr(pa->line, pa->len, &myat, buf, pa->len + 1)
239 char *buf; local
267 buf = alloca(len);
268 len = snprintf(buf, len, "%s:%s:%s:%s:%s",
277 buf
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Dmacro.c138 char buf[5]; local
142 buf[0] = m->metaval;
143 buf[1] = '\0';
144 macdefine(&e->e_macro, A_TEMP, m->metaname, buf);
146 buf[0] = MATCHREPL;
147 buf[2] = '\0';
150 buf[1] = c;
151 macdefine(&e->e_macro, A_TEMP, c, buf);
171 ** buf -- the place to put the expansion.
186 doexpand(s, buf, bufsiz
351 xputs(sm_debug_file(), buf); local
639 char buf[2]; local
643 xputs(sm_debug_file(), buf); local
[all...]
H A Derr.c54 static char buf[256]; local
63 sm_strio_init(&f, buf, sizeof(buf));
78 syserr("!%s", buf);
321 char buf[MAXLINE]; local
323 (void) sm_snprintf(buf, sizeof(buf),
325 (int) sizeof(buf) - 22, errtxt);
327 sm_rpool_strdup_x(CurEnv->e_rpool, buf);
408 char buf[MAXLIN local
982 static char buf[MAXLINE]; local
[all...]
/osnet-11/usr/src/lib/libsec/common/
H A Dacltext.c466 char buf[16]; local
469 buf[0] = 'r';
471 buf[0] = '-';
473 buf[1] = 'w';
475 buf[1] = '-';
477 buf[2] = 'x';
479 buf[2] = '-';
481 buf[3] = 'p';
483 buf[3] = '-';
485 buf[
642 char buf[9]; local
841 char buf[4]; local
1000 char *buf; local
[all...]
/osnet-11/usr/src/lib/libast/common/comp/
H A Dsyslog.c197 char buf[PATH_MAX];
199 if (pathgetlink(path, buf, sizeof(buf)) <= 0)
201 if (strlen(path) >= sizeof(buf))
203 strcpy(buf, path);
211 if ((ul = strlen(buf)) < sizeof(ua.sun_path) && !stat(buf, &st) && S_ISSOCK(st.st_mode))
216 strcpy(ua.sun_path, buf);
225 if (!strmatch(buf, "/dev/(tcp|udp)/*/*"))
227 buf[
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-fstest.c76 read_file (char *pathname, int (*hook) (grub_off_t ofs, char *buf, int len)) argument
78 static char buf[BUF_SIZE]; local
102 if (grub_disk_read (dev->disk, 0, skip, len, buf))
106 if (hook (skip, buf, len))
146 sz = grub_file_read (file, buf, (len > BUF_SIZE) ? BUF_SIZE : len);
154 if ((sz == 0) || (hook (ofs, buf, sz)))
169 auto int cp_hook (grub_off_t ofs, char *buf, int len);
170 int cp_hook (grub_off_t ofs, char *buf, int len) argument
174 if ((int) fwrite (buf, 1, len, ff) != len)
197 auto int cat_hook (grub_off_t ofs, char *buf, in
198 cat_hook(grub_off_t ofs, char *buf, int len) argument
221 cmp_hook(grub_off_t ofs, char *buf, int len) argument
270 hex_hook(grub_off_t ofs, char *buf, int len) argument
286 crc_hook(grub_off_t ofs, char *buf, int len) argument
472 char buf[1024]; local
483 grub_uint8_t buf[1024]; local
[all...]
/osnet-11/usr/src/lib/libreparse/common/
H A Dfs_reparse_lib.c98 char *buf, *stype, *val; local
106 if ((buf = malloc(buflen)) == NULL)
110 (void) snprintf(buf, buflen, "%s", FS_REPARSE_TAG_STR);
116 if ((strlcat(buf, FS_TOKEN_START_STR, buflen) >= buflen) ||
117 (strlcat(buf, stype, buflen) >= buflen) ||
118 (strlcat(buf, ":", buflen) >= buflen) ||
120 (strlcat(buf, val, buflen) >= buflen) ||
121 (strlcat(buf, FS_TOKEN_END_STR, buflen) >= buflen)) {
128 free(buf);
131 if (strlcat(buf, FS_REPARSE_TAG_END_ST
153 reparse_deref(const char *svc_type, const char *svc_data, char *buf, size_t *bufsz) argument
218 char *buf; local
[all...]
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSunServerDATable.java332 StringBuffer buf = new StringBuffer();
335 buf.append("(");
336 buf.append(SunDATable.SCOPES_ID);
337 buf.append("=");
338 buf.append((String)scopes.elementAt(i));
339 buf.append(")");
345 buf.insert(0, "(|");
346 buf.append(")");
353 buf.insert(0, "(&");
357 buf
[all...]
H A DAttributeString.java72 StringBuffer buf = new StringBuffer();
78 buf.append(tk.nextToken().toLowerCase(nlocale));
79 buf.append(ServiceLocationAttribute.SPACE);
83 return buf.toString().trim();
H A DSLPV1SSrvTypeMsg.java65 StringBuffer buf = new StringBuffer();
84 buf.setLength(0);
86 hdr.getString(buf, dis);
88 String scope = buf.toString().trim().toLowerCase();
H A DSunDATable.java277 StringBuffer buf = new StringBuffer();
281 buf.append("(");
282 buf.append(SCOPES_ID);
283 buf.append("=");
284 buf.append((String)scopes.elementAt(i));
285 buf.append(")");
291 buf.insert(0, "(|");
292 buf.append(")");
299 buf.insert(0, "(&");
303 buf
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dcrypto.c87 * Des [en/de]crypt buffer, buf of length, len for each key provided using
91 * encrypt(buf, k[0]), decrypt(buf, k[1]), encrypt(buf, k[2])
92 * decrypt(buf, k[4]) ... encrypt(buf, k[keynum - 1])
94 * done with the first key, i.e., ecrypt(buf, k[0]);
104 __desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len, argument
124 stat = cbc_crypt(keys[j].c, buf, len, m | flags, ivec);
142 stat = cbc_crypt(keys[0].c, buf, le
158 __dh_desN_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode) argument
194 __dh_des_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode) argument
235 gss_buffer_desc buf; /* GSS buffer to hold keys for cipher routine */ local
375 gss_buffer_desc buf; /* Buffer to package tok */ local
411 gss_buffer_desc buf; /* Packaging for sig */ local
[all...]
/osnet-11/usr/src/lib/libadm/common/
H A Dfulldevnm.c154 struct stat64 buf; local
157 if (stat64(new_path, &buf) != 0)
160 if (!S_ISBLK(buf.st_mode))
163 if (raw_dev != buf.st_rdev)
175 struct stat64 buf; local
178 if (stat64(new_path, &buf) != 0)
181 if (!S_ISCHR(buf.st_mode))
184 if (blk_dev != buf.st_rdev)
338 struct stat64 buf; local
355 if (stat64(cp, &buf) !
420 struct stat64 buf; local
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dttyname.c360 static char buf[MAX_DEV_PATH]; local
363 (void) strcpy(buf, "/dev/pts/");
364 itoa(minor(fsb->st_rdev), buf+strlen(buf));
372 if (stat64(buf, &stb) != 0) {
382 return (buf);
387 return (buf);
390 return (buf);
403 static char buf[16]; /* big enough for "/dev/XtyXX" */ local
440 (void) snprintf(buf, sizeo
639 char *buf, *ebuf; local
754 char buf[256]; local
[all...]
/osnet-11/usr/src/lib/libpri/common/
H A Dpri.h44 extern ssize_t pri_get(uint8_t wait, uint64_t *token, uint64_t **buf,
/osnet-11/usr/src/lib/libproc/common/
H A Dpr_ioctl.c39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument
47 return (ioctl(fd, code, buf));
64 adp->arg_value = (long)buf;
71 adp->arg_object = buf;
/osnet-11/usr/src/lib/libldap4/include/
H A Dssl.h22 int SSL_read(SSL s, u_char *buf, u_int len);
23 int SSL_write(SSL s, u_char *buf, u_int len);
24 int SSL_fread(SSL s, u_char *buf, u_int len);
25 int SSL_fwrite(SSL s, u_char *buf, u_int len);
/osnet-11/usr/src/lib/libnls/common/
H A Dnlsrequest.c68 char buf[256]; local
74 buf[0] = 0;
91 len = sprintf(buf, nls_v2_msg, svc_code)+1;/* inc trailing null */
93 if (t_snd(fd, buf, len, 0) < len) {
/osnet-11/usr/src/lib/libnsl/nsl/
H A D_conn_util.c78 creq = (struct T_conn_req *)ctlbufp->buf;
88 call->addr.buf, &creq->DEST_offset) < 0) {
101 call->opt.buf, &creq->OPT_offset) < 0) {
227 pptr = (union T_primitives *)ctlbufp->buf;
253 (void) memcpy(call->addr.buf,
254 ctlbufp->buf + pptr->conn_con.RES_offset,
264 (void) memcpy(call->opt.buf,
265 ctlbufp->buf + pptr->conn_con.OPT_offset,
275 (void) memcpy(call->udata.buf, databuf.buf,
[all...]
/osnet-11/usr/src/lib/libpower/common/
H A Dpm_kernel.c71 config.buf = NULL;
75 if (config.buf != NULL) {
76 free(config.buf);
86 config.buf = malloc(config.size);
87 if (config.buf == NULL) {
101 bzero(config.buf, config.size);
107 free(config.buf);
117 if ((errno = nvlist_unpack(config.buf, config.size, &kres, 0)) != 0) {
118 free(config.buf);
121 free(config.buf);
[all...]
/osnet-11/usr/src/lib/libcmd/common/
H A Ddirname.c102 char buf[PATH_MAX]; local
134 else if(pathpath(argv[0], "", mode, buf, sizeof(buf)))
135 sfputr(sfstdout, buf, '\n');
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_local.h33 char *readcfline(cfp_t *cfp, char *buf, int table_index, int offset);
/osnet-11/usr/src/lib/libfedfs/common/
H A Dget_rp_data.c45 char *res, buf[SYMLINK_MAX + 1]; local
56 sz = readlink(path, buf, SYMLINK_MAX);
59 buf[sz] = '\0';
60 res = strdup(buf);
/osnet-11/usr/src/lib/gss_mechs/mech_dh/backend/crypto/
H A Dmd5.h52 UINT4 buf[4]; /* scratch buffer */ member in struct:__anon1004

Completed in 99 milliseconds

<<11121314151617181920>>