eventlib_p.h (162541) | eventlib_p.h (165258) |
---|---|
1/* 2 * Copyright (c) 2005 by Internet Systems Consortium, Inc. ("ISC") 3 * Copyright (c) 1995-1999 by Internet Software Consortium 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 4 unchanged lines hidden (view full) --- 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 15 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18/* eventlib_p.h - private interfaces for eventlib 19 * vix 09sep95 [initial] 20 * | 1/* 2 * Copyright (c) 2005 by Internet Systems Consortium, Inc. ("ISC") 3 * Copyright (c) 1995-1999 by Internet Software Consortium 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 4 unchanged lines hidden (view full) --- 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 15 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18/* eventlib_p.h - private interfaces for eventlib 19 * vix 09sep95 [initial] 20 * |
21 * $Id: eventlib_p.h,v 1.3.2.1.4.3 2005/07/28 07:43:20 marka Exp $ 22 * $FreeBSD: head/lib/libc/isc/eventlib_p.h 162541 2006-09-22 01:52:26Z kan $ | 21 * $Id: eventlib_p.h,v 1.3.2.1.4.4 2006/03/10 00:17:21 marka Exp $ 22 * $FreeBSD: head/lib/libc/isc/eventlib_p.h 165258 2006-12-15 20:59:55Z ume $ |
23 */ 24 25#ifndef _EVENTLIB_P_H 26#define _EVENTLIB_P_H 27 28#include <sys/param.h> 29#include <sys/types.h> 30#include <sys/socket.h> --- 12 unchanged lines hidden (view full) --- 43#include <isc/list.h> 44#include <isc/heap.h> 45#include <isc/memcluster.h> 46#endif 47 48#define EV_MASK_ALL (EV_READ | EV_WRITE | EV_EXCEPT) 49#define EV_ERR(e) return (errno = (e), -1) 50#define OK(x) if ((x) < 0) EV_ERR(errno); else (void)NULL | 23 */ 24 25#ifndef _EVENTLIB_P_H 26#define _EVENTLIB_P_H 27 28#include <sys/param.h> 29#include <sys/types.h> 30#include <sys/socket.h> --- 12 unchanged lines hidden (view full) --- 43#include <isc/list.h> 44#include <isc/heap.h> 45#include <isc/memcluster.h> 46#endif 47 48#define EV_MASK_ALL (EV_READ | EV_WRITE | EV_EXCEPT) 49#define EV_ERR(e) return (errno = (e), -1) 50#define OK(x) if ((x) < 0) EV_ERR(errno); else (void)NULL |
51#define OKFREE(x, y) if ((x) < 0) { FREE((y)); EV_ERR(errno); } \ 52 else (void)NULL |
|
51 52#define NEW(p) if (((p) = memget(sizeof *(p))) != NULL) \ 53 FILL(p); \ 54 else \ 55 (void)NULL; 56#define OKNEW(p) if (!((p) = memget(sizeof *(p)))) { \ 57 errno = ENOMEM; \ 58 return (-1); \ --- 229 unchanged lines hidden --- | 53 54#define NEW(p) if (((p) = memget(sizeof *(p))) != NULL) \ 55 FILL(p); \ 56 else \ 57 (void)NULL; 58#define OKNEW(p) if (!((p) = memget(sizeof *(p)))) { \ 59 errno = ENOMEM; \ 60 return (-1); \ --- 229 unchanged lines hidden --- |