Searched refs:buf (Results 626 - 650 of 4412) sorted by relevance

<<21222324252627282930>>

/illumos-gate/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...]
H A Dgetpwent.c184 struct passwd *pw = (struct passwd *)argp->buf.result;
185 char *buf = malloc(NSS_LINELEN_PASSWD); local
191 if (buf == 0) {
202 s = buf;
203 buflen = argp->buf.buflen;
234 len = s - buf;
241 argp->buf.result = NULL;
243 if (len > argp->buf.buflen) {
246 (void) strncpy(argp->buf.buffer, buf, le
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dtoken.c123 unsigned char *sv, *buf, *xdrmem; local
159 buf = New(unsigned char, size);
160 if (buf == NULL) {
165 result->value = sv = buf;
171 *buf++ = 0x60;
173 put_der_length(oid_size + token_size, &buf, app_size);
176 *buf++ = 0x06;
178 put_der_length(mech->length, &buf, oid_size);
180 memcpy(buf, mech->elements, mech->length);
219 unsigned char *buf; local
300 unsigned char *buf, *p; local
[all...]
H A Dcrypto.c83 * Des [en/de]crypt buffer, buf of length, len for each key provided using
87 * encrypt(buf, k[0]), decrypt(buf, k[1]), encrypt(buf, k[2])
88 * decrypt(buf, k[4]) ... encrypt(buf, k[keynum - 1])
90 * done with the first key, i.e., ecrypt(buf, k[0]);
100 __desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len, argument
120 stat = cbc_crypt(keys[j].c, buf, len, m | flags, ivec);
138 stat = cbc_crypt(keys[0].c, buf, le
152 __dh_desN_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode) argument
186 __dh_des_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode) argument
225 gss_buffer_desc buf; /* GSS buffer to hold keys for cipher routine */ local
365 gss_buffer_desc buf; /* Buffer to package tok */ local
401 gss_buffer_desc buf; /* Packaging for sig */ local
[all...]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c124 char *buf = NULL; local
129 return (buf);
132 buf = malloc(len +1);
133 if (buf) {
135 (void) strcpy(buf, "");
137 (void) memcpy(buf, ctx->ptr, len);
139 *(buf + len) = '\0';
148 return (buf);
171 ndmp_door_put_string(ndmp_door_ctx_t *ctx, char *buf) argument
175 if (!buf)
195 ndmp_door_free_string(char *buf) argument
296 ndmp_door_get_buf(ndmp_door_ctx_t *ctx, unsigned char *buf, int bufsize) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpcb_st_xdr.c59 rpc_inline_t *buf; local
63 buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT);
64 if (buf == NULL) {
78 IXDR_PUT_U_INT32(buf, objp->prog);
79 IXDR_PUT_U_INT32(buf, objp->vers);
80 IXDR_PUT_U_INT32(buf, objp->proc);
81 IXDR_PUT_INT32(buf, objp->success);
82 IXDR_PUT_INT32(buf, objp->failure);
83 IXDR_PUT_INT32(buf, objp->indirect);
91 buf
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_rexd.c158 char buf[256]; /* temporary buffer */ local
212 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
214 (void) au_write(rd, au_to_text(buf));
219 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
221 (void) au_write(rd, au_to_text(buf));
223 (void) snprintf(buf, sizeof (buf), dgettext(bsm_dom,
225 (void) au_write(rd, au_to_text(buf));
276 char buf[256]; /* temporary buffer */ local
[all...]
/illumos-gate/usr/src/lib/libcmd/common/
H A Ddate.c215 char buf[1024]; local
226 tmxfmt(buf, sizeof(buf), "%m%d%H" "%M%Y.%S", now);
232 tmxfmt(buf, sizeof(buf), "%Y%m%d%H" "%M.%S", now);
238 *argv++ = buf;
279 char buf[1024]; local
433 tmxfmt(buf, sizeof(buf), format, now);
435 sfprintf(sfstdout, "%s: %s\n", s, buf);
[all...]
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dfiles.c82 char buf[BUFSIZ]; local
88 vsnprintf(buf, sizeof (buf), fmt, ap);
90 return (Write(fd, buf, (int)strlen(buf)));
94 fdgets(char *buf, int len, int fd) argument
99 memset(buf, NULL, len);
101 if ((buf[count++] = tmp) == '\n') break;
104 return (buf);
109 fdputs(char *buf, in argument
272 char buf[BUFSIZ]; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DPlatformCommon.c87 char buf[32+1+MAX_ESCAPED_DOMAIN_NAME]; // Option name, one space, option value local
89 if (len + 1 + MAX_ESCAPED_DOMAIN_NAME > sizeof(buf)-1) { LogMsg("GetConfigOption: option %s too long", option); return mDNSfalse; }
91 while (fgets(buf, sizeof(buf), f)) // Read at most sizeof(buf)-1 bytes from file, and append '\0' C-string terminator
93 if (!strncmp(buf, option, len))
95 strncpy(dst, buf + len + 1, MAX_ESCAPED_DOMAIN_NAME-1);
108 char buf[MAX_ESCAPED_DOMAIN_NAME] = ""; local
118 if (DomainDiscoveryDisabled && GetConfigOption(buf, "DomainDiscoveryDisabled", f) && !strcasecmp(buf, "tru
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpriv_str_xlate.c346 char buf[8*1024]; local
361 while (fgets(buf, sizeof (buf), namefp) != NULL) {
364 if (buf[0] == '#')
367 if (buf[0] == '\n') {
376 if (isspace((unsigned char)buf[0]))
380 buf[strlen(buf) - 1] = '\0';
382 if (strcasecmp(buf, priv) != 0) {
387 lp = buf;
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_rawfile.c112 rf_read(mdb_io_t *io, void *buf, size_t nbytes, uint64_t addr) argument
122 if ((rbytes = IOP_READ(io, buf, nbytes)) == 0)
129 rf_write(mdb_io_t *io, const void *buf, size_t nbytes, uint64_t addr) argument
137 return (IOP_WRITE(io, buf, nbytes));
141 rf_aread(mdb_tgt_t *t, mdb_tgt_as_t as, void *buf, argument
148 return (rf_read(RF_CORE(t->t_data), buf, len, addr));
151 return (rf_read(RF_OBJECT(t->t_data), buf, len, addr));
158 rf_awrite(mdb_tgt_t *t, mdb_tgt_as_t as, const void *buf, argument
165 return (rf_write(RF_CORE(t->t_data), buf, len, addr));
168 return (rf_write(RF_OBJECT(t->t_data), buf, le
175 rf_vread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument
184 rf_vwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument
193 rf_pread(mdb_tgt_t *t, void *buf, size_t nbytes, physaddr_t addr) argument
202 rf_pwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, physaddr_t addr) argument
211 rf_fread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument
217 rf_fwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument
335 char *buf = mdb_alloc(m->rfm_len, UM_SLEEP); local
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dsysfiles.c159 char *tok, buf[BUFSIZ]; local
163 while (getaline(f, buf) > 0) {
165 /* strtok's of this buf continue in tokenize() */
166 tok = strtok(buf, " \t");
203 char *tok, buf[BUFSIZ]; local
214 while (getaline(f, buf) > 0) {
216 /* strtok's of this buf continue in tokenize() */
217 tok = strtok(buf, " \t");
249 /* empty buf or line too long! */
463 getsysline(buf, le
746 char buf[BUFSIZ]; local
[all...]
/illumos-gate/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.c56 static char buf[256]; local
65 sm_strio_init(&f, buf, sizeof(buf));
80 syserr("!%s", buf);
323 char buf[MAXLINE]; local
325 (void) sm_snprintf(buf, sizeof(buf),
327 (int) sizeof(buf) - 22, errtxt);
329 sm_rpool_strdup_x(CurEnv->e_rpool, buf);
410 char buf[MAXLIN local
982 static char buf[MAXLINE]; local
[all...]
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c65 char *buf; variable
155 if ((buf = malloc(bufsize)) == NULL) {
161 buf_off = buf;
164 if (buf[buf_len - 1] == '\n' || feof(fptr))
166 tmpbuf = realloc(buf, (bufsize + MYBUFSIZE));
172 buf = tmpbuf;
173 buf_off = buf + buf_len;
183 if (buf[0] == '\n') /* blank lines are ignored */
192 if (buf[buf_len - 1] == '\n') {
193 if ((tmpbuf = strdup(buf))
[all...]
/illumos-gate/usr/src/lib/libsec/common/
H A Dacltext.c458 char buf[16]; local
461 buf[0] = 'r';
463 buf[0] = '-';
465 buf[1] = 'w';
467 buf[1] = '-';
469 buf[2] = 'x';
471 buf[2] = '-';
473 buf[3] = 'p';
475 buf[3] = '-';
477 buf[
634 char buf[9]; local
833 char buf[4]; local
992 char *buf; local
[all...]
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/
H A Din.lpd.c311 char buf[BUFSIZ]; local
313 snprintf(buf, sizeof (buf), "page-ranges=%s",
316 PAPI_ATTR_EXCL, buf);
443 char buf[BUFSIZ]; local
455 if (((rc = fread(buf, 1, rc, ifp)) == 0) &&
461 char *ptr = buf;
495 char buf[BUFSIZ]; local
497 while (fgets(buf, sizeof (buf), if
638 char buf[BUFSIZ]; local
758 char buf[BUFSIZ]; local
[all...]
/illumos-gate/usr/src/cmd/sgs/include/
H A Dconv.h118 char buf[CONV_INV_BUFSIZE]; member in union:__anon70
125 char buf[CONV_EHDR_FLAGS_BUFSIZE]; member in union:__anon71
140 char buf[CONV_LA_BIND_BUFSIZE]; member in union:__anon73
149 char buf[CONV_LA_SEARCH_BUFSIZE]; member in union:__anon74
158 char buf[CONV_LA_SYMBIND_BUFSIZE]; member in union:__anon75
170 char buf[CONV_CAP_VAL_HW1_BUFSIZE]; member in union:__anon76
176 char buf[CONV_CAP_VAL_HW2_BUFSIZE]; member in union:__anon77
182 char buf[CONV_CAP_VAL_SF1_BUFSIZE]; member in union:__anon78
197 char buf[CONV_CONFIG_FEAT_BUFSIZE]; member in union:__anon80
204 char buf[CONV_CONFIG_OBJ_BUFSIZ member in union:__anon81
211 char buf[CONV_DL_MODE_BUFSIZE]; member in union:__anon82
218 char buf[CONV_DL_FLAG_BUFSIZE]; member in union:__anon83
225 char buf[CONV_GRPHDL_FLAGS_BUFSIZE]; member in union:__anon84
232 char buf[CONV_GRPDESC_FLAGS_BUFSIZE]; member in union:__anon85
239 char buf[CONV_SEG_FLAGS_BUFSIZE]; member in union:__anon86
246 char buf[CONV_DYN_POSFLAG1_BUFSIZE]; member in union:__anon87
253 char buf[CONV_DYN_FLAG_BUFSIZE]; member in union:__anon88
260 char buf[CONV_DYN_FLAG1_BUFSIZE]; member in union:__anon89
267 char buf[CONV_DYN_FEATURE1_BUFSIZE]; member in union:__anon90
274 char buf[CONV_BND_TYPE_BUFSIZE]; member in union:__anon91
281 char buf[CONV_BND_OBJ_BUFSIZE]; member in union:__anon92
288 char buf[CONV_PHDR_FLAGS_BUFSIZE]; member in union:__anon93
295 char buf[CONV_SEC_FLAGS_BUFSIZE]; member in union:__anon94
302 char buf[CONV_DWARF_EHE_BUFSIZE]; member in union:__anon95
309 char buf[CONV_SYMINFO_FLAGS_BUFSIZE]; member in union:__anon96
316 char buf[CONV_CNOTE_PR_FLAGS_BUFSIZE]; member in union:__anon97
323 char buf[CONV_CNOTE_OLD_PR_FLAGS_BUFSIZE]; member in union:__anon98
330 char buf[CONV_CNOTE_PROC_FLAG_BUFSIZE]; member in union:__anon99
338 char buf[CONV_PRSECFLAGS_BUFSIZE]; member in union:__anon100
346 char buf[CONV_CNOTE_SIGSET_BUFSIZE]; member in union:__anon101
353 char buf[CONV_CNOTE_FLTSET_BUFSIZE]; member in union:__anon102
360 char buf[CONV_CNOTE_SYSSET_BUFSIZE]; member in union:__anon103
367 char buf[CONV_CNOTE_SA_FLAGS_BUFSIZE]; member in union:__anon104
374 char buf[CONV_CNOTE_SS_FLAGS_BUFSIZE]; member in union:__anon105
381 char buf[CONV_CNOTE_CC_CONTENT_BUFSIZE]; member in union:__anon106
388 char buf[CONV_CNOTE_AUXV_AF_BUFSIZE]; member in union:__anon107
395 char buf[CONV_VER_FLAGS_BUFSIZE]; member in union:__anon108
402 char buf[CONV_ENT_FLAGS_BUFSIZE]; member in union:__anon109
409 char buf[CONV_ENT_FILES_FLAGS_BUFSIZE]; member in union:__anon110
420 char buf[CONV_TIME_BUFSIZE]; member in union:__anon111
736 char *buf; /* Buffer to receive generated string */ member in struct:__anon121
[all...]
/illumos-gate/usr/src/cmd/nlsadmin/
H A Dnlsadmin.c136 char buf[BUFSIZ]; /* temp buffer #1 */ local
344 sprintf(buf, SAC_LSPM, netspec);
346 if ((fp = popen(buf, "r")) == NULL) {
351 if (fgets(buf, BUFSIZ, fp) == NULL) {
356 ptr = strchr(buf, ':');
586 char buf[BUFSIZ]; local
623 sprintf(buf, PM_ADDSVCF, netspec, svc, (id)?id:DEFAULTID, flags, mesgbuf, VERSION, com ? com : "");
625 sprintf(buf, PM_ADDSVC, netspec, svc, (id)?id:DEFAULTID, mesgbuf, VERSION, com ? com : "");
627 if ((rtn = system(buf)) < 0) {
664 char buf[BUFSI local
731 char buf[BUFSIZ]; local
818 char buf[BUFSIZ]; local
858 char buf[BUFSIZ]; local
898 char buf[BUFSIZ]; local
939 char buf[BUFSIZ]; local
987 char buf[BUFSIZ]; local
1034 static char buf[BUFSIZ]; local
1052 char buf[BUFSIZ]; local
1130 char buf[BUFSIZ]; local
1243 svc_format(char *buf, struct svcfields *entry) argument
1355 static char buf[BUFSIZ]; /* formatted flags */ local
[all...]
/illumos-gate/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...]
/illumos-gate/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
209 char *buf; local
[all...]
/illumos-gate/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...]
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacker.c58 static char *buf; /* used to hold the source dictionary */ variable
59 static uint_t *offsets; /* array of word-offsets into "buf" */
110 if (fprintf(tmpfp[tmpfp_idx], "%s\n", &buf[offsets[i++]]) < 0) {
156 * translate(buf, size)
159 * words in "buf" and insert each of them into the offsets-array.
166 translate(char *buf, size_t size) argument
172 e = &buf[size];
175 for (p = buf, q = buf; q < e; q++) {
185 if (p-&buf[wordstar
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/crypto/
H A Dmd5.h52 UINT4 buf[4]; /* scratch buffer */ member in struct:__anon2506

Completed in 333 milliseconds

<<21222324252627282930>>