xref: /OK3568_Linux_fs/buildroot/package/screen/0005-rename-sched_h.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom: Maarten ter Huurne <maarten@treewalker.org>
2*4882a593SmuzhiyunDate: Mon, 15 Sep 2014 00:24:41 +0200
3*4882a593SmuzhiyunSubject: Renamed sched.h to eventqueue.h
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunThere is a <sched.h> system header that got shadowed by "sched.h".
6*4882a593SmuzhiyunWhile Screen itself doesn't include <sched.h>, other system headers
7*4882a593Smuzhiyunmight include it indirectly. This broke the build when using uClibc
8*4882a593Smuzhiyunwith pthread support.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSigned-off-by: Maarten ter Huurne <maarten@treewalker.org>
11*4882a593Smuzhiyun---
12*4882a593Smuzhiyun eventqueue.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
13*4882a593Smuzhiyun sched.h      | 48 ------------------------------------------------
14*4882a593Smuzhiyun screen.h     |  2 +-
15*4882a593Smuzhiyun 3 files changed, 49 insertions(+), 49 deletions(-)
16*4882a593Smuzhiyun create mode 100644 eventqueue.h
17*4882a593Smuzhiyun delete mode 100644 sched.h
18*4882a593Smuzhiyun
19*4882a593Smuzhiyundiff --git a/eventqueue.h b/eventqueue.h
20*4882a593Smuzhiyunnew file mode 100644
21*4882a593Smuzhiyunindex 0000000..fdc3fc4
22*4882a593Smuzhiyun--- /dev/null
23*4882a593Smuzhiyun+++ b/eventqueue.h
24*4882a593Smuzhiyun@@ -0,0 +1,48 @@
25*4882a593Smuzhiyun+/* Copyright (c) 2008, 2009
26*4882a593Smuzhiyun+ *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
27*4882a593Smuzhiyun+ *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
28*4882a593Smuzhiyun+ *      Micah Cowan (micah@cowan.name)
29*4882a593Smuzhiyun+ *      Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
30*4882a593Smuzhiyun+ * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
31*4882a593Smuzhiyun+ *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
32*4882a593Smuzhiyun+ *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
33*4882a593Smuzhiyun+ * Copyright (c) 1987 Oliver Laumann
34*4882a593Smuzhiyun+ *
35*4882a593Smuzhiyun+ * This program is free software; you can redistribute it and/or modify
36*4882a593Smuzhiyun+ * it under the terms of the GNU General Public License as published by
37*4882a593Smuzhiyun+ * the Free Software Foundation; either version 3, or (at your option)
38*4882a593Smuzhiyun+ * any later version.
39*4882a593Smuzhiyun+ *
40*4882a593Smuzhiyun+ * This program is distributed in the hope that it will be useful,
41*4882a593Smuzhiyun+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
42*4882a593Smuzhiyun+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43*4882a593Smuzhiyun+ * GNU General Public License for more details.
44*4882a593Smuzhiyun+ *
45*4882a593Smuzhiyun+ * You should have received a copy of the GNU General Public License
46*4882a593Smuzhiyun+ * along with this program (see the file COPYING); if not, see
47*4882a593Smuzhiyun+ * https://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
48*4882a593Smuzhiyun+ * 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
49*4882a593Smuzhiyun+ *
50*4882a593Smuzhiyun+ ****************************************************************
51*4882a593Smuzhiyun+ * $Id$ GNU
52*4882a593Smuzhiyun+ */
53*4882a593Smuzhiyun+
54*4882a593Smuzhiyun+struct event
55*4882a593Smuzhiyun+{
56*4882a593Smuzhiyun+  struct event *next;
57*4882a593Smuzhiyun+  void (*handler) __P((struct event *, char *));
58*4882a593Smuzhiyun+  char *data;
59*4882a593Smuzhiyun+  int fd;
60*4882a593Smuzhiyun+  int type;
61*4882a593Smuzhiyun+  int pri;
62*4882a593Smuzhiyun+  struct timeval timeout;
63*4882a593Smuzhiyun+  int queued;		/* in evs queue */
64*4882a593Smuzhiyun+  int active;		/* in fdset */
65*4882a593Smuzhiyun+  int *condpos;		/* only active if condpos - condneg > 0 */
66*4882a593Smuzhiyun+  int *condneg;
67*4882a593Smuzhiyun+};
68*4882a593Smuzhiyun+
69*4882a593Smuzhiyun+#define EV_TIMEOUT	0
70*4882a593Smuzhiyun+#define EV_READ		1
71*4882a593Smuzhiyun+#define EV_WRITE	2
72*4882a593Smuzhiyun+#define EV_ALWAYS	3
73*4882a593Smuzhiyundiff --git a/sched.h b/sched.h
74*4882a593Smuzhiyundeleted file mode 100644
75*4882a593Smuzhiyunindex fdc3fc4..0000000
76*4882a593Smuzhiyun--- a/sched.h
77*4882a593Smuzhiyun+++ /dev/null
78*4882a593Smuzhiyun@@ -1,48 +0,0 @@
79*4882a593Smuzhiyun-/* Copyright (c) 2008, 2009
80*4882a593Smuzhiyun- *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
81*4882a593Smuzhiyun- *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
82*4882a593Smuzhiyun- *      Micah Cowan (micah@cowan.name)
83*4882a593Smuzhiyun- *      Sadrul Habib Chowdhury (sadrul@users.sourceforge.net)
84*4882a593Smuzhiyun- * Copyright (c) 1993-2002, 2003, 2005, 2006, 2007
85*4882a593Smuzhiyun- *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
86*4882a593Smuzhiyun- *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
87*4882a593Smuzhiyun- * Copyright (c) 1987 Oliver Laumann
88*4882a593Smuzhiyun- *
89*4882a593Smuzhiyun- * This program is free software; you can redistribute it and/or modify
90*4882a593Smuzhiyun- * it under the terms of the GNU General Public License as published by
91*4882a593Smuzhiyun- * the Free Software Foundation; either version 3, or (at your option)
92*4882a593Smuzhiyun- * any later version.
93*4882a593Smuzhiyun- *
94*4882a593Smuzhiyun- * This program is distributed in the hope that it will be useful,
95*4882a593Smuzhiyun- * but WITHOUT ANY WARRANTY; without even the implied warranty of
96*4882a593Smuzhiyun- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
97*4882a593Smuzhiyun- * GNU General Public License for more details.
98*4882a593Smuzhiyun- *
99*4882a593Smuzhiyun- * You should have received a copy of the GNU General Public License
100*4882a593Smuzhiyun- * along with this program (see the file COPYING); if not, see
101*4882a593Smuzhiyun- * https://www.gnu.org/licenses/, or contact Free Software Foundation, Inc.,
102*4882a593Smuzhiyun- * 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
103*4882a593Smuzhiyun- *
104*4882a593Smuzhiyun- ****************************************************************
105*4882a593Smuzhiyun- * $Id$ GNU
106*4882a593Smuzhiyun- */
107*4882a593Smuzhiyun-
108*4882a593Smuzhiyun-struct event
109*4882a593Smuzhiyun-{
110*4882a593Smuzhiyun-  struct event *next;
111*4882a593Smuzhiyun-  void (*handler) __P((struct event *, char *));
112*4882a593Smuzhiyun-  char *data;
113*4882a593Smuzhiyun-  int fd;
114*4882a593Smuzhiyun-  int type;
115*4882a593Smuzhiyun-  int pri;
116*4882a593Smuzhiyun-  struct timeval timeout;
117*4882a593Smuzhiyun-  int queued;		/* in evs queue */
118*4882a593Smuzhiyun-  int active;		/* in fdset */
119*4882a593Smuzhiyun-  int *condpos;		/* only active if condpos - condneg > 0 */
120*4882a593Smuzhiyun-  int *condneg;
121*4882a593Smuzhiyun-};
122*4882a593Smuzhiyun-
123*4882a593Smuzhiyun-#define EV_TIMEOUT	0
124*4882a593Smuzhiyun-#define EV_READ		1
125*4882a593Smuzhiyun-#define EV_WRITE	2
126*4882a593Smuzhiyun-#define EV_ALWAYS	3
127*4882a593Smuzhiyundiff --git a/screen.h b/screen.h
128*4882a593Smuzhiyunindex 603ca3f..34238c8 100644
129*4882a593Smuzhiyun--- a/screen.h
130*4882a593Smuzhiyun+++ b/screen.h
131*4882a593Smuzhiyun@@ -43,7 +43,7 @@
132*4882a593Smuzhiyun #include "osdef.h"
133*4882a593Smuzhiyun
134*4882a593Smuzhiyun #include "ansi.h"
135*4882a593Smuzhiyun-#include "sched.h"
136*4882a593Smuzhiyun+#include "eventqueue.h"
137*4882a593Smuzhiyun #include "acls.h"
138*4882a593Smuzhiyun #include "comm.h"
139*4882a593Smuzhiyun #include "layer.h"
140*4882a593Smuzhiyun--
141*4882a593Smuzhiyun1.8.4.5
142*4882a593Smuzhiyun
143