From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id A862F384D154 for ; Thu, 20 Oct 2022 18:27:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A862F384D154 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x42d.google.com with SMTP id i3so323488pfk.9 for ; Thu, 20 Oct 2022 11:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WkjdKgikM8lQqVvpoElm4Qa2mG6bPEzSvINd5U512O0=; b=N+SMBh7KwTTQlgHHfcBMgjCJj2SrP2AerLtevGHGgIOmFbf3+5GpbxUARNkT99FAsj dHbdqBo+T0fZFFpr/6P5DXr/q9umcVkfXyB0JCsVMv/luwY8XCo8IS8+aUYqemSf7oIP Hmh9l/PbkQ8i5JD+XOiE9M805WKLFAFs3hlQlW00x/LKlB/s+iavNJqXa9wDVko1qnoE 0HD3B4IQTrUAf69TX/qYb/rVOceCv8rBW2oGBdIFQt0e6fPjXwRVP3T2Zyzb4y8rtNTL jKgQa/lVXuB+bC7zbpWr64YvyPvjwHbnZ445z6V151Hvvhyz5XlBeo2AnzHbkoCJInwx Ugiw== 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=WkjdKgikM8lQqVvpoElm4Qa2mG6bPEzSvINd5U512O0=; b=Hq1Z9tKTqKm3dq41s7wc06EXi7+rV53NFOQ6M2FP+ghqlyDOfPB7A1yY0QZSvTJ4OC no0iMeGIfebs42h5T/2aX7sgV5JfxDq7v+Db6rDmeor9s7m974V2PuE9Cvbrtzc3nguo xu9flvhgelhXbbUEBobpB0OU9uFNb08in05kG6dAGhmd+x4Zrf/ZV5hdpwR4EgE1n4GW a58yCeHjxzeiujwMfgjuI7Wb9jyHQ1EWAiO6MRzAvkMlOJ80DeZPoNrn6TQcs5RUlCGs AQ/GfqY4oVyuQ9yjNUvca61H5Pkk4CMmwE/A9t+Z7yXL7sjx3nZ2ddynS/EgOMoTLiU5 e8ZQ== X-Gm-Message-State: ACrzQf2ObWAAzjaS2Ncj4L/ZozuHJOY8/I4YqbnOkXgONSEEgE1lm10D DWVbfyzE04OrFs4obowiv1GFi3ocgmQ24g== X-Google-Smtp-Source: AMsMyM7t/l7qNy8lbha5WysU4vwfCx8y2DVJ+LBX4XjGVCLxarsc0t9AL4ERLd1/e8GIFWRBtGGT1w== X-Received: by 2002:a65:44c5:0:b0:439:4697:ead0 with SMTP id g5-20020a6544c5000000b004394697ead0mr12680087pgs.45.1666290419803; Thu, 20 Oct 2022 11:26:59 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id w15-20020a17090a460f00b00202fbd9c21dsm115067pjg.48.2022.10.20.11.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:26:59 -0700 (PDT) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH 17/25] libelf: uid_t, gid_t and mode_t are not comes with msvcrt, so using long/unsigned long instead on win32 Date: Fri, 21 Oct 2022 02:25:56 +0800 Message-Id: <20221020182603.815-18-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221020182603.815-1-luoyonggang@gmail.com> References: <20221020182603.815-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,KAM_NUMSUBJECT,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 List-Id: Signed-off-by: Yonggang Luo --- libelf/libelf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libelf/libelf.h b/libelf/libelf.h index a139e733..2fa3838b 100644 --- a/libelf/libelf.h +++ b/libelf/libelf.h @@ -195,9 +195,15 @@ typedef struct { char *ar_name; /* Name of archive member. */ time_t ar_date; /* File date. */ +#if defined(_WIN32) + long ar_uid; + long ar_gid; + unsigned long ar_mode; +#else uid_t ar_uid; /* User ID. */ gid_t ar_gid; /* Group ID. */ mode_t ar_mode; /* File mode. */ +#endif int64_t ar_size; /* File size. */ char *ar_rawname; /* Original name of archive member. */ } Elf_Arhdr; -- 2.36.1.windows.1