An error occurred fetching the project authors.
  1. 09 Oct, 2012 1 commit
  2. 05 Aug, 2012 1 commit
    • Alexey Borzenkov's avatar
      syscall: return EINVAL when string arguments have NUL characters · a108369c
      Alexey Borzenkov authored
      Since NUL usually terminates strings in underlying syscalls, allowing
      it when converting string arguments is a security risk, especially
      when dealing with filenames. For example, a program might reason that
      filename like "/root/..\x00/" is a subdirectory or "/root/" and allow
      access to it, while underlying syscall will treat "\x00" as an end of
      that string and the actual filename will be "/root/..", which might
      be unexpected. Returning EINVAL when string arguments have NUL in
      them makes sure this attack vector is unusable.
      
      R=golang-dev, r, bradfitz, fullung, rsc, minux.ma
      CC=golang-dev
      https://golang.org/cl/6458050
      a108369c
  3. 13 Feb, 2012 1 commit
    • Russ Cox's avatar
      os/signal: selective signal handling · 35586f71
      Russ Cox authored
      Restore package os/signal, with new API:
      Notify replaces Incoming, allowing clients
      to ask for certain signals only.  Also, signals
      go to everyone who asks, not just one client.
      
      This could plausibly move into package os now
      that there are no magic side effects as a result
      of the import.
      
      Update runtime for new API: move common Unix
      signal handling code into signal_unix.c.
      (It's so easy to do this now that we don't have
      to edit Makefiles!)
      
      Tested on darwin,linux 386,amd64.
      
      Fixes #1266.
      
      R=r, dsymonds, bradfitz, iant, borman
      CC=golang-dev
      https://golang.org/cl/3749041
      35586f71
  4. 13 Jan, 2012 1 commit
  5. 17 Nov, 2011 1 commit
    • Joel Sing's avatar
      syscall: implement nametomib for openbsd. · 773a921c
      Joel Sing authored
      Move the existing darwin/freebsd specific nametomib implementation
      into the respective operating system dependent files.
      
      Provide a nametomib implementation for openbsd, which operates on a
      sysctl MIB that has been pre-generated from the various system headers
      by mksysctl_openbsd.pl.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4935044
      773a921c
  6. 14 Nov, 2011 1 commit
    • Russ Cox's avatar
      syscall: use error · c017a829
      Russ Cox authored
      - syscall (not os) now defines the Errno type.
      - the low-level assembly functions Syscall, Syscall6, and so on
        return Errno, not uintptr
      - syscall wrappers all return error, not uintptr.
      
      R=golang-dev, mikioh.mikioh, r, alex.brainman
      CC=golang-dev
      https://golang.org/cl/5372080
      c017a829
  7. 08 Aug, 2011 1 commit
  8. 29 Jul, 2011 1 commit
    • Joel Sing's avatar
      syscall: move bsd pipe syscall · eb2b3f5d
      Joel Sing authored
      Not all BSDs have the same pipe() syscall implementation - move the Darwin/FreeBSD specific implementation into their respective OS syscall files. This will be needed to add OpenBSD syscall support.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/4823057
      eb2b3f5d
  9. 14 Jul, 2011 1 commit
  10. 14 Jun, 2011 1 commit
    • Jeff Hodges's avatar
      syscall: add ptrace on darwin · 0ce57a73
      Jeff Hodges authored
      The ptrace syscall remains gutted on darwin, but usable.  This
      also makes the syscall addition process reproducible on darwin
      instead of relying on a file path in rsc's home directory.
      I've also removed an override of $PATH in env.bash that made
      tooling harder.
      
      R=rsc, dave, r
      CC=golang-dev
      https://golang.org/cl/4517147
      0ce57a73
  11. 20 May, 2011 1 commit
  12. 07 Apr, 2011 1 commit
  13. 17 Mar, 2011 1 commit
    • Ian Lance Taylor's avatar
      syscall: Permit non-blocking syscalls. · 4fd41e49
      Ian Lance Taylor authored
      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
      4fd41e49
  14. 11 Feb, 2011 1 commit
  15. 05 Jan, 2011 1 commit
  16. 03 Aug, 2010 1 commit
  17. 26 Mar, 2010 1 commit
    • 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
  18. 25 Mar, 2010 1 commit
  19. 16 Feb, 2010 1 commit
  20. 04 Feb, 2010 1 commit
  21. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · d65a5cce
      Robert Griesemer authored
         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
      d65a5cce
  22. 02 Dec, 2009 1 commit
  23. 10 Nov, 2009 1 commit
  24. 09 Nov, 2009 1 commit
  25. 06 Nov, 2009 1 commit
  26. 05 Nov, 2009 1 commit
  27. 01 Nov, 2009 1 commit
    • Russ Cox's avatar
      syscall cleanup. · fd1add27
      Russ Cox authored
       * rename PORT.sh -> mkall.sh (hopefully more obvious),
         change behavior: run commands by default.
       * pull more constants out of #defines automatically,
         instead of editing large lists by hand.
       * add Recvfrom, Sendto
      
      add os.O_EXCL.
      
      R=r
      http://go/go-review/1017009
      fd1add27
  28. 12 Aug, 2009 1 commit
  29. 15 Jul, 2009 1 commit
  30. 29 Jun, 2009 1 commit
    • Russ Cox's avatar
      add os.Hostname · b32769b1
      Russ Cox authored
      R=r
      DELTA=188  (182 added, 3 deleted, 3 changed)
      OCL=30856
      CL=30860
      b32769b1
  31. 18 Jun, 2009 1 commit
  32. 17 Jun, 2009 1 commit
    • Russ Cox's avatar
      386 system call fixes: · 76c87d58
      Russ Cox authored
        * use 64-bit file system calls (Linux, Darwin)
        * use 32-bit [sic] uid/gid calls (Linux)
        * fix sockets on Linux
      
      Darwin/386 works again.
      
      Linux/386 is better but must never have worked;
      there are still bugs surrounding the creation of new
      threads in the runtime package.
      
      R=austin
      DELTA=1332  (673 added, 614 deleted, 45 changed)
      OCL=30327
      CL=30380
      76c87d58
  33. 09 Jun, 2009 1 commit
    • Rob Pike's avatar
      mv src/lib to src/pkg · d90e7cba
      Rob Pike authored
      tests: all.bash passes, gobuild still works, godoc still works.
      
      R=rsc
      OCL=30096
      CL=30102
      d90e7cba
  34. 03 Jun, 2009 1 commit
  35. 02 Jun, 2009 1 commit
    • Russ Cox's avatar
      new syscall package: manually maintained files and scripts. · 602a446b
      Russ Cox authored
      auto-generated files and deletions are in another CL.
      
      goals for new syscall:
      	* automate as much as possible
      	* do not let clients do unsafe things
      	* use simple types (int not int64)
      	* fewer files
      
      the files are renamed from foo_amd64_linux to foo_linux_amd64,
      both because it reads better (all the linux are related, all the amd64 less so)
      and because it made it easier to replace the existing ones.
      
      R=r
      DELTA=2336  (2260 added, 6 deleted, 70 changed)
      OCL=29709
      CL=29723
      602a446b