The Pedigree Project
0.1
src
modules
system
lwip
include
lwip
arch
sys_arch.h
1
/*
2
* Copyright (c) 2008-2014, Pedigree Developers
3
*
4
* Please see the CONTRIB file in the root of the source tree for a full
5
* list of contributors.
6
*
7
* Permission to use, copy, modify, and distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
10
*
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
*/
19
20
#ifndef LWIP_ARCH_SYS_ARCH_H
21
#define LWIP_ARCH_SYS_ARCH_H
22
#include <config.h>
23
24
#ifdef fcntl
25
#define __fcntl_prev fcntl
26
#undef fcntl
27
#endif
28
29
// All pointer types which redirect to C++ types in implementation.
30
#if UTILITY_LINUX
31
#include <semaphore.h>
32
typedef
sem_t sys_sem_t;
33
#else
34
typedef
void
*sys_sem_t;
35
#endif
36
typedef
void
*sys_mutex_t;
37
typedef
struct
pedigree_mbox
*
sys_mbox_t
;
38
typedef
void
*sys_thread_t;
39
40
#ifdef __fcntl_prev
41
#undef fcntl
42
#define fcntl __fcntl_prev
43
#endif
44
45
#endif
// LWIP_ARCH_SYS_ARCH_H
pedigree_mbox
Definition
sys_arch.cc:46
Generated on Thu Sep 24 2026 06:24:00 for The Pedigree Project by
1.9.8