Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Unix (0.12 sec)

  1. src/archive/tar/stat_unix.go

    		case "linux":
    			// Copied from golang.org/x/sys/unix/dev_linux.go.
    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    			// Copied from golang.org/x/sys/unix/dev_darwin.go.
    			major := uint32((dev >> 24) & 0xff)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cthread_unix.c

    Cherry Mui <******@****.***> 1684339275 -0400
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/cgo_unix_test.go

    Austin Clements <******@****.***> 1683224724 -0400
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 391 bytes
    - Viewed (0)
  4. src/archive/tar/stat_actime1.go

    //go:build aix || linux || dragonfly || openbsd || solaris
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atim.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctim.Unix())
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 28 18:17:57 GMT 2021
    - 431 bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    			Size:       5,
    			ModTime:    time.Unix(1244592783, 0),
    			Typeflag:   '0',
    			Uname:      "dsymonds",
    			Gname:      "eng",
    			AccessTime: time.Unix(1244592783, 0),
    			ChangeTime: time.Unix(1244592783, 0),
    		}, {
    			Name:       "small2.txt",
    			Mode:       0640,
    			Uid:        73025,
    			Gid:        5000,
    			Size:       11,
    			ModTime:    time.Unix(1244592783, 0),
    			Typeflag:   '0',
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    	if len(ss) > 0 && ss[0] == '-' {
    		return time.Unix(secs, -1*nsecs), nil // Negative correction
    	}
    	return time.Unix(secs, nsecs), nil
    }
    
    // formatPAXTime converts ts into a time of the form %d.%d as described in the
    // PAX specification. This function is capable of negative timestamps.
    func formatPAXTime(ts time.Time) (s string) {
    	secs, nsecs := ts.Unix(), ts.Nanosecond()
    	if nsecs == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import "strings"
    
    // Format represents the tar archive format.
    //
    // The original tar format was introduced in Unix V7.
    // Since then, there have been multiple competing formats attempting to
    // standardize or extend the V7 format to overcome its limitations.
    // The most common formats are the USTAR, PAX, and GNU formats,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/archive/zip/reader.go

    				epoch := time.Date(1601, time.January, 1, 0, 0, 0, 0, time.UTC)
    				modified = time.Unix(epoch.Unix()+secs, nsecs)
    			}
    		case unixExtraID, infoZipUnixExtraID:
    			if len(fieldBuf) < 8 {
    				continue parseExtras
    			}
    			fieldBuf.uint32()              // AcTime (ignored)
    			ts := int64(fieldBuf.uint32()) // ModTime since Unix epoch
    			modified = time.Unix(ts, 0)
    		case extTimeExtraID:
    			if len(fieldBuf) < 5 || fieldBuf.uint8()&1 == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  9. src/archive/zip/struct.go

    	zip64ExtraID       = 0x0001 // Zip64 extended information
    	ntfsExtraID        = 0x000a // NTFS
    	unixExtraID        = 0x000d // UNIX
    	extTimeExtraID     = 0x5455 // Extended timestamp
    	infoZipUnixExtraID = 0x5855 // Info-ZIP Unix extension
    )
    
    // FileHeader describes a file within a ZIP file.
    // See the [ZIP specification] for details.
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  10. src/archive/tar/writer.go

    	var spb []byte
    	blk := tw.templateV7Plus(hdr, f.formatString, f.formatNumeric)
    	if !hdr.AccessTime.IsZero() {
    		f.formatNumeric(blk.toGNU().accessTime(), hdr.AccessTime.Unix())
    	}
    	if !hdr.ChangeTime.IsZero() {
    		f.formatNumeric(blk.toGNU().changeTime(), hdr.ChangeTime.Unix())
    	}
    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    	/*
    		if hdr.Typeflag == TypeGNUSparse {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
Back to top