* syscalls.cc (getshmlba): New function.
* external.cc (cygwin_internal): Add CW_GET_SHMLBA handling. * mmap.cc (mmap64): Call getshmlba to evaluate granularity. * winsup.h (getshmlba): Add declaration. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_SHMLBA.
This commit is contained in:
@@ -1529,6 +1529,14 @@ getpagesize ()
|
||||
return (int) system_info.dwPageSize;
|
||||
}
|
||||
|
||||
size_t
|
||||
getshmlba ()
|
||||
{
|
||||
if (!system_info.dwAllocationGranularity)
|
||||
GetSystemInfo (&system_info);
|
||||
return system_info.dwAllocationGranularity;
|
||||
}
|
||||
|
||||
static int
|
||||
check_posix_perm (const char *fname, int v)
|
||||
{
|
||||
|
Reference in New Issue
Block a user