Searched refs:fst (Results 1 - 2 of 2) sorted by relevance
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | media_file_utils.cpp | 570 struct stat fst{}; in CopyFileUtil() struct 601 if (fstat(source, &fst) == E_SUCCESS) { in CopyFileUtil() 603 if (sendfile(dest, source, nullptr, fst.st_size) != E_ERR) { in CopyFileUtil() 605 if (fchown(dest, fst.st_uid, fst.st_gid) == E_SUCCESS && in CopyFileUtil() 606 fchmod(dest, fst.st_mode) == E_SUCCESS) { in CopyFileUtil() 746 struct stat fst = {0}; in CopyFile() local 747 if (fstat(rfd, &fst) != 0) { in CopyFile() 751 off_t fileSize = fst.st_size; in CopyFile() 766 if (sendfile(wfd, rfd, nullptr, fst in CopyFile() [all...] |
/foundation/multimedia/ringtone_library/services/utils/src/ |
H A D | ringtone_file_utils.cpp | 417 struct stat fst{}; in CopyFileUtil() struct 448 if (fstat(source, &fst) == 0) { in CopyFileUtil() 450 if (sendfile(dest, source, nullptr, fst.st_size) != E_ERR) { in CopyFileUtil() 452 if (fchown(dest, fst.st_uid, fst.st_gid) == 0 && in CopyFileUtil() 453 fchmod(dest, fst.st_mode) == 0) { in CopyFileUtil()
|
Completed in 3 milliseconds