clsync
Loading...
Searching...
No Matches
common.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <getopt.h>
#include <limits.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
#include <ctype.h>
#include <signal.h>
#include <sys/wait.h>
#include <fts.h>
#include <sys/time.h>
#include <dirent.h>
#include <sys/utsname.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <libgen.h>
#include <pthread.h>
#include "configuration.h"
#include "clsync.h"
#include "port-hacks.h"
#include "posix-hacks.h"
#include "ctx.h"
#include "program.h"
#include <sys/param.h>
#include "macros.h"
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eventinfo
 
struct  dosync_arg
 
struct  doubleentry
 
struct  pushdoubleentry_arg
 
struct  myentry
 
struct  pushentry_arg
 
struct  sighandler_arg
 

Macros

#define _GNU_SOURCE
 
#define _LARGEFILE64_SOURCE
 
#define CLSYNC_ITSELF
 
#define IN_CREATE_SELF   IN_CREATE
 

Typedefs

typedef enum paramsource_enum paramsource_t
 
typedef enum notifyengine_enum notifyengine_t
 
typedef enum threadingmode threadingmode_t
 
typedef enum splittingmode_enum splittingmode_t
 
typedef struct eventinfo eventinfo_t
 
typedef enum initsync initsync_t
 
typedef struct sighandler_arg sighandler_arg_t
 

Enumerations

enum  paramsource_enum {
  PS_UNKNOWN = 0 , PS_ARGUMENT , PS_CONFIG , PS_CONTROL ,
  PS_DEFAULTS , PS_CORRECTION
}
 
enum  notifyengine_enum {
  NE_UNDEFINED = 0 , NE_FANOTIFY , NE_INOTIFY , NE_KQUEUE ,
  NE_BSM , NE_BSM_PREFETCH , NE_DTRACEPIPE , NE_GIO
}
 
enum  threadingmode { PM_OFF = 0 , PM_SAFE , PM_FULL }
 
enum  splittingmode_enum { SM_OFF = 0 , SM_THREAD , SM_PROCESS }
 
enum  pthread_mutex_id { PTHREAD_MUTEX_STATE , PTHREAD_MUTEX_SELECT , PTHREAD_MUTEX_THREADSINFO , PTHREAD_MUTEX_MAX }
 
enum  initsync { INITSYNC_UNKNOWN = 0 , INITSYNC_FULL , INITSYNC_SUBDIR }
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 31 of file common.h.

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

Definition at line 33 of file common.h.

◆ CLSYNC_ITSELF

#define CLSYNC_ITSELF

Definition at line 71 of file common.h.

◆ IN_CREATE_SELF

#define IN_CREATE_SELF   IN_CREATE

Definition at line 87 of file common.h.

Typedef Documentation

◆ eventinfo_t

typedef struct eventinfo eventinfo_t

Definition at line 150 of file common.h.

◆ initsync_t

typedef enum initsync initsync_t

Definition at line 214 of file common.h.

◆ notifyengine_t

Definition at line 114 of file common.h.

◆ paramsource_t

Definition at line 101 of file common.h.

◆ sighandler_arg_t

Definition at line 223 of file common.h.

◆ splittingmode_t

Definition at line 128 of file common.h.

◆ threadingmode_t

Definition at line 121 of file common.h.

Enumeration Type Documentation

◆ initsync

enum initsync
Enumerator
INITSYNC_UNKNOWN 
INITSYNC_FULL 
INITSYNC_SUBDIR 

Definition at line 209 of file common.h.

◆ notifyengine_enum

Enumerator
NE_UNDEFINED 
NE_FANOTIFY 
NE_INOTIFY 
NE_KQUEUE 
NE_BSM 
NE_BSM_PREFETCH 
NE_DTRACEPIPE 
NE_GIO 

Definition at line 104 of file common.h.

◆ paramsource_enum

Enumerator
PS_UNKNOWN 
PS_ARGUMENT 
PS_CONFIG 
PS_CONTROL 
PS_DEFAULTS 
PS_CORRECTION 

Definition at line 92 of file common.h.

◆ pthread_mutex_id

Enumerator
PTHREAD_MUTEX_STATE 
PTHREAD_MUTEX_SELECT 
PTHREAD_MUTEX_THREADSINFO 
PTHREAD_MUTEX_MAX 

Definition at line 152 of file common.h.

◆ splittingmode_enum

Enumerator
SM_OFF 
SM_THREAD 
SM_PROCESS 

Definition at line 123 of file common.h.

◆ threadingmode

Enumerator
PM_OFF 
PM_SAFE 
PM_FULL 

Definition at line 116 of file common.h.