The branch main has been updated by des:

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

commit 979210375351a667c248af09cfede81d0282fd75
Author:     Dag-Erling Smørgrav <d...@freebsd.org>
AuthorDate: 2025-07-24 14:01:09 +0000
Commit:     Dag-Erling Smørgrav <d...@freebsd.org>
CommitDate: 2025-07-24 14:01:09 +0000

    libc: Remove unused pselect() implementation.
    
    This hasn't been needed since FreeBSD 5.0.
    
    Reviewed by:    kevans
    Differential Revision:  https://reviews.freebsd.org/D51434
---
 lib/libc/resolv/res_send.c | 31 -------------------------------
 1 file changed, 31 deletions(-)

diff --git a/lib/libc/resolv/res_send.c b/lib/libc/resolv/res_send.c
index a68ce4f40701..08c3aed7f934 100644
--- a/lib/libc/resolv/res_send.c
+++ b/lib/libc/resolv/res_send.c
@@ -140,11 +140,6 @@ static void                Aerror(const res_state, FILE *, 
const char *, int,
 static void            Perror(const res_state, FILE *, const char *, int);
 #endif
 static int             sock_eq(struct sockaddr *, struct sockaddr *);
-#if defined(NEED_PSELECT) && !defined(USE_POLL) && !defined(USE_KQUEUE)
-static int             pselect(int, void *, void *, void *,
-                               struct timespec *,
-                               const sigset_t *);
-#endif
 void res_pquery(const res_state, const u_char *, int, FILE *);
 
 static const int niflags = NI_NUMERICHOST | NI_NUMERICSERV;
@@ -1147,29 +1142,3 @@ sock_eq(struct sockaddr *a, struct sockaddr *b) {
                return 0;
        }
 }
-
-#if defined(NEED_PSELECT) && !defined(USE_POLL) && !defined(USE_KQUEUE)
-/* XXX needs to move to the porting library. */
-static int
-pselect(int nfds, void *rfds, void *wfds, void *efds,
-       struct timespec *tsp, const sigset_t *sigmask)
-{
-       struct timeval tv, *tvp;
-       sigset_t sigs;
-       int n;
-
-       if (tsp) {
-               tvp = &tv;
-               tv = evTimeVal(*tsp);
-       } else
-               tvp = NULL;
-       if (sigmask)
-               sigprocmask(SIG_SETMASK, sigmask, &sigs);
-       n = select(nfds, rfds, wfds, efds, tvp);
-       if (sigmask)
-               sigprocmask(SIG_SETMASK, &sigs, NULL);
-       if (tsp)
-               *tsp = evTimeSpec(tv);
-       return (n);
-}
-#endif

Reply via email to