Searched refs:newsize (Results 1 - 11 of 11) sorted by relevance

/haiku/src/tests/servers/input/comm/
H A Dport.cpp20 ssize_t newsize; local
21 if ((newsize = read_port(port, &code, buffer, size))==size) {
29 printf("error %ld\n", newsize);
/haiku/src/system/libroot/posix/musl/search/
H A Dhsearch.c51 size_t newsize; local
59 for (newsize = MINSIZE; newsize < nel; newsize *= 2);
60 htab->__tab->entries = calloc(newsize, sizeof *htab->__tab->entries);
65 htab->__tab->mask = newsize - 1;
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Defs.c319 s64 newsize; local
370 newsize = oldsize - padding_length - 2;
381 newsize = 0;
412 ni->data_size = newsize;
418 ctx->attr->data_size = cpu_to_sle64(newsize);
419 if (sle64_to_cpu(ctx->attr->initialized_size) > newsize)
H A Dattrib.c1825 static int ntfs_attr_truncate_i(ntfs_attr *na, const s64 newsize,
5280 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize);
5285 * @newsize: new size (in bytes) to which to resize the attribute
5287 * Change the size of a resident, open ntfs attribute @na to @newsize bytes.
5297 * ERANGE - @newsize is not valid for the attribute type of @na.
5300 static int ntfs_resident_attr_resize_i(ntfs_attr *na, const s64 newsize, argument
5310 (long long)newsize);
5325 * sizes against @newsize and fail if @newsize is out of bounds.
5327 if (ntfs_attr_size_bounds_check(vol, na->type, newsize) <
5551 ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize) argument
6344 ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize) argument
6499 ntfs_non_resident_attr_expand_i(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6735 ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6767 ntfs_attr_truncate_i(ntfs_attr *na, const s64 newsize, hole_type holes) argument
6848 ntfs_attr_truncate(ntfs_attr *na, const s64 newsize) argument
6862 ntfs_attr_truncate_solid(ntfs_attr *na, const s64 newsize) argument
[all...]
H A Dattrib.h353 extern int ntfs_attr_truncate(ntfs_attr *na, const s64 newsize);
354 extern int ntfs_attr_truncate_solid(ntfs_attr *na, const s64 newsize);
H A Dacls.c1256 size_t newsize; local
1262 newsize = sizeof(struct POSIX_SECURITY)
1265 newsize = sizeof(struct POSIX_SECURITY)
1267 newpxdesc = (struct POSIX_SECURITY*)malloc(newsize);
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_subr_sbuf.c148 int newsize; local
151 newsize = SBUF_MINEXTENDSIZE;
152 while (newsize < size)
153 newsize *= 2;
155 newsize = roundup2(size, SBUF_MAXEXTENDINCR);
157 KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size));
158 return (newsize);
168 int newsize; local
172 newsize
[all...]
/haiku/src/libs/libfdt/
H A Dfdt_rw.c423 int newsize; local
458 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size
461 if (bufsize < newsize)
467 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) {
470 if ((tmp + newsize) > ((char *)buf + bufsize))
476 memmove(buf, tmp, newsize);
/haiku/src/system/libroot/posix/
H A Dglob.c711 size_t i, newsize, len; local
720 newsize = sizeof(*pathv) * (2 + pglob->gl_pathc + pglob->gl_offs);
722 realloc((char *)pglob->gl_pathv, newsize) :
723 malloc(newsize);
H A Dspawn.cpp64 int newsize = actions->size + 4; local
66 newsize * sizeof(struct _file_action));
70 actions->size = newsize;
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A Dfs_cache.c256 int i, omax, newsize, newmask; local
266 newsize = omax * 2; /* have to grow in powers of two */
267 newmask = newsize - 1;
269 new_table = (hash_ent **)calloc(newsize, sizeof(hash_ent *));
285 ht->max = newsize;

Completed in 102 milliseconds