Searched refs:nbytes (Results 1 - 25 of 265) sorted by relevance

1234567891011

/external/python/cpython3/Lib/
H A Dsecrets.py35 def token_bytes(nbytes=None):
36 """Return a random byte string containing *nbytes* bytes.
38 If *nbytes* is ``None`` or not supplied, a reasonable
45 if nbytes is None:
46 nbytes = DEFAULT_ENTROPY
47 return os.urandom(nbytes)
49 def token_hex(nbytes=None):
52 The string has *nbytes* random bytes, each byte converted to two
53 hex digits. If *nbytes* is ``None`` or not supplied, a reasonable
60 return binascii.hexlify(token_bytes(nbytes))
[all...]
/external/ltp/testcases/kernel/sched/clisrv/
H A Dwriten.c28 int writen(fd, ptr, nbytes)
31 register int nbytes;
35 nleft = nbytes;
43 return (nbytes - nleft);
/external/freetype/src/pcf/
H A Dpcfutil.c45 size_t nbytes )
47 for ( ; nbytes > 0; nbytes--, buf++ )
67 size_t nbytes )
69 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 )
86 size_t nbytes )
88 for ( ; nbytes >= 4; nbytes -= 4, buf += 4 )
H A Dpcfutil.h40 size_t nbytes );
44 size_t nbytes );
48 size_t nbytes );
/external/google-breakpad/src/client/linux/log/
H A Dlog.cc40 int write(const char* buf, size_t nbytes) { argument
44 return sys_write(2, buf, nbytes);
H A Dlog.h37 int write(const char* buf, size_t nbytes);
/external/strace/tests/
H A Dsync_file_range.c43 const off64_t nbytes = 0xfacefeedcafef00dULL; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
H A Dsync_file_range2.c43 const off64_t nbytes = 0xfacefeedcafef00d; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
/external/strace/tests-m32/
H A Dsync_file_range.c43 const off64_t nbytes = 0xfacefeedcafef00dULL; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
H A Dsync_file_range2.c43 const off64_t nbytes = 0xfacefeedcafef00d; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
/external/strace/tests-mx32/
H A Dsync_file_range.c43 const off64_t nbytes = 0xfacefeedcafef00dULL; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
H A Dsync_file_range2.c43 const off64_t nbytes = 0xfacefeedcafef00d; local
46 int rc = sync_file_range(fd, offset, nbytes, flags);
52 (long long) nbytes,
/external/v4l2_codec2/vda/
H A Dbit_reader.cc39 int nbytes = max_nbytes; local
40 if (nbytes > bytes_left_)
41 nbytes = bytes_left_;
44 data_ += nbytes;
45 bytes_left_ -= nbytes;
46 return nbytes;
/external/valgrind/perf/
H A Dheap.c12 int i, j, nbytes = 0; local
31 arr[j] = malloc(nbytes);
34 for (jpdb=0; jpdb<nbytes; jpdb = jpdb+pdb) {
41 nbytes += 8;
42 if (nbytes > 32)
43 nbytes = 0;
/external/libvterm/src/
H A Dutf8.h18 int nbytes = utf8_seqlen(codepoint); local
21 int b = nbytes;
28 switch(nbytes) {
37 return nbytes;
/external/syslinux/com32/libutil/
H A Dunbase64.c47 size_t nbytes = 0; local
66 if (nbytes < bufsiz)
68 nbytes++;
75 return nbytes;
/external/elfutils/libasm/
H A Dasm_adduleb128.c75 size_t nbytes = dest - tmpbuf; local
78 if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
83 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
86 asmscn->content->len += nbytes;
89 asmscn->offset += nbytes;
/external/valgrind/memcheck/tests/solaris/
H A Dsendfilev.c25 ssize_t nbytes = write(test_fd, &chunk1, sizeof(chunk1)); local
26 if (nbytes != CHUNK) {
28 fprintf(stderr, "write failed (nbytes=%zd): %s (%d).\n",
29 nbytes, strerror(error), error);
54 nbytes = sendfilev(test_fd, vec, 2, &xferred);
55 if (nbytes < 0) {
65 nbytes = sendfilev(test_fd, vec, -1, &xferred);
66 if (nbytes < 0) {
78 nbytes = sendfilev(test_fd, vec, 1, &xferred);
79 if (nbytes <
[all...]
/external/python/cpython2/Parser/
H A Dbitset.c10 int nbytes = NBYTES(nbits); local
11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes);
16 ss += nbytes;
17 while (--nbytes >= 0)
/external/python/cpython3/Parser/
H A Dbitset.c10 int nbytes = NBYTES(nbits); local
11 bitset ss = (char *)PyObject_MALLOC(sizeof(BYTE) * nbytes);
16 ss += nbytes;
17 while (--nbytes >= 0)
/external/syslinux/com32/lib/sys/
H A Dstdcon_read.c51 if (fp->i.nbytes) {
53 fp->i.nbytes--;
58 fp->i.nbytes = __line_input(fp, fp->i.buf, MAXBLOCK, __rawcon_read);
61 if (fp->i.nbytes == 0)
/external/valgrind/VEX/priv/
H A Dmain_globals.c53 void (*vex_log_bytes) ( const HChar*, SizeT nbytes ) = NULL;
/external/expat/xmlwf/
H A Dunixfilemap.c61 size_t nbytes; local
85 nbytes = sb.st_size;
87 if (nbytes == 0) {
93 p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ,
100 processor(p, nbytes, name, arg);
101 munmap((void *)p, nbytes);
H A Dreadfilemap.c81 size_t nbytes; local
107 nbytes = sb.st_size;
108 /* malloc will return NULL with nbytes == 0, handle files with size 0 */
109 if (nbytes == 0) {
115 p = malloc(nbytes);
121 n = _EXPAT_read(fd, p, nbytes);
128 if (n != (_EXPAT_read_count_t)nbytes) {
134 processor(p, nbytes, name, arg);
/external/ltp/testcases/kernel/syscalls/sync_file_range/
H A Dsync_file_range01.c114 off64_t nbytes; member in struct:test_data_t
196 static inline long syncfilerange(int fd, off64_t offset, off64_t nbytes, argument
204 (int)(offset >> 32), (int)offset, (int)(nbytes >> 32),
205 (int)nbytes);
208 (int)(offset >> 32), nbytes, (int)(nbytes >> 32));
211 return ltp_syscall(__NR_sync_file_range2, fd, flags, offset, nbytes);
217 (int)offset, (int)(nbytes >> 32), (int)nbytes, flags);
223 (int)offset, (int)(nbytes >> 3
[all...]

Completed in 1764 milliseconds

1234567891011