⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getxxbyyy_r.h

📁 CFL是Unix下的通用抽象库,以简化Unix下的系统软件开发,CFL库中包含几个分组的函数和宏
💻 H
字号:
/* ----------------------------------------------------------------------------   CFL - A C Foundation Library   Copyright (C) 1994-2003  Mark A Lindner   This file is part of CFL.      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., 675 Mass Ave, Cambridge, MA 02139, USA.   ----------------------------------------------------------------------------   $Log: getXXbyYY_r.h,v $   Revision 1.1  2003/03/14 09:02:30  markl   Code cleanup & bug fixes.   ----------------------------------------------------------------------------*/#ifndef __cfl_getXXbyYY_r_h#define __cfl_getXXbyYY_r_h#include "config.h"#include <netdb.h>#ifdef HAVE_GETxxxxBYyyyy_R_POSIX#define C_gethostbyname_r gethostbyname_r#define C_gethostbyaddr_r gethostbyaddr_r#define C_getservbyname_r getservbyname_r#define C_getservbyport_r getservbyport_r#else /* ! HAVE_GETxxxxBYyyyy_R_POSIX */extern struct hostent *C_gethostbyname_r(const char *name, struct hostent *ret,                                         char *buffer, int buflen,                                         struct hostent **result,                                         int *h_errnop);extern struct hostent *C_gethostbyaddr_r(const char *addr, int length, int type,                                         struct hostent *ret, char *buffer,                                         int buflen, struct hostent **result,                                         int *h_errnop);extern struct servent *C_getservbyname_r(const char *name, const char *proto,                                         struct servent *ret, char *buffer,                                         int buflen, struct servent **result);extern struct servent *C_getservbyport_r(int port, const char *proto,                                         struct servent *ret, char *buffer,                                         int buflen, struct servent **result);#endif /* HAVE_GETxxxxBYyyyy_R_POSIX */#endif /* __cfl_getXXbyYY_r_h *//* end of header file */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -