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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/iopen.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
 
24
25
int chkpt_rd_iopen(void)
25
26
{
26
27
  int iopen;
27
 
 
28
 
  psio_read_entry(PSIF_CHKPT, "::Iopen", (char *) &iopen, sizeof(int));
 
28
  char *keyword;
 
29
  keyword = chkpt_build_keyword("Iopen");
 
30
 
 
31
  psio_read_entry(PSIF_CHKPT, keyword, (char *) &iopen, sizeof(int));
 
32
 
 
33
  free(keyword);
29
34
  return iopen;
30
35
}
31
36
 
46
51
 
47
52
void chkpt_wt_iopen(int iopen)
48
53
{
49
 
  psio_write_entry(PSIF_CHKPT, "::Iopen", (char *) &iopen, sizeof(int));
 
54
  char *keyword;
 
55
  keyword = chkpt_build_keyword("Iopen");
 
56
 
 
57
  psio_write_entry(PSIF_CHKPT, keyword, (char *) &iopen, sizeof(int));
 
58
 
 
59
  free(keyword);
50
60
}