Sponsored Content
Full Discussion: Please Help!
Top Forums Programming Please Help! Post 53980 by jim mcnamara on Thursday 29th of July 2004 02:44:27 PM
Old 07-29-2004
I think the compiler is confused - your code, as posted, looks reasonable. It looks like the compiler has already seen start referenced before. start is not a reserved word in C++. It also looks like variables are declared.

try something like this:
Code:
#include <time.h>

#define SLEEPTIME 5

time_t start=time(NULL);
time_t end=start+SLEEPTIME;

while(end > start){
     start=time(NULL);
}

 
qmail-start(8)                                                System Manager's Manual                                               qmail-start(8)

NAME
qmail-start - turn on mail delivery SYNOPSIS
qmail-start [ defaultdelivery [ logger arg ... ] ] DESCRIPTION
qmail-start invokes qmail-send, qmail-lspawn, qmail-rspawn, and qmail-clean, under the proper uids and gids. These four daemons cooperate to deliver messages from the queue. qmail-start arranges for qmail-send's activity record to be sent to qmail-start's output. See qmail-log(5) for the format of the activity record. Other than this, qmail-start does not print anything, even on failure. If defaultdelivery is supplied, qmail-start passes it to qmail-lspawn. If logger is supplied, qmail-start invokes logger with the given arguments, and feeds qmail-send's activity record through logger. Environment variables given to qmail-start will eventually be passed on to qmail-local, so make sure to clean up the environment if you run qmail-start manually: # env - PATH="/var/lib/qmail/bin:$PATH" qmail-start ./Mailbox splogger qmail & (all on one line) Resource limits, controlling ttys, et al. are also passed from qmail-start to qmail-local. Note that qmail-send normally juggles several simultaneous deliveries. To reduce qmail-send's impact on other programs, you can run qmail- start with a low priority. SEE ALSO
logger(1), splogger(1), nice(1), qmail-log(5), qmail-local(8), qmail-clean(8), qmail-lspawn(8), qmail-rspawn(8), qmail-send(8) qmail-start(8)
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy