[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

time returns -1



This may not sound like a debian problem (and maybe it isn't) but I think 
it could be.
I am working on a port of a dos program to track satellites. The only 
routine I needed to modify used DOS system calls to get the Julian date. 
I chose to use the time function because it was the easiest to convert to 
a julian date.
I started this project when the only Linux I had was Debian R2 (yea, I 
know it's ancient, but it was the only one I could find on CD). The mods 
I made to the routine worked fine in this setting.
On recompiling on my new R6 system, the compilation seems to go fine, but 
when I run the program, using the area of code that I modified, I 
discovered that the time function was returning -1 (error?).
Is anyone else using the time function? Has anyone else had this problem?
Does anyone have any ideas?

Thanks,

Dale

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+                                                                      +
+       Sex is like computer documentation. When it's good, it's       +
+       very very good, when it's bad, it's better than nothing.       +
+                                                                      +
+                                  Anonymous                           +
+                                                                      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Reply to: