~ubuntu-branches/ubuntu/utopic/acct/utopic

« back to all changes in this revision

Viewing changes to pacct_rd.h

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2010-08-05 00:08:34 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100805000834-y9k7nlasjm3t5che
Tags: 6.5.4-2ubuntu1
* Merge from Debian testing, remaining changes: (LP: #609754)
  - Remove stop links from rc0 and rc6. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 1993, 1996, 1997, 2008, 2009, 2010 Free Software Foundation, Inc.
 
3
 
 
4
This file is part of the GNU Accounting Utilities
 
5
 
 
6
The GNU Accounting Utilities are free software; you can redistribute
 
7
them and/or modify them under the terms of the GNU General Public
 
8
License as published by the Free Software Foundation; either version
 
9
3, or (at your option) any later version.
 
10
 
 
11
The GNU Accounting Utilities are distributed in the hope that they will
 
12
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 
13
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with the GNU Accounting Utilities; see the file COPYING.  If
 
18
not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
 
19
MA 02139, USA.
 
20
*/
 
21
 
1
22
/* pacct_rd.h
2
23
 *
3
24
 * protos & etc. for routines that read from pacct/acct files
4
25
 *
5
26
 */
6
27
 
 
28
#ifndef PACCT_RD_H
 
29
#define PACCT_RD_H
 
30
 
7
31
#include "config.h"
8
32
 
9
33
#include "files.h"
14
38
 
15
39
#define COMM_LEN ((int) sizeof (pacct_rd_never_used.ac_comm))
16
40
 
17
 
void pacct_init PARAMS((int backwards));
18
 
void add_pacct_file PARAMS((char *name));
19
 
struct acct *pacct_get_entry PARAMS((void));
20
 
void print_pacct_record PARAMS((struct acct *rec, FILE *out));
21
 
void pacct_print_file_and_line PARAMS((FILE *out));
 
41
void pacct_init (int backwards);
 
42
void add_pacct_file (char *name);
 
43
struct acct *pacct_get_entry (void);
 
44
void print_pacct_record (struct acct *rec, FILE *out);
 
45
void pacct_print_file_and_line (FILE *out);
22
46
 
23
47
#ifdef HAVE_COMP_T
24
 
double comp_t_2_double PARAMS((comp_t));
 
48
double comp_t_2_double (comp_t);
25
49
#endif
26
50
 
27
51
#ifdef LINUX_MULTIFORMAT
28
 
double comp2_t_2_double PARAMS((comp2_t val));
29
 
size_t convert_acct_record_write PARAMS((struct acct *rec_in,
30
 
                                        struct acct *rec_out,
31
 
                                        int version, int byteswap));
 
52
double comp2_t_2_double (comp2_t val);
 
53
size_t convert_acct_record_write (struct acct *rec_in,
 
54
                                  struct acct *rec_out,
 
55
                                  int version, int byteswap);
32
56
#endif
 
57
#endif /* PACCT_RD_H */