| /examples/utest/testcases/posix/stdlib_h/functions/ |
| A D | strtol_tc.c | 22 __attribute__((unused)) char *s, *c; in strtol_entry() local 31 TEST2(i, c - s, 10, "wrong final position %d != %d"); in strtol_entry() 33 TEST2(i, c - s, 11, "wrong final position %d != %d"); in strtol_entry() 37 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry() 39 TEST2(i, c - s, 2, "wrong final position %d != %d"); in strtol_entry() 99 TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld"); in strtol_entry() 106 TEST3(l, strtol(s = "123", &c, 36), 0, "%ld != %ld"); in strtol_entry() 107 TEST3(i, c - s, 0, "wrong final position %d != %d"); in strtol_entry() 110 TEST2(i, c - s, 7, "wrong final position %d != %d"); in strtol_entry() 112 TEST(l, strtol(s = " 1", &c, 0), 1, "%ld != %ld"); in strtol_entry() [all …]
|
| A D | qsort_tc.c | 32 static const char *s[] = variable 126 str_test(s, s_sorted, sizeof s / sizeof * s); in posix_testcase()
|
| /examples/utest/testcases/posix/pthread_h/functions/testfrmw/ |
| A D | testfrmw.h | 38 #define UNRESOLVED(x, s) \ argument 41 __FILE__, x, strerror(x), __LINE__, s); \ 46 #define FAILED(s) \ argument 48 output("Test %s FAILED: %s\n", __FILE__, s); \ 59 #define UNTESTED(s) \ argument 68 #define UNRESOLVED(x, s) \ argument 71 x, strerror(x), __LINE__, s); \ 76 #define FAILED(s) \ argument 78 output("Test FAILED: %s\n", s); \ 89 #define UNTESTED(s) \ argument [all …]
|
| /examples/network/ |
| A D | tcp_client.py | 5 s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) variable 7 s.connect(('192.168.10.110',6001)) 9 print s.recv(1024) 12 s.send(data) 13 print s.recv(1024) 15 s.send('exit') 16 s.close()
|
| A D | tcp_server.py | 6 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) variable 9 s.bind(('192.168.10.110', 6001)) 11 s.listen(5) 30 sock,addr=s.accept()
|
| /examples/utest/testcases/posix/unistd_h/functions/ |
| A D | open_read_write_fsync_close_tc.c | 15 char s[] = "RT-Thread Programmer!"; in open_read_write_fsync_close_entry() local 18 printf("the data is: %s\n", s); in open_read_write_fsync_close_entry() 26 write(fd, s, FILE_TEST_LENGTH(s)); in open_read_write_fsync_close_entry() 29 read(fd,buffer,FILE_TEST_LENGTH(s)); in open_read_write_fsync_close_entry() 39 read(fd,buffer,FILE_TEST_LENGTH(s)); in open_read_write_fsync_close_entry()
|
| /examples/file/ |
| A D | listdir.c | 27 struct stat s; in list_dir() local 41 rt_memset(&s, 0, sizeof(struct stat)); in list_dir() 46 stat(fullpath, &s); in list_dir() 47 if ( s.st_mode & S_IFDIR ) in list_dir() 53 rt_kprintf("%s\t\t%lu\n", dirent->d_name, s.st_size); in list_dir()
|
| /examples/test/ |
| A D | dhry.h | 354 #define structassign(d, s) memcpy(&(d), &(s), sizeof(d)) argument 356 #define structassign(d, s) d = s argument
|
| A D | dhry_1.c | 339 memcpy (d, s, l) in memcpy() argument 341 register char *s; 344 while (l--) *d++ = *s++;
|
| /examples/utest/testcases/posix/stdio_h/functions/ |
| A D | rewind_tc.c | 7 char s[81] = {0}; in rewind_entry() local 20 fscanf(stream,"%s",s); in rewind_entry() 24 if((strcmp(s,"a_string") != 0) || (l != 6500) || (c != 'x')) in rewind_entry()
|
| A D | fscanf_tc.c | 7 char s[81] = {0}; in fscanf_entry() local 20 fscanf(stream,"%s",s); in fscanf_entry() 24 if((strcmp(s,"a_string") != 0) || (l != 6500) || (c != 'x')) in fscanf_entry()
|
| A D | fseek_tc.c | 7 char s[81] = {0}; in fdopen_entry() local 20 fscanf(stream,"%s",s); in fdopen_entry() 24 if((strcmp(s,"a_string") != 0) || (l != 6500) || (c != 'x')) in fdopen_entry()
|
| /examples/libc/ |
| A D | ex4.c | 25 char * str_accumulate(char * s) 28 strcat(accu, s); 51 char * str_accumulate(const char * s) in str_accumulate() argument 69 strcat(accu, s); in str_accumulate()
|
| A D | file.c | 22 struct stat s; in libc_fstat() local 35 printf("fstat result: %d\n", fstat(fd, &s)); in libc_fstat()
|