/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/pds/ |
A D | tif_pdsdirread.c | 125 TIFFDirEntry* dir; in TIFFReadPrivateDataSubDirectory() local 153 if (dir == NULL) in TIFFReadPrivateDataSubDirectory() 177 if (dir == NULL) in TIFFReadPrivateDataSubDirectory() 278 if (dir) in TIFFReadPrivateDataSubDirectory() 279 _TIFFfree(dir); in TIFFReadPrivateDataSubDirectory() 282 if (dir) in TIFFReadPrivateDataSubDirectory() 283 _TIFFfree(dir); in TIFFReadPrivateDataSubDirectory() 474 TIFFExtractData(tif, dir->tdir_type, dir->tdir_offset); in TIFFFetchFloat() 484 TIFFExtractData(tif, dir->tdir_type, dir->tdir_offset); in TIFFFetchFloat() 592 dir->tdir_count*TIFFDataWidth(dir->tdir_type), in TIFFFetchRationalArray() [all …]
|
A D | tif_pdsdirwrite.c | 104 dir++; \ 153 TIFFDirEntry* dir; in TIFFWritePrivateDataSubDirectory() local 236 dir++; in TIFFWritePrivateDataSubDirectory() 262 for (dir = (TIFFDirEntry*) data; dircount; dir++, dircount--) { in TIFFWritePrivateDataSubDirectory() 344 dir->tdir_offset = in TIFFWriteNormalSubTag() 482 dir->tdir_tag = tag; in TIFFSetupShortLong() 483 dir->tdir_count = 1; in TIFFSetupShortLong() 582 dir->tdir_tag = tag; in TIFFWriteShortTable() 605 _TIFFmemcpy(&dir->tdir_offset, cp, dir->tdir_count); in TIFFWriteByteArray() 617 dir->tdir_tag = tag; in TIFFWriteShortArray() [all …]
|
/AliOS-Things-master/components/cli/src/iobox/ |
A D | ls.c | 142 dir = get_realpath(dir, abspath, sizeof(abspath)); in ls_do() 143 if (!dir) { in ls_do() 161 while (dir && (strncmp(dir, "..", strlen(".."))) == 0) { in ls_do() 172 dir++; in ls_do() 176 if (dir && dir[0] == '.') { in ls_do() 181 if (dir) in ls_do() 183 dir = cur; in ls_do() 293 char dir[128] = {0}; in ls_cur() local 295 if (get_cwd_dir(dir, sizeof(dir))) in ls_cur() 300 argv2[0] = dir; in ls_cur() [all …]
|
A D | rm.c | 26 char *dir, *p; in rrmdir() local 31 dir = strdup(path); in rrmdir() 32 p = dir + strlen(dir) - 1; in rrmdir() 33 while ((*p == '/') && (p > dir)) { in rrmdir() 38 if (stat(dir, &s) || !S_ISDIR(s.st_mode)) { in rrmdir() 39 aos_cli_printf("%s is neither existed nor a directory\n", dir); in rrmdir() 43 pdir = opendir(dir); in rrmdir() 53 snprintf(fpath, 128, "%s/%s", dir, entry->d_name); in rrmdir() 74 ret = rmdir(dir); in rrmdir() 76 aos_cli_printf("rmdir %s failed\n", dir); in rrmdir() [all …]
|
A D | df.c | 16 static void df_do_dir(const char *dir) in df_do_dir() argument 22 dir1 = get_realpath(dir, abspath, sizeof(abspath)); in df_do_dir() 34 aos_cli_printf("statfs %s failed\n", dir); in df_do_dir() 46 if (!strcmp(dir, "/")) { in df_do_dir() 48 used * 100 / total, dir); in df_do_dir() 50 aos_cli_printf("%10llu%10llu%10llu 0%% %s\n", total, used, free, dir); in df_do_dir()
|
A D | pwd.c | 13 char dir[256] = {0}, *ret; in pwd_main() local 15 ret = getcwd(dir, sizeof(dir)); in pwd_main() 21 aos_cli_printf("%s\r\n", dir); in pwd_main()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_dirwrite.c | 423 dir=NULL; in TIFFWriteDirectorySec() 858 o=dir; in TIFFWriteDirectorySec() 894 o=dir; in TIFFWriteDirectorySec() 918 dir=NULL; in TIFFWriteDirectorySec() 944 if (dir!=NULL) in TIFFWriteDirectorySec() 1124 if (dir==NULL) in TIFFWriteDirectoryTagAscii() 1135 if (dir==NULL) in TIFFWriteDirectoryTagUndefinedArray() 1147 if (dir==NULL) in TIFFWriteDirectoryTagByte() 1159 if (dir==NULL) in TIFFWriteDirectoryTagByteArray() 1176 if (dir==NULL) [all …]
|
/AliOS-Things-master/components/amp_adapter/platform/aos/ |
A D | aos_fs.c | 24 char *dir, *p; in aos_rmdir_r() local 34 dir = aos_malloc(path_len); in aos_rmdir_r() 35 if (dir == NULL) { in aos_rmdir_r() 38 memcpy(dir, path, path_len); in aos_rmdir_r() 40 p = dir + strlen(dir) - 1; in aos_rmdir_r() 41 while ((*p == '/') && (p > dir)) { in aos_rmdir_r() 46 if (aos_stat(dir, &s) || !S_ISDIR(s.st_mode)) { in aos_rmdir_r() 51 pdir = aos_opendir(dir); in aos_rmdir_r() 82 ret = aos_rmdir(dir); in aos_rmdir_r() 84 aos_printf("rmdir %s failed\n", dir); in aos_rmdir_r() [all …]
|
/AliOS-Things-master/components/amp_adapter/platform/linux/ |
A D | aos_fs.c | 96 int aos_closedir(aos_dir_t *dir) in aos_closedir() argument 98 return closedir((DIR*)dir); in aos_closedir() 103 return readdir((DIR*)dir); in aos_readdir() 115 char *dir, *p; in aos_rmdir_r() local 125 dir = aos_malloc(path_len); in aos_rmdir_r() 126 if (dir == NULL) { in aos_rmdir_r() 130 memcpy(dir, path, path_len); in aos_rmdir_r() 132 p = dir + strlen(dir) - 1; in aos_rmdir_r() 143 pdir = opendir(dir); in aos_rmdir_r() 174 ret = rmdir(dir); in aos_rmdir_r() [all …]
|
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/ |
A D | lfs1.c | 430 dir->d.size = sizeof(dir->d)+4; in lfs1_dir_alloc() 433 dir->off = sizeof(dir->d); in lfs1_dir_alloc() 488 dir->off = sizeof(dir->d); in lfs1_dir_fetch() 781 dir->off = sizeof(dir->d); in lfs1_dir_next() 978 dir->head[0] = dir->pair[0]; in lfs1_dir_open() 979 dir->head[1] = dir->pair[1]; in lfs1_dir_open() 980 dir->pos = sizeof(dir->d) - 2; in lfs1_dir_open() 981 dir->off = sizeof(dir->d); in lfs1_dir_open() 1098 dir->pair[0] = dir->head[0]; in lfs1_dir_rewind() 1099 dir->pair[1] = dir->head[1]; in lfs1_dir_rewind() [all …]
|
A D | lfs2.c | 1459 dir->pair[0], 0, &dir->rev, sizeof(dir->rev)); in lfs2_dir_alloc() 1460 dir->rev = lfs2_fromle32(dir->rev); in lfs2_dir_alloc() 1473 dir->off = sizeof(dir->rev); in lfs2_dir_alloc() 1895 dir, dir->off, dir->etag, attrs, attrcount, in lfs2_dir_commit() 1957 dir, 0, dir->count); in lfs2_dir_commit() 2138 dir->head[0] = dir->m.pair[0]; in lfs2_dir_rawopen() 2139 dir->head[1] = dir->m.pair[1]; in lfs2_dir_rawopen() 2174 if (dir->id == dir->m.count) { in lfs2_dir_rawread() 2222 if (dir->id == dir->m.count) { in lfs2_dir_rawseek() 4416 dir->off = sizeof(dir->d); [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | depcomp | 251 test "x$dir" = "x$object" && dir= 254 tmpdepfile1=$dir$base.u 259 tmpdepfile1=$dir$base.u 260 tmpdepfile2=$dir$base.u 261 tmpdepfile3=$dir$base.u 346 test "x$dir" = "x$object" && dir= 349 tmpdepfile1=$dir$base.d 353 tmpdepfile1=$dir$base.d 354 tmpdepfile2=$dir$base.d 390 test "x$dir" = "x$object" && dir= [all …]
|
/AliOS-Things-master/components/littlefs/src/littlefs-v220/ |
A D | lfs.c | 1394 dir->pair[0], 0, &dir->rev, sizeof(dir->rev)); in lfs_dir_alloc() 1395 dir->rev = lfs_fromle32(dir->rev); in lfs_dir_alloc() 1401 dir->rev += dir->rev & 1; in lfs_dir_alloc() 1404 dir->off = sizeof(dir->rev); in lfs_dir_alloc() 1816 dir, dir->off, dir->etag, attrs, attrcount, in lfs_dir_commit() 1878 dir, 0, dir->count); in lfs_dir_commit() 2071 dir->head[0] = dir->m.pair[0]; in lfs_dir_open() 2072 dir->head[1] = dir->m.pair[1]; in lfs_dir_open() 2120 if (dir->id == dir->m.count) { in lfs_dir_read() 4812 dir->off = sizeof(dir->d); in lfs1_dir_fetch() [all …]
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | builtin_dir.py | 4 print('__name__' in dir()) 11 print('version' in dir(sys)) 14 print('append' in dir(list)) 20 print('__init__' in dir(foo)) 21 print('x' in dir(foo)) 30 d = dir(B()) 40 d = dir(D())
|
/AliOS-Things-master/components/uvoice/audio/hal/linux/ |
A D | uvoice_pcm.c | 33 int dir = 0; in alsa_pcm_open() local 38 if (pcm->dir == PCM_OUT) in alsa_pcm_open() 40 else if (pcm->dir == PCM_IN) in alsa_pcm_open() 96 dir = 0; in alsa_pcm_open() 111 dir = 0; in alsa_pcm_open() 118 dir = 0; in alsa_pcm_open() 147 dir = 0; in alsa_pcm_open() 178 dir = 0; in alsa_pcm_open() 350 if (pcm->dir == PCM_OUT) { in uvoice_pcm_setup() 354 } else if (pcm->dir == PCM_IN) { in uvoice_pcm_setup() [all …]
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/examples/ |
A D | utils.h | 12 void get_dir_exec(char* dir, char* exec) { in get_dir_exec() argument 24 snprintf(dir, strlen(BufferFileName), "%s", BufferFileName); in get_dir_exec() 29 if (readlink("/proc/self/exe", dir, 1024) < 0) { in get_dir_exec() 30 dir[0] = '\0'; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 35 dir[0] = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/core/ |
A D | utils.h | 12 void get_dir_exec(char* dir, char* exec) { in get_dir_exec() argument 24 snprintf(dir, strlen(BufferFileName), "%s", BufferFileName); in get_dir_exec() 29 if (readlink("/proc/self/exe", dir, 1024) < 0) { in get_dir_exec() 30 dir[0] = '\0'; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 35 dir[0] = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/function_test/ |
A D | utils.h | 12 void get_dir_exec(char *dir, char *exec) { in get_dir_exec() argument 24 snprintf(dir, strlen(BufferFileName), "%s", BufferFileName); in get_dir_exec() 29 if (readlink("/proc/self/exe", dir, 1024) < 0) { in get_dir_exec() 30 dir[0] = '\0'; in get_dir_exec() 33 filename = strrchr(dir, '/'); in get_dir_exec() 35 dir[0] = '\0'; in get_dir_exec()
|
/AliOS-Things-master/components/vfs/ |
A D | vfs_aos.c | 126 int aos_closedir(aos_dir_t *dir) in aos_closedir() argument 128 return _vfs_to_aos_res(vfs_closedir((vfs_dir_t *)dir)); in aos_closedir() 131 aos_dirent_t *aos_readdir(aos_dir_t *dir) in aos_readdir() argument 133 return (aos_dirent_t *)vfs_readdir((vfs_dir_t *)dir); in aos_readdir() 146 void aos_rewinddir(aos_dir_t *dir) in aos_rewinddir() argument 148 vfs_rewinddir((vfs_dir_t *)dir); in aos_rewinddir() 151 long aos_telldir(aos_dir_t *dir) in aos_telldir() argument 153 return _vfs_to_aos_res(vfs_telldir((vfs_dir_t *)dir)); in aos_telldir() 156 void aos_seekdir(aos_dir_t *dir, long loc) in aos_seekdir() argument 158 vfs_seekdir((vfs_dir_t *)dir, loc); in aos_seekdir()
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | depcomp | 66 *) dir=;; 305 tmpdepfile1=$dir$base.u 310 tmpdepfile1=$dir$base.u 311 tmpdepfile2=$dir$base.u 312 tmpdepfile3=$dir$base.u 445 tmpdepfile1=$dir$base.d 449 tmpdepfile1=$dir$base.d 450 tmpdepfile2=$dir$base.d 500 tmpdepfile1=$dir$base.d 501 tmpdepfile2=$dir$base.d [all …]
|
A D | gcc-fat.sh | 57 dir=x86/`dirname $output` 58 if test -d $dir; then 61 mkdir -p $dir 80 dir=x64/`dirname $output` 81 if test -d $dir; then 84 mkdir -p $dir
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | depcomp | 66 *) dir=;; 305 tmpdepfile1=$dir$base.u 310 tmpdepfile1=$dir$base.u 311 tmpdepfile2=$dir$base.u 312 tmpdepfile3=$dir$base.u 445 tmpdepfile1=$dir$base.d 449 tmpdepfile1=$dir$base.d 450 tmpdepfile2=$dir$base.d 500 tmpdepfile1=$dir$base.d 501 tmpdepfile2=$dir$base.d [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/ |
A D | depcomp | 66 *) dir=;; 305 tmpdepfile1=$dir$base.u 310 tmpdepfile1=$dir$base.u 311 tmpdepfile2=$dir$base.u 312 tmpdepfile3=$dir$base.u 445 tmpdepfile1=$dir$base.d 449 tmpdepfile1=$dir$base.d 450 tmpdepfile2=$dir$base.d 500 tmpdepfile1=$dir$base.d 501 tmpdepfile2=$dir$base.d [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/config/ |
A D | depcomp | 66 *) dir=;; 305 tmpdepfile1=$dir$base.u 310 tmpdepfile1=$dir$base.u 311 tmpdepfile2=$dir$base.u 312 tmpdepfile3=$dir$base.u 445 tmpdepfile1=$dir$base.d 449 tmpdepfile1=$dir$base.d 450 tmpdepfile2=$dir$base.d 500 tmpdepfile1=$dir$base.d 501 tmpdepfile2=$dir$base.d [all …]
|
/AliOS-Things-master/components/drivers/peripheral/gpio/src/ |
A D | gpioc_csi.c | 21 if (dir == AOS_GPIO_DIR_NONE) in set_dir() 23 else if (dir == AOS_GPIO_DIR_INPUT) in set_dir() 25 else if (dir == AOS_GPIO_DIR_OUTPUT) in set_dir() 94 uint32_t dir = mode & AOS_GPIO_DIR_MASK; in restore_mode() local 96 if (dir == AOS_GPIO_DIR_INPUT) { in restore_mode() 99 (void)set_dir(gpioc_csi, pin, dir); in restore_mode() 104 (void)set_dir(gpioc_csi, pin, dir); in restore_mode() 113 uint32_t dir; in gpioc_csi_set_mode() local 118 dir = mode & AOS_GPIO_DIR_MASK; in gpioc_csi_set_mode() 120 if (dir == AOS_GPIO_DIR_INPUT) { in gpioc_csi_set_mode() [all …]
|