📄 tdsutil.h
字号:
/* * =========================================================================== * PRODUCTION $Log: tdsutil.h,v $ * PRODUCTION Revision 1000.0 2003/10/29 20:21:56 gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.5 * PRODUCTION * =========================================================================== *//* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 1998-1999 Brian Bruns * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#ifndef _tdsutil_h_#define _tdsutil_h_#include "tds.h"#include <sys/ioctl.h>#include <time.h> /* Jeff's hack */#ifndef __INCvxWorksh /* vxWorks doesn't have a sys/time.h */#include <sys/time.h>#endif#ifdef __cplusplusextern "C" {#if 0} /* keep the paren matcher and indenter happy */#endif #endifstatic char rcsid_tdsutil_h [ ] ="$Id: tdsutil.h,v 1000.0 2003/10/29 20:21:56 gouriano Exp $";static void *no_unused_tdsutil_h_warn[]={rcsid_tdsutil_h, no_unused_tdsutil_h_warn};#define MAXPATH 256#ifdef NCBI_FTDSvoid tds_swap_2bytes(unsigned char *buf);void tds_swap_4bytes(unsigned char *buf);void tds_swap_8bytes(unsigned char *buf);#endifTDS_SMALLINT tds_get_smallint(TDSSOCKET *tds);unsigned char tds_get_byte(TDSSOCKET *tds);unsigned char tds_peek(TDSSOCKET *tds);void tds_unget_byte(TDSSOCKET *tds);char *tds_get_n(TDSSOCKET *tds, void *dest, int n);int tds_read_packet (TDSSOCKET *tds);int set_interfaces_file_loc(char *interfloc);#ifndef NCBI_FTDSint get_server_info(char *server, char *ip_addr, char *ip_port, char *tds_ver);#endifint get_size_by_type(int servertype);int tds_flush_packet(TDSSOCKET *tds);int tds_send_login(TDSSOCKET *tds, TDSCONFIGINFO *config);int tds_process_login_tokens(TDSSOCKET *tds);int tds_put_buf(TDSSOCKET *tds, const unsigned char *buf, int dsize, int ssize);void tds_free_compute_results(TDSCOMPUTEINFO *comp_info);int tdsdump_open(const char *filename);void tdsdump_off();void tdsdump_on();void tdsdump_close();void tdsdump_log(int dbg_lvl, const char *fmt, ...);void tdsdump_dump_buf(const void *buf, int length); int tds_is_result_row(TDSSOCKET *tds);int tds_is_result_set(TDSSOCKET *tds);int tds_is_end_of_results(TDSSOCKET *tds);int tds_is_error(TDSSOCKET *tds);int tds_is_message(TDSSOCKET *tds);int tds_is_doneinproc(TDSSOCKET *tds);int tds_is_control(TDSSOCKET *tds);int tds_msleep(long usecs);/* added 'cause used but not declared (mlilback, 11/7/01) */TDS_INT tds_get_int(TDSSOCKET *tds);#ifdef __cplusplus#if 0{ /* keep the paren matcher and indenter happy */#endif }#endif#ifdef NCBI_FTDS#if !defined(UTIL_C_PROCESSING) && defined(NDEBUG)#ifdef HAVE_CPP_STD_VARARGS#define tdsdump_log(...)#endif#ifdef HAVE_CPP_GNU_VARARGS#define tdsdump_log(args...)#endif#endif#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -