FreeRDP/winpr/libwinpr/clipboard
ilammy 09e73a00cb wClipboard/posix: conversion to FILEDESCRIPTORs
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.
2017-04-09 03:15:48 +03:00
..
test Fixed tests and dead store warnings. 2017-03-28 16:49:56 +02:00
clipboard.c wClipboard/posix: basic file list handling 2017-04-09 03:15:48 +03:00
clipboard.h wClipboard/posix: basic file list handling 2017-04-09 03:15:48 +03:00
CMakeLists.txt wClipboard: local file subsystem boilerplate 2017-04-09 03:15:48 +03:00
ModuleOptions.cmake libwinpr-clipboard: initial commit 2014-10-17 15:19:05 -04:00
posix.c wClipboard/posix: conversion to FILEDESCRIPTORs 2017-04-09 03:15:48 +03:00
posix.h wClipboard: local file subsystem boilerplate 2017-04-09 03:15:48 +03:00
synthetic.c ctest for int format specifiers and usage doc 2016-12-16 14:20:30 +01:00