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

📄 su_errno.h

📁 Internet Phone, Chat, Conferencing
💻 H
字号:
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. * * Contact: Pekka Pessi <pekka.pessi@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * */#ifndef SU_ERRNO_H /** Defined when su_errno.h has been included. */#define SU_ERRNO_H/**@file su_errno.h Errno handling * * Source-code compatibility with Windows (having separate errno for * socket library and C libraries). * * @author Pekka Pessi <Pekka.Pessi@nokia.com> *  * @date Created: Thu Dec 22 18:16:06 EET 2005 pessi */#ifndef SU_CONFIG_H#include "sofia-sip/su_config.h"#endif#include <errno.h>SOFIA_BEGIN_DECLS/** Return string describing su error code. */char const *su_strerror(int e);/** The latest su error. */int su_errno(void);/** Set the su error. */int su_seterrno(int);#if !SU_HAVE_WINSOCK#define su_errno() (errno)#define su_seterrno(n) ((errno = (n)), -1)#endif#if defined(__APPLE_CC__)#ifndef EBADMSG#define EBADMSG EFAULT#endif#ifndef EPROTO#define EPROTO EPROTOTYPE#endif#ifndef EBADMSG#define EBADMSG EFAULT#endif#endif#if defined(_WIN32)#ifndef ENOBUFS#define ENOBUFS (10055) /* WSAENOBUFS */#endif#ifndef EMSGSIZE#define EMSGSIZE (10040) /* WSAEMSGSIZE */#endif#ifndef EPROTONOSUPPORT#define EPROTONOSUPPORT (10043) /* WSAEPROTONOSUPPORT */#endif#ifndef EALREADY#define EALREADY (10037) /* WSAEALREADY */#endif#ifndef EBADMSG#  if defined(WSABADMSG)#    define EBADMSG (WSAEBADMSG)#  else#    define EBADMSG (20005)#  endif#endif#ifndef EPROTO#  if defined(WSAEPROTO)#    define EPROTO WSAEPROTO#  else#    define EPROTO (20006)#  endif#endif#endifSOFIA_END_DECLS#endif

⌨️ 快捷键说明

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