Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for strerror (0.25 sec)

  1. src/runtime/cgo/gcc_libinit.c

    #pragma GCC diagnostic ignored "-Wunknown-warning-option"
    #pragma GCC diagnostic ignored "-Watomic-alignment"
    
    #include <pthread.h>
    #include <errno.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h> // strerror
    #include <time.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
    static pthread_mutex_t runtime_init_mu = PTHREAD_MUTEX_INITIALIZER;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    	printf("} {\n");
    	qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
    	for(i=0; i<nelem(errors); i++) {
    		e = errors[i].num;
    		if(i > 0 && errors[i-1].num == e)
    			continue;
    		strncpy(buf, strerror(e), sizeof(buf) - 1);
    		buf[sizeof(buf) - 1] = '\0';
    		// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
    		if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
    			buf[0] += a - A;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    }
    inline int Write(int fd, const void* buf, unsigned int count) {
      return static_cast<int>(write(fd, buf, count));
    }
    inline int Close(int fd) { return close(fd); }
    inline const char* StrError(int errnum) { return strerror(errnum); }
    #endif
    inline const char* GetEnv(const char* name) {
    #if GTEST_OS_WINDOWS_MOBILE
      // We are on Windows CE, which has no environment variables.
      return NULL;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  4. cmd/sts-errors.go

    	ErrSTSIAMNotInitialized
    	ErrSTSUpstreamError
    	ErrSTSInternalError
    )
    
    type stsErrorCodeMap map[STSErrorCode]STSError
    
    func (e stsErrorCodeMap) ToSTSErr(errCode STSErrorCode) STSError {
    	apiErr, ok := e[errCode]
    	if !ok {
    		return e[ErrSTSInternalError]
    	}
    	return apiErr
    }
    
    // error code to STSError structure, these fields carry respective
    // descriptions for all the error responses.
    var stsErrCodes = stsErrorCodeMap{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. cmd/bucket-listobjects-handlers.go

    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.ListBucketAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Extract all the listObjectsV1 query params to their native values.
    	prefix, marker, delimiter, maxKeys, encodingType, s3Error := getListObjectsV1Args(r.Form)
    	if s3Error != ErrNone {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. cmd/dummy-handlers.go

    		return
    	}
    
    	// Allow getBucketCors if policy action is set, since this is a dummy call
    	// we are simply re-purposing the bucketPolicyAction.
    	if s3Error := checkRequestAuthType(ctx, r, policy.GetBucketPolicyAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Validate if bucket exists, before proceeding further...
    	_, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. cmd/auth-handler_test.go

    	for i, testCase := range testCases {
    		s3Error := isReqAuthenticated(ctx, testCase.req, globalSite.Region(), serviceS3)
    		if s3Error != testCase.s3Error {
    			if _, err := io.ReadAll(testCase.req.Body); toAPIErrorCode(ctx, err) != testCase.s3Error {
    				t.Fatalf("Test %d: Unexpected S3 error: want %d - got %d (got after reading request %s)", i, testCase.s3Error, s3Error, toAPIError(ctx, err).Code)
    			}
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/bucket-handlers.go

    		return
    	}
    
    	listBuckets := objectAPI.ListBuckets
    
    	cred, owner, s3Error := checkRequestAuthTypeCredential(ctx, r, policy.ListAllMyBucketsAction)
    	if s3Error != ErrNone && s3Error != ErrAccessDenied {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Anonymous users, should be rejected.
    	if cred.AccessKey == "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  9. cmd/object-multipart-handlers.go

    		}
    	case authTypeSignedV2, authTypePresignedV2:
    		if s3Error = isReqAuthenticatedV2(r); s3Error != ErrNone {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    	case authTypePresigned, authTypeSigned:
    		if s3Error = reqSignatureV4Verify(r, globalSite.Region(), serviceS3); s3Error != ErrNone {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  10. cmd/bucket-replication-handlers.go

    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutReplicationConfigurationAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    	// Check if bucket exists.
    	if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top