1*4afad4b7Schristos /* $NetBSD: os.h,v 1.1 2024/02/18 20:57:53 christos Exp $ */ 2*4afad4b7Schristos 3*4afad4b7Schristos /* 4*4afad4b7Schristos * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 5*4afad4b7Schristos * 6*4afad4b7Schristos * SPDX-License-Identifier: MPL-2.0 7*4afad4b7Schristos * 8*4afad4b7Schristos * This Source Code Form is subject to the terms of the Mozilla Public 9*4afad4b7Schristos * License, v. 2.0. If a copy of the MPL was not distributed with this 10*4afad4b7Schristos * file, you can obtain one at https://mozilla.org/MPL/2.0/. 11*4afad4b7Schristos * 12*4afad4b7Schristos * See the COPYRIGHT file distributed with this work for additional 13*4afad4b7Schristos * information regarding copyright ownership. 14*4afad4b7Schristos */ 15*4afad4b7Schristos 16*4afad4b7Schristos #ifndef ISC_OS_H 17*4afad4b7Schristos #define ISC_OS_H 1 18*4afad4b7Schristos 19*4afad4b7Schristos /*! \file isc/os.h */ 20*4afad4b7Schristos 21*4afad4b7Schristos #include <isc/lang.h> 22*4afad4b7Schristos 23*4afad4b7Schristos ISC_LANG_BEGINDECLS 24*4afad4b7Schristos 25*4afad4b7Schristos unsigned int 26*4afad4b7Schristos isc_os_ncpus(void); 27*4afad4b7Schristos /*%< 28*4afad4b7Schristos * Return the number of CPUs available on the system, or 1 if this cannot 29*4afad4b7Schristos * be determined. 30*4afad4b7Schristos */ 31*4afad4b7Schristos 32*4afad4b7Schristos ISC_LANG_ENDDECLS 33*4afad4b7Schristos 34*4afad4b7Schristos #endif /* ISC_OS_H */ 35