From nobody Mon Feb 05 20:38:35 2024 X-Original-To: dev-commits-src-all@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 4TTJB34rMCz58y0J; Mon, 5 Feb 2024 20:38:35 +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 4TTJB3408Fz4pvh; Mon, 5 Feb 2024 20:38:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707165515; 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=XDrj31Fzd8y8bRuvVaNParxNmcCLOXlCVyuyI6h5Cu4=; b=x5qr2v43jhth/AiP/lhemhUFmMJ1cu28AfMIgCqxXNaNPM/xPrmHsDqdDSi7GnCnSRMmAm W7PASwEUHPTP+WGpDtRPjDHKy3G1JvPDRBmA9rWqF9M5LPFqXJk0EkRy61jmdeJjOOQgYV V+Hh0ST/3pbywPLcBdze4wAA1Rl7ywjfpTqX1HhkRq83cLo2IFOeDS6pcQfI59e1i9y+/p tPVh3gyNr+DE3W23rw3/vPMw1uTfsGoCs453YG//AMXEBWlg4ttYNcxSsNnUs8ObxwcwC4 bKkYMARLW03hdTpccCBYcVVHkIXFzCaQGNpfOwo2ZprmnyWPjQL+xatOqQJr1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707165515; 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=XDrj31Fzd8y8bRuvVaNParxNmcCLOXlCVyuyI6h5Cu4=; b=ga0EZldLa4a0nqR8j+XT/u0jeEFHCiTWUuLsVToIEjWMZS/HLK4p0UnLwtf55XvazeoDsX 9RYy0/uJ/ufHS7kIIBvMoNoLSa/3L6p9maqybeJZl/z0kObLSNw6ZVaQOtfm9Eq2/p7dkc tNQZgRRdhbzbVXPT0ObbWzMG1i3OWRpU1qCkZ7vftTE3jpUzcfsoH2SPkxpo3RfpszILgW dmfUUbHgZLSr0neW7dLPYn6seAHE8Hng1W0YEB+NDAj4p7qHOokuky+DMr4tAz01iyiugU YSsyACDPo2DkgDOWL5fMV0FXDznxBmMaZiA+KdZpNOHfOrxCJ6X/fMuOuW5lPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707165515; a=rsa-sha256; cv=none; b=vjR2YcNbzfASh+Wq2BhyYrGPURd2lAwT5PRVuwnMltIfXcu+qX6gUGnhXIzaO+N0nagsMS Gk2gc9LJXTYsZxZEJcu4itgmjBZbZ/krXc8StvWtDPcqQgqgZOGlsTcEc5eFO0Ss/+Hkx4 IwPjTp7ykDhalOzhbkXrk2bemku3OLmjXUFBuqdiPJuzf3LDxAPkspNrdfCRYZv+jAAaHy QmytcWRo2kTaK1iOzpCfW8HHX7tfH2S7EYRBim+IIfJN/xJoaLqAyMyEjK90ZsNLu2K6Yq tAnLuPNwuWUzBkCOgV6Vfbys38IMi3v1LKjEWX5pXdGY4w2R8Q0yshSXTzvxWA== 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 4TTJB32QmbzvZS; Mon, 5 Feb 2024 20:38:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 415KcZPx069251; Mon, 5 Feb 2024 20:38:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 415KcZjB069248; Mon, 5 Feb 2024 20:38:35 GMT (envelope-from git) Date: Mon, 5 Feb 2024 20:38:35 GMT Message-Id: <202402052038.415KcZjB069248@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: cdecda8da32b - main - libc: move rfork_thread(3) to libsys List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cdecda8da32b67f2be34a4d2ea37f90986a45a00 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=cdecda8da32b67f2be34a4d2ea37f90986a45a00 commit cdecda8da32b67f2be34a4d2ea37f90986a45a00 Author: Brooks Davis AuthorDate: 2023-11-15 21:44:43 +0000 Commit: Brooks Davis CommitDate: 2024-02-05 20:34:56 +0000 libc: move rfork_thread(3) to libsys rfork_thread(3) is assembly that makes syscalls directly and uses cerror so it belongs in libsys. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908 --- lib/libc/amd64/gen/Makefile.inc | 2 +- lib/libc/gen/Makefile.inc | 1 - lib/libc/i386/gen/Makefile.inc | 2 +- lib/libsys/Makefile.sys | 1 + lib/libsys/amd64/Makefile.sys | 3 ++- lib/{libc/amd64/gen => libsys/amd64}/rfork_thread.S | 0 lib/libsys/i386/Makefile.sys | 3 ++- lib/{libc/i386/gen => libsys/i386}/rfork_thread.S | 0 lib/{libc/gen => libsys}/rfork_thread.3 | 0 9 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/libc/amd64/gen/Makefile.inc b/lib/libc/amd64/gen/Makefile.inc index 8175a99c8c8a..583418c4620e 100644 --- a/lib/libc/amd64/gen/Makefile.inc +++ b/lib/libc/amd64/gen/Makefile.inc @@ -1,5 +1,5 @@ -SRCS+= _setjmp.S rfork_thread.S setjmp.S sigsetjmp.S \ +SRCS+= _setjmp.S setjmp.S sigsetjmp.S \ fabs.S \ infinity.c ldexp.c makecontext.c signalcontext.c \ flt_rounds.c fpgetmask.c fpsetmask.c fpgetprec.c fpsetprec.c \ diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index b7eb92090722..9eeab36f7d00 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -279,7 +279,6 @@ MAN+= alarm.3 \ raise.3 \ rand48.3 \ readpassphrase.3 \ - rfork_thread.3 \ scandir.3 \ sem_destroy.3 \ sem_getvalue.3 \ diff --git a/lib/libc/i386/gen/Makefile.inc b/lib/libc/i386/gen/Makefile.inc index b4c5306ed1ce..1c4eb2a9981f 100644 --- a/lib/libc/i386/gen/Makefile.inc +++ b/lib/libc/i386/gen/Makefile.inc @@ -1,4 +1,4 @@ SRCS+= _ctx_start.S _setjmp.S fabs.S \ flt_rounds.c infinity.c ldexp.c makecontext.c \ - rfork_thread.S setjmp.S signalcontext.c sigsetjmp.S + setjmp.S signalcontext.c sigsetjmp.S diff --git a/lib/libsys/Makefile.sys b/lib/libsys/Makefile.sys index 7600c9ef2aae..880b0f7f08ed 100644 --- a/lib/libsys/Makefile.sys +++ b/lib/libsys/Makefile.sys @@ -365,6 +365,7 @@ MAN+= abort2.2 \ MAN+= \ lockf.3 \ + rfork_thread.3 \ sleep.3 \ usleep.3 diff --git a/lib/libsys/amd64/Makefile.sys b/lib/libsys/amd64/Makefile.sys index d4a767c90a5f..09947d998480 100644 --- a/lib/libsys/amd64/Makefile.sys +++ b/lib/libsys/amd64/Makefile.sys @@ -2,6 +2,7 @@ SRCS+= \ amd64_get_fsbase.c \ amd64_get_gsbase.c \ amd64_set_fsbase.c \ - amd64_set_gsbase.c + amd64_set_gsbase.c \ + rfork_thread.S MDASM= vfork.S cerror.S getcontext.S diff --git a/lib/libc/amd64/gen/rfork_thread.S b/lib/libsys/amd64/rfork_thread.S similarity index 100% rename from lib/libc/amd64/gen/rfork_thread.S rename to lib/libsys/amd64/rfork_thread.S diff --git a/lib/libsys/i386/Makefile.sys b/lib/libsys/i386/Makefile.sys index bbc3497aa5a5..f42c5f7ec0ef 100644 --- a/lib/libsys/i386/Makefile.sys +++ b/lib/libsys/i386/Makefile.sys @@ -1,6 +1,7 @@ SRCS+= i386_get_fsbase.c i386_get_gsbase.c i386_get_ioperm.c i386_get_ldt.c \ i386_set_fsbase.c i386_set_gsbase.c i386_set_ioperm.c i386_set_ldt.c \ - i386_clr_watch.c i386_set_watch.c i386_vm86.c + i386_clr_watch.c i386_set_watch.c i386_vm86.c \ + rfork_thread.S MDASM= vfork.S cerror.S getcontext.S syscall.S diff --git a/lib/libc/i386/gen/rfork_thread.S b/lib/libsys/i386/rfork_thread.S similarity index 100% rename from lib/libc/i386/gen/rfork_thread.S rename to lib/libsys/i386/rfork_thread.S diff --git a/lib/libc/gen/rfork_thread.3 b/lib/libsys/rfork_thread.3 similarity index 100% rename from lib/libc/gen/rfork_thread.3 rename to lib/libsys/rfork_thread.3