From patchwork Sat Feb 18 20:37:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 65219 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1589C3881D0B for ; Sat, 18 Feb 2023 20:38:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1589C3881D0B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676752688; bh=zzKFMDhwlQY0ot1PZjl4B1IWgo/TsIFdvWREdCaiktM=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KsEQou4RdATainrz2lwWaoazESReqnKgsxSTuJ7MPlIbkDOK4ux/G3K8xAz8Obvbs /qsdFy90D0JMbHcGUIMy3LaW8z6d8DMqkqAL0SBtZ06F2jWy4DQapERpQdSgi3mGC1 bG7IVqVyL1up+8cF854QeLtpmo/d9CN0KN2oL/PM= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id 20B35385841E for ; Sat, 18 Feb 2023 20:37:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20B35385841E Received: by mail-lj1-x22d.google.com with SMTP id z10so1348376ljc.1 for ; Sat, 18 Feb 2023 12:37:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zzKFMDhwlQY0ot1PZjl4B1IWgo/TsIFdvWREdCaiktM=; b=cfm1PgBnRETFVhbSqHaw42mYWGfmOJAzLr4kIg0kcmbpcLFv5Lh9d2GDPd3Oz3X/0k 7WxBfMmfXb3Au2XUVGHnvL10tMBZoJ+52xyrWZJvovvoYVWkdfept5ihfSUPphfwuchV ylLfaM7iNkrnqqNfNhcQtZ62mqEyzRqLWyKEiRYeSATSdlSa8nNl2w3yGcdxkW0D7zps XQ2ne4bGsi8zHLpn4CZvjbtMMOu7Ooqi4aySiyobFqjGNs5zcFnz/j1zmDSldLb8Gi/A YKrAS9ALqMVcMfN18cNl1lYx0SG7sCLfBmS3Hnww5EWL84P+j1kr+uw0Jjgz1/lRreao Y1nw== X-Gm-Message-State: AO0yUKWdpnShA2ZlrtVj45mXpovsNZjvDxKGlh+GEOoQGyX1iP3uXSX+ JGA1A2IoVqyqH6E8306QT0Y= X-Google-Smtp-Source: AK7set/PK5eZcEEZ0+S8WtO1sHd9XrO9ItfSETytUy/IQOn/3wKY5mAQPRyA+Ukq2BYAtjO3SA4JBw== X-Received: by 2002:a2e:7005:0:b0:295:5305:855f with SMTP id l5-20020a2e7005000000b002955305855fmr1177009ljc.53.1676752656600; Sat, 18 Feb 2023 12:37:36 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:e4a7:ca9:e8d7:4ead]) by smtp.gmail.com with ESMTPSA id u15-20020a05651c130f00b002934febffe4sm1004049lja.128.2023.02.18.12.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Feb 2023 12:37:36 -0800 (PST) To: bug-hurd@gnu.org, libc-alpha@sourceware.org Cc: =?utf-8?q?Fl=C3=A1vio_Cruz?= , Sergey Bugaev Subject: [RFC PATCH 3/9] hurd: Fix xattr function return type Date: Sat, 18 Feb 2023 23:37:11 +0300 Message-Id: <20230218203717.373211-4-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230218203717.373211-1-bugaevc@gmail.com> References: <20230218203717.373211-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" They all return int, not size_t. Signed-off-by: Sergey Bugaev --- sysdeps/mach/hurd/fsetxattr.c | 2 +- sysdeps/mach/hurd/lremovexattr.c | 2 +- sysdeps/mach/hurd/lsetxattr.c | 2 +- sysdeps/mach/hurd/removexattr.c | 2 +- sysdeps/mach/hurd/setxattr.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sysdeps/mach/hurd/fsetxattr.c b/sysdeps/mach/hurd/fsetxattr.c index 71ee7599..dcc48fa0 100644 --- a/sysdeps/mach/hurd/fsetxattr.c +++ b/sysdeps/mach/hurd/fsetxattr.c @@ -22,7 +22,7 @@ #include #include -ssize_t +int fsetxattr (int fd, const char *name, const void *value, size_t size, int flags) { error_t err; diff --git a/sysdeps/mach/hurd/lremovexattr.c b/sysdeps/mach/hurd/lremovexattr.c index 1d761e2d..cb6a1f8f 100644 --- a/sysdeps/mach/hurd/lremovexattr.c +++ b/sysdeps/mach/hurd/lremovexattr.c @@ -22,7 +22,7 @@ #include #include -ssize_t +int lremovexattr (const char *path, const char *name) { error_t err; diff --git a/sysdeps/mach/hurd/lsetxattr.c b/sysdeps/mach/hurd/lsetxattr.c index 56c138dc..4e1e2de2 100644 --- a/sysdeps/mach/hurd/lsetxattr.c +++ b/sysdeps/mach/hurd/lsetxattr.c @@ -22,7 +22,7 @@ #include #include -ssize_t +int lsetxattr (const char *path, const char *name, const void *value, size_t size, int flags) { diff --git a/sysdeps/mach/hurd/removexattr.c b/sysdeps/mach/hurd/removexattr.c index 128d0e01..fedc5370 100644 --- a/sysdeps/mach/hurd/removexattr.c +++ b/sysdeps/mach/hurd/removexattr.c @@ -21,7 +21,7 @@ #include #include -ssize_t +int removexattr (const char *path, const char *name) { error_t err; diff --git a/sysdeps/mach/hurd/setxattr.c b/sysdeps/mach/hurd/setxattr.c index be3b172b..ba6047cd 100644 --- a/sysdeps/mach/hurd/setxattr.c +++ b/sysdeps/mach/hurd/setxattr.c @@ -21,7 +21,7 @@ #include #include -ssize_t +int setxattr (const char *path, const char *name, const void *value, size_t size, int flags) {