git: f70c5a0925c6 - main - libc: move getpagesize(s) to libsys

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Mon, 05 Feb 2024 20:38:39 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=f70c5a0925c621ce862327a1f335394e731fbaed

commit f70c5a0925c621ce862327a1f335394e731fbaed
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-11-17 18:55:25 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-02-05 20:34:56 +0000

    libc: move getpagesize(s) to libsys
    
    Reviewed by:    kib, emaste, imp
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/908
---
 lib/libc/gen/Makefile.inc               | 4 ----
 lib/libc/gen/Symbol.map                 | 2 --
 lib/libsys/Makefile.sys                 | 4 ++++
 lib/libsys/Symbol.sys.map               | 2 ++
 lib/{libc/gen => libsys}/getpagesize.3  | 0
 lib/{libc/gen => libsys}/getpagesize.c  | 0
 lib/{libc/gen => libsys}/getpagesizes.3 | 0
 lib/{libc/gen => libsys}/getpagesizes.c | 0
 8 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 64b3e99ec6c0..6d1f98c241d4 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -77,8 +77,6 @@ SRCS+=	__getosreldate.c \
 	getmntinfo-compat11.c \
 	getnetgrent.c \
 	getosreldate.c \
-	getpagesize.c \
-	getpagesizes.c \
 	getpeereid.c \
 	getprogname.c \
 	getpwent.c \
@@ -241,8 +239,6 @@ MAN+=	alarm.3 \
 	getmntinfo.3 \
 	getnetgrent.3 \
 	getosreldate.3 \
-	getpagesize.3 \
-	getpagesizes.3 \
 	getpass.3 \
 	getpeereid.3 \
 	getprogname.3 \
diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map
index 73b0f58e5f26..7d1fe00284fd 100644
--- a/lib/libc/gen/Symbol.map
+++ b/lib/libc/gen/Symbol.map
@@ -159,7 +159,6 @@ FBSD_1.0 {
 	endnetgrent;
 	innetgr;
 	getosreldate;
-	getpagesize;
 	getpeereid;
 	_getprogname;
 	getprogname;
@@ -339,7 +338,6 @@ FBSD_1.1 {
 FBSD_1.2 {
 	cfmakesane;
 	endutxent;
-	getpagesizes;
 	getutxent;
 	getutxid;
 	getutxline;
diff --git a/lib/libsys/Makefile.sys b/lib/libsys/Makefile.sys
index e8db2a585ce4..e299396585b9 100644
--- a/lib/libsys/Makefile.sys
+++ b/lib/libsys/Makefile.sys
@@ -33,6 +33,8 @@ PSEUDO+= _clock_gettime.o _gettimeofday.o
 SRCS+=	\
 	__error.c \
 	_once_stub.c \
+	getpagesize.c \
+	getpagesizes.c \
 	interposing_table.c
 
 SRCS+= getdents.c lstat.c mknod.c stat.c
@@ -371,6 +373,8 @@ MAN+=	abort2.2 \
 	_umtx_op.2
 
 MAN+= \
+	getpagesize.3 \
+	getpagesizes.3 \
 	lockf.3 \
 	rfork_thread.3 \
 	sleep.3 \
diff --git a/lib/libsys/Symbol.sys.map b/lib/libsys/Symbol.sys.map
index 17731304d311..34c5984ddde6 100644
--- a/lib/libsys/Symbol.sys.map
+++ b/lib/libsys/Symbol.sys.map
@@ -98,6 +98,7 @@ FBSD_1.0 {
 	getgid;
 	getgroups;
 	getitimer;
+	getpagesize;
 	getpeername;
 	getpgid;
 	getpgrp;
@@ -331,6 +332,7 @@ FBSD_1.2 {
 	cap_enter;
 	cap_getmode;
 	getloginclass;
+	getpagesizes;
 	pdfork;
 	pdgetpid;
 	pdkill;
diff --git a/lib/libc/gen/getpagesize.3 b/lib/libsys/getpagesize.3
similarity index 100%
rename from lib/libc/gen/getpagesize.3
rename to lib/libsys/getpagesize.3
diff --git a/lib/libc/gen/getpagesize.c b/lib/libsys/getpagesize.c
similarity index 100%
rename from lib/libc/gen/getpagesize.c
rename to lib/libsys/getpagesize.c
diff --git a/lib/libc/gen/getpagesizes.3 b/lib/libsys/getpagesizes.3
similarity index 100%
rename from lib/libc/gen/getpagesizes.3
rename to lib/libsys/getpagesizes.3
diff --git a/lib/libc/gen/getpagesizes.c b/lib/libsys/getpagesizes.c
similarity index 100%
rename from lib/libc/gen/getpagesizes.c
rename to lib/libsys/getpagesizes.c