bubasics-prototypes-20090316
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 16 Mar 2009 13:39:03 +0000 (13:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 16 Mar 2009 13:39:03 +0000 (13:39 +0000)
LICENSE IPL10
FIXES 124237

prototype the bubasics directory
make the volser prototypes available for bubasics to use

src/bubasics/Makefile.in
src/bubasics/bubasics.h
src/bubasics/butm.p.h
src/volser/Makefile.in

index d3a28d2..3f2e7ef 100644 (file)
@@ -59,16 +59,16 @@ butc.cs.c: butc.h
 butc.ss.c: butc.h
 
 bumon.xdr.c: bumon.xg
-       ${RXGEN} -c -o $@ ${srcdir}/bumon.xg
+       ${RXGEN} -A -c -o $@ ${srcdir}/bumon.xg
 
 bumon.ss.c: bumon.xg
-       ${RXGEN} -S -o $@ ${srcdir}/bumon.xg
+       ${RXGEN} -A -S -o $@ ${srcdir}/bumon.xg
 
 bumon.cs.c: bumon.xg
-       ${RXGEN} -C -o $@ ${srcdir}/bumon.xg
+       ${RXGEN} -A -C -o $@ ${srcdir}/bumon.xg
 
 bumon.h: bumon.xg
-       ${RXGEN} -h -o $@ ${srcdir}/bumon.xg
+       ${RXGEN} -A -h -o $@ ${srcdir}/bumon.xg
 
 bumon.xdr.c: bumon.h
 bumon.ss.c: bumon.h
index 8fbd594..d647b49 100644 (file)
@@ -162,9 +162,9 @@ typedef dlqlinkT *dlqlinkP;
        }
 
 /* function typing */
-extern dlqlinkP dlqFront();
-extern dlqlinkP dlqUnlinkb();
-extern dlqlinkP dlqUnlinkf();
+extern dlqlinkP dlqFront(dlqlinkP);
+extern dlqlinkP dlqUnlinkb(dlqlinkP);
+extern dlqlinkP dlqUnlinkf(dlqlinkP);
 
 /* -----------------------------
  * Status management
index cd44753..1c202f4 100644 (file)
@@ -24,24 +24,31 @@ struct blockMark {
 #define BUTM_HDRSIZE   ((5*sizeof(afs_int32)) + sizeof(int))   /* sizeof blockMark */
 #define        BUTM_BLKSIZE   (BUTM_BLOCKSIZE - BUTM_HDRSIZE)
 
+struct butm_tapeLabel;
+
 struct butm_tapeInfo {
     afs_int32 structVersion;
     struct {
-       afs_int32(*mount) ();
-       afs_int32(*dismount) ();
-       afs_int32(*create) ();
-       afs_int32(*readLabel) ();
-       afs_int32(*seek) ();
-       afs_int32(*seekEODump) ();
-       afs_int32(*readFileBegin) ();
-       afs_int32(*readFileData) ();
-       afs_int32(*readFileEnd) ();
-       afs_int32(*writeFileBegin) ();
-       afs_int32(*writeFileData) ();
-       afs_int32(*writeFileEnd) ();
-       afs_int32(*writeEOT) ();
-       afs_int32(*setSize) ();
-       afs_int32(*getSize) ();
+       afs_int32(*mount) (struct butm_tapeInfo *, char *);
+       afs_int32(*dismount) (struct butm_tapeInfo *);
+       afs_int32(*create) (struct butm_tapeInfo *, struct butm_tapeLabel *,
+                           afs_int32);
+       afs_int32(*readLabel) (struct butm_tapeInfo *, 
+                              struct butm_tapeLabel *,
+                              afs_int32);
+       afs_int32(*seek) (struct butm_tapeInfo *, afs_int32);
+       afs_int32(*seekEODump) (struct butm_tapeInfo *, afs_int32);
+       afs_int32(*readFileBegin) (struct butm_tapeInfo *);
+       afs_int32(*readFileData) (struct butm_tapeInfo *, char *, int len, 
+                                 int *);
+       afs_int32(*readFileEnd) (struct butm_tapeInfo *);
+       afs_int32(*writeFileBegin) (struct butm_tapeInfo *);
+       afs_int32(*writeFileData) (struct butm_tapeInfo *, char *, afs_int32,
+                                  afs_int32);
+       afs_int32(*writeFileEnd) (struct butm_tapeInfo *);
+       afs_int32(*writeEOT) (struct butm_tapeInfo *);
+       afs_int32(*setSize) (struct butm_tapeInfo *, afs_uint32);
+       afs_int32(*getSize) (struct butm_tapeInfo *, afs_uint32);
     } ops;
     char name[BU_MAXTAPELEN];
     afs_int32 position;                /* current position of tape */
index ef6c5ba..ea5ed7e 100644 (file)
@@ -60,9 +60,13 @@ SOBJS=volmain.o volprocs.o physio.o common.o voltrans.o volerr.o \
 
 all: volserver vos restorevol voldump \
        ${TOP_INCDIR}/afs/volser.h \
+       ${TOP_INCDIR}/afs/vsutils_prototypes.h \
        ${TOP_INCDIR}/afs/volint.h \
        ${TOP_LIBDIR}/libvolser.a
 
+${TOP_INCDIR}/afs/vsutils_prototypes.h: vsutils_prototypes.h
+       ${INSTALL_DATA} $? $@
+
 ${TOP_INCDIR}/afs/volser.h: volser.h
        ${INSTALL_DATA} $? $@
 
@@ -141,6 +145,7 @@ install: restorevol voldump volser.h volint.h vos volserver libvolser.a
        ${INSTALL_PROGRAM} voldump ${DESTDIR}${sbindir}/voldump
        ${INSTALL_DATA} volser.h ${DESTDIR}${includedir}/afs/volser.h
        ${INSTALL_DATA} volint.h ${DESTDIR}${includedir}/afs/volint.h
+       ${INSTALL_DATA} vsutils_prototypes.h ${DESTDIR}${includedir}/afs/vsutils_prototypes.h
        ${INSTALL_PROGRAM} vos ${DESTDIR}${sbindir}/vos
        ${INSTALL_PROGRAM} vos ${DESTDIR}${afssrvsbindir}/vos
        ${INSTALL_DATA} libvolser.a ${DESTDIR}${libdir}/afs/libvolser.a
@@ -170,6 +175,7 @@ dest: restorevol voldump volser.h volint.h vos volserver libvolser.a
        ${INSTALL_PROGRAM} voldump ${DEST}/etc/voldump
        ${INSTALL_DATA} volser.h ${DEST}/include/afs/volser.h
        ${INSTALL_DATA} volint.h ${DEST}/include/afs/volint.h
+       ${INSTALL_DATA} vsutils_prototypes.h ${DEST}/include/afs/vsutils_prototypes.h
        ${INSTALL_PROGRAM} vos ${DEST}/etc/vos
        ${INSTALL_PROGRAM} vos ${DEST}/root.server/usr/afs/bin/vos
        ${INSTALL_DATA} libvolser.a ${DEST}/lib/afs/libvolser.a