Searched refs:ibuf (Results 1 - 25 of 82) sorted by relevance

1234

/illumos-gate/usr/src/lib/libwrap/
H A Dpercent_m.c23 char *percent_m(obuf, ibuf)
25 char *ibuf;
28 char *cp = ibuf;
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dser_cksum.c149 krb5_int32 ibuf;
157 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
158 ibuf = 0;
159 if (ibuf == KV5M_CHECKSUM) {
168 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
169 checksum->checksum_type = (krb5_cksumtype) ibuf;
172 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
173 checksum->length = (int) ibuf;
177 if (ibuf)
179 MALLOC((size_t) (ibuf));
146 krb5_int32 ibuf; local
[all...]
H A Dser_adata.c148 krb5_int32 ibuf;
156 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
157 ibuf = 0;
158 if (ibuf == KV5M_AUTHDATA) {
167 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
168 authdata->ad_type = (krb5_authdatatype) ibuf;
171 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
172 authdata->length = (int) ibuf;
177 MALLOC((size_t) (ibuf));
180 (size_t) ibuf,
145 krb5_int32 ibuf; local
[all...]
H A Dser_addr.c150 krb5_int32 ibuf;
158 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
159 ibuf = 0;
160 if (ibuf == KV5M_ADDRESS) {
171 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
172 address->addrtype = (krb5_addrtype) ibuf;
175 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
176 address->length = (int) ibuf;
180 address->contents = (krb5_octet *) MALLOC((size_t) (ibuf));
183 (size_t) ibuf,
147 krb5_int32 ibuf; local
[all...]
H A Dser_key.c148 krb5_int32 ibuf;
156 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
157 ibuf = 0;
158 if (ibuf == KV5M_KEYBLOCK) {
167 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
168 keyblock->enctype = (krb5_enctype) ibuf;
171 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
172 keyblock->length = (int) ibuf;
176 keyblock->contents = (krb5_octet *) MALLOC((size_t) (ibuf));
179 (size_t) ibuf,
145 krb5_int32 ibuf; local
[all...]
H A Dser_ctx.c346 krb5_int32 ibuf;
355 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)))
358 if (ibuf != KV5M_CONTEXT)
368 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)))
371 if (ibuf) {
372 context->default_realm = (char *) MALLOC((size_t) ibuf+1);
379 (size_t) ibuf, &bp, &remain);
383 context->default_realm[ibuf] = '\0';
387 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)))
390 context->in_tkt_ktype_count = (int) ibuf;
343 krb5_int32 ibuf; local
585 krb5_int32 ibuf; local
[all...]
H A Dser_princ.c144 krb5_int32 ibuf;
154 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
155 ibuf = 0;
156 if (ibuf == KV5M_PRINCIPAL) {
160 if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) {
163 tmpsize = ibuf+1;
167 (size_t) ibuf,
169 tmpname[ibuf] = '\0';
175 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
176 if (!kret && (ibuf
141 krb5_int32 ibuf; local
[all...]
H A Dser_auth.c237 krb5_int32 ibuf;
248 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
249 ibuf = 0;
250 if (ibuf == KV5M_AUTHENTICATOR) {
260 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
261 authenticator->ctime = (krb5_timestamp) ibuf;
264 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
265 authenticator->cusec = ibuf;
268 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
269 authenticator->seq_number = ibuf;
234 krb5_int32 ibuf; local
[all...]
H A Dser_actx.c368 krb5_int32 ibuf;
378 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
379 ibuf = 0;
380 if (ibuf == KV5M_AUTH_CONTEXT) {
390 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
391 auth_context->auth_context_flags = ibuf;
394 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
395 auth_context->remote_seq_number = ibuf;
398 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
399 auth_context->local_seq_number = ibuf;
365 krb5_int32 ibuf; local
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dser_sctx.c90 krb5_int32 ibuf; local
98 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
101 if (ibuf != KV5M_GSS_OID)
107 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) {
111 oid->length = ibuf;
112 oid->elements = MALLOC(ibuf);
125 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) {
131 if (ibuf != KV5M_GSS_OID) {
194 krb5_int32 ibuf; local
203 if (krb5_ser_unpack_int32(&ibuf,
533 krb5_int32 ibuf; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dser_cc.c164 krb5_int32 ibuf;
173 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
174 ibuf = 0;
175 if (ibuf == KV5M_CCACHE) {
179 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
182 (ccname = (char *) malloc((size_t) (ibuf+1))) &&
184 (size_t) ibuf,
186 ccname[ibuf] = '\0';
188 !(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)) &&
189 (ibuf
161 krb5_int32 ibuf; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Dser_rc.c171 krb5_int32 ibuf;
180 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain))
181 ibuf = 0;
182 if (ibuf == KV5M_RCACHE) {
186 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain);
189 (rcname = (char *) malloc((size_t) (ibuf+1))) &&
191 (size_t) ibuf,
193 rcname[ibuf] = '\0';
197 !(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)) &&
198 (ibuf
168 krb5_int32 ibuf; local
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Dlex.c70 FILE *ibuf; local
87 if ((ibuf = fopen(name, "r")) == NULL) {
106 fstat(fileno(ibuf), &stbuf);
124 fclose(ibuf);
128 if (fgets(fortest, sizeof (fortest), ibuf) == NULL) {
133 fseek(ibuf, (long)(BUFSIZ+1), 0); /* flush input buffer */
134 fseek(ibuf, 0L, 0);
140 fclose(ibuf);
181 lock(ibuf, "r", 1);
182 fstat(fileno(ibuf),
299 FILE *ibuf; local
972 FILE *ibuf; local
[all...]
H A Dfio.c55 setptr(register FILE *ibuf) argument
103 while ((n = getln(linebuf, sizeof (linebuf), ibuf)) > 0) {
119 fclose(ibuf);
146 fclose(ibuf);
157 if ((n = fread(linebuf, 1, n, ibuf)) <= 0) {
271 fclose(ibuf);
281 fclose(ibuf);
319 fclose(ibuf);
331 FILE *ibuf; local
335 ibuf
398 readline(FILE *ibuf, char *linebuf) argument
493 FILE *obuf, *ibuf, *tbuf = 0, *readstat; local
[all...]
H A Dcollect.c55 static int exwrite(char name[], FILE *ibuf);
59 static FILE *mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp);
60 static FILE *mespipe(FILE *ibuf, FILE *obuf, char cmd[]);
95 FILE *ibuf, *fbuf, *obuf; local
107 ibuf = obuf = NULL;
115 if ((ibuf = fopen(tempMail, "r")) == NULL) {
121 newi = ibuf;
575 rewind(ibuf);
576 exwrite(cp, ibuf);
627 rewind(ibuf);
770 exwrite(char name[], FILE *ibuf) argument
835 mesedit(FILE *ibuf, FILE *obuf, int c, struct header *hp) argument
996 mespipe(FILE *ibuf, FILE *obuf, char cmd[]) argument
[all...]
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *readstat; local
177 if ((ibuf = fopen(tempQuit, "r")) == NULL) {
192 fclose(ibuf);
200 fclose(ibuf);
218 fclose(ibuf);
235 rewind(ibuf);
236 c = getc(ibuf);
241 c = getc(ibuf);
243 fclose(ibuf);
H A Dedit.c100 FILE *ibuf, *obuf; local
213 if ((ibuf = fopen(tempZedit, "r")) == NULL) {
225 while ((c = getc(ibuf)) != EOF) {
246 fclose(ibuf);
H A Daux.c146 register FILE *ibuf; local
151 ibuf = setinput(mp);
154 if (readline(ibuf, linebuf) < 0)
157 while ((lc = gethfield(ibuf, linebuf, lc)) >= 0)
598 register FILE *ibuf; local
604 ibuf = setinput(mp);
606 if (readline(ibuf, linebuf) <= 0)
618 if (readline(ibuf, linebuf) <= 0)
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmakemap.c107 char ibuf[BUFSIZE]; local
396 while (sm_io_fgets(smioin, SM_TIME_DEFAULT, ibuf, sizeof ibuf)
407 p = strchr(ibuf, '\n');
415 (long) sizeof ibuf);
420 if (ibuf[0] == '\0' || ibuf[0] == comment)
422 if (sep == '\0' && isascii(ibuf[0]) && isspace(ibuf[0]))
433 db_key.data = ibuf;
[all...]
/illumos-gate/usr/src/cmd/expand/
H A Dexpand.c66 static char ibuf[BUFSIZ]; local
137 p1 = p2 = ibuf;
140 p1 = ibuf;
202 ibuf[n] = *p1++;
203 p1 = ibuf;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nca/
H A Dncab2clf.c530 is_valid_header(void *ibuf) argument
535 h = (nca_log_buf_hdr_t *)ibuf;
537 /* Do some validity checks on ibuf */
568 void *ibuf,
593 h = (nca_log_buf_hdr_t *)ibuf;
688 char *ibuf; local
697 ibuf = xmalloc(g_infile_blk_size);
709 nh = read_n_bytes(ifd, ibuf, sizeof (nca_log_buf_hdr_t));
715 if (! is_valid_header(ibuf)) {
724 h = (nca_log_buf_hdr_t *)ibuf;
567 b2clf_buf( void *ibuf, char *obuf, ssize_t isize, ssize_t osize, ssize_t *out_size) argument
[all...]
/illumos-gate/usr/src/cmd/iconv/
H A Diconv_main.c183 static char ibuf[IBUFSIZ]; local
194 iptr = ibuf + MB_LEN_MAX;
196 while ((nr = fread(ibuf+MB_LEN_MAX, 1, BUFSIZ, fp)) > 0) {
198 assert(iptr <= ibuf+MB_LEN_MAX);
246 char *p = ibuf+MB_LEN_MAX-ileft;
290 iptr = ibuf + MB_LEN_MAX;
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed1.c42 char ibuf[BUFSIZ]; variable
123 ebp = ibuf;
124 cbp = ibuf;
613 if(f < 0 || (c = read(f, ibuf, BUFSIZ)) == 0) {
621 p2 = ibuf;
622 ebp = ibuf+c;
626 if(f < 0 || (c = read(f, ibuf, BUFSIZ)) == 0) {
640 p2 = ibuf;
641 ebp = ibuf + c;
/illumos-gate/usr/src/cmd/vgrind/
H A Dvgrindefs.c54 char ibuf[BUFSIZ]; local
68 cnt = read(tf, ibuf, BUFSIZ);
75 c = ibuf[i++];
/illumos-gate/usr/src/cmd/bnu/
H A Dfio.c227 char ack, ibuf[MAXMSGLEN]; local
244 if (frdmsg(ibuf, fn) != FAIL) {
245 if ((ack = ibuf[0]) == 'G')
270 char ibuf[FIBUFSIZ]; local
279 flen = frdblk(ibuf, fn, &alen);
285 if (fwrite(ibuf, sizeof (char), flen, fp2) != flen)

Completed in 98 milliseconds

1234