Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 68 for Getegid (0.17 sec)

  1. src/syscall/syscall_linux_s390x.go

    //sys	fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT
    //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getegid() (egid int)
    //sysnb	Geteuid() (euid int)
    //sysnb	Getgid() (gid int)
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_GETRLIMIT
    //sysnb	Getuid() (uid int)
    //sysnb	InotifyInit() (fd int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. src/syscall/syscall_plan9.go

    		return scratch
    	}
    	return int64(r0)
    }
    
    func Gettimeofday(tv *Timeval) error {
    	nsec := nsec()
    	*tv = NsecToTimeval(nsec)
    	return nil
    }
    
    func Getegid() (egid int) { return -1 }
    func Geteuid() (euid int) { return -1 }
    func Getgid() (gid int)   { return -1 }
    func Getuid() (uid int)   { return -1 }
    
    func Getgroups() (gids []int, err error) {
    	return make([]int, 0), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    		fn             func() error
    		filter, expect string
    	}{
    		{call: "Setegid(1)", fn: func() error { return syscall.Setegid(1) }, filter: "Gid:", expect: "\t0\t1\t0\t1"},
    		{call: "Setegid(0)", fn: func() error { return syscall.Setegid(0) }, filter: "Gid:", expect: "\t0\t0\t0\t0"},
    
    		{call: "Seteuid(1)", fn: func() error { return syscall.Seteuid(1) }, filter: "Uid:", expect: "\t0\t1\t0\t1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/runtime/cgo/linux_syscall.c

      } else                           \
        x->retval = ret
    
    void
    _cgo_libc_setegid(argset_t* x) {
    	SET_RETVAL(setegid((gid_t) x->args[0]));
    }
    
    void
    _cgo_libc_seteuid(argset_t* x) {
    	SET_RETVAL(seteuid((uid_t) x->args[0]));
    }
    
    void
    _cgo_libc_setgid(argset_t* x) {
    	SET_RETVAL(setgid((gid_t) x->args[0]));
    }
    
    void
    _cgo_libc_setgroups(argset_t* x) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 22:38:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/syscall/exec_libc.go

    )
    
    type SysProcAttr struct {
    	Chroot     string      // Chroot.
    	Credential *Credential // Credential.
    	Setsid     bool        // Create session.
    	// Setpgid sets the process group ID of the child to Pgid,
    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  6. src/runtime/syscall2_solaris.go

    //go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    //go:cgo_import_dynamic libc_setgid setgid "libc.so"
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    //go:cgo_import_dynamic libc_setsid setsid "libc.so"
    //go:cgo_import_dynamic libc_setuid setuid "libc.so"
    //go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    //go:cgo_import_dynamic libc_syscall syscall "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. src/syscall/asm_solaris_amd64.s

    	JMP	runtime·syscall_rawsyscall6(SB)
    
    TEXT ·setgid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setgid(SB)
    
    TEXT ·setgroups1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setgroups(SB)
    
    TEXT ·setrlimit1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setrlimit(SB)
    
    TEXT ·setsid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setsid(SB)
    
    TEXT ·setuid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setuid(SB)
    
    TEXT ·setpgid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_setpgid(SB)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 17:21:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. src/runtime/syscall_aix.go

    //go:cgo_import_dynamic libc_setgid setgid "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setsid setsid "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setuid setuid "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setpgid setpgid "libc.a/shr_64.o"
    
    //go:linkname libc_chdir libc_chdir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/build_test.go

    	// BSD mkdir(2) inherits the parent directory group, and other platforms
    	// can inherit the parent directory group via setgid. The test setup (chmod
    	// setgid) will fail if the process does not have the group permission to
    	// the new temporary directory.
    	err = os.Chown(setgiddir, os.Getuid(), os.Getgid())
    	if err != nil {
    		if testenv.SyscallIsNotSupported(err) {
    			t.Skip("skipping: chown is not supported on " + runtime.GOOS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. src/syscall/exec_unix_test.go

    	"testing"
    	"time"
    )
    
    type command struct {
    	pipe io.WriteCloser
    	proc *exec.Cmd
    	test *testing.T
    }
    
    func (c *command) Info() (pid, pgrp int) {
    	pid = c.proc.Process.Pid
    
    	pgrp, err := syscall.Getpgid(pid)
    	if err != nil {
    		c.test.Fatal(err)
    	}
    
    	return
    }
    
    func (c *command) Start() {
    	if err := c.proc.Start(); err != nil {
    		c.test.Fatal(err)
    	}
    }
    
    func (c *command) Stop() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top