~ubuntu-branches/ubuntu/wily/afnix/wily

« back to all changes in this revision

Viewing changes to src/lib/plt/shl/csys.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2011-03-16 21:31:18 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110316213118-gk4k3ez3e5d2huna
Tags: 2.0.0-1
* QA upload.
* New upstream release
* Debian source format is 3.0 (quilt)
* Fix debhelper-but-no-misc-depends
* Fix ancient-standards-version
* Fix package-contains-linda-override
* debhelper compatibility is 7
* Fix dh-clean-k-is-deprecated

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ---------------------------------------------------------------------------
2
2
// - csys.hxx                                                                -
3
 
// - standard system library - c system function platform definitions        -
 
3
// - standard platform library - c system function platform definitions      -
4
4
// ---------------------------------------------------------------------------
5
5
// - This program is free software;  you can redistribute it  and/or  modify -
6
6
// - it provided that this copyright notice is kept intact.                  -
11
11
// - the copyright holder be liable for any  direct, indirect, incidental or -
12
12
// - special damages arising in any way out of the use of this software.     -
13
13
// ---------------------------------------------------------------------------
14
 
// - copyright (c) 1999-2007 amaury darsch                                   -
 
14
// - copyright (c) 1999-2011 amaury darsch                                   -
15
15
// ---------------------------------------------------------------------------
16
16
 
17
17
// check for unknown platform
34
34
#define  AFNIX_HAVE_HOSTNAME
35
35
#define  AFNIX_HAVE_UID
36
36
#define  AFNIX_HAVE_BACKTRACE
 
37
#define  AFNIX_HAVE_SARESTORER
37
38
#include <sys/types.h>
38
39
#include <pwd.h>
 
40
#include <dlfcn.h>
 
41
#include <stdio.h>
39
42
#include <stdlib.h>
40
43
#include <unistd.h>
41
 
#include <dlfcn.h>
42
 
#include <stdio.h>
 
44
#include <signal.h>
43
45
#endif
44
46
 
45
47
// solaris platform
49
51
#define  AFNIX_HAVE_SYSINFO
50
52
#define  AFNIX_HAVE_UID
51
53
#include <sys/systeminfo.h>
52
 
#include <stdlib.h>
53
 
#include <unistd.h>
54
54
#include <dlfcn.h>
55
55
#include <stdio.h>
56
56
#include <pwd.h>
 
57
#include <stdlib.h>
 
58
#include <unistd.h>
 
59
#include <signal.h>
57
60
#endif
58
61
 
59
62
// freebsd platform
63
66
#define  AFNIX_HAVE_HOSTNAME
64
67
#define  AFNIX_HAVE_UID
65
68
#include <sys/types.h>
66
 
#include <stdlib.h>
67
 
#include <unistd.h>
68
69
#include <dlfcn.h>
69
70
#include <stdio.h>
70
71
#include <pwd.h>
 
72
#include <stdlib.h>
 
73
#include <unistd.h>
 
74
#include <signal.h>
71
75
#endif
72
76
 
73
77
// darwin platform
77
81
#define  AFNIX_HAVE_HOSTNAME
78
82
#define  AFNIX_HAVE_UID
79
83
#include <sys/types.h>
80
 
#include <stdlib.h>
81
 
#include <unistd.h>
82
84
#include <dlfcn.h>
83
85
#include <stdio.h>
84
86
#include <pwd.h>
 
87
#include <stdlib.h>
 
88
#include <unistd.h>
 
89
#include <signal.h>
85
90
#endif
86
91
 
87
92
// gnu/freebsd platform
96
101
#define  AFNIX_HAVE_BACKTRACE
97
102
#include <sys/types.h>
98
103
#include <pwd.h>
 
104
#include <dlfcn.h>
 
105
#include <stdio.h>
99
106
#include <stdlib.h>
100
107
#include <unistd.h>
101
 
#include <dlfcn.h>
102
 
#include <stdio.h>
 
108
#include <signal.h>
103
109
#endif