Searched defs:buf (Results 301 - 325 of 1270) sorted by relevance

<<11121314151617181920>>

/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dpassword_pbkdf2.c45 grub_uint8_t *buf; local
49 buf = grub_malloc (pass->buflen);
50 if (!buf)
56 buf, pass->buflen);
59 grub_free (buf);
63 if (grub_crypto_memcmp (buf, pass->expected, pass->buflen) != 0)
/osnet-11/usr/src/grub/grub2/grub-core/disk/
H A Draid6_recover.c37 grub_raid_block_mulx (int mul, char *buf, int size) argument
42 p = (grub_uint8_t *) buf;
68 char *buf, grub_disk_addr_t sector, int size)
100 0, size, buf)))
102 grub_crypto_xor (pbuf, pbuf, buf, size);
103 grub_raid_block_mulx (i, buf, size);
104 grub_crypto_xor (qbuf, qbuf, buf, size);
132 0, size, buf)))
134 grub_crypto_xor (buf, buf, pbu
67 grub_raid6_recover(struct grub_raid_array *array, int disknr, int p, char *buf, grub_disk_addr_t sector, int size) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/gfxmenu/
H A Dgui_string_util.c26 The range of buf included is the half-open interval [START,END).
29 grub_new_substring (const char *buf, argument
38 grub_memcpy (s, buf + start, len);
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dmbrtowc.c59 char buf[4]; local
70 buf[2] = pstate[3];
73 buf[1] = pstate[2];
76 buf[0] = pstate[1];
77 p = buf;
79 buf[m++] = s[0];
82 buf[m++] = s[1];
84 buf[m++] = s[2];
/osnet-11/usr/src/grub/grub2/grub-core/io/
H A Dbufio.c108 grub_bufio_read (grub_file_t file, char *buf, grub_size_t len) argument
130 grub_memcpy (buf, &bufio->buffer[pos], n);
134 buf += n;
147 really_read = grub_file_read (bufio->file, buf, read_now);
153 buf += really_read;
164 grub_memcpy (&bufio->buffer[0], buf - bufio->buffer_len,
184 grub_memcpy (buf, &bufio->buffer[file->offset + res - next_buf], len);
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/
H A Dhostfs.c117 grub_hostfs_read (grub_file_t file, char *buf, grub_size_t len) argument
128 unsigned int s = fread (buf, 1, len, f);
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Dfs.c185 grub_fs_blocklist_read (grub_file_t file, char *buf, grub_size_t len)
209 size, buf) != GRUB_ERR_NONE)
184 grub_fs_blocklist_read(grub_file_t file, char *buf, grub_size_t len) argument
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dadler32.c31 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
32 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1);
33 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2);
34 #define DO8(buf,i) DO4(buf,
38 update_adler32(grub_uint32_t adler, const grub_uint8_t *buf, grub_size_t len) argument
[all...]
H A Dcrc64.c71 crc64_write (void *context, const void *buf, grub_size_t size) argument
74 const grub_uint8_t *data = buf;
H A Denvblk.c27 grub_envblk_open (char *buf, grub_size_t size) argument
32 || grub_memcmp (buf, GRUB_ENVBLK_SIGNATURE,
42 envblk->buf = buf;
52 grub_free (envblk->buf);
101 p = envblk->buf + sizeof (GRUB_ENVBLK_SIGNATURE) - 1;
102 pend = envblk->buf + envblk->size;
192 p = envblk->buf + sizeof (GRUB_ENVBLK_SIGNATURE) - 1;
193 pend = envblk->buf + envblk->size;
232 p = envblk->buf
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/xzembed/
H A Dxz_config.h63 #define memzero(buf, size) memset(buf, 0, size)
102 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument
104 return (uint32_t)buf[0]
105 | ((uint32_t)buf[1] << 8)
106 | ((uint32_t)buf[2] << 16)
107 | ((uint32_t)buf[3] << 24);
110 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument
112 return (uint32_t)(buf[0] << 24)
113 | ((uint32_t)buf[
118 put_unaligned_le32(uint32_t val, uint8_t *buf) argument
126 put_unaligned_be32(uint32_t val, uint8_t *buf) argument
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgrub-mkpasswd-pbkdf2.c92 grub_uint8_t *buf, *salt; local
141 buf = malloc (buflen);
142 if (!buf)
152 free (buf);
160 free (buf);
167 free (buf);
176 free (buf);
187 free (buf);
206 free (buf);
218 free (buf);
[all...]
/osnet-11/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c63 char buf[BUFSIZE]; member in union:__anon874
/osnet-11/usr/src/cmd/sendmail/aux/
H A Dmconnect.c83 char buf[1000]; local
230 while (fgets(buf, sizeof (buf), f) != NULL)
232 (void) fputs(buf, stdout);
/osnet-11/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c43 char buf[BUFSIZ]; local
47 memset(&buf, 0, sizeof (buf));
48 id.id_data = buf;
49 id.id_len = sizeof (buf);
59 HAL_DEBUG(("IEEE-1284 DeviceId = %s", buf));
61 rc = ieee1284_devid_to_printer_info(buf, manufacturer, model,
/osnet-11/usr/src/cmd/ldap/common/
H A Dldapdelete.c70 char buf[ 4096 ]; local
130 fgets(buf, sizeof(buf), ldaptool_fp) != NULL) {
131 buf[ strlen( buf ) - 1 ] = '\0'; /* remove trailing newline */
132 if ( *buf != '\0' ) {
133 rc = dodelete( ld, buf, ldaptool_request_ctrls );
H A Dldapmodrdn.c41 char *myname, *entrydn, *rdn, buf[ 4096 ]; local
129 (fgets(buf, sizeof(buf), ldaptool_fp) != NULL) )
145 if ( (strlen(buf) == 1) && (ldaptool_fp == stdin) )
148 buf[ strlen( buf ) - 1 ] = '\0'; /* remove nl */
149 if ( *buf != '\0' ) /* blank lines optional, skip */
153 if (( L_newParent = strdup( buf )) == NULL )
168 if (( rdn = strdup( buf )) == NULL )
178 if (( entrydn = strdup( buf ))
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/IO/
H A Dpoll.c97 struct stat buf; local
98 if((fstat(fds[i].fd,&buf) < 0) && (errno == EBADF)) {
/osnet-11/usr/src/lib/libast/common/disc/
H A Dsfdcdio.c46 static ssize_t diordwr(Sfio_t* f, Void_t* buf, size_t n, Direct_t* di, int type) argument
48 static ssize_t diordwr(f, buf, n, di, type)
50 Void_t* buf;
63 if((P2I(buf)%di->dio.d_mem) == 0 &&
77 rv = read(f->file,buf,io);
78 else rv = write(f->file,buf,io);
82 buf = (Void_t*)((char*)buf + rv);
98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,r
105 dioread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
118 diowrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
[all...]
H A Dsfdcfilter.c40 static ssize_t filterread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
42 static ssize_t filterread(f, buf, n, disc)
44 Void_t* buf; /* buffer to read into */
92 if((r = sfrd(fi->filter, buf, n, 0)) > 0)
101 static ssize_t filterwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
103 static ssize_t filterwrite(f, buf, n, disc)
105 Void_t* buf; /* buffer to write into */
H A Dsfdcprefix.c47 static ssize_t pfxwrite(Sfio_t* f, const Void_t* buf, register size_t n, Sfdisc_t* dp) argument
49 static ssize_t pfxwrite(f, buf, n, dp)
51 Void_t* buf;
66 b = (char*)buf;
H A Dsfdcseekable.c41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
43 static ssize_t skwrite(f, buf, n, disc)
45 Void_t* buf; /* buffer to read into */
54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
56 static ssize_t skread(f, buf, n, disc)
58 Void_t* buf; /* buffer to read into */
71 return sfread(sf,buf,n);
76 return sfread(sf,buf,n);
79 { if((w = sfread(sf,buf,r)) != r)
81 buf
113 char buf[SF_BUFSIZE]; local
[all...]
H A Dsfdcsubstr.c42 static ssize_t streamio(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc, int type) argument
44 static ssize_t streamio(f, buf, n, disc, type)
46 Void_t* buf;
73 io = sfwr(f,buf,n,disc);
74 else io = sfrd(f,buf,n,disc);
86 static ssize_t streamwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
88 static ssize_t streamwrite(f, buf, n, disc)
90 Void_t* buf;
95 return streamio(f,(Void_t*)buf,n,disc,SF_WRITE);
99 static ssize_t streamread(Sfio_t* f, Void_t* buf, size_ argument
[all...]
H A Dsfdcunion.c49 static ssize_t unwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
51 static ssize_t unwrite(f, buf, n, disc)
53 Void_t* buf; /* buffer to read into */
62 static ssize_t unread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
64 static ssize_t unread(f, buf, n, disc)
66 Void_t* buf; /* buffer to read into */
78 { if((r = sfread(f,buf,m)) < 0 || (r == 0 && un->c == un->n-1) )
87 buf = (char*)buf + r;
/osnet-11/usr/src/lib/libast/common/misc/
H A Drecfmt.c25 * determine record format by sampling data in <buf,size>
43 recfmt(const void* buf, size_t size, off_t total) argument
64 s = (unsigned char*)buf;
74 s = (unsigned char*)buf;

Completed in 65 milliseconds

<<11121314151617181920>>