~ubuntu-branches/ubuntu/raring/ncbi-tools6/raring

« back to all changes in this revision

Viewing changes to connect/ncbi_host_info.c

  • Committer: Package Import Robot
  • Author(s): Aaron M. Ucko
  • Date: 2011-09-05 18:55:02 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110905185502-iuvmoe65ytljhckn
Tags: 6.1.20110713-1
* New upstream release.
* debian/*.symbols: update accordingly.
* make/makeshlb.unx: link libcn3dOGL.so against -lm for sqrt.
* doc/man/*.1: update for new release.
* debian/rules:
  - (VIB): add asnmacro, as upstream takes care to publish binaries thereof.
  - Retire obsolete multiarch-unaware checks for libpthread.
  - Fully modernize Debhelper usage; in particular, transition to overrides.
* debian/compat: advance to 9 per rules modernization.
* debian/ncbi-tools-bin.install: add asnmacro.
* make/makenet.unx: link asnmacro only against libraries it directly needs.
* doc/man/asnmacro.1: give asnmacro a man page.
* doc/man/Psequin.1: list it in SEE ALSO.
* network/id1arch/idfetch.c: revert redundant change (from #295110).
* Convert to multiarch.
  - debian/rules: Install libraries (and ncbithr.o) to multiarch directories.
  - debian/lib*.install: match multiarch library paths.
  - debian/control:
    + Build-Depends: debhelper (>= 8.1.3~), implying a recent dpkg-dev.
    + Set Multi-Arch: as appropriate across the board, and specify
      Pre-Depends: ${misc:Pre-Depends} for runtime libraries.
* debian/*.lintian-overrides: drop leading slashes for Lintian 2.5.x.
* debian/control: Standards-Version: 3.9.2 (already compliant).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ncbi_host_info.c,v 6.13 2009/02/03 16:39:35 kazimird Exp $
 
1
/* $Id: ncbi_host_info.c,v 6.14 2011/06/10 03:44:32 kazimird Exp $
2
2
 * ===========================================================================
3
3
 *
4
4
 *                            PUBLIC DOMAIN NOTICE
81
81
}
82
82
 
83
83
 
84
 
unsigned int HINFO_HostAddr(const HOST_INFO host_info)
 
84
extern unsigned int HINFO_HostAddr(const HOST_INFO host_info)
85
85
{
86
86
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
87
87
        return 0;
89
89
}
90
90
 
91
91
 
92
 
int HINFO_CpuCount(const HOST_INFO host_info)
 
92
extern int HINFO_CpuCount(const HOST_INFO host_info)
93
93
{
94
94
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
95
95
        return -1;
97
97
}
98
98
 
99
99
 
100
 
int HINFO_CpuUnits(const HOST_INFO host_info)
 
100
extern int HINFO_CpuUnits(const HOST_INFO host_info)
101
101
{
102
102
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
103
103
        return -1;
105
105
}
106
106
 
107
107
 
108
 
double HINFO_CpuClock(const HOST_INFO host_info)
 
108
extern double HINFO_CpuClock(const HOST_INFO host_info)
109
109
{
110
110
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
111
111
        return 0.0;
112
112
    return LBSM_HINFO_CpuClock(host_info);
113
113
}
114
114
 
115
 
int HINFO_TaskCount(const HOST_INFO host_info)
 
115
extern int HINFO_TaskCount(const HOST_INFO host_info)
116
116
{
117
117
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
118
118
        return -1;
120
120
}
121
121
 
122
122
 
123
 
int HINFO_Memusage(const HOST_INFO host_info, double memusage[5])
 
123
extern int HINFO_Memusage(const HOST_INFO host_info, double memusage[5])
124
124
{
125
125
    memset(memusage, 0, sizeof(memusage[0]) * 5);
126
126
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
129
129
}
130
130
 
131
131
 
132
 
int HINFO_MachineParams(const HOST_INFO host_info, SHINFO_Params* p)
 
132
extern int HINFO_MachineParams(const HOST_INFO host_info, SHINFO_Params* p)
133
133
{
134
134
    memset(p, 0, sizeof(*p));
135
135
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
138
138
}
139
139
 
140
140
 
141
 
int/*bool*/ HINFO_LoadAverage(const HOST_INFO host_info, double lavg[2])
 
141
extern int/*bool*/ HINFO_LoadAverage(const HOST_INFO host_info, double lavg[2])
142
142
{
143
143
    memset(lavg, 0, sizeof(lavg[0]) * 2);
144
144
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
147
147
}
148
148
 
149
149
 
150
 
int/*bool*/ HINFO_Status(const HOST_INFO host_info, double status[2])
 
150
extern int/*bool*/ HINFO_Status(const HOST_INFO host_info, double status[2])
151
151
{
152
152
    memset(status, 0, sizeof(status[0]) * 2);
153
153
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
156
156
}
157
157
 
158
158
 
159
 
const char* HINFO_Environment(const HOST_INFO host_info)
 
159
extern const char* HINFO_Environment(const HOST_INFO host_info)
160
160
{
161
161
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
162
162
        return 0;
164
164
}
165
165
 
166
166
 
167
 
const char* HINFO_AffinityArgument(const HOST_INFO host_info)
 
167
extern const char* HINFO_AffinityArgument(const HOST_INFO host_info)
168
168
{
169
169
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
170
170
        return 0;
172
172
}
173
173
 
174
174
 
175
 
const char* HINFO_AffinityArgvalue(const HOST_INFO host_info)
 
175
extern const char* HINFO_AffinityArgvalue(const HOST_INFO host_info)
176
176
{
177
177
    if (!host_info  ||  host_info->pad != HINFO_MAGIC)
178
178
        return 0;