Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,39 +0,0 @@
1
-/*
2
- * sched_yield wrapper
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-/*!
19
- * \file
20
- * \brief Kamailio core :: Sched_yield wrapper
21
- * \ingroup core
22
- * Module: \ref core
23
- * \author andrei
24
- */
25
-
26
-#ifndef _sched_yield_h
27
-#define _sched_yield_h
28
-
29
-#ifdef HAVE_SCHED_YIELD
30
-#include <sched.h>
31
-#else
32
-#include <unistd.h>
33
-	/* fake sched_yield */
34
-#ifndef sched_yield
35
-	#define sched_yield()	sleep(0)
36
-#endif
37
-#endif
38
-
39
-#endif /* _sched_yield_h */
Browse code

core: remove ending parenthesis in ifdef condition

warning: ISO C99 requires whitespace after the macro name
sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive
#ifndef sched_yield()

- reported by Victore Seva, GH #576

Daniel-Constantin Mierla authored on 20/04/2016 09:59:25
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@
31 31
 #else
32 32
 #include <unistd.h>
33 33
 	/* fake sched_yield */
34
-#ifndef sched_yield()
34
+#ifndef sched_yield
35 35
 	#define sched_yield()	sleep(0)
36 36
 #endif
37 37
 #endif
Browse code

Core Update of doxygen, removal of history, changing "ser" to "kamailio"

Olle E. Johansson authored on 03/01/2015 14:03:24
Showing 1 changed files
... ...
@@ -1,10 +1,6 @@
1 1
 /*
2 2
  * sched_yield wrapper
3 3
  *
4
- * $Id$
5
- *
6
- * 
7
- *
8 4
  * Copyright (C) 2001-2003 FhG Fokus
9 5
  *
10 6
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -19,14 +15,14 @@
19 15
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 17
  */
22
-/*
23
- *
24
- *History:
25
- *--------
26
- *  2007-07-13  splitted from fastlock.h (andrei)
18
+/*!
19
+ * \file
20
+ * \brief Kamailio core :: Sched_yield wrapper
21
+ * \ingroup core
22
+ * Module: \ref core
23
+ * \author andrei
27 24
  */
28 25
 
29
-
30 26
 #ifndef _sched_yield_h
31 27
 #define _sched_yield_h
32 28
 
Browse code

- moved sched_yield() wrapper into sched_yield.h at Miklos's request.

Andrei Pelinescu-Onciul authored on 13/07/2007 15:12:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,43 @@
1
+/*
2
+ * sched_yield wrapper
3
+ *
4
+ * $Id$
5
+ *
6
+ * 
7
+ *
8
+ * Copyright (C) 2001-2003 FhG Fokus
9
+ *
10
+ * Permission to use, copy, modify, and distribute this software for any
11
+ * purpose with or without fee is hereby granted, provided that the above
12
+ * copyright notice and this permission notice appear in all copies.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
+ */
22
+/*
23
+ *
24
+ *History:
25
+ *--------
26
+ *  2007-07-13  splitted from fastlock.h (andrei)
27
+ */
28
+
29
+
30
+#ifndef _sched_yield_h
31
+#define _sched_yield_h
32
+
33
+#ifdef HAVE_SCHED_YIELD
34
+#include <sched.h>
35
+#else
36
+#include <unistd.h>
37
+	/* fake sched_yield */
38
+#ifndef sched_yield()
39
+	#define sched_yield()	sleep(0)
40
+#endif
41
+#endif
42
+
43
+#endif /* _sched_yield_h */