1. 26 Mar, 2010 5 commits
    • Giles Lean's avatar
      syscall: Create syscall_bsd.go for code used by Darwin and other *BSDs · ad73de2f
      Giles Lean authored
      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
      https://golang.org/cl/751041
      ad73de2f
    • Robert Griesemer's avatar
      bytes, strings: IndexOfAny · d0ffee8a
      Robert Griesemer authored
      + first use in go/doc
      
      R=r
      CC=golang-dev
      https://golang.org/cl/781041
      d0ffee8a
    • Rob Pike's avatar
      fix spelling of align · 9e481e29
      Rob Pike authored
      R=rsc
      CC=golang-dev
      https://golang.org/cl/778041
      9e481e29
    • Firmansyah Adiputra's avatar
      xgb: fix request length and request size. · dab40b58
      Firmansyah Adiputra authored
      R=nigeltao_golang, rsc
      CC=golang-dev
      https://golang.org/cl/759041
      dab40b58
    • Rob Pike's avatar
      spec changes for panic and recover. · 5bb29fb1
      Rob Pike authored
      R=rsc, gri
      CC=golang-dev
      https://golang.org/cl/763041
      5bb29fb1
  2. 25 Mar, 2010 14 commits
  3. 24 Mar, 2010 18 commits
  4. 23 Mar, 2010 3 commits