summaryrefslogtreecommitdiff
path: root/lib/nproc.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2009-03-25 13:01:24 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2009-03-25 13:01:24 -0700
commit4cc93d2296593047de7a0c84455855832596bde9 (patch)
treebe983b198c82ac3c5c3d68d08153dc3fb1ecb3ec /lib/nproc.h
parenta04b3886c0502a65de65d96bf8aa7eb68e874cc2 (diff)
downloadgnulib-4cc93d2296593047de7a0c84455855832596bde9.tar.gz
New modules nproc, pthread.
* MODULES.html.sh: Add pthread, nproc. * lib/nproc.c: New file. * lib/nproc.h: New file. * lib/pthread.in.h: New file. * m4/pthread.m4: New file. * modules/nproc: New file. * modules/pthread: New file.
Diffstat (limited to 'lib/nproc.h')
-rw-r--r--lib/nproc.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/nproc.h b/lib/nproc.h
new file mode 100644
index 0000000000..fe5b57e959
--- /dev/null
+++ b/lib/nproc.h
@@ -0,0 +1,21 @@
+/* Detect the number of processors.
+
+ Copyright (C) 2009 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/* Written by Glen Lenker. */
+
+unsigned long int num_processors (void);