#include <afsconfig.h>
#include <afs/param.h>
+#include <afs/stds.h>
+#include <roken.h>
-#include <stdio.h>
-#include <afs/stds.h>
#include <rx/rx.h>
#include <rx/rxstat.h>
-#include "afs_bosAdmin.h"
-#include "../adminutil/afs_AdminInternal.h"
#include <afs/afs_AdminErrors.h>
#include <afs/afs_utilAdmin.h>
#include <afs/bosint.h>
#include <afs/bnode.h>
#include <afs/ktime.h>
#include <afs/dirpath.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdlib.h>
-#ifdef AFS_NT40_ENV
-#include <io.h>
-#else
-#include <unistd.h>
-#endif
-#include <string.h>
+
+#include "afs_bosAdmin.h"
+#include "../adminutil/afs_AdminInternal.h"
typedef struct bos_server {
int begin_magic;
while (1) {
char tbuffer[512];
- size_t len;
+ ssize_t len;
len = read(fd, tbuffer, sizeof(tbuffer));
if (len < 0) {
tst = ADMBOSCANTREADSOURCEFILE;
int ADMINAPI
bos_ExecutableTimestampGet(const void *serverHandle, const char *execFile,
- unsigned long *newTime, unsigned long *oldTime,
- unsigned long *bakTime, afs_status_p st)
+ afs_int32 *newTime, afs_int32 *oldTime,
+ afs_int32 *bakTime, afs_status_p st)
{
int rc = 0;
afs_status_t tst = 0;
afs_status_t tst = 0;
bos_server_p b_handle = (bos_server_p) serverHandle;
afs_int32 restartType = 0;
- struct ktime restartTime;
+ struct bozo_netKTime restartTime;
if (!isValidServerHandle(b_handle, &tst)) {
goto fail_bos_ExecutableRestartTimeSet;
afs_status_t tst = 0;
bos_server_p b_handle = (bos_server_p) serverHandle;
afs_int32 restartType = 0;
- struct ktime restartTime;
+ struct bozo_netKTime restartTime;
if (!isValidServerHandle(b_handle, &tst)) {
goto fail_bos_ExecutableRestartTimeGet;
tcall = rx_NewCall(b_handle->server);
have_call = 1;
- tst = StartBOZO_GetLog(tcall, log);
+ tst = StartBOZO_GetLog(tcall, (char *) log);
if (tst != 0) {
goto fail_bos_LogGet;
goto fail_bos_CommandExecute;
}
- tst = BOZO_Exec(b_handle->server, command);
+ tst = BOZO_Exec(b_handle->server, (char *) command);
if (tst == 0) {
rc = 1;