MT_LIBS="-lpthreads"
SHLIB_SUFFIX="o"
TXLIBS="-lcurses"
- XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+ XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
XLIBS="${LIB_AFSDB} -ldl"
SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
AIX64="#"
MT_LIBS="-lpthreads"
SHLIB_SUFFIX="o"
TXLIBS="-lcurses"
- XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+ XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
XLIBS="${LIB_AFSDB} -ldl"
SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
AIX64=""
MT_LIBS="-lpthreads"
SHLIB_SUFFIX="o"
TXLIBS="-lcurses"
- XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+ XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
XLIBS="${LIB_AFSDB} -ldl"
SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
AIX64=""
MT_LIBS="-lpthreads"
SHLIB_SUFFIX="o"
TXLIBS="-lcurses"
- XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+ XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
XLIBS="${LIB_AFSDB} -ldl"
SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
AIX64=""
char data[1];
};
-void ScanArgs(int, char *[]);
-int Copy(char *, char *, short, int);
+static void ScanArgs(int argc, char *argv[]);
+static short MakeParent(char *file, afs_int32 owner);
+static int Copy(char *file1, char *file2, short recursive, int level);
+static int isMountPoint(char *name, struct ViceIoctl *blob);
+
/* ************************************************************ */
/* */
/* now read each line of the CopyList */
if (Copy(file1, file2, !oneLevel, 0))
- exit(1); /* some type of failure */
+ return(1); /* some type of failure */
- exit(0);
+ return(0);
}
#define USAGE "usage: up [-v1frxm] from to\n"
-void
+static void
ScanArgs(int argc, char *argv[])
{
/* skip program name */
* 1 if it exists, 0 otherwise. Note: the owner argument
* is a hack. All directories made will have this owner.
*/
-short
+static short
MakeParent(char *file, afs_int32 owner)
{
char parent[MAXPATHLEN];
* This does the bulk of the work of the program. Handle one file,
* possibly copying subfiles if this is a directory
*/
-int
+static int
Copy(char *file1, char *file2, short recursive, int level)
{
struct stat s1, s2; /*Stat blocks */
} /*Copy */
-int
+static int
isMountPoint(char *name, struct ViceIoctl *blob)
{
afs_int32 code;