{"id":816389,"url":"http://patchwork.ozlabs.org/api/patches/816389/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/CAOyqgcXB4n=Pw0Yx2wHc0TrxtJ2FVREyKMOb+ZyLxiDMG1Ud_Q@mail.gmail.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<CAOyqgcXB4n=Pw0Yx2wHc0TrxtJ2FVREyKMOb+ZyLxiDMG1Ud_Q@mail.gmail.com>","list_archive_url":null,"date":"2017-09-20T17:49:16","name":"libgo patch committed: enable ParseDirent for AIX","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"f8f8eb0cf5a2970364a76ecb7d58786670c36c6e","submitter":{"id":36501,"url":"http://patchwork.ozlabs.org/api/people/36501/?format=json","name":"Ian Lance Taylor","email":"iant@golang.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/CAOyqgcXB4n=Pw0Yx2wHc0TrxtJ2FVREyKMOb+ZyLxiDMG1Ud_Q@mail.gmail.com/mbox/","series":[{"id":4188,"url":"http://patchwork.ozlabs.org/api/series/4188/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=4188","date":"2017-09-20T17:49:16","name":"libgo patch committed: enable ParseDirent for AIX","version":1,"mbox":"http://patchwork.ozlabs.org/series/4188/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/816389/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/816389/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-return-462630-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462630-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"MbPRK47K\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy6gw46HPz9rxj\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 03:49:32 +1000 (AEST)","(qmail 52544 invoked by alias); 20 Sep 2017 17:49:22 -0000","(qmail 52530 invoked by uid 89); 20 Sep 2017 17:49:20 -0000","from mail-io0-f169.google.com (HELO mail-io0-f169.google.com)\n\t(209.85.223.169) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 20 Sep 2017 17:49:19 +0000","by mail-io0-f169.google.com with SMTP id d16so5355998ioj.3 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 20 Sep 2017 10:49:19 -0700 (PDT)","by 10.168.117.78 with HTTP; Wed, 20 Sep 2017 10:49:16 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:from:date:message-id:subject:to:content-type; q=\n\tdns; s=default; b=qkYtUBzgVm5O1sfoMV7x4jhGiZNyOGT1FHrjX/hF1Ta3Jy\n\toJ8j0VXPsVvihc8Yyqm8YS9yQQKa+VgIT245Fc7E1+eNwHkITuf4Z9+ybfXHXgMB\n\tsmuIpuN8mbd4KY12Oi58MmH13dzQ2mc4dab9+NaqUoQcxOiJ4Vnt0B05P32XY=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:from:date:message-id:subject:to:content-type; s=\n\tdefault; bh=hrjjHjCTHLE/Fv2SXcQXPUHB/uc=; b=MbPRK47K1bolmIE4a56L\n\tB5k+bgGzJPiLycM5PaUBgvy7irwsPXx023Jz5vaoOcU7LBnWEUj+86LwBs6DAohy\n\tT+4BZDeOzR3Q6Iy0tFlq+7jD4FID1qZyIpi9zzwISAEYULRJXecx214fpONVdffw\n\ty9Utbogzrxm/BuCvKkDOxtI=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-9.6 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=rights, reserved","X-HELO":"mail-io0-f169.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:from:date:message-id:subject:to;\n\tbh=gEahWS/q7OkHigL3G9rIr9YBPZ3bPixFxNKB+Hm3PII=;\n\tb=QO80FRa7TWiofwLy9xRcKF7JhWHfGbLbjSB2SA0lbozVeNgztxyR8z0Vw78VaRqgOA\n\tbHs7evb+h+qDFrkobrYI9AMkOnnhbX1pUfkEbfBnOT4rVMWMJi23+9+E/NERRm0fO1gS\n\t1e8jxzMDNJ5iIh3zmCoLjgB3EAYm8bjJq4KE0UjIkmlJIjnhDHVQu6oJwkiLdnY9sjYm\n\tRoJYxnEa7NXdThEgAX+kBRGKCWwFVYmeUA82wSLnLurH9OkzJR+N2JJdoAtOIW/ATPQk\n\tBM3hw99yLylDLH6MJPD3bQGG7O7QLjfAqCy0AjJqrwqqa0+WE+JoUSePuuL60QwB6Ox9\n\tLJHQ==","X-Gm-Message-State":"AHPjjUjx/rDQGRzvUD7+UGmSYcAQWMcaTE0C0vx5Ymq9OWkz1Fh90tNu\tXTRGNgdyNlo1jTcfAf84JYizhz0+0uQp3jrMXrmHvUwr","X-Google-Smtp-Source":"AOwi7QCrKoGLGq37yp3V73OzT+vKwioX9KhxBGP8D9D6FSY4PdSuDJcZIUMF3+DzeGDc3bAr0+W3Ns2bEPyNBLOa/tY=","X-Received":"by 10.202.243.85 with SMTP id r82mr310815oih.215.1505929757475;\n\tWed, 20 Sep 2017 10:49:17 -0700 (PDT)","MIME-Version":"1.0","From":"Ian Lance Taylor <iant@golang.org>","Date":"Wed, 20 Sep 2017 10:49:16 -0700","Message-ID":"<CAOyqgcXB4n=Pw0Yx2wHc0TrxtJ2FVREyKMOb+ZyLxiDMG1Ud_Q@mail.gmail.com>","Subject":"libgo patch committed: enable ParseDirent for AIX","To":"gcc-patches <gcc-patches@gcc.gnu.org>,\n\t\"gofrontend-dev@googlegroups.com\" <gofrontend-dev@googlegroups.com>","Content-Type":"multipart/mixed; boundary=\"94eb2c0916b040946e0559a298a5\""},"content":"This libgo patch from Tony Reix enables ParseDirent for AIX.\nBootstrapped on x86_64-pc-linux-gnu.  Committed to mainline.\n\nIan","diff":"Index: gcc/go/gofrontend/MERGE\n===================================================================\n--- gcc/go/gofrontend/MERGE\t(revision 253021)\n+++ gcc/go/gofrontend/MERGE\t(working copy)\n@@ -1,4 +1,4 @@\n-84f827669dc76326ed99ebcc982c482aa148d8d8\n+5deeab42b0e5fdf2721773ce7fdaf61716599d4d\n \n The first line of this file holds the git revision number of the last\n merge done from the gofrontend repository.\nIndex: libgo/go/syscall/dirent.go\n===================================================================\n--- libgo/go/syscall/dirent.go\t(revision 251948)\n+++ libgo/go/syscall/dirent.go\t(working copy)\n@@ -2,7 +2,7 @@\n // Use of this source code is governed by a BSD-style\n // license that can be found in the LICENSE file.\n \n-// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris\n+// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris\n \n package syscall\n \nIndex: libgo/go/syscall/syscall_aix.go\n===================================================================\n--- libgo/go/syscall/syscall_aix.go\t(revision 0)\n+++ libgo/go/syscall/syscall_aix.go\t(working copy)\n@@ -0,0 +1,19 @@\n+// Copyright 2017 The Go Authors. All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package syscall\n+\n+import \"unsafe\"\n+\n+func direntIno(buf []byte) (uint64, bool) {\n+\treturn readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))\n+}\n+\n+func direntReclen(buf []byte) (uint64, bool) {\n+\treturn readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))\n+}\n+\n+func direntNamlen(buf []byte) (uint64, bool) {\n+\treturn readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))\n+}\nIndex: libgo/mksysinfo.sh\n===================================================================\n--- libgo/mksysinfo.sh\t(revision 251948)\n+++ libgo/mksysinfo.sh\t(working copy)\n@@ -485,6 +485,7 @@ fi | sed -e 's/type _dirent64/type Diren\n          -e 's/d_name/Name/' \\\n          -e 's/]int8/]byte/' \\\n          -e 's/d_ino/Ino/' \\\n+         -e 's/d_namlen/Namlen/' \\\n          -e 's/d_off/Off/' \\\n          -e 's/d_reclen/Reclen/' \\\n          -e 's/d_type/Type/' \\\n","prefixes":[]}