From 9284ddfd23fe4c328e4ff4243780e2e9c691390b Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 26 May 2021 18:05:40 +0300 Subject: libports: Return EOPNOTSUPP when appropriate We do not impement most of the mach_notify_* () routines. Explicitly return an error code so that our caller knows to properly deallocate all resources the messages may carry. --- libports/notify-msg-accepted.c | 2 +- libports/notify-port-deleted.c | 2 +- libports/notify-port-destroyed.c | 2 +- libports/notify-send-once.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'libports') diff --git a/libports/notify-msg-accepted.c b/libports/notify-msg-accepted.c index 0e49715d..769d00f1 100644 --- a/libports/notify-msg-accepted.c +++ b/libports/notify-msg-accepted.c @@ -25,5 +25,5 @@ error_t ports_do_mach_notify_msg_accepted (struct port_info *pi, mach_port_t name) { - return 0; + return EOPNOTSUPP; } diff --git a/libports/notify-port-deleted.c b/libports/notify-port-deleted.c index cfd33793..33ecc251 100644 --- a/libports/notify-port-deleted.c +++ b/libports/notify-port-deleted.c @@ -25,5 +25,5 @@ error_t ports_do_mach_notify_port_deleted (struct port_info *pi, mach_port_t name) { - return 0; + return EOPNOTSUPP; } diff --git a/libports/notify-port-destroyed.c b/libports/notify-port-destroyed.c index b8ece2a3..b49aad24 100644 --- a/libports/notify-port-destroyed.c +++ b/libports/notify-port-destroyed.c @@ -25,5 +25,5 @@ error_t ports_do_mach_notify_port_destroyed (struct port_info *pi, mach_port_t name) { - return 0; + return EOPNOTSUPP; } diff --git a/libports/notify-send-once.c b/libports/notify-send-once.c index ad0ba334..a680802a 100644 --- a/libports/notify-send-once.c +++ b/libports/notify-send-once.c @@ -24,5 +24,5 @@ error_t ports_do_mach_notify_send_once (struct port_info *pi) { - return 0; + return EOPNOTSUPP; } -- cgit v1.2.3