From nobody Fri Jan 14 18:10:16 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3562519423BF; Fri, 14 Jan 2022 18:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jb8V10sxvz4p4J; Fri, 14 Jan 2022 18:10:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642183817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uTr/H+Z6oNLANiO1dyWEX06SInM16ASap/IHCJh/XS8=; b=bnsRdn/bRDTbp29DYVJrhsSxf8J5wM6u6/vdUFv4DN/nHhtXpUV712/bUUDdaCZRSATqMa Lk1wkPn/w52GUTxD17XfspgKEsrS3NreJERD8/yKhfMIYGhDnrAVUzT2vhBGROdejHm7gL D0kRGuprcyysQOhL5HmnmnJ4W+8aIyWCr9sx7KfdAaR2nT3GhP1e2Sh9hjqwmkz7ffaJd5 dx5f0l8cKIiVaWmVGf0NSj8LI2Dt08cUS+RhTVsKbxCh7m/jPHPF3EGJLsa1clXcInkTTD joNTUHx+a9o3I0BBPy1UH7kK+5AjMJynkocFjyG73LHdrmsKfZ9QmCzVsRm46g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F2EDE186E1; Fri, 14 Jan 2022 18:10:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20EIAGSJ092861; Fri, 14 Jan 2022 18:10:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20EIAGs5092854; Fri, 14 Jan 2022 18:10:16 GMT (envelope-from git) Date: Fri, 14 Jan 2022 18:10:16 GMT Message-Id: <202201141810.20EIAGs5092854@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: b9d131feb352 - stable/13 - Add real sched.h List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b9d131feb3529981c365f444f4e804ed184ddaf6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642183817; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uTr/H+Z6oNLANiO1dyWEX06SInM16ASap/IHCJh/XS8=; b=OWm6tyMzyBwwK0PFWomN3fD0C7z3HwgMaQhhK/lbv0RvD5Lm38QhaZh615jxi/ZA931ZHr JuMvPPsYrHwfq1ymaW6v93xdZMEeTU2yn0ozAf5qtP0LbbIaLiFx/a5ybhNvSCMEWUjlnm Inl1qxMfnGeSK8+3lf8hX6yBCi9Ou9rbtwaU6Ow9nqYNnWvlbWXm3+OoSTgLGlqjYQbJqt crgWcwiAXwzK3IcGNF7V1Ufh0DaLMCck7C6529WvdjVwoUS7INzBG9ppACtAA78KUElDFc S5RM8zquPa9TinWKfcjFtxt6PJQr4Jn3LdO48S1EyQKBxWbBvXQuxB/NXwcHuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642183817; a=rsa-sha256; cv=none; b=ZtVbB34jZCXSgp8hqMe7ZFnkxd3fyvlv+2YLRRl2+skSlgyeLGyBi3RykVCz5sfS1HSrQe KYnHGMJAvhKgpyvrZ2VMHe9JKW/VANp6lAFBtjAs3yl73T9a0hd4gLBHpM/z7bnW9r9eVy 6df+xozMrLqRP5AY0Y87xgUvah3qzgvZype0Ch1y93oJQiJeVWmBI7oO6MPqSxld6Tkgny Ug+0oLg2GyYIexKiUAevk2+egFVfWuCxO9gZDKDxQWaz3B9uMhMri/By0VTxeL7nfmGp8r Jd0uu5wVTSqlnSAEV4Jaz7q+id+XNiXHWr2Ackj9wcoqu27eIpaXTxyS8ZuZBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b9d131feb3529981c365f444f4e804ed184ddaf6 commit b9d131feb3529981c365f444f4e804ed184ddaf6 Author: Konstantin Belousov AuthorDate: 2021-10-22 15:17:21 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-14 16:17:29 +0000 Add real sched.h (cherry picked from commit 160b4b922b6021848b6b48afc894d16b879b7af2) --- include/Makefile | 5 +++-- include/sched.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) diff --git a/include/Makefile b/include/Makefile index b444184ab8c6..7f4df4fb837d 100644 --- a/include/Makefile +++ b/include/Makefile @@ -20,7 +20,8 @@ INCS= a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \ netdb.h nl_types.h nlist.h nss.h nsswitch.h paths.h \ printf.h proc_service.h pthread.h \ pthread_np.h pwd.h ranlib.h readpassphrase.h regex.h \ - res_update.h resolv.h runetype.h search.h semaphore.h setjmp.h \ + res_update.h resolv.h runetype.h sched.h \ + search.h semaphore.h setjmp.h \ signal.h spawn.h stab.h stdalign.h stdbool.h stddef.h \ stdnoreturn.h stdio.h stdlib.h string.h stringlist.h \ strings.h sysexits.h tar.h termios.h tgmath.h \ @@ -33,7 +34,7 @@ INCS+= vis.h MHDRS= float.h floatingpoint.h stdarg.h -PHDRS= sched.h _semaphore.h +PHDRS= _semaphore.h LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \ syslog.h ucontext.h diff --git a/include/sched.h b/include/sched.h new file mode 100644 index 000000000000..1a8eac18109c --- /dev/null +++ b/include/sched.h @@ -0,0 +1,46 @@ +/*- + * Copyright (c) 2021 The FreeBSD Foundation + * + * This software were developed by Konstantin Belousov + * under sponsorship from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef __SCHED_H__ +#define __SCHED_H__ + +#include +#include +#include +#if __BSD_VISIBLE +#include +#endif /* __BSD_VISIBLE */ + +#if __BSD_VISIBLE +#ifdef _WITH_CPU_SET_T +struct _cpuset; +typedef struct _cpuset cpu_set_t; +#endif /* _WITH_CPU_SET_T */ +#endif /* __BSD_VISIBLE */ + +#endif /* __SCHED_H__ */