1*ace5b9b5Schristos /* $NetBSD: sched.h,v 1.1 2024/01/20 14:52:46 christos Exp $ */ 2*ace5b9b5Schristos 3*ace5b9b5Schristos /*- 4*ace5b9b5Schristos * Copyright (c) 2001 The NetBSD Foundation, Inc. 5*ace5b9b5Schristos * All rights reserved. 6*ace5b9b5Schristos * 7*ace5b9b5Schristos * This code is derived from software contributed to The NetBSD Foundation 8*ace5b9b5Schristos * by Nathan J. Williams. 9*ace5b9b5Schristos * 10*ace5b9b5Schristos * Redistribution and use in source and binary forms, with or without 11*ace5b9b5Schristos * modification, are permitted provided that the following conditions 12*ace5b9b5Schristos * are met: 13*ace5b9b5Schristos * 1. Redistributions of source code must retain the above copyright 14*ace5b9b5Schristos * notice, this list of conditions and the following disclaimer. 15*ace5b9b5Schristos * 2. Redistributions in binary form must reproduce the above copyright 16*ace5b9b5Schristos * notice, this list of conditions and the following disclaimer in the 17*ace5b9b5Schristos * documentation and/or other materials provided with the distribution. 18*ace5b9b5Schristos * 19*ace5b9b5Schristos * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*ace5b9b5Schristos * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*ace5b9b5Schristos * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*ace5b9b5Schristos * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*ace5b9b5Schristos * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*ace5b9b5Schristos * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*ace5b9b5Schristos * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*ace5b9b5Schristos * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*ace5b9b5Schristos * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*ace5b9b5Schristos * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*ace5b9b5Schristos * POSSIBILITY OF SUCH DAMAGE. 30*ace5b9b5Schristos */ 31*ace5b9b5Schristos 32*ace5b9b5Schristos #ifndef _COMPAT_SCHED_H_ 33*ace5b9b5Schristos #define _COMPAT_SCHED_H_ 34*ace5b9b5Schristos 35*ace5b9b5Schristos #include <sys/cdefs.h> 36*ace5b9b5Schristos #include <sys/featuretest.h> 37*ace5b9b5Schristos #include <sys/sched.h> 38*ace5b9b5Schristos 39*ace5b9b5Schristos /* Required by POSIX 1003.1, section 13.1, lines 12-13. */ 40*ace5b9b5Schristos #include <compat/sys/time.h> 41*ace5b9b5Schristos 42*ace5b9b5Schristos __BEGIN_DECLS 43*ace5b9b5Schristos struct timespec50; 44*ace5b9b5Schristos int sched_rr_get_interval(pid_t, struct timespec50 *); 45*ace5b9b5Schristos __END_DECLS 46*ace5b9b5Schristos 47*ace5b9b5Schristos #endif /* _COMPAT_SCHED_H_ */ 48