Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/third_party/gettext/gettext-runtime/intl/
Dsetlocale_null.c91 setlocale_null_unlocked (int category, char *buf, size_t bufsize) in setlocale_null_unlocked() argument
102 if (bufsize > 0) in setlocale_null_unlocked()
112 if (length < bufsize) in setlocale_null_unlocked()
124 if (bufsize > 0) in setlocale_null_unlocked()
132 for (i = 0; i < bufsize; i++) in setlocale_null_unlocked()
134 buf[bufsize - 1] = '\0'; in setlocale_null_unlocked()
145 if (bufsize > 0) in setlocale_null_unlocked()
155 if (length < bufsize) in setlocale_null_unlocked()
162 if (bufsize > 0) in setlocale_null_unlocked()
167 memcpy (buf, result, bufsize - 1); in setlocale_null_unlocked()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/ram/stm32mp1/
Dstm32mp1_tests.c17 size_t *bufsize, size_t default_size) in get_bufsize() argument
36 *bufsize = value; in get_bufsize()
39 *bufsize = default_size; in get_bufsize()
41 *bufsize = get_ram_size((long *)STM32_DDR_BASE, in get_bufsize()
438 u32 bufsize; in test_addressbus() local
441 if (get_bufsize(string, argc, argv, 0, &bufsize, 4 * 1024)) in test_addressbus()
443 if (!is_power_of_2(bufsize)) { in test_addressbus()
445 (u32)bufsize); in test_addressbus()
451 error = (u32)addressbus((u32 *)addr, bufsize); in test_addressbus()
458 addr, bufsize); in test_addressbus()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
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, tmp))); in run()
[all …]
/third_party/ntfs-3g/libntfs-3g/
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/python/Modules/
Dgrpmodule.c141 Py_ssize_t bufsize; in grp_getgrgid_impl() local
146 bufsize = sysconf(_SC_GETGR_R_SIZE_MAX); in grp_getgrgid_impl() local
147 if (bufsize == -1) { in grp_getgrgid_impl()
148 bufsize = DEFAULT_BUFFER_SIZE; in grp_getgrgid_impl()
152 buf2 = PyMem_RawRealloc(buf, bufsize); in grp_getgrgid_impl()
159 status = getgrgid_r(gid, &grp, buf, bufsize, &p); in grp_getgrgid_impl()
166 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in grp_getgrgid_impl()
170 bufsize <<= 1; in grp_getgrgid_impl()
222 Py_ssize_t bufsize; in grp_getgrnam_impl() local
227 bufsize = sysconf(_SC_GETGR_R_SIZE_MAX); in grp_getgrnam_impl() local
[all …]
Dpwdmodule.c148 Py_ssize_t bufsize; in pwd_getpwuid() local
153 bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); in pwd_getpwuid() local
154 if (bufsize == -1) { in pwd_getpwuid()
155 bufsize = DEFAULT_BUFFER_SIZE; in pwd_getpwuid()
159 buf2 = PyMem_RawRealloc(buf, bufsize); in pwd_getpwuid()
166 status = getpwuid_r(uid, &pwd, buf, bufsize, &p); in pwd_getpwuid()
173 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in pwd_getpwuid()
177 bufsize <<= 1; in pwd_getpwuid()
231 Py_ssize_t bufsize; in pwd_getpwnam_impl() local
236 bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); in pwd_getpwnam_impl() local
[all …]
/third_party/uboot/u-boot-2020.01/lib/
Doid_registry.c110 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument
122 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
123 if (count >= bufsize) in sprint_oid()
126 bufsize -= count; in sprint_oid()
143 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
144 if (count >= bufsize) in sprint_oid()
147 bufsize -= count; in sprint_oid()
153 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
167 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument
175 buffer, bufsize); in sprint_OID()
/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest2.c74 int bufsize = BUFSIZE; variable
88 if ((buf1 = valloc(bufsize)) == 0) { in runtest()
92 if ((buf2 = valloc(bufsize)) == 0) { 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) < bufsize) { in runtest()
109 if (lseek(fd_r, offset + iter * bufsize, SEEK_SET) < 0) { in runtest()
114 if (read(fd_r, buf2, bufsize) < bufsize) { in runtest()
118 if (bufcmp(buf1, buf2, bufsize) != 0) { in runtest()
148 if ((bufsize = atoi(optarg)) <= 0) { in main()
[all …]
Ddiotest3.c73 static int bufsize = BUFSIZE; /* Buffersize. Default 4k */ variable
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) < bufsize) { in runtest()
131 if (read(fd_r, buf2, bufsize) < bufsize) { in runtest()
135 if (bufcmp(buf1, buf2, bufsize) != 0) { in runtest()
241 if ((bufsize = atoi(optarg)) <= 0) { in main()
245 if (bufsize % 4096 != 0) { in main()
Ddiotest1.c81 int bufsize = BUFSIZE; /* Buffer size. Default 8k */ in main() local
92 if ((bufsize = atoi(optarg)) <= 0) { in main()
96 if (bufsize % 4096 != 0) { in main()
133 buf = valloc(bufsize); in main()
139 fillbuf(buf, bufsize, (char)(i % 256)); in main()
140 SAFE_WRITE(cleanup, 1, fd1, buf, bufsize); in main()
147 while ((n = read(fd1, buf, bufsize)) > 0) { in main()
Ddiotest4.c193 int bufsize = BUFSIZE; in main() local
225 if ((buf0 = valloc(bufsize)) == NULL) { in main()
230 fillbuf(buf0, bufsize, (char)i); in main()
231 if (write(fd, buf0, bufsize) < 0) { in main()
237 if ((buf2 = valloc(bufsize)) == NULL) { in main()
248 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/ltp/testcases/kernel/io/aio/
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, pos); in main()
[all …]
/third_party/NuttX/fs/vfs/
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()
78 ret = vnode->vop->Readlink(vnode, buf, bufsize); in do_readlink()
98 ssize_t readlink(const char *pathname, char *buf, size_t bufsize) in readlink() argument
100 return do_readlink(AT_FDCWD, pathname, buf, bufsize); in readlink()
103 ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsize) in readlinkat() argument
105 return do_readlink(dirfd, pathname, buf, bufsize); in readlinkat()
/third_party/cares/
Dares__read_line.c31 int ares__read_line(FILE *fp, char **buf, size_t *bufsize) in ares__read_line() argument
42 *bufsize = 128; in ares__read_line()
47 int bytestoread = aresx_uztosi(*bufsize - offset); in ares__read_line()
58 if(len < *bufsize - 1) in ares__read_line()
62 newbuf = ares_realloc(*buf, *bufsize * 2); in ares__read_line()
70 *bufsize *= 2; in ares__read_line()
/third_party/node/deps/cares/src/lib/
Dares__read_line.c31 int ares__read_line(FILE *fp, char **buf, size_t *bufsize) in ares__read_line() argument
42 *bufsize = 128; in ares__read_line()
47 int bytestoread = aresx_uztosi(*bufsize - offset); in ares__read_line()
58 if(len < *bufsize - 1) in ares__read_line()
62 newbuf = ares_realloc(*buf, *bufsize * 2); in ares__read_line()
70 *bufsize *= 2; in ares__read_line()
/third_party/glib/glib/
Dwin_iconv.c91 typedef int (*f_mbtowc)(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize);
92 typedef int (*f_wctomb)(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize);
93 typedef int (*f_mblen)(csconv_t *cv, const uchar *buf, int bufsize);
94 typedef int (*f_flush)(csconv_t *cv, uchar *buf, int bufsize);
152 static int sbcs_mblen(csconv_t *cv, const uchar *buf, int bufsize);
153 static int dbcs_mblen(csconv_t *cv, const uchar *buf, int bufsize);
154 static int mbcs_mblen(csconv_t *cv, const uchar *buf, int bufsize);
155 static int utf8_mblen(csconv_t *cv, const uchar *buf, int bufsize);
156 static int eucjp_mblen(csconv_t *cv, const uchar *buf, int bufsize);
158 static int kernel_mbtowc(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize);
[all …]
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djdatadst-tj.c44 size_t bufsize; member
96 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
102 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
109 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
110 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
113 dest->bufsize = nextsize; in empty_mem_output_buffer()
134 *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer); in term_mem_destination()
199 dest->bufsize = *outsize; in jpeg_mem_dest_tj()
200 dest->pub.free_in_buffer = dest->bufsize; in jpeg_mem_dest_tj()
/third_party/skia/third_party/externals/libjpeg-turbo/
Djdatadst-tj.c46 size_t bufsize; member
98 nextsize = dest->bufsize * 2; in empty_mem_output_buffer()
104 MEMCOPY(nextbuffer, dest->buffer, dest->bufsize); in empty_mem_output_buffer()
110 dest->pub.next_output_byte = nextbuffer + dest->bufsize; in empty_mem_output_buffer()
111 dest->pub.free_in_buffer = dest->bufsize; in empty_mem_output_buffer()
114 dest->bufsize = nextsize; in empty_mem_output_buffer()
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/node/test/parallel/
Dtest-child-process-stdio-big-write-end.js30 let bufsize = 0; variable
59 bufsize += 1024;
60 buf = Buffer.alloc(bufsize, '.');
61 sent += bufsize;
66 const buf = Buffer.alloc(bufsize, '.');
67 sent += bufsize;
/third_party/ltp/testcases/kernel/fs/mongo/
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/ltp/utils/sctp/lib/
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()
/third_party/curl/lib/
Dgetenv.c40 DWORD bufsize; in GetEnv()
52 bufsize = rc; in GetEnv()
56 rc = GetEnvironmentVariableA(variable, buf, bufsize); in GetEnv()
57 if(!rc || rc == bufsize || rc > max) { in GetEnv()
63 if(rc < bufsize) in GetEnv()
/third_party/eudev/src/collect/
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()
307 bufsize = bufsize << 1; in missing()
[all …]
/third_party/ntfs-3g/libfuse-lite/
Dfuse_kern_chan.c93 size_t bufsize = getpagesize() + 0x1000; in fuse_kern_chan_new() local
94 bufsize = bufsize < MIN_BUFSIZE ? MIN_BUFSIZE : bufsize; in fuse_kern_chan_new()
95 return fuse_chan_new(&op, fd, bufsize, NULL); in fuse_kern_chan_new()
/third_party/uboot/u-boot-2020.01/scripts/dtc/libfdt/
Dfdt_sw.c112 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument
118 if (bufsize < hdrsize) in fdt_create_with_flags()
124 memset(buf, 0, bufsize); in fdt_create_with_flags()
137 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags()
146 int fdt_create(void *buf, int bufsize) in fdt_create() argument
148 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create()
151 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument
164 if ((headsize + tailsize) > bufsize) in fdt_resize()
168 newtail = (char *)buf + bufsize - tailsize; in fdt_resize()
180 fdt_set_totalsize(buf, bufsize); in fdt_resize()
[all …]

12345678910>>...17