#include <com_err.h>
#include <gdb.h>
#include <dcm.h>
-#include <sms.h>
+#include <moira.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <update.h>
fd = open(pathname, O_RDONLY, 0);
if (fd < 0) {
com_err(whoami, errno, "unable to open %s for read", pathname);
- return(SMS_OCONFIG);
+ return(MR_OCONFIG);
}
if (fstat(fd, &statb)) {
com_err(whoami, errno, "unable to stat %s", pathname);
close(fd);
- return(SMS_OCONFIG);
+ return(MR_OCONFIG);
}
n_to_send = statb.st_size;
if (n < 0) {
com_err(whoami, errno, " reading %s for transmission", pathname);
close(fd);
- return(SMS_ABORTED);
+ return(MR_ABORTED);
}
MAX_STRING_SIZE(data) = n;
code = send_object(conn, (char *)&data, STRING_T);
}
}
close(fd);
- return(SMS_SUCCESS);
+ return(MR_SUCCESS);
}