Lines Matching defs:newSize
3655 resize_monitor_table(struct io_context* context, const int newSize)
3659 if (newSize <= 0 || newSize > MAX_NODE_MONITORS)
3664 if ((size_t)newSize < context->num_monitors) {
3668 context->max_monitors = newSize;
5041 vfs_resize_fd_table(struct io_context* context, uint32 newSize)
5043 if (newSize == 0 || newSize > MAX_FD_TABLE_SIZE)
5046 TIOC(ResizeIOContext(context, newSize));
5052 int newCloseOnExitBitmapSize = (newSize + 7) / 8;
5055 if (newSize < oldSize) {
5056 for (uint32 i = oldSize; i-- > newSize;) {
5069 sizeof(struct file_descriptor*) * newSize
5070 + sizeof(struct select_infos**) * newSize
5076 context->select_infos = (select_info**)(context->fds + newSize);
5077 context->fds_close_on_exec = (uint8*)(context->select_infos + newSize);
5078 context->table_size = newSize;
5081 uint32 toCopy = min_c(oldSize, newSize);
5089 if (newSize > oldSize) {
5090 memset(context->fds + oldSize, 0, sizeof(void*) * (newSize - oldSize));
5092 sizeof(void*) * (newSize - oldSize));