Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit 939aa06

Browse files
author
ian
committed
os: use opendir64 and closedir64 on AIX
When using readdir64 on AIX, we must also use opendir64 and closedir64. Issue golang/go#19200 Reviewed-on: https://go-review.googlesource.com/43251 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247947 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent 2d5afa6 commit 939aa06

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

gcc/go/gofrontend/MERGE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
619848ccd463ac385e9912df008e7e8e6301a284
1+
fc3d6af694c518d73a126bcbd90d79982524f9f6
22

33
The first line of this file holds the git revision number of the last
44
merge done from the gofrontend repository.

libgo/go/os/dir_gccgo.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ import (
1212
"unsafe"
1313
)
1414

15-
//extern opendir
16-
func libc_opendir(*byte) *syscall.DIR
17-
18-
//extern closedir
19-
func libc_closedir(*syscall.DIR) int
20-
2115
// FIXME: pathconf returns long, not int.
2216
//extern pathconf
2317
func libc_pathconf(*byte, int) int

libgo/go/os/dir_libc64_gccgo.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2017 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// +build aix
6+
7+
package os
8+
9+
import "syscall"
10+
11+
//extern opendir64
12+
func libc_opendir(*byte) *syscall.DIR
13+
14+
//extern closedir64
15+
func libc_closedir(*syscall.DIR) int

libgo/go/os/dir_libc_gccgo.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2017 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
// +build !aix
6+
7+
package os
8+
9+
import "syscall"
10+
11+
//extern opendir
12+
func libc_opendir(*byte) *syscall.DIR
13+
14+
//extern closedir
15+
func libc_closedir(*syscall.DIR) int

0 commit comments

Comments
 (0)