Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151437491
D51434.id158815.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D51434.id158815.diff
View Options
diff --git a/lib/libc/resolv/res_send.c b/lib/libc/resolv/res_send.c
--- a/lib/libc/resolv/res_send.c
+++ b/lib/libc/resolv/res_send.c
@@ -140,11 +140,6 @@
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 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 9:57 AM (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31150847
Default Alt Text
D51434.id158815.diff (1 KB)
Attached To
Mode
D51434: libc: Remove unused pselect() implementation.
Attached
Detach File
Event Timeline
Log In to Comment