From: Ian Lance Taylor <iant@golang.org>
To: gcc-patches <gcc-patches@gcc.gnu.org>,
"gofrontend-dev@googlegroups.com"
<gofrontend-dev@googlegroups.com>
Subject: libgo patch committed: Use opendir64 and closedir64 on AIX
Date: Fri, 12 May 2017 01:09:00 -0000 [thread overview]
Message-ID: <CAOyqgcWMHfyXhjCTvqh6LXh0ZOJ5yvu0hRy3jLkHegCipv_Lag@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
Since on AIX we use readdir64, we must also use opendir64 and
closedir64. This patch by Matthieu Sarter fixes the problem.
Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed
to mainline.
Ian
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1965 bytes --]
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE (revision 247931)
+++ gcc/go/gofrontend/MERGE (working copy)
@@ -1,4 +1,4 @@
-619848ccd463ac385e9912df008e7e8e6301a284
+fc3d6af694c518d73a126bcbd90d79982524f9f6
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Index: libgo/go/os/dir_gccgo.go
===================================================================
--- libgo/go/os/dir_gccgo.go (revision 247848)
+++ libgo/go/os/dir_gccgo.go (working copy)
@@ -12,12 +12,6 @@ import (
"unsafe"
)
-//extern opendir
-func libc_opendir(*byte) *syscall.DIR
-
-//extern closedir
-func libc_closedir(*syscall.DIR) int
-
// FIXME: pathconf returns long, not int.
//extern pathconf
func libc_pathconf(*byte, int) int
Index: libgo/go/os/dir_libc64_gccgo.go
===================================================================
--- libgo/go/os/dir_libc64_gccgo.go (revision 0)
+++ libgo/go/os/dir_libc64_gccgo.go (working copy)
@@ -0,0 +1,15 @@
+// Copyright 2017 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build aix
+
+package os
+
+import "syscall"
+
+//extern opendir64
+func libc_opendir(*byte) *syscall.DIR
+
+//extern closedir64
+func libc_closedir(*syscall.DIR) int
Index: libgo/go/os/dir_libc_gccgo.go
===================================================================
--- libgo/go/os/dir_libc_gccgo.go (revision 0)
+++ libgo/go/os/dir_libc_gccgo.go (working copy)
@@ -0,0 +1,15 @@
+// Copyright 2017 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !aix
+
+package os
+
+import "syscall"
+
+//extern opendir
+func libc_opendir(*byte) *syscall.DIR
+
+//extern closedir
+func libc_closedir(*syscall.DIR) int
reply other threads:[~2017-05-12 0:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOyqgcWMHfyXhjCTvqh6LXh0ZOJ5yvu0hRy3jLkHegCipv_Lag@mail.gmail.com \
--to=iant@golang.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gofrontend-dev@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).