* 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:
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