| // Copyright 2013 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. |
| // Partial os/user support on Plan 9. |
| // Supports Current(), but not Lookup()/LookupId(). |
| // The latter two would require parsing /adm/users. |
| func current() (*User, error) { |
| ubytes, err := ioutil.ReadFile(userFile) |
| return nil, fmt.Errorf("user: %s", err) |
| HomeDir: os.Getenv("home"), |
| func lookup(username string) (*User, error) { |
| return nil, syscall.EPLAN9 |
| func lookupId(uid string) (*User, error) { |
| return nil, syscall.EPLAN9 |