aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_linux.go
AgeCommit message (Collapse)Author
2011-10-24syscall: use uintptr for Mount flags.David Anderson
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5308044
2011-10-14syscall: adjust Mount to accomodate stricter FS implementations.David Anderson
Notably, the "data" argument should be nil if no options are given, or (at least) the cgroup filesystem will refuse to mount. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5147047
2011-10-04pkg/syscall: add Mkfifo for linux platformsPaul Borman
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5131055
2011-10-01syscall: update multicast socket options for darwin, freebsd, linux, openbsdMikio Hara
R=golang-dev, dave CC=golang-dev https://golang.org/cl/5137042
2011-07-13syscall: add Flock on LinuxRuss Cox
Fixes #2069. R=golang-dev, r CC=golang-dev https://golang.org/cl/4703048
2011-06-20syscall: add socket control message support for darwin, freebsd, linuxMikio Hara
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4528113
2011-06-17gc: unsafe.Alignof, unsafe.Offsetof, unsafe.Sizeof now return uintptrRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4640045
2011-06-02net, syscall: update IP multicast socket options for darwin, freebsd, linuxMikio Hara
Add IPv6Mreq and Inet6Pktinfo for specifying the network interface. Rename IpMreq to IPMreq, SetsockoptIpMreq to SetsockoptIPMreq. R=rsc, dave, robert.hencke CC=golang-dev https://golang.org/cl/4532098
2011-05-22syscall: add IPv6 scope zone ID supportMikio Hara
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4515124
2011-05-20syscall: sendfileBrad Fitzpatrick
R=iant CC=golang-dev https://golang.org/cl/4553051
2011-05-18syscall: add netlink support for linux/386, linux/amd64, linux/armMikio Hara
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4535078
2011-04-26syscall: Mlock, Munlock, Mlockall, Munlockall on Linux.Albert Strasheim
R=rsc, bradfitzgo CC=golang-dev https://golang.org/cl/4433070
2011-04-21syscall: Madvise and Mprotect for Linux.Albert Strasheim
R=rsc CC=golang-dev https://golang.org/cl/4369047
2011-04-06syscall: fix typo in mmap commentDave Cheney
R=rsc CC=golang-dev https://golang.org/cl/4377043
2011-04-06syscall: add Mmap, Munmap on Linux, FreeBSD, OS XRuss Cox
* tweak mksyscall*.pl to be more gofmt-compatible. * add mkall.sh -syscalls option. * add sys/mman.h constants on OS X R=r, eds, niemeyer CC=golang-dev https://golang.org/cl/4369044
2011-04-06os, syscall: refactor Unix directory parsingRuss Cox
Moved the details of how to read a directory and how to parse the results behind the new syscall functions ReadDirent and ParseDirent. Now os needs just one copy of Readdirnames for the three Unix variants, and it no longer imports "unsafe". R=r, r2 CC=golang-dev https://golang.org/cl/4368048
2011-04-02R=rsc, brainman, ality, r2, rYuval Pavel Zholkover
CC=golang-dev https://golang.org/cl/3816043
2011-03-23syscall: GetsockoptInt.Albert Strasheim
R=rsc, iant CC=golang-dev https://golang.org/cl/4271060
2011-03-16syscall: Permit non-blocking syscalls.Ian Lance Taylor
Permit system calls to be designated as non-blocking, meaning that we simply call them without involving the scheduler. This change by itself is mostly performance neutral. In combination with a following change to the net package there is a performance advantage. R=rsc, dfc, r2, iant2, rsc1 CC=golang-dev https://golang.org/cl/4278055
2011-03-09syscall: implement Mount and Unmount for linux.David Anderson
Note that, while the final argument of mount(2) is a void*, in practice all filesystem implementations treat it as a string of comma-separated mount options. R=bradfitzgo, bradfitzwork CC=golang-dev https://golang.org/cl/4247070
2011-03-09syscall: implement Reboot for linux.David Anderson
The published interface is the simple version of the syscall, allowing all reboot functions except for the esoteric LINUX_REBOOT_CMD_RESTART2. R=golang-dev, bradfitzgo, bradfitzwork CC=golang-dev https://golang.org/cl/4256060
2011-02-03syscall: add SetsockoptIpMreqDave Cheney
notes: * due to Issue 1466 the Msghdr struct for src/pkg/syscall/ztypes_darwin_386.go src/pkg/syscall/ztypes_darwin_amd64.go had to be edited after the godefs generation. * ztypes_*.go files for linux, freebsd and darwin have been prepared on the correct host OS and ARCH. While the total increase is a dozen lines per file the diff is larger due to a change to godefs, http://code.google.com/p/go/source/detail?r=c79e30afe9c8 while has altered the names of Pad members which causes gofmt to realign the affected structs R=rsc, mikioh CC=golang-dev https://golang.org/cl/4119053
2011-01-19net, syscall: return source address in RecvmsgAlbert Strasheim
R=rsc CC=golang-dev https://golang.org/cl/3766042
2011-01-18syscall: Correct length of GNU/Linux abstract Unix domain sockaddr.Ian Lance Taylor
R=rsc, iant2 CC=golang-dev https://golang.org/cl/3974044
2011-01-14syscall: Correct length of SockaddrUnix.Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/4025041
2011-01-05syscall: correct Linux Splice definitionRuss Cox
Fixes #1376. R=r CC=golang-dev https://golang.org/cl/3869042
2010-12-07syscall, net: Add Recvmsg and Sendmsg on Linux.Albert Strasheim
Working on issue 1101. R=rsc CC=golang-dev https://golang.org/cl/2331044
2010-11-05syscall: use 64-bit file size for truncation on LinuxPeter Mundy
Truncate and Ftruncate for 32-bit Linux should use 64-bit offset system calls. R=rsc CC=golang-dev, royger https://golang.org/cl/2943041
2010-10-20syscall/arm: correct 64-bit system call argumentsRuss Cox
Thanks to kaib for the tip. R=ken2 CC=golang-dev https://golang.org/cl/2596043
2010-10-12syscall: add sockaddr_ll support for linux/386, linux/amd64Mikio Hara
R=rsc, albert.strasheim CC=golang-dev https://golang.org/cl/2356042
2010-09-27syscall: add inotify on LinuxBalazs Lecz
R=rsc CC=golang-dev https://golang.org/cl/2241045
2010-09-21syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.Ian Lance Taylor
Regenerate zsyscall_linux_*.go files with recent changes to mksyscall.sh. Add socketpair to syscall_linux_amd64.go; for some reason it was in the generated file but not in the source file. R=rsc, r2 CC=golang-dev https://golang.org/cl/2190044
2010-08-20syscall: regenerate syscall/z* files for linux/386, linux/amd64Ivan Krasin
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS" Use <sys/user.h> instead of <linux/user.h> See http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00834.html for more details. R=imkrasin, rsc CC=golang-dev https://golang.org/cl/1957041
2010-08-04os: change the type of permissions argument for Open etc. to uint32.Rob Pike
Besides being more correct, it protects against people accidentally exchanging the permission and open mode arguments to Open. R=rsc CC=golang-dev https://golang.org/cl/1904045
2010-07-01implications of len spec changeRuss Cox
R=r CC=golang-dev https://golang.org/cl/1712048
2010-06-30syscall: add socketpairIvan Krasin
R=rsc CC=golang-dev https://golang.org/cl/1319042
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox
R=gri CC=golang-dev https://golang.org/cl/1326042
2010-05-20syscall: linux, implement BindToDeviceChristopher Wedgwood
R=rsc CC=adg, golang-dev, r https://golang.org/cl/1253043
2010-05-19syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhereRuss Cox
Needed for CL 1103041 and beyond. R=adg, bradfitzpatrick CC=bradfitz, golang-dev https://golang.org/cl/1172042
2010-05-03syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)Russ Cox
R=r CC=golang-dev https://golang.org/cl/1021043
2010-04-29syscall: force O_LARGEFILE in Linux open system callRuss Cox
Fixes #717. R=adg, PeterGo CC=golang-dev https://golang.org/cl/1032041
2010-04-19syscall: match linux Setsid function signature to darwinAndrew Gerrand
SETSID does return an errno - any reason why it has been done this way in zsyscall_linux_* ? Otherwise it should be the same as darwin. From SETSID(2) on my Linux box: ERRORS On error, -1 is returned, and errno is set. Fixes #730 R=rsc CC=golang-dev https://golang.org/cl/878047
2010-03-24syscall: Implement SetsockoptStringChristopher Wedgwood
R=rsc, r CC=golang-dev https://golang.org/cl/739042
2009-12-151) Change default gofmt default settings forRobert Griesemer
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 4th set of files. R=rsc CC=golang-dev https://golang.org/cl/180049
2009-11-30Minimise bitrot: bytes.Copy -> copyChristopher Wedgwood
(compile tested only) R=r, rsc https://golang.org/cl/161069
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox
R=r, gri CC=golang-dev https://golang.org/cl/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify syscallRobert Griesemer
(replacement for CL 1018053) R=r http://go/go-review/1017047