Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 - 25 of 385) sorted by relevance

12345678910>>...16

/third_party/ltp/testcases/kernel/syscalls/cma/
H A Dprocess_vm_readv03.c29 int bufsize; member
33 { .bufsize = 1024, .remote_iovecs = 1024, .local_iovecs = 8 },
34 { .bufsize = 1024, .remote_iovecs = 512, .local_iovecs = 16 },
35 { .bufsize = 1024, .remote_iovecs = 256, .local_iovecs = 32 },
36 { .bufsize = 1024, .remote_iovecs = 128, .local_iovecs = 64 },
37 { .bufsize = 1024, .remote_iovecs = 64, .local_iovecs = 128 },
38 { .bufsize = 1024, .remote_iovecs = 32, .local_iovecs = 256 },
39 { .bufsize = 1024, .remote_iovecs = 16, .local_iovecs = 512 },
40 { .bufsize = 1024, .remote_iovecs = 8, .local_iovecs = 1024 },
42 { .bufsize
156 int bufsize = testcases[i].bufsize; run() local
[all...]
/third_party/elfutils/libcpu/
H A Di386_data.h124 if (*d->bufcntp + 4 > d->bufsize) in data_prefix()
125 return *d->bufcntp + 4 - d->bufsize; in data_prefix()
167 size_t bufsize = d->bufsize; in general_mod$r_m() local
204 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
205 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
278 if (*bufcntp + n + 1 > bufsize) in general_mod$r_m()
279 return *bufcntp + n + 1 - bufsize; in general_mod$r_m()
376 if (*bufcntp + (cp - tmpbuf) > bufsize) in general_mod$r_m()
377 return *bufcntp + (cp - tmpbuf) - bufsize; in general_mod$r_m()
509 size_t bufsize = d->bufsize; FCT_ax() local
536 size_t bufsize = d->bufsize; FCT_ax$w() local
[all...]
/third_party/python/Modules/
H A Dgrpmodule.c124 Py_ssize_t bufsize; in grp_getgrgid_impl() local
129 bufsize = sysconf(_SC_GETGR_R_SIZE_MAX); in grp_getgrgid_impl() local
130 if (bufsize == -1) { in grp_getgrgid_impl()
131 bufsize = DEFAULT_BUFFER_SIZE; in grp_getgrgid_impl()
135 buf2 = PyMem_RawRealloc(buf, bufsize); in grp_getgrgid_impl()
142 status = getgrgid_r(gid, &grp, buf, bufsize, &p); in grp_getgrgid_impl()
149 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in grp_getgrgid_impl()
153 bufsize <<= 1; in grp_getgrgid_impl()
205 Py_ssize_t bufsize; in grp_getgrnam_impl() local
210 bufsize in grp_getgrnam_impl() local
[all...]
H A Dpwdmodule.c144 Py_ssize_t bufsize; in pwd_getpwuid() local
149 bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); in pwd_getpwuid() local
150 if (bufsize == -1) { in pwd_getpwuid()
151 bufsize = DEFAULT_BUFFER_SIZE; in pwd_getpwuid()
155 buf2 = PyMem_RawRealloc(buf, bufsize); in pwd_getpwuid()
162 status = getpwuid_r(uid, &pwd, buf, bufsize, &p); in pwd_getpwuid()
169 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in pwd_getpwuid()
173 bufsize <<= 1; in pwd_getpwuid()
227 Py_ssize_t bufsize; in pwd_getpwnam_impl() local
232 bufsize in pwd_getpwnam_impl() local
[all...]
/third_party/ntfs-3g/libntfs-3g/
H A Dbitmap.c118 s64 bufsize, br; in ntfs_bitmap_set_bits_in_run() local
136 bufsize = ((count - (bit ? 8 - bit : 0) + 7) >> 3) + firstbyte; in ntfs_bitmap_set_bits_in_run()
137 if (bufsize > 8192) in ntfs_bitmap_set_bits_in_run()
138 bufsize = 8192; in ntfs_bitmap_set_bits_in_run()
140 buf = ntfs_malloc(bufsize); in ntfs_bitmap_set_bits_in_run()
145 memset(buf, value ? 0xff : 0, bufsize); in ntfs_bitmap_set_bits_in_run()
183 if (lastbyte_pos <= bufsize) { in ntfs_bitmap_set_bits_in_run()
214 br = ntfs_attr_pwrite(na, tmp, bufsize, buf); in ntfs_bitmap_set_bits_in_run()
215 if (br != bufsize) { in ntfs_bitmap_set_bits_in_run()
221 (long long)br, (long long)bufsize); in ntfs_bitmap_set_bits_in_run()
[all...]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
H A Dfallocate05.c35 static long bufsize; variable
50 bufsize = FALLOCATE_BLOCKS * blocksize; in setup()
51 buf = SAFE_MALLOC(bufsize); in setup()
62 TEST(fallocate(fd, 0, 0, bufsize)); in run()
68 tst_brk(TBROK | TTERRNO, "fallocate(fd, 0, 0, %ld)", bufsize); in run()
73 TEST(write(fd, buf, bufsize)); in run()
77 else if (TST_RET != bufsize) in run()
79 TST_RET, bufsize); in run()
88 TEST(fallocate(fd, 0, bufsize + extsize, blocksize)); in run()
106 TEST(write(fd, buf, MIN(bufsize, tm in run()
[all...]
/third_party/ltp/testcases/kernel/io/aio/
H A Daio01.c79 size_t bufsize; /* Size of I/O, 8k default */ variable
116 bufsize = (bflag ? atoi(optb) : 8192); in main()
129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
268 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main()
300 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main()
314 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, po in main()
[all...]
/third_party/ltp/testcases/kernel/io/direct_io/
H A Ddiotest2.c26 * The bufsize should be in n*4k size for direct read, write. The offset
37 * diotest2 [-b bufsize] [-o offset] [-i iterations] [-f filename]
74 int bufsize = BUFSIZE; variable
78 * For each iteration, write data starting at offse+iter*bufsize
88 if ((buf1 = valloc(bufsize)) == 0) { in runtest()
92 if ((buf2 = valloc(bufsize)) == 0) { in runtest()
97 /* seek bufsize*iteration and write. seek and read. verify. */ in runtest()
99 fillbuf(buf1, bufsize, i); in runtest()
100 if (lseek(fd_w, offset + iter * bufsize, SEEK_SET) < 0) { in runtest()
105 if (write(fd_w, buf1, bufsize) < bufsiz in runtest()
[all...]
H A Ddiotest3.c28 * determined by childnumber * bufsize. There is no need to use any locks.
37 * diotest3 [-b bufsize] [-o offset] [-n numchild]
73 static int bufsize = BUFSIZE; /* Buffersize. Default 4k */ variable
80 "Usage: diotest3 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-f filename]\n"); in prg_usage()
86 * For each iteration, write data starting at offse+iter*bufsize
99 seekoff = offset + bufsize * childnum; in runtest()
100 if ((buf1 = valloc(bufsize)) == 0) { in runtest()
104 if ((buf2 = valloc(bufsize)) == 0) { in runtest()
111 fillbuf(buf1, bufsize, childnum + i); in runtest()
116 if (write(fd_w, buf1, bufsize) < bufsiz in runtest()
[all...]
H A Ddiotest4.c192 int bufsize = BUFSIZE; in main() local
224 if ((buf0 = valloc(bufsize)) == NULL) { in main()
229 fillbuf(buf0, bufsize, (char)i); in main()
230 if (write(fd, buf0, bufsize) < 0) { in main()
236 if ((buf2 = valloc(bufsize)) == NULL) { in main()
247 count = bufsize; in main()
285 offset = bufsize * (fblocks + 10); in main()
286 count = bufsize; in main()
308 count = bufsize; in main()
315 count = bufsize; in main()
[all...]
/third_party/node/deps/openssl/openssl/crypto/cmp/
H A Dcmp_status.c171 char *buf, size_t bufsize) in snprint_PKIStatusInfo_parts()
188 if (printed_chars < 0 || (size_t)printed_chars >= bufsize) \ in snprint_PKIStatusInfo_parts()
191 bufsize -= printed_chars; in snprint_PKIStatusInfo_parts()
193 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s", status_string); in snprint_PKIStatusInfo_parts()
201 printed_chars = BIO_snprintf(write_ptr, bufsize, "; PKIFailureInfo: "); in snprint_PKIStatusInfo_parts()
207 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s%s", in snprint_PKIStatusInfo_parts()
218 printed_chars = BIO_snprintf(write_ptr, bufsize, "; <no failure info>"); in snprint_PKIStatusInfo_parts()
225 printed_chars = BIO_snprintf(write_ptr, bufsize, "; StatusString%s: ", in snprint_PKIStatusInfo_parts()
230 printed_chars = BIO_snprintf(write_ptr, bufsize, "\"%.*s\"%s", in snprint_PKIStatusInfo_parts()
242 char *buf, size_t bufsize) in OSSL_CMP_snprint_PKIStatusInfo()
169 snprint_PKIStatusInfo_parts(int status, int fail_info, const OSSL_CMP_PKIFREETEXT *status_strings, char *buf, size_t bufsize) snprint_PKIStatusInfo_parts() argument
241 OSSL_CMP_snprint_PKIStatusInfo(const OSSL_CMP_PKISI *statusInfo, char *buf, size_t bufsize) OSSL_CMP_snprint_PKIStatusInfo() argument
258 OSSL_CMP_CTX_snprint_PKIStatus(const OSSL_CMP_CTX *ctx, char *buf, size_t bufsize) OSSL_CMP_CTX_snprint_PKIStatus() argument
[all...]
/third_party/openssl/crypto/cmp/
H A Dcmp_status.c168 char *buf, size_t bufsize) in snprint_PKIStatusInfo_parts()
185 if (printed_chars < 0 || (size_t)printed_chars >= bufsize) \ in snprint_PKIStatusInfo_parts()
188 bufsize -= printed_chars; in snprint_PKIStatusInfo_parts()
190 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s", status_string); in snprint_PKIStatusInfo_parts()
198 printed_chars = BIO_snprintf(write_ptr, bufsize, "; PKIFailureInfo: "); in snprint_PKIStatusInfo_parts()
204 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s%s", in snprint_PKIStatusInfo_parts()
215 printed_chars = BIO_snprintf(write_ptr, bufsize, "; <no failure info>"); in snprint_PKIStatusInfo_parts()
222 printed_chars = BIO_snprintf(write_ptr, bufsize, "; StatusString%s: ", in snprint_PKIStatusInfo_parts()
227 printed_chars = BIO_snprintf(write_ptr, bufsize, "\"%.*s\"%s", in snprint_PKIStatusInfo_parts()
239 char *buf, size_t bufsize) in OSSL_CMP_snprint_PKIStatusInfo()
166 snprint_PKIStatusInfo_parts(int status, int fail_info, const OSSL_CMP_PKIFREETEXT *status_strings, char *buf, size_t bufsize) snprint_PKIStatusInfo_parts() argument
238 OSSL_CMP_snprint_PKIStatusInfo(const OSSL_CMP_PKISI *statusInfo, char *buf, size_t bufsize) OSSL_CMP_snprint_PKIStatusInfo() argument
255 OSSL_CMP_CTX_snprint_PKIStatus(const OSSL_CMP_CTX *ctx, char *buf, size_t bufsize) OSSL_CMP_CTX_snprint_PKIStatus() argument
[all...]
/third_party/NuttX/fs/vfs/
H A Dfs_readlink.c35 ssize_t do_readlink(int dirfd, const char *path, char *buf, size_t bufsize) in do_readlink() argument
47 if (*path == '\0' || buf == NULL || bufsize < 0) in do_readlink()
81 ret = vnode->vop->Readlink(vnode, buf, bufsize); in do_readlink()
101 ssize_t readlink(const char *pathname, char *buf, size_t bufsize) in readlink() argument
103 return do_readlink(AT_FDCWD, pathname, buf, bufsize); in readlink()
106 ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsize) in readlinkat() argument
108 return do_readlink(dirfd, pathname, buf, bufsize); in readlinkat()
/third_party/node/deps/cares/src/lib/
H A Dares__read_line.c36 * ares__read_line multiple times with the same buf and bufsize
37 * pointers; *buf will be reallocated and *bufsize adjusted as
41 ares_status_t ares__read_line(FILE *fp, char **buf, size_t *bufsize) in ares__read_line() argument
52 *bufsize = 128; in ares__read_line()
56 int bytestoread = (int)(*bufsize - offset); in ares__read_line()
75 if (len < *bufsize - 1) { in ares__read_line()
80 newbuf = ares_realloc(*buf, *bufsize * 2); in ares__read_line()
87 *bufsize *= 2; in ares__read_line()
/third_party/skia/third_party/externals/libjpeg-turbo/
H A Djdatadst-tj.c46 size_t bufsize; member
98 nextsize = dest->bufsize * 2; in METHODDEF()
104 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in METHODDEF()
110 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in METHODDEF()
111 dest->pub.free_in_buffer = dest->bufsize; in METHODDEF()
114 dest->bufsize = nextsize; in METHODDEF()
135 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
200 dest->bufsize = *outsize; in jpeg_mem_dest_tj()
201 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()
/third_party/cups-filters/backend/
H A Dieee1284.c43 char *buffer, size_t bufsize);
599 size_t bufsize) /* I - Size of string buffer */ in normalize_make_and_model()
604 if (!make_and_model || !buffer || bufsize < 1) in normalize_make_and_model()
625 strncpy(buffer, make_and_model + 1, bufsize - 1); in normalize_make_and_model()
626 buffer[bufsize - 1] = '\0'; in normalize_make_and_model()
637 snprintf(buffer, bufsize, "Xerox %s", make_and_model); in normalize_make_and_model()
645 snprintf(buffer, bufsize, "Kodak %s", make_and_model + 7); in normalize_make_and_model()
653 snprintf(buffer, bufsize, "Apple LaserWriter%s", make_and_model + 11); in normalize_make_and_model()
661 snprintf(buffer, bufsize, "Seiko %s", make_and_model); in normalize_make_and_model()
669 snprintf(buffer, bufsize, "EF in normalize_make_and_model()
596 normalize_make_and_model( const char *make_and_model, char *buffer, size_t bufsize) normalize_make_and_model() argument
[all...]
/third_party/ltp/lib/
H A Dtst_rtnetlink.c22 size_t bufsize, datalen; member
35 if (ctx->bufsize - curlen >= size) in tst_rtnl_grow_buffer()
38 needed = size - (ctx->bufsize - curlen); in tst_rtnl_grow_buffer()
39 size = ctx->bufsize + (ctx->bufsize > needed ? ctx->bufsize : needed); in tst_rtnl_grow_buffer()
46 memset(buf + ctx->bufsize, 0, size - ctx->bufsize); in tst_rtnl_grow_buffer()
50 ctx->bufsize = size; in tst_rtnl_grow_buffer()
77 ctx->bufsize in tst_rtnl_create_context()
172 size_t retsize, bufsize = 0; tst_rtnl_recv() local
[all...]
/third_party/musl/src/unistd/
H A Dreadlink.c5 ssize_t readlink(const char *restrict path, char *restrict buf, size_t bufsize) in readlink() argument
8 if (!bufsize) { in readlink()
10 bufsize = 1; in readlink()
13 int r = __syscall(SYS_readlink, path, buf, bufsize); in readlink()
15 int r = __syscall(SYS_readlinkat, AT_FDCWD, path, buf, bufsize); in readlink()
/third_party/node/test/parallel/
H A Dtest-child-process-stdio-big-write-end.js30 let bufsize = 0;
59 bufsize += 1024;
60 buf = Buffer.alloc(bufsize, '.');
61 sent += bufsize;
66 const buf = Buffer.alloc(bufsize, '.');
67 sent += bufsize;
/third_party/eudev/src/collect/
H A Dcollect.c61 static size_t bufsize = BUFSIZE; variable
149 len = bufsize >> 1; in checkout()
150 buf = malloc(bufsize + 1); in checkout()
153 memset(buf, ' ', bufsize); in checkout()
154 buf[bufsize] = '\0'; in checkout()
162 bufsize = bufsize << 1; in checkout()
164 fprintf(stderr, "ID overflow, restarting with size %zu\n", bufsize); in checkout()
294 buf = malloc(bufsize); in missing()
304 while (strlen(him->name)+1 >= bufsize) { in missing()
[all...]
/third_party/node/deps/uv/src/win/
H A Dutil.c1121 DWORD bufsize; in uv_os_tmpdir() local
1154 bufsize = WideCharToMultiByte(CP_UTF8, 0, path, -1, NULL, 0, NULL, NULL); in uv_os_tmpdir()
1156 if (bufsize == 0) { in uv_os_tmpdir()
1159 } else if (bufsize > *size) { in uv_os_tmpdir()
1161 *size = bufsize; in uv_os_tmpdir()
1166 bufsize = WideCharToMultiByte(CP_UTF8, in uv_os_tmpdir()
1176 if (bufsize == 0) in uv_os_tmpdir()
1179 *size = bufsize - 1; in uv_os_tmpdir()
1203 DWORD bufsize; in uv__convert_utf16_to_utf8() local
1209 bufsize in uv__convert_utf16_to_utf8()
1258 int bufsize; uv__convert_utf8_to_utf16() local
1295 DWORD bufsize; uv__getpwuid_r() local
1445 DWORD bufsize; uv_os_getenv() local
[all...]
/third_party/curl/lib/
H A Dgetenv.c43 DWORD bufsize; in GetEnv()
55 bufsize = rc; in GetEnv()
59 rc = GetEnvironmentVariableA(variable, buf, bufsize); in GetEnv()
60 if(!rc || rc == bufsize || rc > max) { in GetEnv()
65 /* if rc < bufsize then rc is bytes written not including null */ in GetEnv()
66 if(rc < bufsize) in GetEnv()
/third_party/ltp/testcases/kernel/fs/mongo/
H A Dmongo_read.c22 int bufsize = 4096; in main() local
30 buf = malloc(bufsize); in main()
32 printf("Malloc failed on %d\n", bufsize); in main()
47 while ((rd = read(fd, buf, bufsize)) == bufsize) ; in main()
/third_party/alsa-lib/src/
H A Duserfile.c87 size_t bufsize = 1024; in snd_user_file() local
89 buf = malloc(bufsize); in snd_user_file()
93 while ((err = getpwuid_r(id, &pwent, buf, bufsize, &p)) == ERANGE) { in snd_user_file()
95 bufsize += 1024; in snd_user_file()
96 if (bufsize < 1024) in snd_user_file()
98 newbuf = realloc(buf, bufsize); in snd_user_file()
/third_party/ltp/utils/sctp/lib/
H A Daddrs.c42 size_t bufsize = 4096; /*enough for most cases*/ in sctp_getaddrs() local
44 struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize); in sctp_getaddrs()
51 len = bufsize; in sctp_getaddrs()
64 if (bufsize > 128*1024) { in sctp_getaddrs()
70 new_buf = realloc(getaddrs, bufsize+4096); in sctp_getaddrs()
75 bufsize += 4096; in sctp_getaddrs()

Completed in 12 milliseconds

12345678910>>...16