Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plug_sys.c
Go to the documentation of this file.
1 /*
2  *
3  * looks like some functions of the math lib (eg sqrt, atan2) insist to believe
4  * they are running on UNIX. Let's keep them happy !
5  *
6  */
7 
8 #include <unistd.h>
9 extern off_t _lseek(int, off_t, int);
10 extern void abort(void);
11 extern int kill(pid_t, int);
12 extern void * _sbrk(int);
13 extern ssize_t _write(int, const void *, size_t);
14 extern int _close(int);
15 extern ssize_t _read(int, void *, size_t);
16 
17 off_t _lseek(int a, off_t b, int c) { return b;}
18 void abort(void) {while(1){};}
19 pid_t getpid(void) { return 0;}
20 int kill(pid_t a, int b) {return 0;}
21 void * _sbrk(int a) {return 0;}
22 ssize_t _write(int a, const void *b, size_t c) {return 0; }
23 int _close(int a) { return 0;}
24 ssize_t _read(int a, void *b, size_t c) {return 0;}
pid_t getpid(void)
Definition: plug_sys.c:19
void * _sbrk(int)
Definition: plug_sys.c:21
ssize_t _read(int, void *, size_t)
Definition: plug_sys.c:24
void abort(void)
Definition: plug_sys.c:18
int _close(int)
Definition: plug_sys.c:23
off_t _lseek(int, off_t, int)
Definition: plug_sys.c:17
static struct point c
Definition: discsurvey.c:13
int kill(pid_t, int)
Definition: plug_sys.c:20
ssize_t _write(int, const void *, size_t)
Definition: plug_sys.c:22