From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75667 invoked by alias); 29 Jun 2016 06:57:37 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 75656 invoked by uid 89); 29 Jun 2016 06:57:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=surely, family X-HELO: mx2.suse.de From: Andreas Schwab To: Yury Norov Cc: , , , , , , , , , , , , , , , , , Yury Norov Subject: Re: [PATCH 18/23] [AARCH64] ILP32: support stat syscall family References: <1467131978-669-1-git-send-email-ynorov@caviumnetworks.com> <1467131978-669-19-git-send-email-ynorov@caviumnetworks.com> X-Yow: The PINK SOCKS were ORIGINALLY from 1952!! But they went to MARS around 1953!! Date: Wed, 29 Jun 2016 06:57:00 -0000 In-Reply-To: <1467131978-669-19-git-send-email-ynorov@caviumnetworks.com> (Yury Norov's message of "Tue, 28 Jun 2016 19:39:33 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2016-06/txt/msg01187.txt.bz2 Yury Norov writes: > +#ifdef __ILP32__ > +#include > +struct __kernel_timespec > + { > + unsigned long long tv_sec; /* Seconds. */ > + long long tv_nsec; /* Nanoseconds. */ > + }; > +#define conv_timespec(u, k) do { \ > + (u)->tv_sec = (k)->tv_sec; \ > + (u)->tv_nsec = (k)->tv_nsec; \ > +} while (0) > +#if __BYTE_ORDER == __LITTLE_ENDIAN > +#define __type3264(type, name) \ > + type (name); type name##_pad > +#else > +#define __type3264(type, name) \ > + type name##_pad; type name > +#endif > + > +#else > +#define __kernel_timespec timespec > +#define conv_timespec(u, k) > +#define __type3264(type, name) type name > +#endif /* __ILP32__ */ Surely conv_timespec needs to be put in an internal header. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."