Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Man (0.27 sec)

  1. cmd/xl-storage_unix_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"os"
    	"path"
    	"syscall"
    	"testing"
    )
    
    // Based on `man getumask` a vaporware GNU extension to glibc.
    // returns file mode creation mask.
    func getUmask() int {
    	mask := syscall.Umask(0)
    	syscall.Umask(mask)
    	return mask
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/bytes/example_test.go

    	fmt.Printf("%q\n", bytes.Split([]byte("a,b,c"), []byte(",")))
    	fmt.Printf("%q\n", bytes.Split([]byte("a man a plan a canal panama"), []byte("a ")))
    	fmt.Printf("%q\n", bytes.Split([]byte(" xyz "), []byte("")))
    	fmt.Printf("%q\n", bytes.Split([]byte(""), []byte("Bernardo O'Higgins")))
    	// Output:
    	// ["a" "b" "c"]
    	// ["" "man " "plan " "canal panama"]
    	// [" " "x" "y" "z" " "]
    	// [""]
    }
    
    func ExampleSplitN() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. istioctl/cmd/sysexits.go

    package cmd
    
    import (
    	"strings"
    
    	"istio.io/istio/istioctl/pkg/analyze"
    	"istio.io/istio/istioctl/pkg/util"
    )
    
    // Values should try to use sendmail-style values as in <sysexits.h>
    // See e.g. https://man.openbsd.org/sysexits.3
    // or `less /usr/includes/sysexits.h` if you're on Linux
    //
    // Picking the right range is tricky--there are a lot of reserved ones (see
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_linux.go

    package mountinfo
    
    import (
    	"bufio"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    )
    
    const (
    	// Number of fields per line in /proc/mounts as per the fstab man page.
    	expectedNumFieldsPerLine = 6
    	// Location of the mount file to use
    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns.go

    // The expected cgroup format is "hierarchy-ID:controller-list:cgroup-path", and
    // this function will return an error if every cgroup does not meet that format.
    //
    // For more information, see:
    //   - http://man7.org/linux/man-pages/man7/cgroups.7.html
    //   - https://www.kernel.org/doc/Documentation/cgroup-v2.txt
    func GetCgroups(procCgroupData bytes.Buffer) ([]Cgroup, error) {
    	reader := bytes.NewReader(procCgroupData.Bytes())
    	var cgroups []Cgroup
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. cmd/object-api-listobjects_test.go

    		// Marker is set to "obj1" in the testCase, (testCase 36).
    		12: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "obj2"},
    			},
    		},
    		// ListObjectsResult-13.
    		// Marker is set to "man" in the testCase, (testCase37).
    		13: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "newPrefix0"},
    				{Name: "newPrefix1"},
    				{Name: "newzen/zen/recurse/again/again/again/pics"},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    	}
    
    	// Only interested in flushing the size_t not mtime/atime
    	if err = Fdatasync(w); err != nil {
    		w.Close()
    		return err
    	}
    
    	// Dealing with error returns from close() - 'man 2 close'
    	//
    	// A careful programmer will check the return value of close(), since it is quite possible that
    	// errors on a previous write(2) operation are reported only on the final close() that releases
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 82.4K bytes
    - Viewed (0)
Back to top