Russ, Please review my cgo stuff thoroughly. It passes my tests, but it might be ...
13 years, 11 months ago
(2011-04-20 23:50:05 UTC)
#2
Russ,
Please review my cgo stuff thoroughly. It passes my tests, but it might be
getting lucky.
I couldn't find docs on a lot of the cgo (C.CString, C.GoString, etc) so I
was just copying bits of pieces from various places and looking at the
generated code.
On Wed, Apr 20, 2011 at 4:34 PM, <bradfitz@golang.org> wrote:
> Reviewers: rsc, r,
>
> Message:
> Hello rsc, r (cc: golang-dev@googlegroups.com),
>
> I'd like you to review this change to
> https://go.googlecode.com/hg/
>
>
> Description:
> os/user: new package to look up users
>
> Only for Unix presently. Other operating systems
> are stubbed out, as well as arm (lacks cgo).
>
> Please review this at http://codereview.appspot.com/4440057/
>
> Affected files:
> M src/pkg/Makefile
> A src/pkg/os/user/Makefile
> A src/pkg/os/user/lookup_stubs.go
> A src/pkg/os/user/lookup_unix.go
> A src/pkg/os/user/user.go
> A src/pkg/os/user/user_test.go
>
>
>
seems fine but i am not a cgo adept http://codereview.appspot.com/4440057/diff/11001/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/11001/src/pkg/os/user/lookup_unix.go#newcode28 src/pkg/os/user/lookup_unix.go:28: ...
13 years, 11 months ago
(2011-04-21 20:39:32 UTC)
#8
On Thu, Apr 21, 2011 at 17:45, Brad Fitzpatrick <bradfitz@google.com> wrote: > Done, except removing ...
13 years, 11 months ago
(2011-04-21 21:48:48 UTC)
#11
On Thu, Apr 21, 2011 at 17:45, Brad Fitzpatrick <bradfitz@google.com> wrote:
> Done, except removing ENOENT. I thought we did specify that one in
> particular in places.
I'm sure we don't, because it's much more useful to get
"/etc/passwd" file not found
than
file not found
It's the canonical reason os.Error is an interface.
Russ
http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go File src/pkg/os/user/lookup_unix.go (right): http://codereview.appspot.com/4440057/diff/9008/src/pkg/os/user/lookup_unix.go#newcode29 src/pkg/os/user/lookup_unix.go:29: // os.ENOENT is returned. See previous mail. This is ...
13 years, 11 months ago
(2011-04-21 21:53:08 UTC)
#12
Issue 4440057: code review 4440057: os/user: new package to look up users
(Closed)
Created 13 years, 11 months ago by bradfitz
Modified 13 years, 11 months ago
Reviewers:
Base URL:
Comments: 20