~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/tools/ga-4-3/tcgmsg/ipcv5.0/llog.c

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Header: /tmp/hpctools/ga/tcgmsg/ipcv4.0/llog.c,v 1.6 2004-04-01 02:04:57 manoj Exp $ */
 
2
 
 
3
#include <stdio.h>
 
4
 
 
5
#include <sys/types.h>
 
6
#include <time.h>
 
7
#include <sys/time.h>
 
8
 
 
9
#include "sndrcv.h"
 
10
 
 
11
#if (defined(SUN) && !defined(SOLARIS))
 
12
    extern char *sprintf();
 
13
#endif
 
14
#ifndef SGI
 
15
    extern time_t time();
 
16
#endif
 
17
 
 
18
extern void Error();
 
19
 
 
20
void LLOG_()
 
21
/*
 
22
  close and open stdin and stdout to append to a local logfile
 
23
  with the name log.<process#> in the current directory
 
24
*/
 
25
{
 
26
  char name[12];
 
27
  time_t t;
 
28
 
 
29
  (void) sprintf(name, "log.%03ld",NODEID_());
 
30
 
 
31
  (void) fflush(stdout);
 
32
  (void) fflush(stderr);
 
33
 
 
34
  if (freopen(name, "a", stdout) == (FILE *) NULL)
 
35
    Error("LLOG_: error re-opening stdout", (long) -1);
 
36
 
 
37
  if (freopen(name, "a", stderr) == (FILE *) NULL)
 
38
    Error("LLOG_: error re-opening stderr", (long) -1);
 
39
 
 
40
  (void) time(&t);
 
41
  (void) printf("\n\nLog file opened : %s\n\n",ctime(&t));
 
42
  (void) fflush(stdout);
 
43
}