MySQL 9.0.0
Source Code Documentation
anonymous_namespace{my_file.cc} Namespace Reference

Classes

class  FileInfo
 Rule of 5 class. More...
 

Typedefs

using FileInfoAllocator = Malloc_allocator< FileInfo >
 
using FileInfoVector = std::vector< FileInfo, FileInfoAllocator >
 

Functions

uint SetOsLimitMaxOpenFiles (uint max_file_limit)
 Set the OS limit on the number of open files. More...
 

Variables

FileInfoVectorfivp = nullptr
 

Typedef Documentation

◆ FileInfoAllocator

using anonymous_namespace{my_file.cc}::FileInfoAllocator = typedef Malloc_allocator<FileInfo>

◆ FileInfoVector

using anonymous_namespace{my_file.cc}::FileInfoVector = typedef std::vector<FileInfo, FileInfoAllocator>

Function Documentation

◆ SetOsLimitMaxOpenFiles()

uint anonymous_namespace{my_file.cc}::SetOsLimitMaxOpenFiles ( uint  max_file_limit)

Set the OS limit on the number of open files.

On POSIX systems this calls setrlimit(RLIMIT_NOFILE, ...). On Windows there is no corresponding api so the requested value is returned. The assumption being that the request will never be larger than OS_FILE_LIMIT,

See also
my_set_max_open_files.
Parameters
max_file_limitFiles to open
Note
The request may not fulfilled because of system limitations
Returns
Files available to open. May be more or less than max_file_limit!

Variable Documentation

◆ fivp

FileInfoVector* anonymous_namespace{my_file.cc}::fivp = nullptr