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
#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 */
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} $? $@
${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
${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