From: Kay Sievers Date: Thu, 24 Apr 2014 08:32:26 +0000 (+0200) Subject: return EOPNOTSUPP instead of in-kernel-only ENOTSUPP X-Git-Tag: upstream/0.20140911.160207utc~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eb876d8db5afe05ce1f6dff210feedad8fae444;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git return EOPNOTSUPP instead of in-kernel-only ENOTSUPP --- diff --git a/endpoint.c b/endpoint.c index f37b80a..7267a56 100644 --- a/endpoint.c +++ b/endpoint.c @@ -279,7 +279,7 @@ int kdbus_ep_policy_set(struct kdbus_ep *ep, size_t items_size) { if (!ep->policy_db) - return -ENOTSUPP; + return -EOPNOTSUPP; if (items_size == 0) return 0; diff --git a/handle.c b/handle.c index eda88c1..979df57 100644 --- a/handle.c +++ b/handle.c @@ -328,7 +328,7 @@ static long kdbus_handle_ioctl_control(struct file *file, unsigned int cmd, break; if (!kdbus_check_flags(make->flags)) { - ret = -ENOTSUPP; + ret = -EOPNOTSUPP; break; } @@ -370,7 +370,7 @@ static long kdbus_handle_ioctl_control(struct file *file, unsigned int cmd, break; if (!kdbus_check_flags(make->flags)) { - ret = -ENOTSUPP; + ret = -EOPNOTSUPP; break; } @@ -435,7 +435,7 @@ static long kdbus_handle_ioctl_ep(struct file *file, unsigned int cmd, break; if (!kdbus_check_flags(make->flags)) { - ret = -ENOTSUPP; + ret = -EOPNOTSUPP; break; } @@ -490,7 +490,7 @@ static long kdbus_handle_ioctl_ep(struct file *file, unsigned int cmd, hello = p; if (!kdbus_check_flags(hello->conn_flags)) { - ret = -ENOTSUPP; + ret = -EOPNOTSUPP; break; } diff --git a/kdbus.h b/kdbus.h index b8861ce..e9f7d44 100644 --- a/kdbus.h +++ b/kdbus.h @@ -924,14 +924,14 @@ enum kdbus_ioctl_type { * @ENOMSG: The queue is not empty, but no message with a matching * priority is currently queued. * @ENOSYS: The requested functionality is not available. - * @ENOTSUPP: The feature negotiation failed, a not supported feature - * was requested, or an unknown item type was received. * @ENOTTY: An unknown ioctl command was received. * @ENOTUNIQ: A specific data type was addressed to a broadcast * address, but only direct addresses support this kind of * data. * @ENXIO: A unique address does not exist, or an offset in the * receiver's pool does not represent a queued message. + * @EOPNOTSUPP: The feature negotiation failed, a not supported feature + * was requested, or an unknown item type was received. * @EPERM: The policy prevented an operation. The requested * resource is owned by another entity. * @EPIPE: When sending a message, a synchronous reply from the