diff options
Diffstat (limited to 'go/golang/gocache/1c')
6 files changed, 0 insertions, 57 deletions
diff --git a/go/golang/gocache/1c/1c12af42ff36b43476400f0a1a2aba5fcd6674d4d30560ed61ed84862baf9ae2-d b/go/golang/gocache/1c/1c12af42ff36b43476400f0a1a2aba5fcd6674d4d30560ed61ed84862baf9ae2-d deleted file mode 100644 index 2ba5cadf..00000000 --- a/go/golang/gocache/1c/1c12af42ff36b43476400f0a1a2aba5fcd6674d4d30560ed61ed84862baf9ae2-d +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by cmd/cgo; DO NOT EDIT. - -//line /workdir/go/src/os/user/listgroups_unix.go:1:1 -// Copyright 2016 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. - -// +build dragonfly darwin freebsd !android,linux netbsd openbsd -// +build cgo,!osusergo - -package user - -import ( - "fmt" - "strconv" - "unsafe" -) - -/* -#include <unistd.h> -#include <sys/types.h> -*/ -import _ "unsafe" - -const maxGroups = 2048 - -func listGroups(u *User) ([]string, error) { - ug, err := strconv.Atoi(u.Gid) - if err != nil { - return nil, fmt.Errorf("user: list groups for %s: invalid gid %q", u.Username, u.Gid) - } - userGID := _Ctype_gid_t(ug) - nameC := make([]byte, len(u.Username)+1) - copy(nameC, u.Username) - - n := _Ctype_int(256) - gidsC := make([]_Ctype_gid_t, n) - rv := getGroupList((*_Ctype_char)(unsafe.Pointer(&nameC[0])), userGID, &gidsC[0], &n) - if rv == -1 { - // Mac is the only Unix that does not set n properly when rv == -1, so - // we need to use different logic for Mac vs. the other OS's. - if err := groupRetry(u.Username, nameC, userGID, &gidsC, &n); err != nil { - return nil, err - } - } - gidsC = gidsC[:n] - gids := make([]string, 0, n) - for _, g := range gidsC[:n] { - gids = append(gids, strconv.Itoa(int(g))) - } - return gids, nil -} diff --git a/go/golang/gocache/1c/1c995c58c4609861e93cb627a1ef2b4751fdbe7fcf3eafa4f6321ecbb6931544-a b/go/golang/gocache/1c/1c995c58c4609861e93cb627a1ef2b4751fdbe7fcf3eafa4f6321ecbb6931544-a deleted file mode 100644 index 895b8b2b..00000000 --- a/go/golang/gocache/1c/1c995c58c4609861e93cb627a1ef2b4751fdbe7fcf3eafa4f6321ecbb6931544-a +++ /dev/null @@ -1 +0,0 @@ -v1 1c995c58c4609861e93cb627a1ef2b4751fdbe7fcf3eafa4f6321ecbb6931544 072e676fc7e7951bb94fa5ec9686eaeacfe93977494b896a5b82e9b329d97648 71244 1548273520579486582 diff --git a/go/golang/gocache/1c/1cae0a494d601efb9b15fd7b9fb187e2b0beeb350074dbf15f510a26a8b9d691-a b/go/golang/gocache/1c/1cae0a494d601efb9b15fd7b9fb187e2b0beeb350074dbf15f510a26a8b9d691-a deleted file mode 100644 index 345ef955..00000000 --- a/go/golang/gocache/1c/1cae0a494d601efb9b15fd7b9fb187e2b0beeb350074dbf15f510a26a8b9d691-a +++ /dev/null @@ -1 +0,0 @@ -v1 1cae0a494d601efb9b15fd7b9fb187e2b0beeb350074dbf15f510a26a8b9d691 2c9f40bab2e6eb29e8309cacc3601844459f9cbcb0e44294096f12e0b8e94f01 410 1548273523875083951 diff --git a/go/golang/gocache/1c/1cb2681bd5eb692d66fd39ccd8e8ad4bb1d839ac16e11d12a56d3ec70aafc57d-a b/go/golang/gocache/1c/1cb2681bd5eb692d66fd39ccd8e8ad4bb1d839ac16e11d12a56d3ec70aafc57d-a deleted file mode 100644 index edde60cb..00000000 --- a/go/golang/gocache/1c/1cb2681bd5eb692d66fd39ccd8e8ad4bb1d839ac16e11d12a56d3ec70aafc57d-a +++ /dev/null @@ -1 +0,0 @@ -v1 1cb2681bd5eb692d66fd39ccd8e8ad4bb1d839ac16e11d12a56d3ec70aafc57d a025a5af79961f66b732355da55863b56254d825f6d6d0ffbcbe28c22fff2fbb 67 1548273524679716576 diff --git a/go/golang/gocache/1c/1cb489e9bdc647f546a26ba75ffddcbce9186b3f26319d3b1bb3d03b732b114d-d b/go/golang/gocache/1c/1cb489e9bdc647f546a26ba75ffddcbce9186b3f26319d3b1bb3d03b732b114d-d deleted file mode 100644 index 23a7385c..00000000 --- a/go/golang/gocache/1c/1cb489e9bdc647f546a26ba75ffddcbce9186b3f26319d3b1bb3d03b732b114d-d +++ /dev/null @@ -1 +0,0 @@ -./zipfs.go diff --git a/go/golang/gocache/1c/1cc0b8184b2f197c4de43a42cb80b5b78e1f09729845e38b593a11678d73f6db-a b/go/golang/gocache/1c/1cc0b8184b2f197c4de43a42cb80b5b78e1f09729845e38b593a11678d73f6db-a deleted file mode 100644 index f92f138c..00000000 --- a/go/golang/gocache/1c/1cc0b8184b2f197c4de43a42cb80b5b78e1f09729845e38b593a11678d73f6db-a +++ /dev/null @@ -1 +0,0 @@ -v1 1cc0b8184b2f197c4de43a42cb80b5b78e1f09729845e38b593a11678d73f6db 214456262427276a1b532064b31afe9c79258033216568d22c18e6243c3d26df 532408 1548273528847213410 |