Retro68/gcc/libgo/go/os/user/lookup_stubs.go

29 lines
691 B
Go
Raw Normal View History

2012-03-27 23:13:14 +00:00
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
2014-09-21 17:33:12 +00:00
// +build !cgo,!windows,!plan9
2012-03-27 23:13:14 +00:00
package user
import (
"fmt"
"runtime"
)
func init() {
implemented = false
}
2014-09-21 17:33:12 +00:00
func current() (*User, error) {
2012-03-27 23:13:14 +00:00
return nil, fmt.Errorf("user: Current not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
}
2014-09-21 17:33:12 +00:00
func lookup(username string) (*User, error) {
2012-03-27 23:13:14 +00:00
return nil, fmt.Errorf("user: Lookup not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
}
2014-09-21 17:33:12 +00:00
func lookupId(uid string) (*User, error) {
2012-03-27 23:13:14 +00:00
return nil, fmt.Errorf("user: LookupId not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
}