- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 133 for tzcntl (0.2 sec)
-
src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd.go
//sys fcntl(fd int, cmd int, arg int) (n int, err error) //sys fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) = SYS_FCNTL // FcntlInt performs a fcntl syscall on fd with the provided command and argument. func FcntlInt(fd uintptr, cmd, arg int) (int, error) { return fcntl(int(fd), cmd, arg) } // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 11K bytes - Viewed (0) -
src/runtime/defs_openbsd.go
*/ package runtime /* #include <sys/types.h> #include <sys/event.h> #include <sys/mman.h> #include <sys/time.h> #include <sys/unistd.h> #include <sys/signal.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <signal.h> */ import "C" const ( EINTR = C.EINTR EFAULT = C.EFAULT EAGAIN = C.EAGAIN ETIMEDOUT = C.ETIMEDOUT O_NONBLOCK = C.O_NONBLOCK
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 17:31:23 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go
// This code implements the filelock API using POSIX 'fcntl' locks, which attach // to an (inode, process) pair rather than a file descriptor. To avoid unlocking // files prematurely when the same file is opened through different descriptors, // we allow only one read-lock at a time. // // Most platforms provide some alternative API, such as an 'flock' system call // or an F_OFD_SETLK command for 'fcntl', that allows for better concurrency and
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 17 02:24:35 UTC 2023 - 5.5K bytes - Viewed (0) -
src/syscall/exec_unix.go
} func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) } func SetNonblock(fd int, nonblocking bool) (err error) { flag, err := fcntl(fd, F_GETFL, 0) if err != nil { return err } if (flag&O_NONBLOCK != 0) == nonblocking { return nil } if nonblocking { flag |= O_NONBLOCK } else { flag &^= O_NONBLOCK } _, err = fcntl(fd, F_SETFL, flag) return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 8.7K bytes - Viewed (0) -
src/net/unixsock_readmsg_test.go
t.Fatalf("got FDs %#v: wanted only 1 fd", gotFDs) } defer func() { if err := syscall.Close(gotFDs[0]); err != nil { t.Fatalf("fail to close gotFDs: %v", err) } }() flags, err := unix.Fcntl(gotFDs[0], syscall.F_GETFD, 0) if err != nil { t.Fatalf("Can't get flags of fd:%#v, with err:%v", gotFDs[0], err) } if flags&syscall.FD_CLOEXEC == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 09:15:25 UTC 2023 - 2.5K bytes - Viewed (0) -
src/syscall/types_aix.go
#include <sys/ptrace.h> #include <sys/statfs.h> #include <net/if.h> #include <net/if_dl.h> #include <netinet/in.h> #include <netinet/icmp6.h> #include <termios.h> #include <dirent.h> #include <fcntl.h> #include <gcrypt.h> enum { sizeofPtr = sizeof(void*), }; union sockaddr_all { struct sockaddr s1; // this one gets used for fields struct sockaddr_in s2; // these pad it out struct sockaddr_in6 s3;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 3.4K bytes - Viewed (0) -
src/syscall/types_darwin.go
// +godefs map struct_in6_addr [16]byte /* in6_addr */ package syscall /* #define __DARWIN_UNIX03 0 #define KERNEL #define _DARWIN_USE_64_BIT_INODE #include <dirent.h> #include <fcntl.h> #include <signal.h> #include <termios.h> #include <unistd.h> #include <mach/mach.h> #include <mach/message.h> #include <sys/event.h> #include <sys/mman.h> #include <sys/mount.h> #include <sys/param.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 5K bytes - Viewed (0) -
src/runtime/os_openbsd_syscall2.go
// munmap calls the munmap system call. It is implemented in assembly. func munmap(addr unsafe.Pointer, n uintptr) func nanotime1() int64 //go:noescape func sigaltstack(new, old *stackt) func fcntl(fd, cmd, arg int32) (ret int32, errno int32) func walltime() (sec int64, nsec int32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.5K bytes - Viewed (0) -
src/runtime/sys_darwin.go
// Not used on Darwin, but must be defined. func exitThread(wait *atomic.Uint32) { throw("exitThread") } //go:nosplit func setNonblock(fd int32) { flags, _ := fcntl(fd, _F_GETFL, 0) if flags != -1 { fcntl(fd, _F_SETFL, flags|_O_NONBLOCK) } } func issetugid() int32 { return libcCall(unsafe.Pointer(abi.FuncPCABI0(issetugid_trampoline)), nil) } func issetugid_trampoline()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 23.9K bytes - Viewed (0) -
src/runtime/defs2_linux.go
#define pid_t int #include <asm/signal.h> #include <asm/mman.h> #include <asm/sigcontext.h> #include <asm/ucontext.h> #include <asm/siginfo.h> #include <asm-generic/errno.h> #include <asm-generic/fcntl.h> #include <asm-generic/poll.h> #include <linux/eventpoll.h> // This is the sigaction structure from the Linux 2.1.68 kernel which // is used with the rt_sigaction system call. For 386 this is not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 07 18:28:11 UTC 2022 - 3.2K bytes - Viewed (0)