1/* 2 * Copyright 2004, Broadcom Corporation 3 * All Rights Reserved. 4 * 5 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY 6 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM 7 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS 8 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. 9 * 10 * $Id: linux_osl.h,v 1.1.1.1 2008/10/15 03:31:35 james26_jang Exp $ 11 */ 12 13#include <arpa/inet.h> 14#include <assert.h> 15#include <ctype.h> 16#include <errno.h> 17#include <fcntl.h> 18#include <netdb.h> 19#include <netinet/tcp.h> 20#include <stdio.h> 21#include <stdlib.h> 22#include <string.h> 23#include <sys/socket.h> 24#include <sys/stat.h> 25#include <sys/uio.h> 26#include <time.h> 27#include <unistd.h> 28#include <stdarg.h> // for va_list, etc. 29 30 31/* damn - the unix and vxworks version of inet_aton return different error codes. */ 32#define UPNP_INET_ATON(a,b) (inet_aton(a,b)!=0) 33 34#define OSL_NULL_FILE "/dev/null" 35