* sysconf.cc (get_nprocs): New function.
(get_nprocs_conf): Ditto. (get_avphys_pages): Ditto. (get_phys_pages): Ditto. * cygwin.din: Export them. * include/sys/sysinfo.h: New header, decalre above new functions. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * posix.sgml: Mention them as GNU extensions.
This commit is contained in:
@@ -371,12 +371,13 @@ details. */
|
||||
215: CW_EXIT_PROCESS added.
|
||||
216: CW_SET_EXTERNAL_TOKEN added.
|
||||
217: CW_GET_INSTKEY added.
|
||||
218: Export get_nprocs, get_nprocs_conf, get_phys_pages, get_avphys_pages.
|
||||
*/
|
||||
|
||||
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
||||
|
||||
#define CYGWIN_VERSION_API_MAJOR 0
|
||||
#define CYGWIN_VERSION_API_MINOR 217
|
||||
#define CYGWIN_VERSION_API_MINOR 218
|
||||
|
||||
/* There is also a compatibity version number associated with the
|
||||
shared memory regions. It is incremented when incompatible
|
||||
|
27
winsup/cygwin/include/sys/sysinfo.h
Normal file
27
winsup/cygwin/include/sys/sysinfo.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/* sys/sysinfo.h
|
||||
|
||||
Copyright 2009 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
This software is a copyrighted work licensed under the terms of the
|
||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||
details. */
|
||||
|
||||
/* sys/sysinfo.h header file for Cygwin. */
|
||||
|
||||
#ifndef _SYS_SYSINFO_H
|
||||
#define _SYS_SYSINFO_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
extern int get_nprocs_conf (void);
|
||||
extern int get_nprocs (void);
|
||||
extern long get_phys_pages (void);
|
||||
extern long get_avphys_pages (void);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SYS_SYSINFO_H */
|
Reference in New Issue
Block a user