Sparc systems fixes
This commit is contained in:
@@ -100,7 +100,7 @@ void Good_Bye(int onsig)
|
||||
}
|
||||
}
|
||||
|
||||
time(&t_end);
|
||||
t_end = time(NULL);
|
||||
Syslog(' ', "MBSEBBS finished in %s", t_elapsed(t_start, t_end));
|
||||
|
||||
/*
|
||||
|
@@ -338,7 +338,7 @@ void Download(void)
|
||||
* Wait a while before download
|
||||
*/
|
||||
sleep(2);
|
||||
time(&ElapstimeStart);
|
||||
ElapstimeStart = time(NULL);
|
||||
|
||||
temp = calloc(PATH_MAX, sizeof(char));
|
||||
sprintf(temp, "%s ./tag/*", sProtDn);
|
||||
@@ -366,7 +366,7 @@ void Download(void)
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
free(temp);
|
||||
time(&ElapstimeFin);
|
||||
ElapstimeFin = time(NULL);
|
||||
|
||||
/*
|
||||
* Get time from Before Download and After Download to get
|
||||
@@ -414,7 +414,7 @@ void Download(void)
|
||||
}
|
||||
Size += file.Size;
|
||||
file.TimesDL++;
|
||||
time(&file.LastDL);
|
||||
file.LastDL = time(NULL);
|
||||
fseek(fp, - sizeof(file), SEEK_CUR);
|
||||
fwrite(&file, sizeof(file), 1, fp);
|
||||
fclose(fp);
|
||||
@@ -1117,7 +1117,7 @@ int Upload()
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
sleep(2);
|
||||
time(&ElapstimeStart);
|
||||
ElapstimeStart = time(NULL);
|
||||
|
||||
/*
|
||||
* Get the file(s). Set the Client/Server time to 2 hours.
|
||||
@@ -1139,7 +1139,7 @@ int Upload()
|
||||
printf("\n\n\n");
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
time(&ElapstimeFin);
|
||||
ElapstimeFin = time(NULL);
|
||||
|
||||
/*
|
||||
* Get time from Before Upload and After Upload to get
|
||||
@@ -1287,7 +1287,7 @@ int DownloadDirect(char *Name, int Wait)
|
||||
* Wait a while before download
|
||||
*/
|
||||
sleep(2);
|
||||
time(&ElapstimeStart);
|
||||
ElapstimeStart = time(NULL);
|
||||
|
||||
temp = calloc(PATH_MAX, sizeof(char));
|
||||
sprintf(temp, "%s %s", sProtDn, symFrom);
|
||||
@@ -1315,7 +1315,7 @@ int DownloadDirect(char *Name, int Wait)
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
free(temp);
|
||||
time(&ElapstimeFin);
|
||||
ElapstimeFin = time(NULL);
|
||||
|
||||
/*
|
||||
* Get time from Before Download and After Download to get
|
||||
@@ -1656,7 +1656,7 @@ int Upload_Home()
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
sleep(2);
|
||||
time(&ElapstimeStart);
|
||||
ElapstimeStart = time(NULL);
|
||||
|
||||
/*
|
||||
* Get the file(s). Set the Client/Server time to 2 hours.
|
||||
@@ -1678,7 +1678,7 @@ int Upload_Home()
|
||||
printf("\n\n\n");
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
time(&ElapstimeFin);
|
||||
ElapstimeFin = time(NULL);
|
||||
|
||||
/*
|
||||
* Get time from Before Upload and After Upload to get
|
||||
|
@@ -340,7 +340,7 @@ char *GLCdateyy()
|
||||
static char GLcdateyy[15];
|
||||
char ntime[15];
|
||||
|
||||
time(&Time_Now);
|
||||
Time_Now = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
|
||||
sprintf(GLcdateyy,"%02d-",
|
||||
|
@@ -91,7 +91,7 @@ void die(int onsig)
|
||||
WriteError("Terminated with error %d", onsig);
|
||||
}
|
||||
|
||||
time(&t_end);
|
||||
t_end = time(NULL);
|
||||
Syslog(' ', "MBALL finished in %s", t_elapsed(t_start, t_end));
|
||||
|
||||
if (!do_quiet) {
|
||||
@@ -138,7 +138,7 @@ int main(int argc, char **argv)
|
||||
|
||||
InitConfig();
|
||||
TermInit(1);
|
||||
time(&t_start);
|
||||
t_start = time(NULL);
|
||||
umask(000);
|
||||
|
||||
/*
|
||||
|
@@ -245,7 +245,7 @@ char *ttime2()
|
||||
time_t Time_Now;
|
||||
static char Ttime2[9];
|
||||
|
||||
time(&Time_Now);
|
||||
Time_Now = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
|
||||
sprintf(Ttime2, "%02d:%02d", l_date->tm_hour,l_date->tm_min);
|
||||
|
@@ -97,12 +97,11 @@ int main(int argc, char **argv)
|
||||
/*
|
||||
* Set local time and statistic indexes.
|
||||
*/
|
||||
time(&Time_Now);
|
||||
time(&t_start);
|
||||
Time_Now = t_start = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
Diw = l_date->tm_wday;
|
||||
Miy = l_date->tm_mon;
|
||||
time(<ime);
|
||||
ltime = time(NULL);
|
||||
|
||||
/*
|
||||
* Initialize this client with the server. We don't know
|
||||
|
@@ -376,7 +376,7 @@ static void check_password(const struct passwd *pw)
|
||||
exp_status = isexpired(pw);
|
||||
#endif
|
||||
|
||||
time(&now);
|
||||
now = time(NULL);
|
||||
|
||||
#ifdef SHADOW_PASSWORD
|
||||
/*
|
||||
|
@@ -79,12 +79,11 @@ int main(int argc, char **argv)
|
||||
/*
|
||||
* Set local time and statistic indexes.
|
||||
*/
|
||||
time(&Time_Now);
|
||||
time(&t_start);
|
||||
Time_Now = t_start = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
Diw = l_date->tm_wday;
|
||||
Miy = l_date->tm_mon;
|
||||
time(<ime);
|
||||
ltime = time(NULL);
|
||||
|
||||
/*
|
||||
* Initialize this client with the server.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*****************************************************************************
|
||||
*
|
||||
* $id$
|
||||
* $Id$
|
||||
* Purpose ...............: Change BBS status
|
||||
*
|
||||
*****************************************************************************
|
||||
@@ -91,7 +91,7 @@ void die(int onsig)
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
time(&t_end);
|
||||
t_end = time(NULL);
|
||||
Syslog(' ', "MBSTAT finished in %s", t_elapsed(t_start, t_end));
|
||||
|
||||
ExitClient(onsig);
|
||||
@@ -114,7 +114,7 @@ int main(int argc, char **argv)
|
||||
#endif
|
||||
InitConfig();
|
||||
TermInit(1);
|
||||
time(&t_start);
|
||||
t_start = time(NULL);
|
||||
|
||||
/*
|
||||
* Catch or ignore signals
|
||||
|
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
|
||||
Days = 0;
|
||||
Level = 0;
|
||||
|
||||
time(&t_start);
|
||||
t_start = time(NULL);
|
||||
|
||||
if (argc < 2)
|
||||
Help();
|
||||
@@ -113,7 +113,7 @@ int main(int argc, char **argv)
|
||||
UserPack(Days, Level, pack);
|
||||
umask(oldmask);
|
||||
|
||||
time(&t_end);
|
||||
t_end = time(NULL);
|
||||
Syslog(' ', "MBUSER finished in %s", t_elapsed(t_start, t_end));
|
||||
|
||||
if (!do_quiet)
|
||||
|
@@ -93,7 +93,7 @@ int ChkFiles()
|
||||
WriteError("$ChkFiles: Can't create %s", sDataFile);
|
||||
else {
|
||||
memset((char *)&SYSINFO, 0, sizeof(SYSINFO));
|
||||
time(&Now);
|
||||
Now = time(NULL);
|
||||
SYSINFO.StartDate = Now;
|
||||
|
||||
rewind(pCallerLog);
|
||||
@@ -223,7 +223,7 @@ char *GLCdate()
|
||||
{
|
||||
static char GLcdate[15];
|
||||
|
||||
time(&Time_Now);
|
||||
Time_Now = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
sprintf(GLcdate,"%02d-", l_date->tm_mday);
|
||||
|
||||
|
@@ -62,7 +62,7 @@ char *rfcdate(time_t now)
|
||||
long offset;
|
||||
|
||||
if (!now)
|
||||
time(&now);
|
||||
now = time(NULL);
|
||||
ptm = *localtime(&now);
|
||||
|
||||
/*
|
||||
@@ -229,7 +229,7 @@ void Add_Headkludges(faddr *dest, int IsReply)
|
||||
|
||||
sprintf(temp, "\001PID: MBSE-BBS %s", VERSION);
|
||||
MsgText_Add2(temp);
|
||||
(void)time(&tt);
|
||||
tt = time(NULL);
|
||||
sprintf(temp, "\001TZUTC: %s", gmtoffset(tt));
|
||||
MsgText_Add2(temp);
|
||||
free(temp);
|
||||
|
@@ -557,7 +557,7 @@ void Fast_Bye(int onsig)
|
||||
char *temp;
|
||||
time_t t_end;
|
||||
|
||||
time(&t_end);
|
||||
t_end = time(NULL);
|
||||
Syslog(' ', "MBNEWUSR finished in %s", t_elapsed(t_start, t_end));
|
||||
socket_shutdown(mypid);
|
||||
|
||||
|
@@ -1113,7 +1113,7 @@ void OLR_Upload(void)
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
sleep(2);
|
||||
time(&ElapstimeStart);
|
||||
ElapstimeStart = time(NULL);
|
||||
|
||||
/*
|
||||
* Get the file
|
||||
@@ -1130,7 +1130,7 @@ void OLR_Upload(void)
|
||||
printf("\n");
|
||||
fflush(stdout);
|
||||
fflush(stdin);
|
||||
time(&ElapstimeFin);
|
||||
ElapstimeFin = time(NULL);
|
||||
|
||||
/*
|
||||
* Get the upload time.
|
||||
|
@@ -93,7 +93,7 @@ char *crypt_make_salt(void)
|
||||
static unsigned long x;
|
||||
static char result[3];
|
||||
|
||||
time(&now);
|
||||
now = time(NULL);
|
||||
x += now + getpid() + clock();
|
||||
result[0] = i64c(((x >> 18) ^ (x >> 6)) & 077);
|
||||
result[1] = i64c(((x >> 12) ^ x) & 077);
|
||||
|
@@ -83,7 +83,7 @@ void TimeCheck(void)
|
||||
time_t Now;
|
||||
int Elapsed;
|
||||
|
||||
time(&Now);
|
||||
Now = time(NULL);
|
||||
|
||||
/*
|
||||
* Update the global string for the menu prompt
|
||||
|
@@ -45,7 +45,7 @@ void TimeStats()
|
||||
{
|
||||
char Logdate[15];
|
||||
|
||||
time(&Time_Now);
|
||||
Time_Now = time(NULL);
|
||||
l_date = localtime(&Time_Now);
|
||||
sprintf(Logdate,"%02d-%s %02d:%02d:%02d", l_date->tm_mday, GetMonth(l_date->tm_mon+1),
|
||||
l_date->tm_hour, l_date->tm_min, l_date->tm_sec);
|
||||
|
@@ -408,7 +408,7 @@ void user()
|
||||
Syslog('+', "User successfully logged into BBS");
|
||||
Syslog('+', "Level %d (%s), %d mins. left, port %s",
|
||||
usrconfig.Security.level, LIMIT.Description, usrconfig.iTimeLeft, pTTY);
|
||||
time(&Time2Go);
|
||||
Time2Go = time(NULL);
|
||||
Time2Go += usrconfig.iTimeLeft * 60;
|
||||
iUserTimeLeft = exitinfo.iTimeLeft;
|
||||
|
||||
|
Reference in New Issue
Block a user