Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115464842
D48043.id147946.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
D48043.id147946.diff
View Options
diff --git a/include/ssp/poll.h b/include/ssp/poll.h
--- a/include/ssp/poll.h
+++ b/include/ssp/poll.h
@@ -42,7 +42,7 @@
return (__ssp_real(poll)(fds, nfds, timeout));
}
-#if __BSD_VISIBLE
+#if _POSIX_C_SOURCE >= 202405
__ssp_redirect_raw_impl(int, ppoll, ppoll,
(struct pollfd fds[], nfds_t nfds,
const struct timespec *__restrict timeout,
@@ -53,7 +53,7 @@
return (__ssp_real(ppoll)(fds, nfds, timeout, newsigmask));
}
-#endif /* __BSD_VISIBLE */
+#endif /* _POSIX_C_SOURCE >= 202405 */
__END_DECLS
#endif /* __SSP_FORTIFY_LEVEL > 0 */
diff --git a/lib/libsys/poll.2 b/lib/libsys/poll.2
--- a/lib/libsys/poll.2
+++ b/lib/libsys/poll.2
@@ -27,7 +27,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 27, 2021
+.Dd December 11, 2024
.Dt POLL 2
.Os
.Sh NAME
@@ -268,7 +268,8 @@
.St -p1003.1-2001 .
The
.Fn ppoll
-is not specified by POSIX.
+function conforms to
+.St -p1003.1-2024 .
The
POLLRDHUP
flag is not specified by POSIX, but is compatible with Linux and illumos.
diff --git a/sys/sys/poll.h b/sys/sys/poll.h
--- a/sys/sys/poll.h
+++ b/sys/sys/poll.h
@@ -96,7 +96,7 @@
#ifndef _KERNEL
-#if __BSD_VISIBLE
+#if _POSIX_C_SOURCE >= 202405
#include <sys/_types.h>
#include <sys/_sigset.h>
@@ -115,7 +115,7 @@
__BEGIN_DECLS
int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
-#if __BSD_VISIBLE
+#if _POSIX_C_SOURCE >= 202405
int ppoll(struct pollfd _pfd[], nfds_t _nfds,
const struct timespec *__restrict _timeout,
const sigset_t *__restrict _newsigmask);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 25, 3:22 AM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17774355
Default Alt Text
D48043.id147946.diff (1 KB)
Attached To
Mode
D48043: Tweak ppoll() to include 1003.1-2024 visibility
Attached
Detach File
Event Timeline
Log In to Comment