source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/si/os/linux/si_os.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/***************************************************************
2**
3** Broadcom Corp. Confidential
4** Copyright 2003-2008 Broadcom Corp. All Rights Reserved.
5**
6** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED
7** SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM.
8** YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT
9** SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
10**
11** File:                si_os.h
12** Description: defines for SI os abstraction functions.
13**
14** Created: 03/08/2001
15**
16** REVISION:
17**
18** $Log: $
19**
20**
21****************************************************************/
22#ifndef SI_OS_H
23#define SI_OS_H
24
25/* include all OS related defines here */
26#include <sys/types.h>
27#include <unistd.h>
28#include <sys/mman.h>
29#include <fcntl.h>
30#include <sys/ioctl.h>
31#include <errno.h>
32#include <time.h>
33#include <sys/time.h>
34#include <stdarg.h>
35#include <pthread.h>
36#include <signal.h>
37#include <malloc.h>
38#include <stdio.h>
39#include <string.h>
40#include <stdlib.h>
41#include <termios.h>
42
43#define SI_print printf
44#define SI_alloc malloc
45#define SI_free free
46#define SI_memcpy memcpy
47#define SI_memset memset
48
49#define SI_mutex_lock(x) pthread_mutex_lock(&(x))
50#define SI_mutex_unlock(x) pthread_mutex_unlock(&(x))
51#define SI_mutex_init(x) pthread_mutex_init(&(x), NULL)
52
53#define SI_mutex pthread_mutex_t
54
55
56#ifdef __cplusplus
57extern "C" {
58#endif
59
60
61#ifdef __cplusplus
62}
63#endif
64
65
66#endif
Note: See TracBrowser for help on using the repository browser.