Home
last modified time | relevance | path

Searched refs:fileinfo (Results 1 – 25 of 26) sorted by relevance

12

/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dserver.c35 FileInfo fileinfo = {}; in listdir_callback() local
39 fileinfo.inode = file->d_ino; in listdir_callback()
40 strncpy(fileinfo.name, file->d_name, sizeof(fileinfo.name)); in listdir_callback()
41 fileinfo.name[sizeof(fileinfo.name) - 1] = '\0'; in listdir_callback()
49 if (!pb_encode_submessage(stream, FileInfo_fields, &fileinfo)) in listdir_callback()
Dclient.c32 FileInfo fileinfo = {}; in printfile_callback() local
34 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) in printfile_callback()
37 printf("%-10lld %s\n", (long long)fileinfo.inode, fileinfo.name); in printfile_callback()
/external/nanopb-c/examples/network_server/
Dserver.c35 FileInfo fileinfo = {}; in listdir_callback() local
39 fileinfo.inode = file->d_ino; in listdir_callback()
40 strncpy(fileinfo.name, file->d_name, sizeof(fileinfo.name)); in listdir_callback()
41 fileinfo.name[sizeof(fileinfo.name) - 1] = '\0'; in listdir_callback()
49 if (!pb_encode_submessage(stream, FileInfo_fields, &fileinfo)) in listdir_callback()
Dclient.c32 FileInfo fileinfo = {}; in printfile_callback() local
34 if (!pb_decode(stream, FileInfo_fields, &fileinfo)) in printfile_callback()
37 printf("%-10lld %s\n", (long long)fileinfo.inode, fileinfo.name); in printfile_callback()
/external/e2fsprogs/util/
Dcopy_sparse.c92 struct stat64 fileinfo; in copy_sparse_file() local
102 if (stat64(src, &fileinfo) < 0) { in copy_sparse_file()
106 if (!S_ISREG(fileinfo.st_mode)) { in copy_sparse_file()
126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file()
129 (long long) fileinfo.st_size, numblocks); in copy_sparse_file()
189 offset = fileinfo.st_size; in copy_sparse_file()
190 if (fstat64(ofd, &fileinfo) < 0) { in copy_sparse_file()
194 if (fileinfo.st_size != offset) { in copy_sparse_file()
/external/libcups/cups/
Ddir.c182 dp->entry.fileinfo.st_mode = 0755 | S_IFDIR; in cupsDirRead()
184 dp->entry.fileinfo.st_mode = 0644; in cupsDirRead()
186 dp->entry.fileinfo.st_atime = _cups_dir_time(entry.ftLastAccessTime); in cupsDirRead()
187 dp->entry.fileinfo.st_ctime = _cups_dir_time(entry.ftCreationTime); in cupsDirRead()
188 dp->entry.fileinfo.st_mtime = _cups_dir_time(entry.ftLastWriteTime); in cupsDirRead()
189 …dp->entry.fileinfo.st_size = entry.nFileSizeLow + ((unsigned long long)entry.nFileSizeHigh << 32); in cupsDirRead()
385 if (stat(filename, &(dp->entry.fileinfo))) in cupsDirRead()
Dfile.c90 struct stat fileinfo; /* File information */ in _cupsFileCheck() local
115 if (stat(filename, &fileinfo)) in _cupsFileCheck()
134 if (!S_ISDIR(fileinfo.st_mode)) in _cupsFileCheck()
139 if (!S_ISREG(fileinfo.st_mode)) in _cupsFileCheck()
169 if (fileinfo.st_uid || /* 1. Must be owned by root */ in _cupsFileCheck()
170 (fileinfo.st_mode & S_IWGRP) || /* 2. Must not be writable by group */ in _cupsFileCheck()
171 (fileinfo.st_mode & S_ISUID) || /* 3. Must not be setuid */ in _cupsFileCheck()
172 (fileinfo.st_mode & S_IWOTH)) /* 4. Must not be writable by others */ in _cupsFileCheck()
195 if (stat(temp, &fileinfo)) in _cupsFileCheck()
208 if (fileinfo.st_uid || /* 1. Must be owned by root */ in _cupsFileCheck()
[all …]
Drequest.c110 struct stat fileinfo; /* File information */ in cupsDoIORequest() local
147 if (fstat(infile, &fileinfo)) in cupsDoIORequest()
160 if (fileinfo.st_mode & _S_IFDIR) in cupsDoIORequest()
162 if (S_ISDIR(fileinfo.st_mode)) in cupsDoIORequest()
176 if (!S_ISREG(fileinfo.st_mode)) in cupsDoIORequest()
180 length = ippLength(request) + (size_t)fileinfo.st_size; in cupsDoIORequest()
219 if (S_ISREG(fileinfo.st_mode)) in cupsDoIORequest()
Dtestppd.c917 struct stat fileinfo; /* File information */ in main() local
957 if (lstat(filename, &fileinfo)) in main()
963 if (S_ISLNK(fileinfo.st_mode)) in main()
974 if (stat(realfile, &fileinfo)) in main()
979 (long)fileinfo.st_size); in main()
982 printf("%s: regular file, %ld bytes\n", filename, (long)fileinfo.st_size); in main()
Ddir.h46 struct stat fileinfo; /* File information */ member
/external/curl/lib/
Dfileinfo.h28 struct fileinfo { struct
33 struct fileinfo *Curl_fileinfo_alloc(void); argument
34 void Curl_fileinfo_cleanup(struct fileinfo *finfo);
Dfileinfo.c31 struct fileinfo *Curl_fileinfo_alloc(void) in Curl_fileinfo_alloc()
33 return calloc(1, sizeof(struct fileinfo)); in Curl_fileinfo_alloc()
36 void Curl_fileinfo_cleanup(struct fileinfo *finfo) in Curl_fileinfo_cleanup()
DMakefile.inc44 fileinfo.c ftplistparser.c wildcard.c krb5.c memdebug.c http_chunks.c \
64 wildcard.h fileinfo.h ftplistparser.h strtok.h connect.h llist.h \
Dftplistparser.c169 struct fileinfo *file_data;
272 struct fileinfo *infop) in ftp_pl_insert_finfo()
333 struct fileinfo *infop; in Curl_ftp_parselist()
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-objdump/X86/
Ddebug-info-fileinfo.test4 # To rebuild the input: clang -g debug-info-fileinfo.S -o debug-info-fileinfo.exe -nostdlib
6 # RUN: llvm-objdump -S %p/Inputs/debug-info-fileinfo.exe.elf-x86_64 | FileCheck %s
/external/libchrome/base/
Dsys_info_chromeos.cc78 File::Info fileinfo; in Parse() local
79 if (GetFileInfo(path, &fileinfo)) in Parse()
80 lsb_release_time_ = fileinfo.creation_time; in Parse()
/external/u-boot/fs/reiserfs/
Dreiserfs.c598 if (__le32_to_cpu(INFO->current_ih->ih_key.k_objectid) != INFO->fileinfo.k_objectid in reiserfs_read()
601 search_stat (INFO->fileinfo.k_dir_id, INFO->fileinfo.k_objectid); in reiserfs_read()
607 if (__le32_to_cpu(INFO->current_ih->ih_key.k_objectid) != INFO->fileinfo.k_objectid) { in reiserfs_read()
748 INFO->fileinfo.k_dir_id = dir_id; in reiserfs_dir()
749 INFO->fileinfo.k_objectid = objectid; in reiserfs_dir()
804 INFO->fileinfo.k_dir_id = dir_id; in reiserfs_dir()
805 INFO->fileinfo.k_objectid = objectid; in reiserfs_dir()
Dreiserfs_private.h425 struct fsys_reiser_fileinfo fileinfo; member
/external/curl/src/
Dtool_metalink.c733 static metalinkfile *new_metalinkfile(metalink_file_t *fileinfo) in new_metalinkfile() argument
741 f->filename = strdup(fileinfo->name); in new_metalinkfile()
748 if(fileinfo->checksums) { in new_metalinkfile()
753 for(p = fileinfo->checksums; *p; ++p) { in new_metalinkfile()
767 if(fileinfo->resources) { in new_metalinkfile()
772 for(p = fileinfo->resources; *p; ++p) { in new_metalinkfile()
Dtool_operate.c613 struct_stat fileinfo; in operate_do() local
615 if(0 == stat(outfile, &fileinfo)) in operate_do()
617 config->resume_from = fileinfo.st_size; in operate_do()
653 struct_stat fileinfo; in operate_do() local
677 if(stat(uploadfile, &fileinfo) == 0) { in operate_do()
678 fileinfo.st_size = VmsSpecialSize(uploadfile, &fileinfo); in operate_do()
679 switch(fileinfo.st_fab_rfm) { in operate_do()
693 if((infd == -1) || fstat(infd, &fileinfo)) in operate_do()
707 if(S_ISREG(fileinfo.st_mode)) in operate_do()
708 uploadfilesize = fileinfo.st_size; in operate_do()
/external/google-styleguide/cpplint/
Dcpplint.py1822 fileinfo = FileInfo(filename)
1823 file_path_from_root = fileinfo.RepositoryName()
1828 %(_root, fileinfo.RepositoryName()))
1856 full_path = fileinfo.FullName()
1981 fileinfo = FileInfo(filename)
1982 if Search(_TEST_FILE_SUFFIX, fileinfo.BaseName()):
1985 headerfile = filename[0:len(filename) - len(fileinfo.Extension())] + '.h'
1998 '%s should include its header file %s' % (fileinfo.RepositoryName(),
4450 def _ClassifyInclude(fileinfo, include, is_system): argument
4488 os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName())))
[all …]
/external/curl/packages/Symbian/group/
Dlibcurl.mmp28 curl_fnmatch.c fileinfo.c ftplistparser.c wildcard.c krb5.c \
/external/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py1128 fileinfo = FileInfo(filename)
1129 file_path_from_root = fileinfo.RepositoryName()
2957 def _ClassifyInclude(fileinfo, include, is_system): argument
2996 os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName())))
3032 fileinfo = FileInfo(filename)
3067 _ClassifyInclude(fileinfo, include, is_system))
3071 (error_message, fileinfo.BaseName()))
/external/libvpx/libvpx/tools/
Dcpplint.py1391 fileinfo = FileInfo(filename)
1392 file_path_from_root = fileinfo.RepositoryName()
3509 def _ClassifyInclude(fileinfo, include, is_system): argument
3547 os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName())))
3583 fileinfo = FileInfo(filename)
3618 _ClassifyInclude(fileinfo, include, is_system))
3622 (error_message, fileinfo.BaseName()))
/external/libaom/libaom/tools/
Dcpplint.py1391 fileinfo = FileInfo(filename)
1392 file_path_from_root = fileinfo.RepositoryName()
3509 def _ClassifyInclude(fileinfo, include, is_system): argument
3547 os.path.split(_DropCommonSuffixes(fileinfo.RepositoryName())))
3583 fileinfo = FileInfo(filename)
3618 _ClassifyInclude(fileinfo, include, is_system))
3622 (error_message, fileinfo.BaseName()))

12