src/commands/simple/synctree.c File Reference

#include <sys/types.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/stat.h>
#include <utime.h>
#include <string.h>
#include <signal.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/wait.h>

Go to the source code of this file.

Classes

struct  mode
struct  entry

Defines

#define nil   0
#define LITTLE_ENDIAN   0
#define USE_SHADOWING   0
#define PATH_MAX   1024
#define S_ISLNK(mode)   (0)
#define lstat   stat
#define symlink(path1, path2)   (errno= ENOSYS, -1)
#define readlink(path, buf, len)   (errno= ENOSYS, -1)
#define NUMBYTES   4
#define CHUNK   4096
#define BUCKSIZE   (1+NUMBYTES+CHUNK)
#define DPRINTF(format, arg)
#define transparent   0
#define isvisible(name)   ((void) 0)
#define arraysize(a)   (sizeof(a) / sizeof((a)[0]))
#define arraylimit(a)   ((a) + arraysize(a))
#define cancellink()   ((void) islink())
#define wwrite(buf, n)   (memcpy(buckp, (buf), (n)), buckp+= (n), buckn+= (n))
#define P_EXIT   1
#define P_SHADOW   2

Enumerations

enum  orders {
  ENTER = 128, ADVANCE, CAT, MORE,
  CANCEL, DIE, DIE_BAD, POSITIVE,
  NEGATIVE, PASS_YES, PASS_NO
}
enum  answers {
  PATH = 128, LINK, DATA, NODATA,
  DONE, SYMLINK, YES, NO
}
enum  action {
  COPY, MOVE, REMOVE, LINK,
  PASSWD, CHFN, CHSH, COMPARE
}

Functions

 if (if S done)
 return (c=strcmp(Sp, p))
void splitcolon (char *path, char **amach, char **adir)
 main (int argc, char **argv)

Variables

char * Sp
char * p
if Sp return ADD
if p return DELETE


Define Documentation

#define arraylimit ( a   )     ((a) + arraysize(a))

Definition at line 299 of file synctree.c.

#define arraysize ( a   )     (sizeof(a) / sizeof((a)[0]))

Definition at line 298 of file synctree.c.

#define BUCKSIZE   (1+NUMBYTES+CHUNK)

Definition at line 81 of file synctree.c.

 
#define cancellink (  )     ((void) islink())

Definition at line 409 of file synctree.c.

#define CHUNK   4096

Definition at line 64 of file synctree.c.

#define DPRINTF ( format,
arg   ) 

Definition at line 124 of file synctree.c.

#define isvisible ( name   )     ((void) 0)

Definition at line 170 of file synctree.c.

#define LITTLE_ENDIAN   0

Definition at line 47 of file synctree.c.

#define lstat   stat

Definition at line 58 of file synctree.c.

#define nil   0

Definition at line 23 of file synctree.c.

#define NUMBYTES   4

Definition at line 63 of file synctree.c.

#define P_EXIT   1

Definition at line 1284 of file synctree.c.

#define P_SHADOW   2

Definition at line 1285 of file synctree.c.

#define PATH_MAX   1024

Definition at line 52 of file synctree.c.

#define readlink ( path,
buf,
len   )     (errno= ENOSYS, -1)

Definition at line 60 of file synctree.c.

#define S_ISLNK ( mode   )     (0)

Definition at line 57 of file synctree.c.

#define symlink ( path1,
path2   )     (errno= ENOSYS, -1)

Definition at line 59 of file synctree.c.

#define transparent   0

Definition at line 169 of file synctree.c.

#define USE_SHADOWING   0

Definition at line 48 of file synctree.c.

#define wwrite ( buf,
n   )     (memcpy(buckp, (buf), (n)), buckp+= (n), buckn+= (n))

Definition at line 589 of file synctree.c.


Enumeration Type Documentation

enum action

Enumerator:
COPY 
MOVE 
REMOVE 
LINK 
PASSWD 
CHFN 
CHSH 
COMPARE 

Definition at line 1171 of file synctree.c.

enum answers

Enumerator:
PATH 
LINK 
DATA 
NODATA 
DONE 
SYMLINK 
YES 
NO 

Definition at line 107 of file synctree.c.

enum orders

Enumerator:
ENTER 
ADVANCE 
CAT 
MORE 
CANCEL 
DIE 
DIE_BAD 
POSITIVE 
NEGATIVE 
PASS_YES 
PASS_NO 

Definition at line 86 of file synctree.c.


Function Documentation

if ( if S  done  ) 

Definition at line 1179 of file synctree.c.

main ( int argc  ,
char **  argv 
)

Definition at line 1367 of file synctree.c.

return ( c  = strcmp(Spp)  ) 

void splitcolon ( char *  path,
char **  amach,
char **  adir 
)

Definition at line 1339 of file synctree.c.


Variable Documentation

@ ADD

Definition at line 1186 of file synctree.c.

@ DELETE

Definition at line 1187 of file synctree.c.

char * p

Definition at line 1177 of file synctree.c.

char* Sp

Definition at line 1177 of file synctree.c.


Generated on Tue Mar 9 04:36:43 2010 for Minix by  doxygen 1.5.8