Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.216.67
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
internal /
poll /
[ HOME SHELL ]
Name
Size
Permission
Action
errno_unix.go
738
B
-rw-r--r--
errno_windows.go
724
B
-rw-r--r--
error_linux_test.go
748
B
-rw-r--r--
error_stub_test.go
412
B
-rw-r--r--
error_test.go
1.04
KB
-rw-r--r--
export_posix_test.go
481
B
-rw-r--r--
export_test.go
708
B
-rw-r--r--
export_windows_test.go
431
B
-rw-r--r--
fcntl_js.go
325
B
-rw-r--r--
fcntl_libc.go
365
B
-rw-r--r--
fcntl_syscall.go
484
B
-rw-r--r--
fd.go
2.1
KB
-rw-r--r--
fd_fsync_darwin.go
535
B
-rw-r--r--
fd_fsync_posix.go
428
B
-rw-r--r--
fd_fsync_windows.go
358
B
-rw-r--r--
fd_io_plan9.go
2.1
KB
-rw-r--r--
fd_mutex.go
6.42
KB
-rw-r--r--
fd_mutex_test.go
3.88
KB
-rw-r--r--
fd_opendir_darwin.go
847
B
-rw-r--r--
fd_plan9.go
4.97
KB
-rw-r--r--
fd_poll_js.go
2.27
KB
-rw-r--r--
fd_poll_runtime.go
3.74
KB
-rw-r--r--
fd_posix.go
1.05
KB
-rw-r--r--
fd_posix_test.go
1.27
KB
-rw-r--r--
fd_unix.go
13.51
KB
-rw-r--r--
fd_windows.go
28.75
KB
-rw-r--r--
fd_windows_test.go
2.25
KB
-rw-r--r--
fd_writev_darwin.go
388
B
-rw-r--r--
fd_writev_unix.go
502
B
-rw-r--r--
hook_cloexec.go
371
B
-rw-r--r--
hook_unix.go
481
B
-rw-r--r--
hook_windows.go
668
B
-rw-r--r--
read_test.go
1.07
KB
-rw-r--r--
sendfile_bsd.go
1.17
KB
-rw-r--r--
sendfile_linux.go
1.1
KB
-rw-r--r--
sendfile_solaris.go
1.46
KB
-rw-r--r--
sendfile_windows.go
2.01
KB
-rw-r--r--
sock_cloexec.go
1.76
KB
-rw-r--r--
sockopt.go
1.08
KB
-rw-r--r--
sockopt_linux.go
490
B
-rw-r--r--
sockopt_unix.go
532
B
-rw-r--r--
sockopt_windows.go
862
B
-rw-r--r--
sockoptip.go
866
B
-rw-r--r--
splice_linux.go
5.66
KB
-rw-r--r--
strconv.go
946
B
-rw-r--r--
sys_cloexec.go
1.1
KB
-rw-r--r--
writev.go
1.76
KB
-rw-r--r--
writev_test.go
1.31
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fd_plan9.go
// Copyright 2009 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. package poll import ( "errors" "io" "sync/atomic" "time" ) type atomicBool int32 func (b *atomicBool) isSet() bool { return atomic.LoadInt32((*int32)(b)) != 0 } func (b *atomicBool) setFalse() { atomic.StoreInt32((*int32)(b), 0) } func (b *atomicBool) setTrue() { atomic.StoreInt32((*int32)(b), 1) } type FD struct { // Lock sysfd and serialize access to Read and Write methods. fdmu fdMutex Destroy func() // deadlines raio *asyncIO waio *asyncIO rtimer *time.Timer wtimer *time.Timer rtimedout atomicBool // set true when read deadline has been reached wtimedout atomicBool // set true when write deadline has been reached // Whether this is a normal file. // On Plan 9 we do not use this package for ordinary files, // so this is always false, but the field is present because // shared code in fd_mutex.go checks it. isFile bool } // We need this to close out a file descriptor when it is unlocked, // but the real implementation has to live in the net package because // it uses os.File's. func (fd *FD) destroy() error { if fd.Destroy != nil { fd.Destroy() } return nil } // Close handles the locking for closing an FD. The real operation // is in the net package. func (fd *FD) Close() error { if !fd.fdmu.increfAndClose() { return errClosing(fd.isFile) } return nil } // Read implements io.Reader. func (fd *FD) Read(fn func([]byte) (int, error), b []byte) (int, error) { if fd.rtimedout.isSet() { return 0, ErrTimeout } if err := fd.readLock(); err != nil { return 0, err } defer fd.readUnlock() if len(b) == 0 { return 0, nil } fd.raio = newAsyncIO(fn, b) n, err := fd.raio.Wait() fd.raio = nil if isHangup(err) { err = io.EOF } if isInterrupted(err) { err = ErrTimeout } return n, err } // Write implements io.Writer. func (fd *FD) Write(fn func([]byte) (int, error), b []byte) (int, error) { if fd.wtimedout.isSet() { return 0, ErrTimeout } if err := fd.writeLock(); err != nil { return 0, err } defer fd.writeUnlock() fd.waio = newAsyncIO(fn, b) n, err := fd.waio.Wait() fd.waio = nil if isInterrupted(err) { err = ErrTimeout } return n, err } // SetDeadline sets the read and write deadlines associated with fd. func (fd *FD) SetDeadline(t time.Time) error { return setDeadlineImpl(fd, t, 'r'+'w') } // SetReadDeadline sets the read deadline associated with fd. func (fd *FD) SetReadDeadline(t time.Time) error { return setDeadlineImpl(fd, t, 'r') } // SetWriteDeadline sets the write deadline associated with fd. func (fd *FD) SetWriteDeadline(t time.Time) error { return setDeadlineImpl(fd, t, 'w') } func setDeadlineImpl(fd *FD, t time.Time, mode int) error { d := t.Sub(time.Now()) if mode == 'r' || mode == 'r'+'w' { fd.rtimedout.setFalse() } if mode == 'w' || mode == 'r'+'w' { fd.wtimedout.setFalse() } if t.IsZero() || d < 0 { // Stop timer if mode == 'r' || mode == 'r'+'w' { if fd.rtimer != nil { fd.rtimer.Stop() } fd.rtimer = nil } if mode == 'w' || mode == 'r'+'w' { if fd.wtimer != nil { fd.wtimer.Stop() } fd.wtimer = nil } } else { // Interrupt I/O operation once timer has expired if mode == 'r' || mode == 'r'+'w' { fd.rtimer = time.AfterFunc(d, func() { fd.rtimedout.setTrue() if fd.raio != nil { fd.raio.Cancel() } }) } if mode == 'w' || mode == 'r'+'w' { fd.wtimer = time.AfterFunc(d, func() { fd.wtimedout.setTrue() if fd.waio != nil { fd.waio.Cancel() } }) } } if !t.IsZero() && d < 0 { // Interrupt current I/O operation if mode == 'r' || mode == 'r'+'w' { fd.rtimedout.setTrue() if fd.raio != nil { fd.raio.Cancel() } } if mode == 'w' || mode == 'r'+'w' { fd.wtimedout.setTrue() if fd.waio != nil { fd.waio.Cancel() } } } return nil } // On Plan 9 only, expose the locking for the net code. // ReadLock wraps FD.readLock. func (fd *FD) ReadLock() error { return fd.readLock() } // ReadUnlock wraps FD.readUnlock. func (fd *FD) ReadUnlock() { fd.readUnlock() } func isHangup(err error) bool { return err != nil && stringsHasSuffix(err.Error(), "Hangup") } func isInterrupted(err error) bool { return err != nil && stringsHasSuffix(err.Error(), "interrupted") } // IsPollDescriptor reports whether fd is the descriptor being used by the poller. // This is only used for testing. func IsPollDescriptor(fd uintptr) bool { return false } // RawControl invokes the user-defined function f for a non-IO // operation. func (fd *FD) RawControl(f func(uintptr)) error { return errors.New("not implemented") } // RawRead invokes the user-defined function f for a read operation. func (fd *FD) RawRead(f func(uintptr) bool) error { return errors.New("not implemented") } // RawWrite invokes the user-defined function f for a write operation. func (fd *FD) RawWrite(f func(uintptr) bool) error { return errors.New("not implemented") }
Close