09e73a00cb
Now we do the actual conversion of a list of struct posix_files into an array of FILEDESCRIPTORs. In order to correctly fill in the fields we need to know the size of the file and whether it is a directory. This can be looked up by stat() call. Do this during struct posix_file construction and cache the values for later use (we will need them). Define _FILE_OFFSET_BITS to make off_t a 64-bit value and to call appropriate functions when we write stat() in the code. FILEDESCRIPTOR and cliprdr protocol expect the file sizes to be 64-bit so we can provide accurate information with that. Take care to define it before including any system headers ("config.h" contains only defines). Also take care to not overrun the file name buffer. Windows has a hard cap of 260 Unicode characters for the full file name, including the terminating null character. |
||
---|---|---|
.. | ||
test | ||
clipboard.c | ||
clipboard.h | ||
CMakeLists.txt | ||
ModuleOptions.cmake | ||
posix.c | ||
posix.h | ||
synthetic.c |