~ubuntu-branches/ubuntu/karmic/openafs/karmic-updates

« back to all changes in this revision

Viewing changes to src/venus/livesys.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/venus/livesys.c,v 1.4 2003/07/15 23:17:22 shadow Exp $");
 
14
    ("$Header: /cvs/openafs/src/venus/livesys.c,v 1.4.2.3 2008/03/08 01:15:37 shadow Exp $");
15
15
 
16
16
#include <afs/afs_args.h>
17
17
#include <rx/xdr.h>
22
22
#include <stdio.h>
23
23
#include <netinet/in.h>
24
24
#include <sys/stat.h>
25
 
#ifdef HAVE_STRING_H
26
25
#include <string.h>
27
 
#else
28
 
#ifdef HAVE_STRINGS_H
29
 
#include <strings.h>
30
 
#endif
31
 
#endif
32
26
#include <afs/stds.h>
33
27
#include <afs/vice.h>
34
28
#include <afs/venus.h>
 
29
#include <afs/com_err.h>
35
30
#ifdef  AFS_AIX32_ENV
36
31
#include <signal.h>
37
32
#endif
71
66
    memcpy(space, &setp, sizeof(afs_int32));
72
67
    code = pioctl(0, VIOC_AFS_SYSNAME, &blob, 1);
73
68
    if (code) {
74
 
        fprintf(stderr, "livesys: %s\n", error_message(code));
 
69
        fprintf(stderr, "livesys: %s\n", afs_error_message(code));
75
70
        return 1;
76
71
    }
77
72
    input = space;