Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 36 for Fd (0.08 seconds)

  1. internal/lock/lock_nix.go

    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	f, err := os.OpenFile(path, flag|syscall.O_SYNC, perm)
    	if err != nil {
    		return nil, err
    	}
    
    	if err = syscall.Flock(int(f.Fd()), lockType); err != nil {
    		f.Close()
    		if err == syscall.EWOULDBLOCK {
    			err = ErrAlreadyLocked
    		}
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    	if err != nil {
    		f.Close()
    		return nil, err
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 2.8K bytes
    - Click Count (0)
  2. internal/disk/fdatasync_unix.go

    package disk
    
    import (
    	"os"
    	"syscall"
    )
    
    // Fdatasync is fsync on freebsd/darwin
    func Fdatasync(f *os.File) error {
    	return syscall.Fsync(int(f.Fd()))
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.1K bytes
    - Click Count (0)
  3. internal/lock/lock_solaris.go

    		Start:  0,
    		Len:    0,
    		Pid:    0,
    		Type:   lockType,
    		Whence: 0,
    	}
    
    	f, err := os.OpenFile(path, flag, perm)
    	if err != nil {
    		return nil, err
    	}
    
    	if err = syscall.FcntlFlock(f.Fd(), rlockType, &lock); err != nil {
    		f.Close()
    		if err == syscall.EAGAIN {
    			err = ErrAlreadyLocked
    		}
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    	if err != nil {
    		f.Close()
    		return nil, err
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.8K bytes
    - Click Count (0)
  4. misc/go_android_exec/main.go

    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 0, err
    	}
    
    	// In case we're booting a device or emulator alongside all.bash, wait for
    	// it to be ready. adb wait-for-device is not enough, we have to
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Click Count (0)
  5. cmd/common-main.go

    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
    		color.TurnOff()
    	}
    	if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" {
    		color.TurnOff()
    	}
    
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  6. misc/ios/go_ios_exec.go

    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 1, err
    	}
    
    	err = runOnSimulator(appdir)
    	if err != nil {
    		return 1, err
    	}
    	return 0, nil
    }
    
    func runOnSimulator(appdir string) error {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Sep 16 00:34:45 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbFile.java

                    withOpen(th, Smb2CreateRequest.FILE_OPEN_IF, O_RDWR, 0, null);
                } else {
                    try (SmbFileHandle fd = openUnshared(O_RDWR | O_CREAT | O_EXCL, O_RDWR, FILE_NO_SHARE, ATTR_NORMAL, 0)) {
                        // close explicitly
                        fd.close(0L);
                    }
                }
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  8. cmd/testdata/undeleteable-object.tgz

    G›CR•€§‚… ˜qÅÖ~â6tŒ·¨éœ7œã \âyçðs9M rE ÿf§«ú”ΈI ‰LÝ ²Š¬ÆR€| Ã’1üXòÇàktÉv^W¼ØÔ%§aGü݈8ñÂä œ¾¬¹ ¸õeo`¸è` ÈD{8‘?o•Y ‡Läœv¯V…žlvZ– ´Â“?Ù¬`‡oÕvMIrì5'˜ c²— o’ n¾Ag ‘ ÈK[Ï •R+â% ÐK© _ áYœ ¼… ;7M®Q x j)Š¡Zëqj( BÏÜÔ’ ræçªÖa`Ø­ûr WÇ‚Bõ#“v„ ¡—¾ ) ´Ö ÷W9 ¾G 2ÊÐæ‡ ]ÚâÂÉV€^éYK/ÑzŸ°Ù™+æÏ— C‘nÈ%¼ ÂØM’òÈýUã¦ó4Íó7 ­Â óÍ»us5e¦ ¢ó ­²ªiz¨ïÅ¿9V )‚óÏÜzó éÝAù{V¾·¨SúwM¹e®lî‹j¼-M– ²Ç¾pß¼M ƒ14 ’p0 )×£ Ù ÆÍù- ÀÆd‰ ^ š½0® îÊr ­f¬ \à¾×ég—! sÑ'ˆ3wi øÈ ëƒ:×ÖÛW,jŒ…,c'œ‰iä Ÿ %…2͚Ƨ» 1ì-Îe XϤ­âù ×Àw \ƃá (ELð15ûüètvë½ç;Ê’×ëŠ0Ñëºh...
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 8.7M bytes
    - Click Count (0)
  9. CHANGELOG/CHANGELOG-1.17.md

    - Fixed attachment of AWS volumes that have just been detached. ([#83567](https://github.com/kubernetes/kubernetes/pull/83567), [@jsafrane](https://github.com/jsafrane))
    - Fix possible fd leak and closing of dirs when using openstack ([#82873](https://github.com/kubernetes/kubernetes/pull/82873), [@odinuge](https://github.com/odinuge))
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu Jan 28 10:44:33 GMT 2021
    - 346.2K bytes
    - Click Count (1)
  10. CHANGELOG/CHANGELOG-1.16.md

    * Fix possible fd leak and closing of dirs when using openstack ([#82873](https://github.com/kubernetes/kubernetes/pull/82873), [@odinuge](https://github.com/odinuge))
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Wed Oct 23 20:13:20 GMT 2024
    - 345.2K bytes
    - Click Count (0)
Back to Top