aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.Ian Lance Taylor13-99/+244
This upgrades all of libgo other than the runtime package to the Go 1.4 release. In Go 1.4 much of the runtime was rewritten into Go. Merging that code will take more time and will not change the API, so I'm putting it off for now. There are a few runtime changes anyhow, to accomodate other packages that rely on minor modifications to the runtime support. The compiler changes slightly to add a one-bit flag to each type descriptor kind that is stored directly in an interface, which for gccgo is currently only pointer types. Another one-bit flag (gcprog) is reserved because it is used by the gc compiler, but gccgo does not currently use it. There is another error check in the compiler since I ran across it during testing. gotools/: * Makefile.am (go_cmd_go_files): Sort entries. Add generate.go. * Makefile.in: Rebuild. From-SVN: r219627
2014-11-04libgo: add s390 supportIan Lance Taylor5-1/+62
From Dominik Vogt. * libgo/go/syscall/libcall_linux_s390.go: New file for s390 support. * libgo/go/syscall/syscall_linux_s390.go: Ditto. * libgo/go/syscall/libcall_linux_s390x.go: New file for s390x support. * libgo/go/syscall/syscall_linux_s390x.go: Ditto. * libgo/go/runtime/pprof/pprof.go (printStackRecord): Support s390 and s390x. * libgo/runtime/runtime.c (runtime_cputicks): Add support for s390 and s390x * libgo/mksysinfo.sh: Ditto. (upcase_fields): New helper function * libgo/go/debug/elf/file.go (applyRelocations): Implement relocations on s390x. (applyRelocationsS390x): Ditto. (DWARF): Ditto. * libgo/go/debug/elf/elf.go (R_390): New constants for S390 relocations. (r390Strings): Ditto. (String): Helper function for S390 relocations. (GoString): Ditto. * libgo/go/reflect/makefuncgo_s390.go: New file. (S390MakeFuncStubGo): Implementation of s390 abi. * libgo/go/reflect/makefuncgo_s390x.go: New file. (S390xMakeFuncStubGo): Implementation of s390x abi. * libgo/go/reflect/makefunc_s390.c: New file. (makeFuncStub): s390 and s390x specific implementation of function. * libgo/go/reflect/makefunc.go (MakeFunc): Add support for s390 and s390x. (makeMethodValue): Ditto. (makeValueMethod): Ditto. * libgo/Makefile.am (go_reflect_makefunc_s_file): Ditto. (go_reflect_makefunc_file): Ditto. * libgo/go/reflect/makefunc_dummy.c: Ditto. * libgo/runtime/runtime.h (__go_makefunc_can_recover): Export prototype for use in makefunc_s390.c. (__go_makefunc_returning): Ditto. * libgo/go/syscall/exec_linux.go (forkAndExecInChild): Fix order of the arguments of the clone system call for s390[x]. * libgo/configure.ac (is_s390): New variable. (is_s390x): Ditto (LIBGO_IS_S390): Ditto. (LIBGO_IS_S390X): Ditto. (GOARCH): Support s390 and s390x. * libgo/go/go/build/build.go (cgoEnabled): Ditto. * libgo/go/go/build/syslist.go (goarchList): Ditto. From-SVN: r217106
2014-09-05runtime: Use the clone system call on GNU/Linux.Ian Lance Taylor1-2/+2
Without this we weren't supporting the standard Cloneflags field of SysProcAttr. From-SVN: r214972
2014-07-19libgo: Update to Go 1.3 release.Ian Lance Taylor22-128/+229
From-SVN: r212837
2014-06-06libgo: Merge to master revision 19184.Ian Lance Taylor9-23/+48
The next revision, 19185, renames several runtime files, and will be handled in a separate change. From-SVN: r211328
2014-06-04libgo: Merge from revision 18783:00cce3a34d7e of master library.Ian Lance Taylor2-1/+15
This revision was committed January 7, 2014. The next revision deleted runtime/mfinal.c. That will be done in a subsequent merge. This merge changes type descriptors to add a zero field, pointing to a zero value for that type. This is implemented as a common variable. * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and alignment parameters. Permit init parameter to be NULL. From-SVN: r211249
2014-04-17gofrontend: deduplicate C syscall function declarationsIan Lance Taylor1-2/+5
A gccgo language extension allows a function to be declared multiple times. Avoid the use of this extension by dedeplicating declarations in mksyscall.awk. From-SVN: r209508
2014-04-17runtime: remove use of obsolete map deletion syntaxIan Lance Taylor1-1/+1
The use of this syntax was eliminated upstream in Go 992248b2adc2, but this particular use slipped through somehow. From-SVN: r209506
2014-04-17gofrontend: avoid use of unsafe.Sizeof extensionIan Lance Taylor1-1/+1
Avoid the use of a gccgo language extension which allows unsafe.Sizeof to accept a type by passing an expression of the relevant type. From-SVN: r209503
2013-11-25syscall: Set SizeofSockaddrAny to the value the go distribution usesIan Lance Taylor1-1/+1
In particular this means that the names Getsockname returns are not truncated to 26 characters. Fixes issue 6829 https://codereview.appspot.com/31840043/ From-SVN: r205368
2013-11-24syscall: Only call varargs libc functions from C code.Ian Lance Taylor5-5/+5
From-SVN: r205321
2013-11-06libgo: Update to October 24 version of master library.Ian Lance Taylor18-34/+277
From-SVN: r204466
2013-10-17syscall: Add Dup3, {Get,List,Remove,Set}xattr, {Get,Set}priority.Ian Lance Taylor2-0/+21
From-SVN: r203788
2013-08-02syscall: Change AWK split call to use []+ rather than []*.Ian Lance Taylor1-2/+2
Using []* fails with the awk that is part of busybox: https://groups.google.com/d/msg/gofrontend-dev/NbQsG_AMDpY/sXCc03kkwn4J From-SVN: r201455
2013-07-24net: Only use GNU/Linux unix socket abstract paths on GNU/Linux.Ian Lance Taylor5-47/+49
From-SVN: r201217
2013-07-16libgo: Update to Go 1.1.1.Ian Lance Taylor14-143/+188
From-SVN: r200974
2013-02-20re PR go/56171 (syscall FAILs on Solaris)Ian Lance Taylor4-25/+72
PR go/56171 syscall: Solaris fixes for passing file descriptor. From Rainer Orth. From-SVN: r196180
2013-02-08syscall: Always use _C_int for C libcalls.Ian Lance Taylor9-48/+48
From-SVN: r195897
2013-01-29libgo: Update Go library to master revision 15489/921e53d4863c.Ian Lance Taylor7-168/+174
From-SVN: r195560
2013-01-24re PR go/46986 (Go is not supported on Darwin)Ian Lance Taylor3-13/+16
PR go/46986 all: prepend #__USER_LABEL_PREFIX__ to mangled Go symbols For old-fashioned Darwin. From-SVN: r195438
2012-12-22libgo: Update to revision 15193:6fdc1974457c of master library.Ian Lance Taylor4-17/+85
From-SVN: r194692
2012-12-12libgo: Update to current master library sources.Ian Lance Taylor1-0/+205
From-SVN: r194460
2012-12-05syscall: Fix splice syscall.Ian Lance Taylor1-0/+2
From-SVN: r194185
2012-11-24syscall: Fix handling of Unix domain @ addresses.Ian Lance Taylor2-2/+6
From-SVN: r193783
2012-11-21libgo: Update to current version of master library.Ian Lance Taylor2-3/+7
From-SVN: r193688
2012-11-12syscall: Force first letter of error message to lower case.Ian Lance Taylor3-6/+24
From-SVN: r193449
2012-11-06compiler, libgo: Fixes to prepare for 64-bit int.Ian Lance Taylor1-3/+3
From-SVN: r193254
2012-11-02syscall, mksysinfo: Prepare syscall package for 64-bit int.Ian Lance Taylor13-136/+141
From-SVN: r193112
2012-11-01compiler, runtime: More steps toward separating int and intgo.Ian Lance Taylor1-4/+3
From-SVN: r193059
2012-10-26syscall: fix creds_test to reliably close os.FileIan Lance Taylor1-2/+6
Uncovered by Uros Bizjak. Before this patch the test would close the file descriptor but not the os.File. When the os.File was GC'ed, the finalizer would close the file descriptor again. That would cause problems if the same file descriptor were returned by a later call to open in another test. On my system: > GOGC=30 go test --- FAIL: TestPassFD (0.04 seconds) passfd_test.go:62: FileConn: dup: bad file descriptor FAIL From-SVN: r192854
2012-10-25libgo: Solaris portability patches.Ian Lance Taylor1-0/+13
From Rainer Orth. From-SVN: r192819
2012-10-23libgo: Update to current sources.Ian Lance Taylor11-43/+363
From-SVN: r192704
2012-10-03libgo: Update to Go 1.0.3.Ian Lance Taylor6-36/+143
From-SVN: r192025
2012-06-04runtime: Better SWIG interface for allocating Go memory from C/C++.Ian Lance Taylor1-0/+6
From-SVN: r188164
2012-05-14libgo: Use -fgo-pkgpath.Ian Lance Taylor3-12/+12
From-SVN: r187485
2012-04-30re PR go/52586 (libgo fails to build for mips*64-linux-gnu (reference to ↵Ian Lance Taylor1-1/+5
undefined name 'SYS_GETDENTS64')) PR go/52586 mksysinfo, syscall: Make sure SYS_GETDENTS64 is defined. Fixes build on MIPS GNU/Linux. From-SVN: r186986
2012-04-22mksysinfo: More fixes to emulate master Go library.Ian Lance Taylor2-2/+2
From-SVN: r186685
2012-04-22godump.c (go_output_typedef): Dump size of structs.Ian Lance Taylor1-2/+2
* godump.c (go_output_typedef): Dump size of structs. mksysinfo, syscall: Change Sizeof names from var to const. From-SVN: r186678
2012-04-21syscall: Additional constants, some type corrections.Ian Lance Taylor2-2/+2
From-SVN: r186655
2012-04-20net, syscall: Use native endianness for GNU/Linux netlink code.Ian Lance Taylor1-37/+6
From-SVN: r186640
2012-04-03syscall, net: Fix GNU/Linux netlink code for big-endian systems.Ian Lance Taylor1-17/+37
From-SVN: r186123
2012-03-30syscall: Convert errno to error after Exitsyscall.Ian Lance Taylor1-1/+12
From-SVN: r186020
2012-03-29compiler, libgo: unsafe.{Sizeof,Alignof,Offsetof} return uintptr.Ian Lance Taylor1-1/+1
From-SVN: r185946
2012-03-23syscall: Fix errno handling in syscall.Syscall and friends.Ian Lance Taylor1-0/+4
From-SVN: r185746
2012-03-13libgo: Export {enter,exit}syscall and use it for getaddrinfo.Ian Lance Taylor4-10/+10
From-SVN: r185363
2012-03-06libgo: Update to weekly.2012-03-04 release.Ian Lance Taylor1-0/+12
From-SVN: r185010
2012-03-02libgo: Update to weekly.2012-02-14 release.Ian Lance Taylor8-13/+70
From-SVN: r184798
2012-02-29syscall: Fill out GNU/Linux support.Ian Lance Taylor3-43/+94
From-SVN: r184669
2012-02-18libgo: Add mount flags, fallocate, statfs.Ian Lance Taylor1-9/+6
From-SVN: r184365
2012-02-14syscall: Change Dup2 to only return an error.Ian Lance Taylor4-18/+15
From-SVN: r184222