Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Tata (0.08 sec)

  1. src/cmd/cgo/internal/test/callback_c.c

    // license that can be found in the LICENSE file.
    
    #include <string.h>
    
    #include "_cgo_export.h"
    
    void
    callback(void *f)
    {
    	// use some stack space
    	volatile char data[64*1024];
    
    	data[0] = 0;
    	goCallback(f);
            data[sizeof(data)-1] = 0;
    }
    
    void
    callGoFoo(void)
    {
    	extern void goFoo(void);
    	goFoo();
    }
    
    void
    IntoC(void)
    {
    	BackIntoGo();
    }
    
    void
    Issue1560InC(void)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 933 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main5.c

    			}
    
    			int fd[2];
    			if (pipe(fd) != 0) {
    				printf("pipe(2) failed\n");
    				return 0;
    			}
    			// Close the reading end.
    			close(fd[0]);
    			// Expect that write(2) fails (EPIPE)
    			if (write(fd[1], "some data", 9) != -1) {
    				printf("write(2) unexpectedly succeeded\n");
    				return 0;
    			}
    			printf("did not receive SIGPIPE\n");
    			return 0;
    		}
    		case 4: {
    			fprintf(stderr, "OK\n");
    			fflush(stderr);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/libfuzzer2.c

    #include <stddef.h>
    
    #include "libfuzzer2.h"
    
    int LLVMFuzzerTestOneInput(char *data, size_t size) {
     	if (size > 0 && data[0] == 'H')
    		if (size > 1 && data[1] == 'I')
    			if (size > 2 && data[2] == '!')
    				FuzzMe(data, size);
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 240 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main2.c

        // descriptor yet.
        ts.tv_sec = 0;
        ts.tv_nsec = 10000000;
        nanosleep(&ts, NULL);
      }
    
      if (n < 0) {
        fprintf(stderr, "BUG: failed to read any data from pipe\n");
        return 2;
      }
    
      if (n == 0) {
        fprintf(stderr, "BUG: unexpected EOF\n");
        return 2;
      }
    
      if (n == sizeof buf) {
        n--;
      }
      buf[n] = '\0';
      printf("%s\n", buf);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top