/third_party/gettext/gettext-runtime/intl/ |
D | setlocale_null.c | 91 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/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 35 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/ |
D | bitmap.c | 118 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/ |
D | grpmodule.c | 124 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 = sysconf(_SC_GETGR_R_SIZE_MAX); in grp_getgrnam_impl() local [all …]
|
D | pwdmodule.c | 146 Py_ssize_t bufsize; in pwd_getpwuid() local 151 bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); in pwd_getpwuid() local 152 if (bufsize == -1) { in pwd_getpwuid() 153 bufsize = DEFAULT_BUFFER_SIZE; in pwd_getpwuid() 157 buf2 = PyMem_RawRealloc(buf, bufsize); in pwd_getpwuid() 164 status = getpwuid_r(uid, &pwd, buf, bufsize, &p); in pwd_getpwuid() 171 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in pwd_getpwuid() 175 bufsize <<= 1; in pwd_getpwuid() 229 Py_ssize_t bufsize; in pwd_getpwnam_impl() local 234 bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); in pwd_getpwnam_impl() local [all …]
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
D | diotest2.c | 74 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 …]
|
D | diotest3.c | 73 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()
|
D | diotest4.c | 193 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() 286 offset = bufsize * (fblocks + 10); in main() 287 count = bufsize; in main() 309 count = bufsize; in main() 316 count = bufsize; in main() [all …]
|
D | diotest1.c | 81 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()
|
/third_party/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 79 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/glib/glib/ |
D | win_iconv.c | 91 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/ltp/lib/ |
D | tst_rtnetlink.c | 22 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 = 1024; in tst_rtnl_create_context() 94 ctx->buffer = safe_malloc(file, lineno, NULL, ctx->bufsize); in tst_rtnl_create_context() 101 memset(ctx->buffer, 0, ctx->bufsize); in tst_rtnl_create_context() 172 size_t retsize, bufsize = 0; in tst_rtnl_recv() local [all …]
|
/third_party/NuttX/fs/vfs/ |
D | fs_readlink.c | 35 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/node/deps/cares/src/lib/ |
D | ares__read_line.c | 31 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/flutter/skia/third_party/externals/libjpeg-turbo/ |
D | jdatadst-tj.c | 44 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/libjpeg-turbo/ |
D | jdatadst-tj.c | 46 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/skia/third_party/externals/libjpeg-turbo/ |
D | jdatadst-tj.c | 46 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/ |
D | test-child-process-stdio-big-write-end.js | 30 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/ |
D | mongo_read.c | 22 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/ |
D | addrs.c | 42 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/alsa-lib/src/ |
D | userfile.c | 87 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/curl/lib/ |
D | getenv.c | 40 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/ |
D | collect.c | 61 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/libuv/src/win/ |
D | util.c | 1121 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 = WideCharToMultiByte(CP_UTF8, in uv__convert_utf16_to_utf8() [all …]
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fuse_kern_chan.c | 93 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()
|