~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/nfzc.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
*/
5
5
 
6
6
#include "chkpt.h"
 
7
#include <stdlib.h>
7
8
#include <psifiles.h>
8
9
#include <libpsio/psio.h>
9
10
 
18
19
int chkpt_rd_nfzc(void)
19
20
{
20
21
  int nfzc;
21
 
 
22
 
  psio_read_entry(PSIF_CHKPT, "::Num. Frozen DOCC", (char *) &nfzc, 
23
 
                  sizeof(int) );
 
22
  char *keyword;
 
23
  keyword = chkpt_build_keyword("Num. Frozen DOCC");
 
24
 
 
25
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &nfzc, sizeof(int) );
 
26
 
 
27
  free(keyword);
24
28
  return nfzc;
25
29
}
26
30
 
36
40
 
37
41
void chkpt_wt_nfzc(int nfzc)
38
42
{
39
 
  psio_write_entry(PSIF_CHKPT, "::Num. Frozen DOCC", (char *) &nfzc, sizeof(int));
 
43
  char *keyword;
 
44
  keyword = chkpt_build_keyword("Num. Frozen DOCC");
 
45
 
 
46
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &nfzc, sizeof(int));
 
47
 
 
48
  free(keyword);
40
49
}