Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for O_TRUNC (0.07 sec)

  1. internal/logger/logrotate.go

    			return nil, fmt.Errorf("Failed to create log file: %w", err)
    		}
    	}
    
    	go w.listen()
    
    	return w, nil
    }
    
    func newFile(path string) (*os.File, error) {
    	return os.OpenFile(path, os.O_WRONLY|os.O_TRUNC|os.O_CREATE|os.O_SYNC, 0o666)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFile.java

                    req.setDesiredAccess(access);
    
                    if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC && ( flags & SmbConstants.O_CREAT ) == O_CREAT ) {
                        req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE_IF);
                    }
                    else if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC ) {
                        req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE);
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  3. lib/wasm/wasm_exec.js

    		const err = new Error("not implemented");
    		err.code = "ENOSYS";
    		return err;
    	};
    
    	if (!globalThis.fs) {
    		let outputBuf = "";
    		globalThis.fs = {
    			constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
    			writeSync(fd, buf) {
    				outputBuf += decoder.decode(buf);
    				const nl = outputBuf.lastIndexOf("\n");
    				if (nl != -1) {
    					console.log(outputBuf.substring(0, nl));
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

        // create if the file does not exist
        static final int O_CREAT  = 0x0010;
        // fail if the file exists
        static final int O_EXCL   = 0x0020;
        // truncate if the file exists
        static final int O_TRUNC  = 0x0040;
    
        // share access
    /**
     * When specified as the <tt>shareAccess</tt> constructor parameter,
     * other SMB clients (including other threads making calls into jCIFS)
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    			if file.FileInfo().IsDir() {
    				return os.MkdirAll(extractedFilePath, file.Mode())
    			}
    			outputFile, err := os.OpenFile(extractedFilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode())
    			if err != nil {
    				return err
    			}
    			defer outputFile.Close()
    			_, err = io.Copy(outputFile, zippedFile)
    			return err
    		}()
    		if err != nil {
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    // Create or truncate an existing file before writing
    func (s *xlStorage) writeAllInternal(ctx context.Context, filePath string, b []byte, sync bool, skipParent string) (err error) {
    	flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC
    
    	var w *os.File
    	if sync {
    		// Perform DirectIO along with fdatasync for larger xl.meta, mostly when
    		// xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  7. api/go1.14.txt

    pkg os (freebsd-arm64), const O_APPEND = 8
    pkg os (freebsd-arm64), const O_CREATE = 512
    pkg os (freebsd-arm64), const O_EXCL = 2048
    pkg os (freebsd-arm64), const O_SYNC = 128
    pkg os (freebsd-arm64), const O_TRUNC = 1024
    pkg os (freebsd-arm64), const PathListSeparator = 58
    pkg os (freebsd-arm64), const PathSeparator = 47
    pkg os (freebsd-arm64-cgo), const DevNull = "/dev/null"
    pkg os (freebsd-arm64-cgo), const O_APPEND = 8
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  8. api/go1.16.txt

    pkg os (darwin-arm64), const O_APPEND = 8
    pkg os (darwin-arm64), const O_CREATE = 512
    pkg os (darwin-arm64), const O_EXCL = 2048
    pkg os (darwin-arm64), const O_SYNC = 128
    pkg os (darwin-arm64), const O_TRUNC = 1024
    pkg os (darwin-arm64), const PathListSeparator = 58
    pkg os (darwin-arm64), const PathSeparator = 47
    pkg os (darwin-arm64-cgo), const DevNull = "/dev/null"
    pkg os (darwin-arm64-cgo), const O_APPEND = 8
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  9. api/go1.20.txt

    pkg os (freebsd-riscv64), const O_CREATE = 512 #53466
    pkg os (freebsd-riscv64), const O_EXCL = 2048 #53466
    pkg os (freebsd-riscv64), const O_SYNC = 128 #53466
    pkg os (freebsd-riscv64), const O_TRUNC = 1024 #53466
    pkg os (freebsd-riscv64), const PathListSeparator = 58 #53466
    pkg os (freebsd-riscv64), const PathSeparator = 47 #53466
    pkg os (freebsd-riscv64-cgo), const DevNull = "/dev/null" #53466
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
Back to top