cccust.h revision 302408
1178431Sscf/* 2178431Sscf * Copyright (c) 2004 3178431Sscf * Hartmut Brandt 4178431Sscf * All rights reserved. 5178431Sscf * 6178431Sscf * Author: Hartmut Brandt <harti@freebsd.org> 7178431Sscf * 8178431Sscf * Redistribution and use in source and binary forms, with or without 9178431Sscf * modification, are permitted provided that the following conditions 10178431Sscf * are met: 11178431Sscf * 1. Redistributions of source code must retain the above copyright 12178431Sscf * notice, this list of conditions and the following disclaimer. 13178431Sscf * 2. Redistributions in binary form must reproduce the above copyright 14178431Sscf * notice, this list of conditions and the following disclaimer in the 15178431Sscf * documentation and/or other materials provided with the distribution. 16178431Sscf * 17178431Sscf * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18178431Sscf * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19178431Sscf * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20178431Sscf * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21178431Sscf * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22178431Sscf * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23178431Sscf * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24178431Sscf * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25178431Sscf * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26178431Sscf * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27178431Sscf * SUCH DAMAGE. 28178431Sscf * 29178431Sscf * $Begemot: libunimsg/libngatm/cccust.h,v 1.2 2004/07/16 18:48:24 brandt Exp $ 30178431Sscf * 31228545Sbapt * Customisation of call control source to user space. 32228545Sbapt */ 33184831Sscf 34228545Sbapt#include <sys/types.h> 35228545Sbapt#include <sys/queue.h> 36228545Sbapt#include <stdio.h> 37178431Sscf#include <stdlib.h> 38178431Sscf#include <stddef.h> 39184831Sscf#include <string.h> 40228545Sbapt#include <assert.h> 41178431Sscf#include <errno.h> 42178431Sscf 43178431Sscf#define CCASSERT(E, M) assert(E) 44178431Sscf 45228545Sbapt#define CCMALLOC(S) (malloc((S))) 46178431Sscf#define CCZALLOC(S) (calloc(1, (S))) 47228545Sbapt#define CCFREE(P) do { free(P); } while (0) 48228545Sbapt 49228545Sbapt#define CCGETERRNO() (errno) 50228545Sbapt