From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4430 Path: news.gmane.org!not-for-mail From: Justin Cormack Newsgroups: gmane.linux.lib.musl.general Subject: stat64 on mips Date: Mon, 30 Dec 2013 18:20:46 +0000 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1388427652 26218 80.91.229.3 (30 Dec 2013 18:20:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2013 18:20:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4434-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 30 19:21:00 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VxhSW-0008He-7s for gllmg-musl@plane.gmane.org; Mon, 30 Dec 2013 19:21:00 +0100 Original-Received: (qmail 5929 invoked by uid 550); 30 Dec 2013 18:20:59 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 5914 invoked from network); 30 Dec 2013 18:20:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=CqxhCCnm/nRv+eKPi7+l8OKByXOjiJrsNAxCtEG7rjc=; b=CARTzItx4k0Qk8N/ku6vBk9yM/a+IqB94XUzqgW7QOJtyUcyu3B2iN3vZluzUzP+lK 2AA+ALDBrgIpY23V/6kaRYWcX7dnGWg/J02icuesjV1S7F71LPRMYOy/4hhK5Y9rzXV5 f8W4lY/vszIOskQgR4fEqNEZiCeSPoqWi0BY4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=CqxhCCnm/nRv+eKPi7+l8OKByXOjiJrsNAxCtEG7rjc=; b=N/ykGOvIz3DrdHb5HbI4ikgOIb+QY3/sq9dnAiTL51QEI4TdQF2Wrn5aROITPMjqsy S8LmA6uK3UX30ZQyGKapOXM1sokUsuPnhZOUuOVxfFC2fH4DWDcROydBty6y4L8iAU6S /4HHxKiRYjduY7IDeGFDG7u9dE71YK8bDpJf6XneAWSVBTrAUJHGpmV5Y9asP6BDlyXP 9gSEgNVjEnvlkCi5wEHWV8D1D57TowtBb1qpIv5YqOZOtq74VB5jRusHJM1zwDKs/Sss Dgp6NkNRYEPuJEPpMWpfMqJ7GtTEZOkVHpuworykGDm0d4Gj00rKOmxbYg02WoC4ETg7 +fsw== X-Gm-Message-State: ALoCoQmi6RTKe183UB1DPAbxuMsk/XKDthO1YYoE8ZGgcmfFhNf7k7IUtvQezV7z0u2OZJs384f9 X-Received: by 10.68.230.228 with SMTP id tb4mr70554508pbc.108.1388427647007; Mon, 30 Dec 2013 10:20:47 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:4430 Archived-At: MIPS is the most confusing architecture, but as far as I can make out, the definition of struct stat64 that Musl has is probably the right one for mips n32 but wrong for mips o32 which should be struct stat { unsigned long st_dev; unsigned long __st_pad0[3]; unsigned long long st_ino; mode_t st_mode; nlink_t st_nlink; uid_t st_uid; gid_t st_gid; unsigned long st_rdev; unsigned long __st_pad1[3]; long long st_size; time_t st_atime; unsigned long st_atime_nsec; time_t st_mtime; unsigned long st_mtime_nsec; time_t st_ctime; unsigned long st_ctime_nsec; unsigned long st_blksize; unsigned long __st_pad2; long long st_blocks; }; It does appear that the syscalls for the two ABIs differ in this... Justin