Searched refs:buf (Results 551 - 575 of 1692) sorted by relevance

<<21222324252627282930>>

/osnet-11/usr/src/grub/grub2/grub-core/lib/xzembed/
H A Dxz_dec_stream.c155 * so we reserve space according to that. buf[] has to be aligned
162 uint8_t buf[1024]; member in struct:xz_dec::__anon613
176 * to copy into s->temp.buf. Return true once s->temp.pos has reached
184 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size);
444 if (! memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE))
457 s->crc32->write(hash_context,s->temp.buf + HEADER_MAGIC_SIZE, 2);
462 readhash[0] = s->temp.buf[HEADER_MAGIC_SIZE + 5];
463 readhash[1] = s->temp.buf[HEADER_MAGIC_SIZE + 4];
464 readhash[2] = s->temp.buf[HEADER_MAGIC_SIZE + 3];
465 readhash[3] = s->temp.buf[HEADER_MAGIC_SIZ
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/
H A Djournal.c75 uint8_t buf[PED_SECTOR_SIZE_DEFAULT]; local
85 if (!ped_geometry_read(priv_data->plus_geom, buf, sector, 1))
87 jib = (HfsJJournalInfoBlock*) buf;
92 if (!ped_geometry_write(priv_data->plus_geom, buf, sector, 1)
106 void* buf)
111 r = ped_geometry_read(geom, buf, journ_sect + read_sect, 1);
114 buf = ((uint8_t*)buf) + PED_SECTOR_SIZE_DEFAULT;
229 uint8_t buf[PED_SECTOR_SIZE_DEFAULT]; local
242 if (!ped_geometry_read(priv_data->plus_geom, buf, secto
103 hfsj_journal_read(PedGeometry* geom, HfsJJournalHeader* jh, PedSector journ_sect, PedSector journ_length, PedSector read_sect, unsigned int nb_sect, void* buf) argument
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/PerlIO/encoding/
H A Dencoding.xs190 e->base.buf = (STDCHAR *) SvPVX(e->bufsv);
192 e->base.ptr = e->base.buf;
194 e->base.end = e->base.buf;
195 if (e->base.ptr < e->base.buf
196 || e->base.ptr > e->base.buf + SvLEN(e->bufsv)) {
197 Perl_warn(aTHX_ " ptr %p(%p)%p", e->base.buf, e->base.ptr,
198 e->base.buf + SvLEN(e->bufsv));
202 SSize_t poff = e->base.ptr - e->base.buf;
203 SSize_t eoff = e->base.end - e->base.buf;
204 e->base.buf
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ntfs/
H A Dntfs.c52 char buf[512]; local
56 if (!ped_geometry_read (geom, buf, 0, 1))
59 if (strncmp (NTFS_SIGNATURE, buf + 3, strlen (NTFS_SIGNATURE)) == 0)
62 (buf + 0x28)));
71 char buf[512]; local
75 memset (buf, 0, sizeof(buf));
76 return ped_geometry_write (geom, buf, 0, 1);
170 char buf[512]; local
182 while (fgets(buf, sizeo
470 char buf[512]; local
[all...]
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dconfig_parsing.c106 parse_fips_mode(char *buf, boolean_t *mode) argument
110 if (strncmp(buf, EF_FIPS_STATUS, sizeof (EF_FIPS_STATUS) - 1) == 0) {
111 if (value = strpbrk(buf, SEP_EQUAL)) {
137 * The input string "buf" should be one of the following:
157 uef_interpret(char *buf, uentry_t **ppent) argument
166 if ((token1 = strtok_r(buf, SEP_COLON, &lasts)) == NULL) {
167 /* buf is NULL */
180 if ((rc = parse_fips_mode(buf + strlen(token1) + 1,
212 * Arg buf: input only, its format should be one of the following:
226 parse_policylist(char *buf, uentry_ argument
[all...]
/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_persist.c454 char *nv, *name, *val, *buf, *cp, *sep; local
467 if ((cp = buf = strdup(inbuf)) == NULL)
470 while (isspace(*buf))
471 buf++;
473 if (*buf == '\0') {
478 nv = buf;
483 while ((nv = strsep(&buf, sep)) != NULL) {
582 * the list. The buf could be modified by the callback function and
583 * if this is a write operation and buf is not truncated, buf wil
595 char buf[MAXLINELEN]; local
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/md4/
H A Dmd4.c91 mdContext->buf[0] = 0x67452301UL;
92 mdContext->buf[1] = 0xefcdab89UL;
93 mdContext->buf[2] = 0x98badcfeUL;
94 mdContext->buf[3] = 0x10325476UL;
124 Transform (mdContext->buf, in);
155 Transform (mdContext->buf, in);
160 mdContext->digest[ii] = (unsigned char)(mdContext->buf[i] & 0xFF);
162 (unsigned char)((mdContext->buf[i] >> 8) & 0xFF);
164 (unsigned char)((mdContext->buf[i] >> 16) & 0xFF);
166 (unsigned char)((mdContext->buf[
172 Transform(krb5_ui_4 *buf, krb5_ui_4 *in) argument
[all...]
/osnet-11/usr/src/lib/libtsol/common/
H A Dprivate.c270 if (build_strings(&slstringsize, &slstring, &bsfret.buf[bsfret.string],
272 &bsfret.buf[bsfret.lwords], &bsfret.buf[bsfret.swords],
273 &bsfret.buf[bsfret.dim], 1) != 1) {
356 if (build_strings(&slstringsize, &slstring, &bscret.buf[bscret.string],
358 &bscret.buf[bscret.lwords], &bscret.buf[bscret.swords],
359 &bscret.buf[bscret.dim], 0) != 1) {
448 &bcfret.buf[bcfret.string],
451 &bcfret.buf[bcfre
[all...]
H A Dlabeld.h104 typedef uint_t bufp_t; /* offset into buf[] in/out string buffer */
233 char buf[BUFSIZE]; member in struct:__anon2684
256 char buf[BUFSIZE]; member in struct:__anon2687
283 char buf[BUFSIZE]; member in struct:__anon2693
292 char buf[BUFSIZE]; member in struct:__anon2695
381 #define CALL_SIZE(type, buf) (size_t)(sizeof (type) + sizeof (int) + (buf))
382 #define RET_SIZE(type, buf) (size_t)(sizeof (type) + 2*sizeof (int) + (buf))
383 #define CALL_SIZE_STR(type, buf) CALL_SIZ
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_mn_subr.c374 char *buf; local
391 buf = mynode();
392 sz = min(strlen(buf), sizeof (nlp->msl_node_name) - 1);
393 (void) strncpy(nlp->msl_node_name, buf, sz);
397 if ((hp = gethostbyname(buf)) == NULL) {
417 return (mdsyserror(ep, err, buf));
425 while ((fp != NULL) && ((buf = fgets(line, sizeof (line) - 1, fp)) !=
430 while ((*buf != '\0') && (i = strcspn(buf, " \t\n")) == 0)
431 buf
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dgetopt.c529 char *buf;
531 if (__asprintf (&buf, _("%s: option '%s' is ambiguous\n"),
539 __fxprintf (NULL, "%s", buf);
544 free (buf);
572 char *buf;
580 n = __asprintf (&buf, _("\
593 n = __asprintf (&buf, _("\
614 __fxprintf (NULL, "%s", buf);
619 free (buf);
639 char *buf;
525 char *buf; local
568 char *buf; local
635 char *buf; local
686 char *buf; local
752 char *buf; local
807 char *buf; local
881 char *buf; local
921 char *buf; local
960 char *buf; local
1033 char *buf; local
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Dalias.c276 char buf[50]; local
292 (void) sm_strlcpy(buf, "aliases.files sequence",
293 sizeof(buf));
294 AliasFileMap = makemapentry(buf);
301 (void) sm_snprintf(buf, sizeof(buf), "Alias%d", NAliasFileMaps);
302 s = stab(buf, ST_MAP, ST_ENTER);
399 char buf[MAXPATHLEN]; local
464 if (sm_strlcpyn(buf, sizeof(buf),
928 char buf[MAXPATHLEN]; local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Cwd/
H A DCwd.xs225 char buf[MAXPATHLEN];
230 if (getcwd(buf, sizeof(buf) - 1)) {
231 STRLEN len = strlen(buf);
232 sv_setpvn(sv, buf, len);
388 char buf[MAXPATHLEN];
392 if (bsd_realpath(path, buf)) {
393 sv_setpvn(TARG, buf, strlen(buf));
/osnet-11/usr/src/lib/libproc/common/
H A DPidle.c38 Pread_idle(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr) argument
55 if ((len = pread64(P->asfd, buf, len, off)) <= 0)
60 buf = (char *)buf + len;
68 Pwrite_idle(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr) argument
112 char buf[PATH_MAX]; local
262 if (Pfindobj(P, fp->file_lname, buf, sizeof (buf)) != NULL) {
264 P->execname = strdup(buf);
265 if ((fp->file_rname = strdup(buf)) !
[all...]
/osnet-11/usr/src/lib/libsocket/socket/
H A Dweaks.c108 _recv(int sock, char *buf, int len, int flags) argument
110 return (_so_recv(sock, buf, len, flags & ~MSG_XPG4_2));
114 _recvfrom(int sock, char *buf, int len, int flags, argument
117 return (_so_recvfrom(sock, buf, len, flags & ~MSG_XPG4_2,
128 _send(int sock, char *buf, int len, int flags) argument
130 return (_so_send(sock, buf, len, flags & ~MSG_XPG4_2));
140 _sendto(int sock, char *buf, int len, int flags, argument
143 return (_so_sendto(sock, buf, len, flags & ~MSG_XPG4_2,
248 __xnet_sendto(int sock, const void *buf, size_t len, int flags, argument
251 return (_so_sendto(sock, buf, le
[all...]
/osnet-11/usr/src/lib/libnsl/nsl/
H A Dt_accept.c189 cres = (struct T_conn_res *)ctlbuf.buf;
206 call->opt.buf, &cres->OPT_offset) < 0) {
256 strfdinsert.ctlbuf.buf = ctlbuf.buf;
261 strfdinsert.databuf.buf = call->udata.buf;
340 free(ctlbuf.buf);
342 tiptr->ti_ctlbuf = ctlbuf.buf;
350 free(ctlbuf.buf);
352 tiptr->ti_ctlbuf = ctlbuf.buf;
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ufs/
H A Dufs.c181 int8_t buf[512 * 3]; local
186 if (!ped_geometry_read (geom, buf, 16, 3))
189 sb = (struct ufs_super_block *)buf;
209 int8_t buf[1536]; local
216 if (!ped_geometry_read (geom, buf, 16, 3))
219 sb = (struct ufs_super_block *)buf;
249 char buf[1536]; local
251 if (!ped_geometry_read (geom, buf, 16, 3))
254 memset (buf, 0, sizeof(struct ufs_super_block));
256 return ped_geometry_write (geom, buf, 1
[all...]
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Exacct/
H A DExacct.xs479 char *buf;
486 buf = ea_alloc(last_bufsz);
487 PERL_ASSERT(buf != NULL);
489 buf = NULL;
497 if ((bufsz = getacct(idtype, id, buf, last_bufsz)) == -1) {
499 ea_free(buf, last_bufsz);
503 ea_free(buf, last_bufsz);
512 if (ea_unpack_object(&ea_obj, EUP_ALLOC, buf, bufsz) == -1) {
513 ea_free(buf, last_bufsz);
516 ea_free(buf, last_bufs
[all...]
/osnet-11/usr/src/cmd/perl/contrib/Sun/Solaris/Exacct/t/
H A Drandtest.c69 char buf[LINESZ]; local
87 (void) snprintf(buf, LINESZ, " %s #%d len=%d",
92 (void) snprintf(buf, LINESZ, " %s #%d",
96 (void) strlcat(log[log_pos], buf, LINESZ);
104 char buf[LINESZ]; local
106 bzero(buf, sizeof (buf));
108 (void) strlcat(buf, strerror(errno), sizeof (buf));
112 ea_errstr[ea_error()], buf);
[all...]
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/Bin/
H A Ddtruss22 # -b bufsize # dynamic variable buf size (default is "4m")
70 command=""; opt_buf=0; buf="4m"; opt_trace=0; trace="."; opt_stack=0
76 b) opt_buf=1; buf=$OPTARG ;;
105 -b bufsize # dynamic variable buf size
582 /usr/sbin/dtrace -x dynvarsize=$buf -x evaltime=exec -n "$dtrace" \
585 /usr/sbin/dtrace -x dynvarsize=$buf -n "$dtrace" -p "$pid" >&2
587 /usr/sbin/dtrace -x dynvarsize=$buf -n "$dtrace" >&2
/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/
H A Ddtruss22 # -b bufsize # dynamic variable buf size (default is "4m")
70 command=""; opt_buf=0; buf="4m"; opt_trace=0; trace="."; opt_stack=0
76 b) opt_buf=1; buf=$OPTARG ;;
105 -b bufsize # dynamic variable buf size
582 /usr/sbin/dtrace -x dynvarsize=$buf -x evaltime=exec -n "$dtrace" \
585 /usr/sbin/dtrace -x dynvarsize=$buf -n "$dtrace" -p "$pid" >&2
587 /usr/sbin/dtrace -x dynvarsize=$buf -n "$dtrace" >&2
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/
H A DHandle.pm143 my $buf = join(defined $, ? $, : "",@_);
144 $buf .= $\ if defined $\;
145 $self->WRITE($buf,length($buf),0);
156 my $buf = sprintf(shift,@_);
157 $self->WRITE($buf,length($buf),0);
173 my $buf;
174 $self->READ($buf,1);
175 return $buf;
[all...]
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmtrace.c111 char buf[1024], *bufp, *endbuf; local
135 bufp = buf; endbuf = buf+sizeof(buf);
192 write(Trfile,buf,(bufp-buf));
206 char buf[1024], *bufp; local
208 bufp = buf;
224 write(2,buf,(bufp-buf));
[all...]
/osnet-11/usr/src/lib/libumem/common/
H A Dumem_impl.h92 * on the cache's buf-to-bufctl hash table (if the buffer is allocated).
163 #define UMEM_BUFTAG(cp, buf) \
164 ((umem_buftag_t *)((char *)(buf) + (cp)->cache_buftag))
166 #define UMEM_BUFCTL(cp, buf) \
167 ((umem_bufctl_t *)((char *)(buf) + (cp)->cache_bufctl))
172 #define UMEM_SLAB(cp, buf) \
173 ((umem_slab_t *)P2END((uintptr_t)(buf), (cp)->cache_slabsize) - 1)
182 #define UMEM_SLAB_MEMBER(sp, buf) \
183 ((size_t)(buf) - (size_t)(sp)->slab_base < \
201 #define UMEM_HASH(cp, buf) \
[all...]
/osnet-11/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss_misc.c43 __xdr_gss_buf(xdrs, buf)
45 gss_buffer_t buf;
55 bound_len = cast_len = (uint_t)buf->length;
60 if (xdr_bytes(xdrs, (char **)&buf->value, &cast_len,
63 buf->length = cast_len;
129 char *buf; local
137 if ((buf = (char *)malloc(bufsiz)) == NULL) {
142 xdrmem_create(&temp_xdrs, buf, bufsiz, XDR_ENCODE);
196 if (buf)
197 (void) free(buf);
[all...]

Completed in 2020 milliseconds

<<21222324252627282930>>