summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_freebsd.go
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Imported Upstream version 2011.02.15Ondřej Surý1-0/+12
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-7/+7
2010-03-26syscall: Create syscall_bsd.go for code used by Darwin and other *BSDsGiles Lean1-463/+4
In this change I'd like to combine the common code that is present in syscall_darwin.go and syscall_freebsd.go. I have three reasons for wanting to do this now: 1. reducing code duplication is nearly always good :-) 2. the duplication will get worse if I duplicate this code a third time for the NetBSD port I'm working on, which I need to do almost immediately 3. by making this change all in one lump and ignoring any commonality with the syscall_linux*.go files the diff is long but, I think, readable In future it may be possible to cherry pick functions that also apply to Linux and put them in (say) syscall_unix.go, and of course some functions may diverge in future and have to move out to OS or architecture specific files, but today I want just the low hanging fruit. Tested and passed on: Darwin (Snow Leopard, 10.6): amd64 and 386 FreeBSD (8.0-RELEASE): 386 only(*) (*) All my virtualisation software has stopped playing nice with FreeBSD for the moment, so I don't have facilities to test the amd64 port. As the OS X port is OK and the diff looks all right to my eyes I shall keep my fingers crossed. If someone with a FreeBSD/amd64 system cares to test and report I would be appreciative. 2010-03-27 update: I have replaced my virtualisation software, and have working FreeBSD/i386 and FreeBSD/amd64 virtual machines again. As I hoped (and expected -- programmers are optimists :-) the code built and passed all but the two currently known to fail tests on FreeBSD/amd64. I rechecked FreeBSD/i386 too: same results. R=rsc CC=golang-dev http://codereview.appspot.com/751041 Committer: Russ Cox <rsc@golang.org>
2010-03-24syscall: Implement SetsockoptStringChristopher Wedgwood1-0/+3
R=rsc, r CC=golang-dev http://codereview.appspot.com/739042 Committer: Russ Cox <rsc@golang.org>
2010-02-16syscall: make signature of Umask on OS X, FreeBSD match Linux.Giles Lean1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/207071 Committer: Russ Cox <rsc@golang.org>
2010-02-04FreeBSD: Kill only takes pid & signalChristopher Wedgwood1-4/+1
Cosmetic fix. The FreeBSD system call only takes two arguments. http://fxr.watson.org/fxr/source/kern/kern_sig.c?im=bigexcerpts#L1678 R=dho, rsc CC=golang-dev http://codereview.appspot.com/202051 Committer: Russ Cox <rsc@golang.org>
2010-02-04syscall: on freebsd, darwin, give Kill same signature as on linuxRuss Cox1-1/+4
R=r, cw CC=golang-dev http://codereview.appspot.com/201043
2010-01-05syscall: add nanosleep on FreeBSDDevon H. O'Dell1-0/+1
Fixes issue 461 R=rsc CC=golang-dev http://codereview.appspot.com/181059 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-118/+118
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 http://codereview.appspot.com/180049
2009-12-01Add syscall.Shutdown to FreeBSD i386/amd64Devon H. O'Dell1-0/+1
Necessary for 163052 R=rsc CC=golang-dev http://codereview.appspot.com/164068 Committer: Russ Cox <rsc@golang.org>
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell1-0/+762
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>