Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 168 for Getgid (0.13 sec)

  1. src/test/java/jcifs/tests/OplockTests.java

                                tree.send(new SmbComClose(sess.getConfig(), resp2.getFid(), 0L));
                            }
                        }
                    }
                    finally {
                        if ( resp != null && !trans.isDisconnected() ) {
                            tree.send(new SmbComClose(sess.getConfig(), resp.getFid(), 0L));
                        }
                    }
                }
                else {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. test/sigchld.go

    // license that can be found in the LICENSE file.
    
    // Test that a program can survive SIGCHLD.
    
    package main
    
    import "syscall"
    
    func main() {
    	syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
    	println("survived SIGCHLD")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 381 bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/testdata/issue39256/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	_ "unsafe"
    )
    
    //go:cgo_import_dynamic libc_getpid getpid "libc.so"
    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_close close "libc.so"
    //go:cgo_import_dynamic libc_open open "libc.so"
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func trampoline()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 18:39:54 UTC 2020
    - 489 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/segv.go

    	register("Segv", Segv)
    }
    
    var Sum int
    
    func Segv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	select {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 479 bytes
    - Viewed (0)
  5. src/os/executable_plan9.go

    // license that can be found in the LICENSE file.
    
    //go:build plan9
    
    package os
    
    import (
    	"internal/itoa"
    	"syscall"
    )
    
    func executable() (string, error) {
    	fn := "/proc/" + itoa.Itoa(Getpid()) + "/text"
    	f, err := Open(fn)
    	if err != nil {
    		return "", err
    	}
    	defer f.Close()
    	return syscall.Fd2path(int(f.Fd()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 427 bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/syscalls_none.go

    // Copyright 2017 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.
    
    //go:build !linux
    // +build !linux
    
    package main
    
    func gettid() int {
    	return 0
    }
    
    func tidExists(tid int) (exists, supported bool, err error) {
    	return false, false, nil
    }
    
    func getcwd() (string, error) {
    	return "", nil
    }
    
    func unshareFs() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 471 bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/segv.go

    func init() {
    	register("SegvInCgo", SegvInCgo)
    }
    
    func SegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Kill(syscall.Getpid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	C.pause()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 525 bytes
    - Viewed (0)
  8. pkg/util/procfs/procfs_linux_test.go

    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	pids, err := PidOf(filepath.Base(os.Args[0]))
    	assert.Empty(t, err)
    	assert.NotZero(t, pids)
    	assert.Contains(t, pids, os.Getpid())
    }
    
    func TestPKill(t *testing.T) {
    	if runtime.GOOS == "darwin" || runtime.GOOS == "windows" {
    		t.Skipf("not supported on GOOS=%s", runtime.GOOS)
    	}
    	sig := syscall.SIGCONT
    	c := make(chan os.Signal, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprognet/signal.go

    import (
    	"os/signal"
    	"syscall"
    )
    
    func init() {
    	register("SignalIgnoreSIGTRAP", SignalIgnoreSIGTRAP)
    }
    
    func SignalIgnoreSIGTRAP() {
    	signal.Ignore(syscall.SIGTRAP)
    	syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 646 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_fuzztime.txt

    func FuzzFast(f *testing.F) {
    	f.Fuzz(func (*testing.T, []byte) {})
    }
    -- fuzz_count_test.go --
    package fuzz
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    func FuzzTestCount(f *testing.F) {
    	pid := os.Getpid()
    	n := 0
    	f.Fuzz(func(t *testing.T, _ []byte) {
    		name := fmt.Sprintf("count/%v.%d", pid, n)
    		if err := os.WriteFile(name, nil, 0666); err != nil {
    			t.Fatal(err)
    		}
    		n++
    	})
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top