cleanup includes
This commit is contained in:
parent
e602167474
commit
a3bd6e5541
|
|
@ -29,20 +29,14 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/pkcs5.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pcache.h"
|
||||
#include "plibs.h"
|
||||
#include "plist.h"
|
||||
#include "psynclib.h"
|
||||
#include "psys.h"
|
||||
#include "ptimer.h"
|
||||
#include <string.h>
|
||||
|
||||
// required by psync_cache_get
|
||||
extern PSYNC_THREAD const char *psync_thread_name;
|
||||
|
|
|
|||
|
|
@ -29,22 +29,15 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/pkcs5.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "pcompiler.h"
|
||||
|
||||
#include "pssl.h"
|
||||
|
||||
#include "pcrypto.h"
|
||||
#include "plibs.h"
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pcompiler.h"
|
||||
#include "pcrypto.h"
|
||||
#include "pdbg.h"
|
||||
#include "pssl.h"
|
||||
|
||||
typedef struct {
|
||||
psync_sha512_ctx sha1ctx;
|
||||
unsigned char final[PSYNC_SHA512_BLOCK_LEN + PSYNC_SHA512_DIGEST_LEN];
|
||||
|
|
|
|||
|
|
@ -29,15 +29,8 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/pk.h>
|
||||
#include <mbedtls/pkcs5.h>
|
||||
#include <mbedtls/sha1.h>
|
||||
#include <mbedtls/sha256.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "pcache.h"
|
||||
|
|
@ -55,7 +48,6 @@
|
|||
#include "ptask.h"
|
||||
#include "psql.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define PSYNC_CRYPTO_API_ERR_INTERNAL -511
|
||||
|
||||
|
|
|
|||
|
|
@ -29,10 +29,13 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "pdeflate.h"
|
||||
#include "plibs.h"
|
||||
#include "pdbg.h"
|
||||
|
||||
#define BUFFER_SIZE (4 * 1024)
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,13 @@
|
|||
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "pdevice.h"
|
||||
#include "plibs.h"
|
||||
#include "psettings.h"
|
||||
#include "psynclib.h"
|
||||
#include "putil.h"
|
||||
|
||||
|
||||
static const char *psync_os_name = NULL;
|
||||
static const char *psync_software_name = PSYNC_LIB_VERSION;
|
||||
|
|
|
|||
|
|
@ -34,13 +34,11 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "plibs.h"
|
||||
#include "psynclib.h"
|
||||
#include "prun.h"
|
||||
|
||||
|
||||
#include "pdevmon.h"
|
||||
#include "plibs.h"
|
||||
#include "plocalscan.h"
|
||||
#include "prun.h"
|
||||
#include "psynclib.h"
|
||||
#include "ptimer.h"
|
||||
|
||||
#define DEV_MONITOR_ACTIVITY_TIMER_INT 20
|
||||
|
|
|
|||
|
|
@ -31,12 +31,6 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/pkcs5.h>
|
||||
#include <mbedtls/sha1.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <ifaddrs.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <pthread.h>
|
||||
#include <pwd.h>
|
||||
#include <stddef.h>
|
||||
|
|
@ -44,6 +42,8 @@
|
|||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
@ -53,11 +53,10 @@
|
|||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
#include "pfile.h"
|
||||
#include "plibs.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psynclib.h"
|
||||
#include "psys.h"
|
||||
|
||||
extern char **environ;
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "pcryptofolder.h"
|
||||
|
|
@ -45,9 +47,6 @@
|
|||
#include "pfile.h"
|
||||
#include "psql.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#define INITIAL_NAME_BUFF 2000
|
||||
#define INITIAL_ENTRY_CNT 128
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
#include "pcryptofolder.h"
|
||||
#include "pfile.h"
|
||||
#include "pfoldersync.h"
|
||||
|
||||
#include "pfs.h"
|
||||
#include "pfscrypto.h"
|
||||
#include "pfsfolder.h"
|
||||
|
|
@ -51,18 +50,17 @@
|
|||
#include "pfstasks.h"
|
||||
#include "pfsupload.h"
|
||||
#include "pfsxattr.h"
|
||||
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "ppagecache.h"
|
||||
#include "ppath.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pssl.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ppath.h"
|
||||
#include "ptimer.h"
|
||||
#include "psql.h"
|
||||
|
||||
|
||||
#ifndef FUSE_STAT
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "pfsstatic.h"
|
||||
#include "pfstasks.h"
|
||||
#include "plibs.h"
|
||||
|
||||
static const char *rootdir = "[Desktop Entry]\nIcon=./.pcloudicon.png\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#include "pcache.h"
|
||||
#include "pcryptofolder.h"
|
||||
#include "putil.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "pfs.h"
|
||||
#include "pfstasks.h"
|
||||
|
|
@ -45,8 +44,9 @@
|
|||
#include "plibs.h"
|
||||
#include "ppathstatus.h"
|
||||
#include "psettings.h"
|
||||
#include "ptimer.h"
|
||||
#include "psql.h"
|
||||
#include "ptimer.h"
|
||||
#include "putil.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -46,16 +46,15 @@
|
|||
#include "plist.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "ppagecache.h"
|
||||
#include "pqevent.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psys.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptimer.h"
|
||||
#include "pupload.h"
|
||||
#include "putil.h"
|
||||
#include "psql.h"
|
||||
|
||||
#include "pqevent.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include "pintervaltree.h"
|
||||
#include "plibs.h"
|
||||
#include "pdbg.h"
|
||||
|
||||
static psync_interval_tree_t *psync_interval_tree_new(uint64_t from,
|
||||
uint64_t to) {
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include "plist.h"
|
||||
#include "pdbg.h"
|
||||
#include "pfile.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "plist.h"
|
||||
#include "pdbg.h"
|
||||
|
||||
/* Fairly simple in-place merge sort with constant storage requirements.
|
||||
*
|
||||
* Recursive approach might would use O(log N) storage on the stack but may
|
||||
|
|
|
|||
|
|
@ -33,18 +33,19 @@
|
|||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/inotify.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "plocalnotify.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "plibs.h"
|
||||
#include "prun.h"
|
||||
#include "plist.h"
|
||||
#include "plocalnotify.h"
|
||||
#include "plocalscan.h"
|
||||
#include "prun.h"
|
||||
#include "psql.h"
|
||||
|
||||
#define NOTIFY_MSG_ADD 0
|
||||
|
|
|
|||
|
|
@ -29,30 +29,30 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include <ctype.h>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pdevice.h"
|
||||
#include "pfile.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "plibs.h"
|
||||
#include "prun.h"
|
||||
#include "plist.h"
|
||||
#include "plocalnotify.h"
|
||||
#include "plocalscan.h"
|
||||
#include "ppath.h"
|
||||
#include "ppathstatus.h"
|
||||
#include "prun.h"
|
||||
#include "prunthrottled.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pssl.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptask.h"
|
||||
#include "ptimer.h"
|
||||
#include "pupload.h"
|
||||
#include "ppath.h"
|
||||
#include "putil.h"
|
||||
#include "psql.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#include <sys/mman.h>
|
||||
|
||||
#include "pcompiler.h"
|
||||
#include "psql.h"
|
||||
#include "pdbg.h"
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
void *pmem_mmap(size_t size) {
|
||||
#if defined(MAP_ANONYMOUS)
|
||||
return mmap(NULL, size, PROT_READ | PROT_WRITE,
|
||||
|
|
|
|||
|
|
@ -39,18 +39,18 @@
|
|||
#include "papi.h"
|
||||
#include "pcache.h"
|
||||
#include "pdevice.h"
|
||||
#include "pfile.h"
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "ppath.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pssl.h"
|
||||
#include "pstatus.h"
|
||||
#include "ptimer.h"
|
||||
#include "ppath.h"
|
||||
#include "psys.h"
|
||||
#include "ptimer.h"
|
||||
#include "ptree.h"
|
||||
#include "psql.h"
|
||||
#include "pfile.h"
|
||||
|
||||
// required by psync_send_debug
|
||||
extern PSYNC_THREAD const char *psync_thread_name;
|
||||
|
|
|
|||
|
|
@ -29,14 +29,14 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include "pnotify.h"
|
||||
#include "pfile.h"
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "psettings.h"
|
||||
#include "ptree.h"
|
||||
#include "pnotify.h"
|
||||
#include "ppath.h"
|
||||
#include "prun.h"
|
||||
#include "pfile.h"
|
||||
#include "psettings.h"
|
||||
#include "ptree.h"
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -34,21 +34,21 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "pfile.h"
|
||||
#include "pcrypto.h"
|
||||
#include "pdownload.h"
|
||||
#include "pfile.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "pp2p.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pssl.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptimer.h"
|
||||
#include "putil.h"
|
||||
#include "psql.h"
|
||||
|
||||
#define P2P_ENCTYPE_RSA_AES 0
|
||||
|
||||
|
|
|
|||
|
|
@ -29,28 +29,28 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pcache.h"
|
||||
#include "pcrc32c.h"
|
||||
#include "pfile.h"
|
||||
#include "pfscrypto.h"
|
||||
#include "pfsupload.h"
|
||||
#include "plibs.h"
|
||||
#include "pmem.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "ppagecache.h"
|
||||
#include "ppath.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "ppath.h"
|
||||
#include "psys.h"
|
||||
#include "putil.h"
|
||||
#include "pfile.h"
|
||||
#include "pstatus.h"
|
||||
#include "ptimer.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptimer.h"
|
||||
#include "putil.h"
|
||||
|
||||
#define CACHE_PAGES (PSYNC_FS_MEMORY_CACHE / PSYNC_FS_PAGE_SIZE)
|
||||
#define CACHE_HASH (CACHE_PAGES / 2)
|
||||
|
|
|
|||
|
|
@ -28,21 +28,15 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <mbedtls/ctr_drbg.h>
|
||||
#include <mbedtls/debug.h>
|
||||
#include <mbedtls/entropy.h>
|
||||
#include <mbedtls/pkcs5.h>
|
||||
#include <mbedtls/ssl.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "plibs.h"
|
||||
#include "ppassword.h"
|
||||
#include "ppassworddict.h"
|
||||
#include "pssl.h"
|
||||
#include "putil.h"
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ppassword.h"
|
||||
#include "pdbg.h"
|
||||
#include "ppassworddict.h"
|
||||
#include "putil.h"
|
||||
|
||||
static int find_in_dict(const unsigned char *pwd, size_t len) {
|
||||
size_t hi, lo, med, l;
|
||||
int c;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <dirent.h>
|
||||
#include <pwd.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
#include "pcompiler.h"
|
||||
|
|
|
|||
|
|
@ -34,14 +34,14 @@
|
|||
|
||||
#include "pcryptofolder.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "pfstasks.h"
|
||||
#include "plibs.h"
|
||||
#include "plist.h"
|
||||
#include "ppathstatus.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "ptask.h"
|
||||
#include "ptree.h"
|
||||
#include "psql.h"
|
||||
#include "pfstasks.h"
|
||||
|
||||
#define PATH_CACHE_SIZE 512
|
||||
#define PATH_HASH_SIZE 512
|
||||
|
|
|
|||
|
|
@ -27,13 +27,14 @@
|
|||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "pqevent.h"
|
||||
#include <string.h>
|
||||
|
||||
#include "pfoldersync.h"
|
||||
#include "plibs.h"
|
||||
#include "plist.h"
|
||||
#include "pqevent.h"
|
||||
#include "prun.h"
|
||||
#include "psys.h"
|
||||
#include <string.h>
|
||||
|
||||
#define MAX_STATUS_STR_LEN 64
|
||||
#define DONT_SHOW_TIME_IF_SEC_OVER (2 * 86400)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
#include <sys/sysinfo.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "plibs.h"
|
||||
#include "ppath.h"
|
||||
|
|
|
|||
|
|
@ -39,17 +39,17 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/un.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "prpc.h"
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
#include "ppath.h"
|
||||
#include "ppathstatus.h"
|
||||
|
||||
#include "plibs.h"
|
||||
#include "prpc.h"
|
||||
#include "prun.h"
|
||||
|
||||
#define POVERLAY_BUFSIZE 512
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
#include <pthread.h>
|
||||
|
||||
#include "plibs.h"
|
||||
#include "psettings.h"
|
||||
#include "psynclib.h"
|
||||
#include "prun.h"
|
||||
|
||||
// required by thread_entry
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include <ctype.h>
|
||||
#include <pthread.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pfs.h"
|
||||
|
|
@ -38,10 +38,10 @@
|
|||
#include "plocalscan.h"
|
||||
#include "pp2p.h"
|
||||
#include "ppagecache.h"
|
||||
#include "psettings.h"
|
||||
#include "ppath.h"
|
||||
#include "ptimer.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "ptimer.h"
|
||||
|
||||
typedef void (*setting_callback)();
|
||||
typedef void (*filter_callback)(void *);
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
#include "pshm.h"
|
||||
#include "ppath.h"
|
||||
#include "plibs.h"
|
||||
|
||||
static key_t get_key() {
|
||||
char path[PATH_MAX];
|
||||
|
|
|
|||
|
|
@ -31,16 +31,17 @@
|
|||
#include <errno.h>
|
||||
#include <ifaddrs.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#include "plibs.h"
|
||||
#include "psettings.h"
|
||||
#include "psock.h"
|
||||
#include "ptimer.h"
|
||||
#include "psql.h"
|
||||
#include "ptask.h"
|
||||
#include "ptimer.h"
|
||||
|
||||
#define PROXY_NONE 0
|
||||
#define PROXY_CONNECT 1
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
#include <sqlite3.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "pcache.h"
|
||||
#include "pdatabase.h"
|
||||
#include "pdbg.h"
|
||||
#include "plocks.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pcache.h"
|
||||
#include "psys.h"
|
||||
#include "pnetlibs.h"
|
||||
#include <sqlite3.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define SQL_NO_LOCK 0
|
||||
#define SQL_READ_LOCK 1
|
||||
|
|
|
|||
|
|
@ -28,18 +28,19 @@
|
|||
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pfile.h"
|
||||
#include "pstatus.h"
|
||||
#include "pfstasks.h"
|
||||
#include "plibs.h"
|
||||
#include "prunthrottled.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "ptask.h"
|
||||
#include "putil.h"
|
||||
#include "psql.h"
|
||||
|
||||
static uint32_t statuses[PSTATUS_NUM_STATUSES] = {
|
||||
PSTATUS_INVALID, PSTATUS_ONLINE_OFFLINE,
|
||||
|
|
|
|||
|
|
@ -29,15 +29,16 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include "psuggest.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pfile.h"
|
||||
#include "plibs.h"
|
||||
#include "plist.h"
|
||||
#include "pscanexts.h"
|
||||
#include "ppath.h"
|
||||
#include "pscanexts.h"
|
||||
#include "psettings.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "psuggest.h"
|
||||
|
||||
typedef struct {
|
||||
psync_list nextfolder;
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
#include "pdownload.h"
|
||||
#include "pfile.h"
|
||||
#include "pfoldersync.h"
|
||||
|
|
@ -41,13 +42,11 @@
|
|||
#include "plocalscan.h"
|
||||
#include "ppathstatus.h"
|
||||
#include "prun.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "ptask.h"
|
||||
#include "ptree.h"
|
||||
#include "putil.h"
|
||||
#include "pdbg.h"
|
||||
#include "psql.h"
|
||||
|
||||
|
||||
extern const unsigned char pfile_invalid_chars[];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/resource.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "pdeflate.h"
|
||||
|
|
@ -43,13 +42,13 @@
|
|||
#include "ppathstatus.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psql.h"
|
||||
#include "pssl.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptask.h"
|
||||
#include "ptree.h"
|
||||
#include "pupload.h"
|
||||
#include "psql.h"
|
||||
|
||||
#define get_len(t) (sizeof(t) - offsetof(t, request))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "ptevent.h"
|
||||
#include "plibs.h"
|
||||
#include "pdbg.h"
|
||||
#include "prun.h"
|
||||
#include "ptevent.h"
|
||||
|
||||
data_event_callback data_event_fptr = NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,12 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include "ptimer.h"
|
||||
#include "pcache.h"
|
||||
#include "pcompiler.h"
|
||||
#include "prun.h"
|
||||
#include "plibs.h"
|
||||
#include "prun.h"
|
||||
#include "psys.h"
|
||||
#include "psynclib.h"
|
||||
#include "ptimer.h"
|
||||
|
||||
/* Maximum timeout possible is TIMER_ARRAY_SIZE^TIMER_LEVELS seconds, in the
|
||||
* worst case TIMER_LEVELS operations will be preformed for each timer to
|
||||
|
|
|
|||
|
|
@ -33,20 +33,22 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <net/if.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "psettings.h"
|
||||
#include "ptools.h"
|
||||
#include "psql.h"
|
||||
#include "ptools.h"
|
||||
|
||||
char *ptools_get_mac_addr() {
|
||||
char buffer[128];
|
||||
|
|
|
|||
|
|
@ -29,11 +29,12 @@
|
|||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include "ptree.h"
|
||||
#include "pdbg.h"
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
#include "ptree.h"
|
||||
|
||||
static inline long int ptree_max(long int a, long int b) {
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,17 +26,18 @@
|
|||
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "publiclinks.h"
|
||||
#include "papi.h"
|
||||
#include "pfsfolder.h"
|
||||
#include "plibs.h"
|
||||
#include "pnetlibs.h"
|
||||
#include "prun.h"
|
||||
#include "ptimer.h"
|
||||
#include "psql.h"
|
||||
#include "ptimer.h"
|
||||
#include "publiclinks.h"
|
||||
|
||||
#define FOLDERID_ENTRY_SIZE 18
|
||||
|
||||
|
|
|
|||
|
|
@ -33,10 +33,9 @@
|
|||
#include <stddef.h>
|
||||
|
||||
#include "papi.h"
|
||||
#include "ptevent.h"
|
||||
#include "pfile.h"
|
||||
#include "pcompiler.h"
|
||||
#include "pdiff.h"
|
||||
#include "pfile.h"
|
||||
#include "pfileops.h"
|
||||
#include "pfoldersync.h"
|
||||
#include "plibs.h"
|
||||
|
|
@ -45,14 +44,15 @@
|
|||
#include "ppathstatus.h"
|
||||
#include "prun.h"
|
||||
#include "psettings.h"
|
||||
#include "psys.h"
|
||||
#include "psql.h"
|
||||
#include "pstatus.h"
|
||||
#include "psys.h"
|
||||
#include "ptask.h"
|
||||
#include "ptevent.h"
|
||||
#include "ptimer.h"
|
||||
#include "ptools.h"
|
||||
#include "pupload.h"
|
||||
#include "putil.h"
|
||||
#include "psql.h"
|
||||
|
||||
extern const unsigned char pfile_invalid_chars[];
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/random.h>
|
||||
|
||||
#include "pdbg.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue