1131823Sharti/* 2131823Sharti * Copyright (c) 2004 3131823Sharti * Hartmut Brandt 4131823Sharti * All rights reserved. 5131823Sharti * 6131823Sharti * Author: Hartmut Brandt <harti@freebsd.org> 7131823Sharti * 8131823Sharti * Redistribution and use in source and binary forms, with or without 9131823Sharti * modification, are permitted provided that the following conditions 10131823Sharti * are met: 11131823Sharti * 1. Redistributions of source code must retain the above copyright 12131823Sharti * notice, this list of conditions and the following disclaimer. 13131823Sharti * 2. Redistributions in binary form must reproduce the above copyright 14131823Sharti * notice, this list of conditions and the following disclaimer in the 15131823Sharti * documentation and/or other materials provided with the distribution. 16131823Sharti * 17131823Sharti * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18131823Sharti * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19131823Sharti * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20131823Sharti * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21131823Sharti * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22131823Sharti * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23131823Sharti * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24131823Sharti * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25131823Sharti * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26131823Sharti * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27131823Sharti * SUCH DAMAGE. 28131823Sharti * 29133488Sharti * $Begemot: libunimsg/libngatm/cccust.h,v 1.2 2004/07/16 18:48:24 brandt Exp $ 30131823Sharti * 31131823Sharti * Customisation of call control source to user space. 32131823Sharti */ 33131823Sharti 34131823Sharti#include <sys/types.h> 35131823Sharti#include <sys/queue.h> 36131823Sharti#include <stdio.h> 37131823Sharti#include <stdlib.h> 38131823Sharti#include <stddef.h> 39131823Sharti#include <string.h> 40131823Sharti#include <assert.h> 41131823Sharti#include <errno.h> 42131823Sharti 43131823Sharti#define CCASSERT(E, M) assert(E) 44131823Sharti 45131823Sharti#define CCMALLOC(S) (malloc((S))) 46131823Sharti#define CCZALLOC(S) (calloc(1, (S))) 47131823Sharti#define CCFREE(P) do { free(P); } while (0) 48133488Sharti 49133488Sharti#define CCGETERRNO() (errno) 50