/usr/include/ncbi/netlib.h is in libncbi6-dev 6.1.20120620-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /* netlib.h
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. It was written as part of
* the author's official duties as a United States Government employee and
* thus cannot be copyrighted. This software/database is freely available
* to the public for use. The National Library of Medicine and the U.S.
* Government have not placed any restriction on its use or reproduction.
*
* Although all reasonable efforts have been taken to ensure the accuracy
* and reliability of the software and data, the NLM and the U.S.
* Government do not and cannot warrant the performance or results that
* may be obtained by using this software or data. The NLM and the U.S.
* Government disclaim all warranties, express or implied, including
* warranties of performance, merchantability or fitness for any particular
* purpose.
*
* Please cite the author in any work or product based on this material.
*
* ===========================================================================
*
* File Name: netlib.h
*
* Author: Epstein
*
* Version Creation Date: 06/05/92
*
* $Revision: 6.0 $
*
* File Description:
* header file for miscellaneous library for Network Entrez
*
* Modifications:
* --------------------------------------------------------------------------
* $Log: netlib.h,v $
* Revision 6.0 1997/08/25 18:35:03 madden
* Revision changed to 6.0
*
* Revision 5.2 1997/07/29 21:24:17 vakatov
* [WIN32,DLL] DLL'zation of "netentr.lib"
*
* Revision 5.1 1997/06/05 15:51:42 epstein
* change name of NetInit function per Eric Hackborn's request
*
* Revision 5.0 1996/05/28 14:10:21 ostell
* Set to revision 5.0
*
* Revision 4.0 1995/07/26 13:54:59 ostell
* force revision to 4.0
*
* Revision 1.3 1995/05/17 17:53:22 epstein
* add RCS log revision history
*
*/
#ifndef _NETLIB_
#define _NETLIB_
#ifndef _NCBI_Access_
#include <objacces.h>
#endif
#ifndef _NETENTREZ_
#include <netentr.h>
#endif
#include <cdconfig.h>
#undef NLM_EXTERN
#ifdef NLM_IMPORT
#define NLM_EXTERN NLM_IMPORT
#else
#define NLM_EXTERN extern
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* --- Macros --- */
#define LOG_STAT(subsys,label,dat) { static NetStatPtr _p = NULL; LogNetStats(subsys, label, (Int4) (dat), &_p, 0); }
#define LOG_STAT_M(subsys,label,dat) { static NetStatPtr _p = NULL; LogNetStats(subsys, label, (Int4) (dat), &_p, STAT_MEAN); }
#define LOG_STAT_S(subsys,label,dat) { static NetStatPtr _p = NULL; LogNetStats(subsys, label, (Int4) (dat), &_p, STAT_MEAN | STAT_STDEV); }
/* Subsystems for statistics management */
#define SUBSYS_SRV_ENTREZ 1
#define SUBSYS_SRV_ML 2
#define SUBSYS_SRV_SEQ 3
#define SUBSYS_CLI_ENTREZ 4
#define SUBSYS_CLI_ML 5
#define SUBSYS_CLI_SEQ 6
#define STAT_MEAN 1
#define STAT_STDEV 2
typedef struct NetStat {
Int2 subsys;
CharPtr label;
double total;
double sum_of_squares;
Int4 n;
Int2 flags;
} NetStat, PNTR NetStatPtr;
typedef void (* StatsCallBack) PROTO((CharPtr s));
/* --- Function Prototypes --- */
Boolean CDECL NetInitialize PROTO((CharPtr,CharPtr,Int2Ptr));
NLM_EXTERN Boolean CDECL NetEInit PROTO((void));
NLM_EXTERN Boolean CDECL NetFini PROTO((void));
NLM_EXTERN Boolean CDECL ForceNetInit PROTO((void));
EntrezInfoPtr NetGetInfo PROTO((void));
Int2 CDECL NetLinkUidGet PROTO((LinkSetPtr PNTR result, DocType type,
DocType link_to_type, Int2 numuid, DocUidPtr uids, Boolean mark_missing,
Int4 maxlink));
NLM_EXTERN TermRespPtr CDECL TermRespNew PROTO((void));
NLM_EXTERN TermRespPtr CDECL TermRespFree PROTO((TermRespPtr p));
NLM_EXTERN TermRespPtr CDECL TermRespAsnRead PROTO((AsnIoPtr aip, AsnTypePtr atp));
NLM_EXTERN ValNodePtr CDECL BoolExprAsnRead PROTO((AsnIoPtr aip, AsnTypePtr atp));
NLM_EXTERN Boolean CDECL BoolExprAsnWrite PROTO((ValNodePtr ufp, AsnIoPtr aip, AsnTypePtr atp));
NLM_EXTERN void CDECL LogNetStats PROTO((Int2 subsys, CharPtr label, Int4 dat, NetStatPtr PNTR statHandle, Int2 flags));
NLM_EXTERN void CDECL DumpNetStats PROTO((Int2 subsys, StatsCallBack callBack));
NLM_EXTERN void CDECL GetClientInfo PROTO((CharPtr buf));
/* The following mechanism must be re-worked after the ASN.1 tools are */
/* modified to allow multiple includes and loads of the same include file */
#if defined(OS_MAC) || defined(OS_DOS) /* dynamic load */
#define NET_ENTR_DYNAMIC_LOAD 1
#endif
#ifdef __cplusplus
}
#endif
#undef NLM_EXTERN
#ifdef NLM_EXPORT
#define NLM_EXTERN NLM_EXPORT
#else
#define NLM_EXTERN
#endif
#endif
|