/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | ser_ctx.c | 343 krb5_int32 ibuf; in krb5_context_internalize() local 352 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) in krb5_context_internalize() 355 if (ibuf != KV5M_CONTEXT) in krb5_context_internalize() 365 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) in krb5_context_internalize() 368 if (ibuf) { in krb5_context_internalize() 369 context->default_realm = (char *) MALLOC((size_t) ibuf+1); in krb5_context_internalize() 376 (size_t) ibuf, &bp, &remain); in krb5_context_internalize() 380 context->default_realm[ibuf] = '\0'; in krb5_context_internalize() 384 if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) in krb5_context_internalize() 387 context->in_tkt_ktype_count = (int) ibuf; in krb5_context_internalize() [all …]
|
H A D | ser_cksum.c | 146 krb5_int32 ibuf; in krb5_checksum_internalize() local 154 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_checksum_internalize() 155 ibuf = 0; in krb5_checksum_internalize() 156 if (ibuf == KV5M_CHECKSUM) { in krb5_checksum_internalize() 165 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_checksum_internalize() 166 checksum->checksum_type = (krb5_cksumtype) ibuf; in krb5_checksum_internalize() 169 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_checksum_internalize() 170 checksum->length = (int) ibuf; in krb5_checksum_internalize() 174 if (ibuf) in krb5_checksum_internalize() 176 MALLOC((size_t) (ibuf)); in krb5_checksum_internalize() [all …]
|
H A D | ser_adata.c | 145 krb5_int32 ibuf; in krb5_authdata_internalize() local 153 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_authdata_internalize() 154 ibuf = 0; in krb5_authdata_internalize() 155 if (ibuf == KV5M_AUTHDATA) { in krb5_authdata_internalize() 164 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_authdata_internalize() 165 authdata->ad_type = (krb5_authdatatype) ibuf; in krb5_authdata_internalize() 168 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_authdata_internalize() 169 authdata->length = (int) ibuf; in krb5_authdata_internalize() 174 MALLOC((size_t) (ibuf)); in krb5_authdata_internalize() 177 (size_t) ibuf, in krb5_authdata_internalize() [all …]
|
H A D | ser_addr.c | 147 krb5_int32 ibuf; in krb5_address_internalize() local 155 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_address_internalize() 156 ibuf = 0; in krb5_address_internalize() 157 if (ibuf == KV5M_ADDRESS) { in krb5_address_internalize() 168 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_address_internalize() 169 address->addrtype = (krb5_addrtype) ibuf; in krb5_address_internalize() 172 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_address_internalize() 173 address->length = (int) ibuf; in krb5_address_internalize() 177 address->contents = (krb5_octet *) MALLOC((size_t) (ibuf)); in krb5_address_internalize() 180 (size_t) ibuf, in krb5_address_internalize() [all …]
|
H A D | ser_key.c | 145 krb5_int32 ibuf; in krb5_keyblock_internalize() local 153 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_keyblock_internalize() 154 ibuf = 0; in krb5_keyblock_internalize() 155 if (ibuf == KV5M_KEYBLOCK) { in krb5_keyblock_internalize() 164 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_keyblock_internalize() 165 keyblock->enctype = (krb5_enctype) ibuf; in krb5_keyblock_internalize() 168 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_keyblock_internalize() 169 keyblock->length = (int) ibuf; in krb5_keyblock_internalize() 173 keyblock->contents = (krb5_octet *) MALLOC((size_t) (ibuf)); in krb5_keyblock_internalize() 176 (size_t) ibuf, in krb5_keyblock_internalize() [all …]
|
H A D | ser_princ.c | 141 krb5_int32 ibuf; in krb5_principal_internalize() local 151 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_principal_internalize() 152 ibuf = 0; in krb5_principal_internalize() 153 if (ibuf == KV5M_PRINCIPAL) { in krb5_principal_internalize() 157 if (!(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) { in krb5_principal_internalize() 160 tmpsize = ibuf+1; in krb5_principal_internalize() 164 (size_t) ibuf, in krb5_principal_internalize() 166 tmpname[ibuf] = '\0'; in krb5_principal_internalize() 172 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_principal_internalize() 173 if (!kret && (ibuf == KV5M_PRINCIPAL)) { in krb5_principal_internalize()
|
H A D | ser_auth.c | 234 krb5_int32 ibuf; in krb5_authenticator_internalize() local 245 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_authenticator_internalize() 246 ibuf = 0; in krb5_authenticator_internalize() 247 if (ibuf == KV5M_AUTHENTICATOR) { in krb5_authenticator_internalize() 257 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_authenticator_internalize() 258 authenticator->ctime = (krb5_timestamp) ibuf; in krb5_authenticator_internalize() 261 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_authenticator_internalize() 262 authenticator->cusec = ibuf; in krb5_authenticator_internalize() 265 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_authenticator_internalize() 266 authenticator->seq_number = ibuf; in krb5_authenticator_internalize() [all …]
|
H A D | ser_actx.c | 365 krb5_int32 ibuf; in krb5_auth_context_internalize() local 375 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_auth_context_internalize() 376 ibuf = 0; in krb5_auth_context_internalize() 377 if (ibuf == KV5M_AUTH_CONTEXT) { in krb5_auth_context_internalize() 387 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_auth_context_internalize() 388 auth_context->auth_context_flags = ibuf; in krb5_auth_context_internalize() 391 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_auth_context_internalize() 392 auth_context->remote_seq_number = ibuf; in krb5_auth_context_internalize() 395 (void) krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_auth_context_internalize() 396 auth_context->local_seq_number = ibuf; in krb5_auth_context_internalize() [all …]
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | ser_sctx.c | 90 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, &bp, &remain)) [all …]
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | fio.c | 55 setptr(register FILE *ibuf) in setptr() argument 103 while ((n = getln(linebuf, sizeof (linebuf), ibuf)) > 0) { in setptr() 119 fclose(ibuf); in setptr() 146 fclose(ibuf); in setptr() 157 if ((n = fread(linebuf, 1, n, ibuf)) <= 0) { in setptr() 271 fclose(ibuf); in setptr() 281 fclose(ibuf); in setptr() 319 fclose(ibuf); in setptr() 331 FILE *ibuf; in setclen() local 335 ibuf = setinput(mp); in setclen() [all …]
|
H A D | lex.c | 70 FILE *ibuf; in setfile() local 87 if ((ibuf = fopen(name, "r")) == NULL) { in setfile() 106 fstat(fileno(ibuf), &stbuf); in setfile() 124 fclose(ibuf); in setfile() 128 if (fgets(fortest, sizeof (fortest), ibuf) == NULL) { in setfile() 133 fseek(ibuf, (long)(BUFSIZ+1), 0); /* flush input buffer */ in setfile() 134 fseek(ibuf, 0L, 0); in setfile() 140 fclose(ibuf); in setfile() 181 lock(ibuf, "r", 1); in setfile() 182 fstat(fileno(ibuf), &stbuf); in setfile() [all …]
|
H A D | collect.c | 55 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; in collect() local 107 ibuf = obuf = NULL; in collect() 115 if ((ibuf = fopen(tempMail, "r")) == NULL) { in collect() 121 newi = ibuf; in collect() 575 rewind(ibuf); in collect() 576 exwrite(cp, ibuf); in collect() 627 rewind(ibuf); in collect() [all …]
|
H A D | quit.c | 66 FILE *ibuf, *obuf, *fbuf, *readstat; in quit() local 177 if ((ibuf = fopen(tempQuit, "r")) == NULL) { in quit() 192 fclose(ibuf); in quit() 200 fclose(ibuf); in quit() 218 fclose(ibuf); in quit() 235 rewind(ibuf); in quit() 236 c = getc(ibuf); in quit() 241 c = getc(ibuf); in quit() 243 fclose(ibuf); in quit()
|
H A D | edit.c | 100 FILE *ibuf, *obuf; in edit1() local 213 if ((ibuf = fopen(tempZedit, "r")) == NULL) { in edit1() 225 while ((c = getc(ibuf)) != EOF) { in edit1() 246 fclose(ibuf); in edit1()
|
H A D | aux.c | 146 register FILE *ibuf; in hfield() local 151 ibuf = setinput(mp); in hfield() 154 if (readline(ibuf, linebuf) < 0) in hfield() 157 while ((lc = gethfield(ibuf, linebuf, lc)) >= 0) in hfield() 598 register FILE *ibuf; in nameof() local 604 ibuf = setinput(mp); in nameof() 606 if (readline(ibuf, linebuf) <= 0) in nameof() 618 if (readline(ibuf, linebuf) <= 0) in nameof()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | ser_cc.c | 161 krb5_int32 ibuf; in krb5_ccache_internalize() local 170 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_ccache_internalize() 171 ibuf = 0; in krb5_ccache_internalize() 172 if (ibuf == KV5M_CCACHE) { in krb5_ccache_internalize() 176 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_ccache_internalize() 179 (ccname = (char *) malloc((size_t) (ibuf+1))) && in krb5_ccache_internalize() 181 (size_t) ibuf, in krb5_ccache_internalize() 183 ccname[ibuf] = '\0'; in krb5_ccache_internalize() 185 !(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)) && in krb5_ccache_internalize() 186 (ibuf == KV5M_CCACHE)) { in krb5_ccache_internalize()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | ser_rc.c | 168 krb5_int32 ibuf; in krb5_rcache_internalize() local 177 if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) in krb5_rcache_internalize() 178 ibuf = 0; in krb5_rcache_internalize() 179 if (ibuf == KV5M_RCACHE) { in krb5_rcache_internalize() 183 kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain); in krb5_rcache_internalize() 186 (rcname = (char *) malloc((size_t) (ibuf+1))) && in krb5_rcache_internalize() 188 (size_t) ibuf, in krb5_rcache_internalize() 190 rcname[ibuf] = '\0'; in krb5_rcache_internalize() 194 !(kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain)) && in krb5_rcache_internalize() 195 (ibuf == KV5M_RCACHE)) { in krb5_rcache_internalize()
|
/titanic_41/usr/src/cmd/sendmail/aux/ |
H A D | makemap.c | 107 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; 435 for (p = ibuf; *p != '\0' && !(ISSEP(*p)); p++) 440 db_key.size = p - ibuf;
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nca/ |
H A D | ncab2clf.c | 530 is_valid_header(void *ibuf) in is_valid_header() argument 535 h = (nca_log_buf_hdr_t *)ibuf; in is_valid_header() 568 void *ibuf, in b2clf_buf() argument 593 h = (nca_log_buf_hdr_t *)ibuf; in b2clf_buf() 688 char *ibuf; in b2clf() local 697 ibuf = xmalloc(g_infile_blk_size); in b2clf() 709 nh = read_n_bytes(ifd, ibuf, sizeof (nca_log_buf_hdr_t)); in b2clf() 715 if (! is_valid_header(ibuf)) { in b2clf() 724 h = (nca_log_buf_hdr_t *)ibuf; in b2clf() 730 ni = read_n_bytes(ifd, &(ibuf[nh]), (ssize_t)s->n_log_size); in b2clf() [all …]
|
/titanic_41/usr/src/lib/libwrap/ |
H A D | percent_m.c | 23 char *percent_m(obuf, ibuf) in percent_m() argument 25 char *ibuf; 28 char *cp = ibuf;
|
/titanic_41/usr/src/cmd/expand/ |
H A D | expand.c | 66 static char ibuf[BUFSIZ]; local 137 p1 = p2 = ibuf; 140 p1 = ibuf; 202 ibuf[n] = *p1++; 203 p1 = ibuf;
|
/titanic_41/usr/src/cmd/troff/ |
H A D | n1.c | 185 eibuf = roff_sprintf(ibuf+strlen(ibuf), ".nr %c %s\n", in main() 343 eibuf = ibufp = ibuf; in init0() 344 ibuf[0] = 0; in init0() 399 eibuf = roff_sprintf(ibuf+strlen(ibuf), ".ds .T %s\n", devname); in init2() 401 cpushback(ibuf); in init2() 402 ibufp = ibuf; in init2() 1053 if ((j = read(ifile, ibuf, IBUFSZ)) <= 0) in getch0() 1055 ibufp = ibuf; in getch0() 1056 eibuf = ibuf + j; in getch0() 1232 q = ibuf; in popf() [all …]
|
/titanic_41/usr/src/ucbcmd/sed/ |
H A D | sed1.c | 42 char ibuf[BUFSIZ]; variable 123 ebp = ibuf; in execute() 124 cbp = ibuf; in execute() 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;
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | fio.c | 227 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)
|
/titanic_41/usr/src/cmd/audio/utilities/ |
H A D | AudioUnixfile.cc | 96 char *ibuf; in decode_filehdr() local 130 ibuf = new char[infosize]; in decode_filehdr() 131 cnt = read(getfd(), ibuf, infosize); in decode_filehdr() 133 delete ibuf; in decode_filehdr() 150 delete ibuf; in decode_filehdr() 153 SetInfostring(ibuf, infosize); in decode_filehdr() 154 delete ibuf; in decode_filehdr()
|