FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/output.c @ 195:549e6cd1e77d
rvinterf: support for socketpair invokation
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 26 Nov 2013 20:23:38 +0000 |
parents | 3256dc6e84ae |
children |
comparison
equal
deleted
inserted
replaced
194:9e4771bf865f | 195:549e6cd1e77d |
---|---|
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 #include <time.h> | 11 #include <time.h> |
12 | 12 |
13 extern int background; | 13 extern int no_output; |
14 extern FILE *logF; | 14 extern FILE *logF; |
15 extern time_t logtime; | 15 extern time_t logtime; |
16 | 16 |
17 static struct tm last_tm; | 17 static struct tm last_tm; |
18 | 18 |
20 output_line(item) | 20 output_line(item) |
21 char *item; | 21 char *item; |
22 { | 22 { |
23 struct tm *curtm; | 23 struct tm *curtm; |
24 | 24 |
25 if (!background) | 25 if (!no_output) |
26 printf("%s\n", item); | 26 printf("%s\n", item); |
27 if (!logF) | 27 if (!logF) |
28 return; | 28 return; |
29 curtm = gmtime(&logtime); | 29 curtm = gmtime(&logtime); |
30 if (curtm->tm_year != last_tm.tm_year || | 30 if (curtm->tm_year != last_tm.tm_year || |