1 |
786 |
skrzyp |
2012-03-08 Sergei Gavrikov
|
2 |
|
|
|
3 |
|
|
* src/mqueue.cxx: Fix compiler warnings about variables that are set
|
4 |
|
|
but not used.
|
5 |
|
|
* tests/signal2.c: Ditto.
|
6 |
|
|
|
7 |
|
|
2010-02-08 Jay Foster
|
8 |
|
|
|
9 |
|
|
* src/signal.cxx (pthread_kill): Corrected return value for
|
10 |
|
|
pthread_kill() to match POSIX standard.
|
11 |
|
|
|
12 |
|
|
2009-03-25 John Dallaway
|
13 |
|
|
|
14 |
|
|
* src/signal.cxx (pause): Revert change of 2006-07-18 pending
|
15 |
|
|
updating of the signal1, signal3 and timer1 tests.
|
16 |
|
|
[ Bugzilla 1000689, 1000690 ]
|
17 |
|
|
|
18 |
|
|
2008-03-28 John Dallaway
|
19 |
|
|
|
20 |
|
|
* tests/tm_basic.cxx: Rename test to tm_posix.cxx.
|
21 |
|
|
* tests/mqueue1.c: Rename test to pmqueue1.c.
|
22 |
|
|
* tests/mqueue2.c: Rename test to pmqueue2.c.
|
23 |
|
|
* tests/mutex3.c: Rename test to pmutex3.c.
|
24 |
|
|
* cdl/posix.cdl: Accommodate the above renaming. Test names must be
|
25 |
|
|
globally unique.
|
26 |
|
|
|
27 |
|
|
2007-06-12 Richard.Yuan
|
28 |
|
|
|
29 |
|
|
* src/except.cxx (install_handlers): Fixed typo. Bug #1000373
|
30 |
|
|
|
31 |
|
|
2006-07-18 Jonathan Larmour
|
32 |
|
|
|
33 |
|
|
* src/signal.cxx (pause): Although already POSIX compliant, if we wait
|
34 |
|
|
for all signals, behaviour is more Linux-like.
|
35 |
|
|
|
36 |
|
|
2006-06-13 Dan Jakubiec
|
37 |
|
|
|
38 |
|
|
* src/time.cxx: (nanosleep): Fixed to return EINTR when it is
|
39 |
|
|
interrupted by a signal. This in turn fixed sleep() to return the
|
40 |
|
|
number of unelapsed seconds when interrupted by a signal.
|
41 |
|
|
|
42 |
|
|
2006-06-12 Klaas Gadeyne
|
43 |
|
|
|
44 |
|
|
* src/pthread.cxx (pthread_create): name is only defined if
|
45 |
|
|
CYGVAR_KERNEL_THREADS_NAME is set to 1
|
46 |
|
|
|
47 |
|
|
2005-10-23 Andrew Lunn
|
48 |
|
|
2005-10-18 Alexander Neundorf
|
49 |
|
|
|
50 |
|
|
* src/time.cxx: add gettimeofday() implementation
|
51 |
|
|
* cdl/posix.cdl: make some descriptions a bit more verbose. move
|
52 |
|
|
mutex.cxx into its own component (CYGPKG_POSIX_PTHREAD_MUTEX).
|
53 |
|
|
move compilation of mqueue.cxx into the CYGPKG_POSIX_MQUEUES
|
54 |
|
|
component. Fixed the tests so that only the ones which stand a
|
55 |
|
|
chance of compling are compiled.
|
56 |
|
|
* include/sys/time.h (new): Header file which implements sys/time.h
|
57 |
|
|
* include/pthread.h: Include time.h for struct timespec
|
58 |
|
|
* include/mutex.h: Include time.h for struct timespec
|
59 |
|
|
|
60 |
|
|
2004-10-01 Oyvind Harboe
|
61 |
|
|
|
62 |
|
|
* src/signal.cxx: place the CYGBLD_ATTRIB_INIT_PRI such that it
|
63 |
|
|
compiles for gcc 3.4.2 which is more picky about its placement.
|
64 |
|
|
|
65 |
|
|
2003-12-02 Sandeep
|
66 |
|
|
|
67 |
|
|
* src/mqueue.cxx (new): define a placement new instead of using
|
68 |
|
|
|
69 |
|
|
2003-11-19 Rickard Westman
|
70 |
|
|
|
71 |
|
|
* src/mqueue.cxx: Fix problem with mq_timedsend() and
|
72 |
|
|
mq_timedreceive() timing out with zero timeouts even when there is
|
73 |
|
|
room in the queue.
|
74 |
|
|
|
75 |
|
|
2003-11-17 Dan Jakubiec
|
76 |
|
|
|
77 |
|
|
* src/pthread.cxx (pthread_exit): Added code to disable cancellation
|
78 |
|
|
requests during thread exit. This allows thread cleanup handlers
|
79 |
|
|
to issue system calls when cleaning up thread resources.
|
80 |
|
|
|
81 |
|
|
2003-06-18 Jonathan Larmour
|
82 |
|
|
|
83 |
|
|
* src/pthread.cxx (pthread_self_info): Just add some comments so
|
84 |
|
|
no-one's tempted to uncomment assert.
|
85 |
|
|
(pthread_create): Verify that self is a valid POSIX thread when
|
86 |
|
|
needed.
|
87 |
|
|
|
88 |
|
|
2003-03-20 Mark Salter
|
89 |
|
|
|
90 |
|
|
* include/pthread.h: Avoid conflict with recently introduced gcc
|
91 |
|
|
__thread keyword.
|
92 |
|
|
|
93 |
|
|
2003-03-13 Bart Veer
|
94 |
|
|
|
95 |
|
|
* include/export.h: Only export signal-related functions if
|
96 |
|
|
CYGPKG_POSIX_SIGNALS is enabled.
|
97 |
|
|
|
98 |
|
|
2003-03-04 Gary Thomas
|
99 |
|
|
|
100 |
|
|
* include/pthread.h: Rework prototypes to minimize namespace problems.
|
101 |
|
|
|
102 |
|
|
2003-03-03 Jonathan Larmour
|
103 |
|
|
|
104 |
|
|
* tests/signal2.c (cause_illegal_access): PowerPC only generates
|
105 |
|
|
alignment exceptions in little-endian mode, so make that a special
|
106 |
|
|
case.
|
107 |
|
|
|
108 |
|
|
* tests/mutex3.c: Include POSIX headers before feature tests to
|
109 |
|
|
prevent spurious CYG_TEST_NA.
|
110 |
|
|
|
111 |
|
|
2003-02-24 Jonathan Larmour
|
112 |
|
|
|
113 |
|
|
* doc/posix.sgml: Expunge EL/IX. Dead standard.
|
114 |
|
|
* cdl/posix.cdl: Add doc link.
|
115 |
|
|
|
116 |
|
|
2003-02-13 Jonathan Larmour
|
117 |
|
|
|
118 |
|
|
* src/mutex.cxx: Include sched.hxx for scheduler lock/unlock primitives.
|
119 |
|
|
Reported by Jani Monoses.
|
120 |
|
|
|
121 |
|
|
2003-02-10 Gary Thomas
|
122 |
|
|
|
123 |
|
|
* tests/signal3.c (main): Reorg code so it builds with older GCC.
|
124 |
|
|
|
125 |
|
|
2003-01-31 Nick Garnett
|
126 |
|
|
|
127 |
|
|
* src/time.cxx (alarm_action): Added call to
|
128 |
|
|
cyg_posix_signal_sigwait() to wake up any sigwait()ing threads.
|
129 |
|
|
|
130 |
|
|
* src/signal.cxx (cyg_posix_signal_sigwait): Added this function
|
131 |
|
|
to export access to signal_sigwait conditional variable.
|
132 |
|
|
(sigtimedwait): Added call to cyg_posix_timer_asr() to allow timer
|
133 |
|
|
signals to be delivered here.
|
134 |
|
|
|
135 |
|
|
* src/pprivate.h: Added prototype for cyg_posix_signal_sigwait().
|
136 |
|
|
|
137 |
|
|
* cdl/posix.cdl:
|
138 |
|
|
* tests/signal3.c: Added this program to test interaction of
|
139 |
|
|
timers and signals, particularly sigwait(). Based on a test
|
140 |
|
|
program from N.Suresh .
|
141 |
|
|
|
142 |
|
|
2003-01-20 Jonathan Larmour
|
143 |
|
|
|
144 |
|
|
* src/signal.cxx (cyg_posix_deliver_signals): silence warning.
|
145 |
|
|
|
146 |
|
|
* src/time.cxx (cyg_timespec_to_ticks): Remove use of default arg in
|
147 |
|
|
definition.
|
148 |
|
|
|
149 |
|
|
2003-01-18 Jonathan Larmour
|
150 |
|
|
|
151 |
|
|
* src/mqueue.cxx: Fix multi-line string literal warning.
|
152 |
|
|
|
153 |
|
|
2003-01-13 Jonathan Larmour
|
154 |
|
|
|
155 |
|
|
* doc/posix.sgml: Document them.
|
156 |
|
|
|
157 |
|
|
* src/mqueue.cxx (mq_timedreceive): Make fully compliant by dealing
|
158 |
|
|
with bogus timeouts.
|
159 |
|
|
(mq_timedsend): Ditto.
|
160 |
|
|
|
161 |
|
|
2003-01-13 Dmitriy Korovkin
|
162 |
|
|
|
163 |
|
|
* src/mqueue.cxx (mq_timedsend): New function. Implementing POSIX
|
164 |
|
|
1003.1d draft definition.
|
165 |
|
|
(mq_timedreceive): Ditto.
|
166 |
|
|
|
167 |
|
|
2002-12-10 Wade Jensen
|
168 |
|
|
2002-12-10 Jonathan Larmour
|
169 |
|
|
|
170 |
|
|
* src/mutex.cxx (pthread_cond_timedwait): Initialize clock converters
|
171 |
|
|
only once ever.
|
172 |
|
|
|
173 |
|
|
2002-11-26 Nick Garnett
|
174 |
|
|
|
175 |
|
|
* src/signal.cxx: Changed the three routines added in the last
|
176 |
|
|
change so that they can be called safely from non-POSIX threads.
|
177 |
|
|
|
178 |
|
|
2002-11-10 Nick Garnett
|
179 |
|
|
|
180 |
|
|
* src/signal.cxx: Added three exportable routines that may be used
|
181 |
|
|
by other packages to manipulate the signal mask, test for
|
182 |
|
|
deliverable signals, and have signals delivered at controlled
|
183 |
|
|
points.
|
184 |
|
|
|
185 |
|
|
* include/export.h: Added macros to export signal mask management,
|
186 |
|
|
detection and delivery to other packages.
|
187 |
|
|
|
188 |
|
|
2002-11-05 Jonathan Larmour
|
189 |
|
|
|
190 |
|
|
* tests/tm_basic.cxx: Use for diag_printf
|
191 |
|
|
prototype.
|
192 |
|
|
|
193 |
|
|
2002-05-23 Jesper Skov
|
194 |
|
|
|
195 |
|
|
* cdl/posix.cdl: Don't build tests using signals when posix
|
196 |
|
|
signals are disabled.
|
197 |
|
|
|
198 |
|
|
2002-05-21 Jesper Skov
|
199 |
|
|
|
200 |
|
|
* tests/mutex3.c: Added an NA check.
|
201 |
|
|
|
202 |
|
|
2002-04-09 Jonathan Larmour
|
203 |
|
|
|
204 |
|
|
* src/signal.cxx (cyg_deliver_signals): Don't assert here for an
|
205 |
|
|
unhandled signal (unless there's no _exit). Trace it though.
|
206 |
|
|
|
207 |
|
|
2002-04-08 Jonathan Larmour
|
208 |
|
|
|
209 |
|
|
* src/sem.cxx (sem_getvalue): return 0, and put value in *sval.
|
210 |
|
|
|
211 |
|
|
2002-04-03 Jonathan Larmour
|
212 |
|
|
|
213 |
|
|
* cdl/posix.cdl: Allow clocks to be configured again.
|
214 |
|
|
|
215 |
|
|
2002-03-05 Jesper Skov
|
216 |
|
|
|
217 |
|
|
* src/pprivate.h: Correct conditional declaration of timespec
|
218 |
|
|
functions.
|
219 |
|
|
|
220 |
|
|
* src/sched.cxx (sched_rr_get_interval): Return ENOSYS when
|
221 |
|
|
CYGPKG_POSIX_CLOCKS disabled.
|
222 |
|
|
|
223 |
|
|
2002-02-27 Robin Farine
|
224 |
|
|
|
225 |
|
|
* src/pthread.cxx (pthread_exit): While running thread static
|
226 |
|
|
storage destructors, set the thread's value associated with the
|
227 |
|
|
current key to NULL before invoking the destructor.
|
228 |
|
|
|
229 |
|
|
2002-02-14 Nick Garnett
|
230 |
|
|
|
231 |
|
|
* doc/posix.sgml: Generally fixed up and reformatted to make this
|
232 |
|
|
file readable by mere humans. Some omissions and outdated
|
233 |
|
|
information fixed, but not substantially changed from the
|
234 |
|
|
original.
|
235 |
|
|
|
236 |
|
|
* cdl/posix.cdl: Changed some definitions and dependencies so that
|
237 |
|
|
disabling the timers does not disable threads too. This was
|
238 |
|
|
largely a consequence of trying to document the behaviour of these
|
239 |
|
|
options.
|
240 |
|
|
|
241 |
|
|
2002-02-14 Jonathan Larmour
|
242 |
|
|
|
243 |
|
|
* doc/posix.sgml: New file, originally accompanied by this ChangeLog:
|
244 |
|
|
2001-12-22 Jonathan Larmour
|
245 |
|
|
|
246 |
|
|
* ecos-elix.sgml: Do a minor cleanup of the function prototype
|
247 |
|
|
layouts.
|
248 |
|
|
Should be done better than this, but this is at least not
|
249 |
|
|
_completely_ wrong any more.
|
250 |
|
|
Also several more layout problems due to incorrect tags fixed.
|
251 |
|
|
|
252 |
|
|
2001-12-07 Jonathan Larmour
|
253 |
|
|
|
254 |
|
|
* ecos-elix.sgml: Add getcwd as supported now.
|
255 |
|
|
|
256 |
|
|
2001-12-06 Jonathan Larmour
|
257 |
|
|
|
258 |
|
|
* ecos-elix.sgml: Created from old framemaker version.
|
259 |
|
|
|
260 |
|
|
2002-01-21 Jonathan Larmour
|
261 |
|
|
|
262 |
|
|
* src/sched.cxx (sched_get_priority_min): Don't allow idle thread
|
263 |
|
|
priority as a valid priority.
|
264 |
|
|
Case #106952.
|
265 |
|
|
|
266 |
|
|
2001-12-11 Nick Garnett
|
267 |
|
|
|
268 |
|
|
* tests/mqueue2.c (cyg_user_start): Added CYG_TEST_INIT() to
|
269 |
|
|
NOTAPPLICABLE variant, otherwise the order of breakpoints are all
|
270 |
|
|
wrong and the testfarm registers a failure.
|
271 |
|
|
|
272 |
|
|
2001-11-06 Gary Thomas
|
273 |
|
|
|
274 |
|
|
* include/muttypes.h: Need configuration info,
|
275 |
|
|
otherwise structures defined here could have the wrong size.
|
276 |
|
|
|
277 |
|
|
2001-10-25 I-Jui Sung
|
278 |
|
|
|
279 |
|
|
* src/mqueue.cxx (do_mq_unlink): Nullify table entries' mq as this
|
280 |
|
|
is used by mq_open to see if the entry is used.
|
281 |
|
|
|
282 |
|
|
2001-10-11 Jesper Skov
|
283 |
|
|
|
284 |
|
|
* tests/mutex3.c: Fixed warning.
|
285 |
|
|
(new_thread): Fixed allocation: increase counter
|
286 |
|
|
before starting threads which have been allocated resources.
|
287 |
|
|
|
288 |
|
|
* tests/signal2.c (cause_illegal_access): Fix warning.
|
289 |
|
|
|
290 |
|
|
2001-10-10 Jesper Skov
|
291 |
|
|
|
292 |
|
|
* cdl/posix.cdl: Only build sem.cxx when the semaphores component
|
293 |
|
|
is enabled.
|
294 |
|
|
|
295 |
|
|
2001-10-09 Jonathan Larmour
|
296 |
|
|
|
297 |
|
|
* src/pprivate.h (pthread_info): Conditionalize signal specific
|
298 |
|
|
members. Conditionalize declaration of
|
299 |
|
|
cyg_posix_pthread_release_thread().
|
300 |
|
|
|
301 |
|
|
* cdl/posix.cdl (CYGPKG_POSIX_CLOCKS): new option to separately
|
302 |
|
|
configure posix clocks from timers.
|
303 |
|
|
(CYGPKG_POSIX_TIMERS): require clocks and signals.
|
304 |
|
|
|
305 |
|
|
* include/time.h: Make proper ISO C. Conditionalize on
|
306 |
|
|
CYGPKG_POSIX_TIMERS correctly wrt the above change.
|
307 |
|
|
|
308 |
|
|
* src/pthread.cxx (posix_asr): Call signal and timer subsystems
|
309 |
|
|
conditionally.
|
310 |
|
|
|
311 |
|
|
* src/pthread.cxx (pthread_reap): Don't destroy signal handling
|
312 |
|
|
fields if there is no signal handling subsystem.
|
313 |
|
|
(cyg_posix_pthread_release_thread): Conditionalize on signals.
|
314 |
|
|
(pthread_create): Init signal subsys conditionally.
|
315 |
|
|
|
316 |
|
|
* src/signal.cxx (sleep): Move to...
|
317 |
|
|
|
318 |
|
|
* src/time.cxx: ...here.
|
319 |
|
|
Conditionalize throughout depending on whether it's POSIX clocks
|
320 |
|
|
or more specifically POSIX timers.
|
321 |
|
|
(nanosleep): Use PTHREAD_TESTCANCEL() not pthread_testcancel().
|
322 |
|
|
Get current thread from kernel not pthreads to remove pthread
|
323 |
|
|
dependency.
|
324 |
|
|
|
325 |
|
|
2001-10-09 Jesper Skov
|
326 |
|
|
|
327 |
|
|
* tests/signal2.c: Also do NA check for signals.
|
328 |
|
|
|
329 |
|
|
2001-10-01 Jonathan Larmour
|
330 |
|
|
|
331 |
|
|
* src/mqueue.cxx (mq_open): Conditionalize use of sigev correctly.
|
332 |
|
|
(mq_close): Similarly.
|
333 |
|
|
|
334 |
|
|
2001-09-28 Jonathan Larmour
|
335 |
|
|
|
336 |
|
|
* cdl/pthread.cdl (CYGNUM_POSIX_MAIN_DEFAULT_PRIORITY): Clarify
|
337 |
|
|
POSIX thread priority description.
|
338 |
|
|
|
339 |
|
|
2001-09-28 Jesper Skov
|
340 |
|
|
|
341 |
|
|
* cdl/pthread.cdl: Changed default priority of POSIX main to
|
342 |
|
|
16. This allows service threads (such as DHCP thread) to run when
|
343 |
|
|
started from main().
|
344 |
|
|
|
345 |
|
|
2001-09-10 Jonathan Larmour
|
346 |
|
|
|
347 |
|
|
* include/pthread.h: Separate mutex and condvar API into separate
|
348 |
|
|
header file to fix configury problems.
|
349 |
|
|
* include/mutex.h: New file for the above.
|
350 |
|
|
* cdl/posix.cdl: provide the correct configury for the isoinfra
|
351 |
|
|
package to include the above file.
|
352 |
|
|
* cdl/pthread.cdl: Move _POSIX_PTHREAD_PRIO_INHERIT and
|
353 |
|
|
_POSIX_THREAD_PRIO_PROTECT to cdl/posix.cdl.
|
354 |
|
|
|
355 |
|
|
2001-09-07 Jonathan Larmour
|
356 |
|
|
|
357 |
|
|
* src/sem.cxx (sem_trywait): Actually use the return value.
|
358 |
|
|
|
359 |
|
|
* src/sched.cxx (sched_get_priority_max): Use MAX not MIN
|
360 |
|
|
(sched_get_priority_min): Use MIN not MAX.
|
361 |
|
|
|
362 |
|
|
2001-09-06 Jesper Skov
|
363 |
|
|
|
364 |
|
|
* cdl/posix.cdl: Moved signal implements statements to the
|
365 |
|
|
CYGPKG_POSIX_SIGNALS component.
|
366 |
|
|
|
367 |
|
|
2001-08-06 Jonathan Larmour
|
368 |
|
|
|
369 |
|
|
* cdl/posix.cdl: Reorganize dependencies so that signals, timers
|
370 |
|
|
and pthreads really can be disabled, and the relevant files don't
|
371 |
|
|
get built.
|
372 |
|
|
Build new mutex.cxx file.
|
373 |
|
|
Remove duplicate CYGPKG_POSIX_SCHED dependency for pthreads.
|
374 |
|
|
|
375 |
|
|
* include/limits.h: Don't include irrelevant header dependencies.
|
376 |
|
|
|
377 |
|
|
* include/muttypes.h: New type defining mutex/cond var types separately
|
378 |
|
|
from other pthread types.
|
379 |
|
|
|
380 |
|
|
* include/types.h: Remove mutex/cond var types.
|
381 |
|
|
|
382 |
|
|
* include/signal.h: Conditionalize on CYGPKG_POSIX_SIGNALS
|
383 |
|
|
|
384 |
|
|
* include/sigsetjmp.h: Don't include irrelevant header dependencies.
|
385 |
|
|
Rewrite sigsetjmp in a much more compiler friendly (and readable)
|
386 |
|
|
way with less type punning.
|
387 |
|
|
|
388 |
|
|
* src/misc.cxx: Don't include sysconf cases when pthreads or
|
389 |
|
|
CYGPKG_POSIX_TIMERS not enabled.
|
390 |
|
|
|
391 |
|
|
* src/mutex.cxx: New file, broken out of pthreads.cxx, as most
|
392 |
|
|
of it is not fixed to the pthreads implementation, and I've fixed
|
393 |
|
|
the bits that were too tied to it.
|
394 |
|
|
|
395 |
|
|
* src/pprivate.h: Conditionalize definitions that are specific
|
396 |
|
|
to CYGPKG_POSIX_PTHREAD. Ditto for prototypes for CYGPKG_POSIX_SIGNALS
|
397 |
|
|
and CYGPKG_POSIX_TIMERS. Move PTHREAD_ENTRY/RETURN etc. macros
|
398 |
|
|
here so they can be used throughout the package.
|
399 |
|
|
|
400 |
|
|
* src/pthread.cxx: Remove mutex/cond var implementation, and
|
401 |
|
|
entry/return macros, as per above.
|
402 |
|
|
|
403 |
|
|
* src/signal.cxx (cyg_sigqueue): Don't just set non-queueable signals
|
404 |
|
|
pending - also forcibly wake up any blocked threads.
|
405 |
|
|
(siglongjmp): Use new layout of sigjmp_buf.
|
406 |
|
|
|
407 |
|
|
* tests/mutex3.c:
|
408 |
|
|
* tests/pthread1.c:
|
409 |
|
|
* tests/pthread2.c:
|
410 |
|
|
* tests/pthread3.c:
|
411 |
|
|
* tests/signal1.c:
|
412 |
|
|
* tests/sigsetjmp.c:
|
413 |
|
|
* tests/timer1.c:
|
414 |
|
|
* tests/tm_basic.cxx:
|
415 |
|
|
Correct configuration dependencies, and do NA appropriately.
|
416 |
|
|
|
417 |
|
|
2001-08-03 Nick Garnett
|
418 |
|
|
|
419 |
|
|
Imported from a development branch:
|
420 |
|
|
|
421 |
|
|
2001-06-27 Nick Garnett
|
422 |
|
|
|
423 |
|
|
* tests/pthread3.c:
|
424 |
|
|
Modified the loop that waits for the threads to get going so that
|
425 |
|
|
it will function correctly in an SMP system, where the threads
|
426 |
|
|
will run in parallel.
|
427 |
|
|
|
428 |
|
|
* tests/mutex3.c: Disabled this test for SMP systems. It depends
|
429 |
|
|
too much on predicting the priority-driven execution order of the
|
430 |
|
|
threads. In an SMP system, some threads will run in parallel and
|
431 |
|
|
falsify the assumptions.
|
432 |
|
|
|
433 |
|
|
2001-05-25 Nick Garnett
|
434 |
|
|
|
435 |
|
|
* src/signal.cxx (siglongjmp): Minor change to satisfy latest C++
|
436 |
|
|
compiler.
|
437 |
|
|
|
438 |
|
|
2001-06-14 Jonathan Larmour
|
439 |
|
|
|
440 |
|
|
* src/pthread.cxx (pthread_attr_setstacksize): Correct stack
|
441 |
|
|
size assertion.
|
442 |
|
|
|
443 |
|
|
2001-06-12 Jonathan Larmour
|
444 |
|
|
|
445 |
|
|
* src/pthread.cxx (MAIN_DEFAULT_STACK_SIZE): Define to use at
|
446 |
|
|
least PTHREAD_STACK_MIN for main_stack.
|
447 |
|
|
|
448 |
|
|
2001-05-01 Nick Garnett
|
449 |
|
|
|
450 |
|
|
[x86 branch]
|
451 |
|
|
* tests/signal2.c (cause_illegal_access): Added code for I386
|
452 |
|
|
architecture to provoke General Protection Fault.
|
453 |
|
|
|
454 |
|
|
* src/except.cxx: Removed some extraneous diag_printf()s.
|
455 |
|
|
|
456 |
|
|
2001-04-25 Bart Veer
|
457 |
|
|
|
458 |
|
|
* tests/tm_basic.cxx:
|
459 |
|
|
This test is now functional on the synthetic target.
|
460 |
|
|
|
461 |
|
|
2001-04-20 Jonathan Larmour
|
462 |
|
|
|
463 |
|
|
* src/time.cxx (cyg_ticks_to_timespec): Actually don't bother
|
464 |
|
|
with working out seconds using convertors. Instead just divide
|
465 |
|
|
down ns from a long long.
|
466 |
|
|
|
467 |
|
|
2001-04-19 Jonathan Larmour
|
468 |
|
|
|
469 |
|
|
* src/time.cxx (cyg_ticks_to_timespec): Clock convertors round off,
|
470 |
|
|
so adjust timespec accordingly.
|
471 |
|
|
|
472 |
|
|
2001-02-14 Jonathan Larmour
|
473 |
|
|
|
474 |
|
|
* include/pthread.h: Remove pthread_canceled() and
|
475 |
|
|
pthread_testcancel_unlock().
|
476 |
|
|
|
477 |
|
|
* src/pthread.cxx: Ditto.
|
478 |
|
|
(pthread_join): Restructure to have function exit only at function end
|
479 |
|
|
(pthread_cond_timedwait): Check for timeouts and return ETIMEDOUT
|
480 |
|
|
|
481 |
|
|
* src/signal.cxx (sigtimedwait): Restructure cancellation testing
|
482 |
|
|
|
483 |
|
|
* src/time.cxx (nanosleep): test for cancellation at the end of the
|
484 |
|
|
function to keep Nick happy ;).
|
485 |
|
|
|
486 |
|
|
2001-02-11 Jonathan Larmour
|
487 |
|
|
|
488 |
|
|
* include/pthread.h: Add new pthread_testcancel_unlock and
|
489 |
|
|
pthread_canceled functions as eCos extensions.
|
490 |
|
|
Rename existing pthread_canceled variable to pthread_cancelled_dummy_var
|
491 |
|
|
|
492 |
|
|
* src/pthread.cxx (pthread_canceled): New function to interrogate if
|
493 |
|
|
current thread has deferred cancel pending
|
494 |
|
|
(pthread_testcancel_unlock): New function. Like testcancel, but unlocks
|
495 |
|
|
a mutex before exitting the thread.
|
496 |
|
|
(checkforcancel): New internal function
|
497 |
|
|
(pthread_join): Add thread cancellation checks.
|
498 |
|
|
(pthread_cond_wait): Ditto.
|
499 |
|
|
(pthread_cond_timedwait): Ditto.
|
500 |
|
|
(pthread_testcancel): Use checkforcancel()
|
501 |
|
|
|
502 |
|
|
* src/sem.cxx (sem_wait): Add thread cancellation checks
|
503 |
|
|
* src/signal.cxx (sigtimedwait): Ditto.
|
504 |
|
|
Also make compilation of this file conditional on CYGPKG_POSIX_SIGNALS
|
505 |
|
|
* src/time.cxx (nanosleep): Ditto.
|
506 |
|
|
Also make compilation of this file conditional on CYGPKG_POSIX_TIMERS
|
507 |
|
|
|
508 |
|
|
* cdl/posix.cdl (CYGPKG_POSIX_TIMERS): Implements POSIX timer ops.
|
509 |
|
|
Add explicit kernel and pthread dependencies.
|
510 |
|
|
|
511 |
|
|
* tests/sigsetjmp.c (pthread_entry1): Fix incorrect thread no. output
|
512 |
|
|
|
513 |
|
|
* tests/pthread3.c: Add deferred cancellation test.
|
514 |
|
|
|
515 |
|
|
2001-01-11 Nick Garnett
|
516 |
|
|
|
517 |
|
|
* src/pthread.cxx (pthread_testcancel): Added test for self !=
|
518 |
|
|
NULL in case this gets called from a non-pthread.
|
519 |
|
|
|
520 |
|
|
2000-12-22 Jonathan Larmour
|
521 |
|
|
|
522 |
|
|
* src/pthread.cxx (pthread_measure_stack_usage): New function
|
523 |
|
|
to measure stack usage.
|
524 |
|
|
|
525 |
|
|
* include/pthread.h: Prototype it.
|
526 |
|
|
|
527 |
|
|
* cdl/pthread.cdl: remove CYGNUM_POSIX_MAIN_DEFAULT_STACK_SIZE and
|
528 |
|
|
instead implement CYGINT_LIBC_STARTUP_EXTERNAL_INVOKE_MAIN_POSSIBLE
|
529 |
|
|
|
530 |
|
|
* src/pthread.cxx: Use stack size for main from libc_startup package
|
531 |
|
|
to prevent confusion
|
532 |
|
|
(cyg_posix_pthread_start): Likewise
|
533 |
|
|
|
534 |
|
|
2000-12-06 Jonathan Larmour
|
535 |
|
|
|
536 |
|
|
* src/signal.cxx: include unistd.h for _exit
|
537 |
|
|
|
538 |
|
|
2000-11-20 Nick Garnett
|
539 |
|
|
|
540 |
|
|
* src/signal.cxx (cyg_deliver_signals): Added else in code to
|
541 |
|
|
handle SIG_DFL. Otherwise if the SA_SIGINFO bit is set we call the
|
542 |
|
|
signal handler twice!
|
543 |
|
|
|
544 |
|
|
2000-11-07 Jonathan Larmour
|
545 |
|
|
|
546 |
|
|
* src/signal.cxx (cyg_posix_thread_siginit): Add extra thread
|
547 |
|
|
argument so that threads can inherit parent's sigmask.
|
548 |
|
|
|
549 |
|
|
* src/pthread.cxx (pthread_create): Call with parent thread
|
550 |
|
|
|
551 |
|
|
* src/pprivate.h: Change cyg_posix_thread_siginit prototype to take
|
552 |
|
|
parent thread argument
|
553 |
|
|
|
554 |
|
|
* tests/signal1.c: Add more checking of sigwaits, and fix so that it's
|
555 |
|
|
only called when the signal is masked. Check errno values too
|
556 |
|
|
sometimes.
|
557 |
|
|
|
558 |
|
|
2000-11-02 Jonathan Larmour
|
559 |
|
|
|
560 |
|
|
* src/signal.cxx (sigtimedwait): return signal number on success,
|
561 |
|
|
not 0
|
562 |
|
|
(SIGNAL_RETURN_VALUE): New macro for returning from functions with
|
563 |
|
|
valid non-zero returns
|
564 |
|
|
(sigwaitinfo): Pass on sigtimedwait result with SIGNAL_RETURN_VALUE
|
565 |
|
|
macro as it may return the signal number.
|
566 |
|
|
|
567 |
|
|
2000-11-01 Jonathan Larmour
|
568 |
|
|
|
569 |
|
|
* src/signal.cxx (sigtimedwait): Check for SIGALRMs as a special
|
570 |
|
|
case when looping as it won't have been set pending if it was
|
571 |
|
|
masked.
|
572 |
|
|
(check_sigalarm): New function extracted from the posix signal ASR
|
573 |
|
|
(sigalrm_action): Unconditionally wake up threads waiting in sigwait
|
574 |
|
|
so that they can check for pending SIGALRMs even if they were
|
575 |
|
|
masked.
|
576 |
|
|
(cyg_deliver_signals): Handle SIG_DFL signals properly, and check
|
577 |
|
|
for bad signal handlers.
|
578 |
|
|
(cyg_posix_signal_start): Initialize default signal actions to SIG_DFL
|
579 |
|
|
|
580 |
|
|
2000-10-27 Jesper Skov
|
581 |
|
|
|
582 |
|
|
* tests/signal2.c (cause_illegal_access): Don't loop forever.
|
583 |
|
|
|
584 |
|
|
2000-10-16 Jonathan Larmour
|
585 |
|
|
|
586 |
|
|
* include/sigsetjmp.h (sigsetjmp): Various fixes to make portable
|
587 |
|
|
across all HALs (by avoiding CYGARC_JMP_BUF_SIZE) and remove warnings.
|
588 |
|
|
* src/signal.cxx (siglongjmp): Likewise
|
589 |
|
|
|
590 |
|
|
2000-10-12 Nick Garnett
|
591 |
|
|
|
592 |
|
|
* include/sigsetjmp.h: Added this header to define
|
593 |
|
|
sigjmp_buf,sigsetjmp() and siglongjmp().
|
594 |
|
|
|
595 |
|
|
* cdl/posix.cdl:
|
596 |
|
|
Added support for providing sigsetjmp implementation and header.
|
597 |
|
|
Added sigsetjmp test.
|
598 |
|
|
|
599 |
|
|
* src/signal.cxx: Added siglongjmp().
|
600 |
|
|
|
601 |
|
|
* tests/sigsetjmp.c: Added this test for sigsetjmp(), siglongjmp()
|
602 |
|
|
functionality. This is also a test for longjmping out of signal
|
603 |
|
|
handlers.
|
604 |
|
|
|
605 |
|
|
* tests/signal2.c:
|
606 |
|
|
Ifdeffed around cause_* functions to avoid compiler warnings when
|
607 |
|
|
they are not needed.
|
608 |
|
|
Changed CYG_TEST_NA() calls to CYG_TEST_INFO() and changed
|
609 |
|
|
CYG_TEST_FINISH() to CYG_TEST_PASS_FINISH(). With the _NA's there,
|
610 |
|
|
the first unsupported exception just terminates the program, and
|
611 |
|
|
does not give any subsequent supported ones a chance to run.
|
612 |
|
|
|
613 |
|
|
2000-10-12 Jesper Skov
|
614 |
|
|
|
615 |
|
|
* tests/timer1.c (main): Fix exit check.
|
616 |
|
|
|
617 |
|
|
2000-10-11 Nick Garnett
|
618 |
|
|
|
619 |
|
|
* src/pthread.cxx: Fixed cyg_posix_pthread_release_thread() to
|
620 |
|
|
work for _DETACHED threads as well as for _RUNNING ones. Also
|
621 |
|
|
fixed a bug in test to decrement counter in this routine.
|
622 |
|
|
|
623 |
|
|
* src/pprivate.h: Added note about retaining numerical order of
|
624 |
|
|
PTHREAD_STATE_* defines.
|
625 |
|
|
|
626 |
|
|
* tests/timer1.c: Fixed some bugs of the how-did-it-ever-work
|
627 |
|
|
variety.
|
628 |
|
|
|
629 |
|
|
2000-10-05 Nick Garnett
|
630 |
|
|
|
631 |
|
|
* src/misc.cxx:
|
632 |
|
|
Added a set of compatibility functions to aid portability and
|
633 |
|
|
improve standards compliance.
|
634 |
|
|
Added cyg_posix_function_[start|finish] to set up and terminate
|
635 |
|
|
POSIX API functionality wrt signal and cancellation behaviour.
|
636 |
|
|
(Lots more to do here).
|
637 |
|
|
|
638 |
|
|
* include/export.h:
|
639 |
|
|
Added this file to contain definitions that can be exported from
|
640 |
|
|
the POSIX package to others.
|
641 |
|
|
|
642 |
|
|
* src/pprivate.h: Added include of export.h
|
643 |
|
|
|
644 |
|
|
2000-09-11 Jonathan Larmour
|
645 |
|
|
|
646 |
|
|
* include/limits.h (OPEN_MAX): Don't define here - let FS infra do
|
647 |
|
|
that.
|
648 |
|
|
(LINK_MAX): Ditto
|
649 |
|
|
(NAME_MAX): Ditto
|
650 |
|
|
(PATH_MAX): Ditto
|
651 |
|
|
|
652 |
|
|
2000-09-04 Nick Garnett
|
653 |
|
|
|
654 |
|
|
* tests/pthread2.c:
|
655 |
|
|
* tests/pthread3.c:
|
656 |
|
|
Fixed bug in calculation of thread stack addresses.
|
657 |
|
|
|
658 |
|
|
* src/misc.cxx (sysconf): Change zero returns to -1 when a feature
|
659 |
|
|
is not supported.
|
660 |
|
|
|
661 |
|
|
2000-08-08 Jonathan Larmour
|
662 |
|
|
|
663 |
|
|
* include/limits.h: Don't define SSIZE_MAX here, leave it to the
|
664 |
|
|
isoinfra default.
|
665 |
|
|
|
666 |
|
|
2000-07-27 Jonathan Larmour
|
667 |
|
|
|
668 |
|
|
* tests/signal2.c: NA if no setjmp/longjmp
|
669 |
|
|
|
670 |
|
|
2000-07-26 Nick Garnett
|
671 |
|
|
|
672 |
|
|
* include/pthread.h:
|
673 |
|
|
* src/pthread.cxx (pthread_testcancel): Reversed addition of cyg_
|
674 |
|
|
to this symbol.
|
675 |
|
|
|
676 |
|
|
2000-07-25 Jonathan Larmour
|
677 |
|
|
|
678 |
|
|
* src/pthread.cxx: Define main_stack and main_thread as static
|
679 |
|
|
Rename pthread_canceled -> cyg_pthread_canceled - pthread_ may be
|
680 |
|
|
a reserved name space but this makes explicit it is implementation-
|
681 |
|
|
and not standard-defined
|
682 |
|
|
(PTHREAD_ENTRY_VOID): Define for funcs that take no args
|
683 |
|
|
(pthread_testcancel): Call PTHREAD_ENTRY_VOID()
|
684 |
|
|
|
685 |
|
|
* include/pthread.h: Rename pthread_canceled -> cyg_pthread_canceled
|
686 |
|
|
|
687 |
|
|
2000-07-20 Jonathan Larmour
|
688 |
|
|
|
689 |
|
|
* src/pthread.cxx: Use isoinfra to determine presence of malloc()
|
690 |
|
|
Define pthread_malloc() and pthread_free() as inlines
|
691 |
|
|
|
692 |
|
|
* cdl/posix.cdl: Shouldn't define _POSIX_MESSAGE_PASSING at all - that
|
693 |
|
|
happens in isoinfra.
|
694 |
|
|
|
695 |
|
|
2000-07-20 Nick Garnett
|
696 |
|
|
|
697 |
|
|
* cdl/posix.cdl: Added misc.cxx to compile list. Added option to
|
698 |
|
|
define _POSIX_MESSAGE_PASSING. Added configury for utsname
|
699 |
|
|
structure.
|
700 |
|
|
|
701 |
|
|
* include/utsname.h: Added this file to define struct utsname and
|
702 |
|
|
uname() function prototype.
|
703 |
|
|
|
704 |
|
|
* include/mqueue.h: Moved definition of _POSIX_MESSAGE_PASSING to
|
705 |
|
|
CDL.
|
706 |
|
|
|
707 |
|
|
* include/limits.h: Added NGROUPS_MAX definition.
|
708 |
|
|
|
709 |
|
|
* src/pthread.cxx:
|
710 |
|
|
Added support for malloced() thread stacks.
|
711 |
|
|
Added implementations of pthread_mutex_setprioceiling() and
|
712 |
|
|
pthread_mutex_getprioceiling().
|
713 |
|
|
Changed implementations of pthread_mutex_destroy(),
|
714 |
|
|
pthread_mutex_lock() and pthread_mutex_trylock() to conform more
|
715 |
|
|
closely to the standard.
|
716 |
|
|
Changed pthread_key_create() to assign NULL to all valid thread
|
717 |
|
|
slots that correspond to a newly allocated key.
|
718 |
|
|
|
719 |
|
|
* src/pprivate.h: Added freestack and stackmem members to manage
|
720 |
|
|
malloced thread stacks.
|
721 |
|
|
|
722 |
|
|
* src/misc.cxx: Added this file to contain functions that do not
|
723 |
|
|
belong in any other files. Currently contains uname() and
|
724 |
|
|
sysconf().
|
725 |
|
|
|
726 |
|
|
2000-07-19 Jonathan Larmour
|
727 |
|
|
|
728 |
|
|
* src/startup.cxx: Remove unnecessary includes
|
729 |
|
|
Use dummy object constructor to do initialization
|
730 |
|
|
|
731 |
|
|
* cdl/posix.cdl:
|
732 |
|
|
Don't need main.cxx any more
|
733 |
|
|
Build startup.cxx into extras.o (via libextras.a)
|
734 |
|
|
|
735 |
|
|
* cdl/pthread.cdl (CYGPKG_POSIX_MAIN_THREAD):
|
736 |
|
|
Integrate with CYGPKG_LIBC_STARTUP - tell CYGPKG_LIBC_STARTUP to
|
737 |
|
|
let pthreads set up main thread
|
738 |
|
|
|
739 |
|
|
* src/pthread.cxx: Integrate with CYGPKG_LIBC_STARTUP rather than
|
740 |
|
|
calling main() directly.
|
741 |
|
|
Track number of threads waiting to be joined, so we can tell in
|
742 |
|
|
pthread_exit() if this is the last thread, and therefore whether
|
743 |
|
|
to call exit()
|
744 |
|
|
|
745 |
|
|
* src/main.cxx: obsolete, removed
|
746 |
|
|
|
747 |
|
|
2000-07-13 Nick Garnett
|
748 |
|
|
|
749 |
|
|
* src/signal.cxx: Added ISO C compatibility functions signal() and
|
750 |
|
|
raise().
|
751 |
|
|
|
752 |
|
|
2000-06-21 Nick Garnett
|
753 |
|
|
|
754 |
|
|
* src/pthread.cxx: Added for(;;) loop to end of pthread_exit().
|
755 |
|
|
pthread_exit() is marked with the noreturn attribute, and without
|
756 |
|
|
this some compilers generate a call to abort() here in case
|
757 |
|
|
Cyg_Thread::exit() returns. The loop avoids this.
|
758 |
|
|
|
759 |
|
|
2000-06-06 Jonathan Larmour
|
760 |
|
|
|
761 |
|
|
* src/mqueue.cxx (mq_receive): Fix non-portable treatment of mode flags
|
762 |
|
|
(mq_send): Ditto
|
763 |
|
|
* tests/mqueue2.c (main): Ditto
|
764 |
|
|
|
765 |
|
|
2000-05-24 Nick Garnett
|
766 |
|
|
|
767 |
|
|
* tests/pthread2.c: Added this program to test per-thread data
|
768 |
|
|
handling.
|
769 |
|
|
|
770 |
|
|
* tests/pthread3.c: Added this program to test execution of
|
771 |
|
|
cancellation handler.
|
772 |
|
|
|
773 |
|
|
* src/pthread.cxx: Fixed some bugs revealed by new test programs.
|
774 |
|
|
|
775 |
|
|
* cdl/posix.cdl: Added two new pthread tests.
|
776 |
|
|
|
777 |
|
|
2000-05-22 Jonathan Larmour
|
778 |
|
|
|
779 |
|
|
* cdl/posix.cdl (CYGPKG_POSIX): Require
|
780 |
|
|
CYGIMP_KERNEL_SCHED_SORTED_QUEUES
|
781 |
|
|
|
782 |
|
|
2000-05-20 Jonathan Larmour
|
783 |
|
|
|
784 |
|
|
* tests/mqueue1.c (cyg_user_start): Define correctly
|
785 |
|
|
* tests/mqueue2.c (cyg_user_start): Likewise
|
786 |
|
|
|
787 |
|
|
* src/pprivate.h (cyg_sigqueue): Make struct sigevent * arg const since
|
788 |
|
|
it is, and it prevents warnings elsewhere
|
789 |
|
|
* src/signal.cxx (cyg_sigqueue): ditto
|
790 |
|
|
|
791 |
|
|
* tests/signal2.c: Use CYG_TEST_NA, not CYG_TEST_INFO (otherwise
|
792 |
|
|
the test farm may fail the tests because there are no PASSes or NAs)
|
793 |
|
|
|
794 |
|
|
* cdl/posix.cdl (CYGPKG_POSIX): We need errno and error codes, so
|
795 |
|
|
require them
|
796 |
|
|
Move some of the package implements into the components
|
797 |
|
|
Add message queue configuration, build mqueue.cxx and the mqueue1 and
|
798 |
|
|
mqueue2 tests
|
799 |
|
|
Move some calculated options into isoinfra, implemented as interfaces
|
800 |
|
|
so that unistd.h and limits.h can get the values
|
801 |
|
|
|
802 |
|
|
* include/limits.h: Move _POSIX_* macros into isoinfra limits.h
|
803 |
|
|
since they are implementation independent
|
804 |
|
|
|
805 |
|
|
* src/mqueue.cxx: Add POSIX message queue implementation
|
806 |
|
|
* tests/mqueue1.c, tests/mqueue2.c: and tests
|
807 |
|
|
|
808 |
|
|
2000-05-18 Nick Garnett
|
809 |
|
|
|
810 |
|
|
* src/pprivate.h:
|
811 |
|
|
* src/pthread.cxx:
|
812 |
|
|
* src/signal.cxx:
|
813 |
|
|
* src/time.cxx:
|
814 |
|
|
Added prioritization of static kernel objects.
|
815 |
|
|
|
816 |
|
|
2000-05-17 Nick Garnett
|
817 |
|
|
|
818 |
|
|
* src/pthread.cxx:
|
819 |
|
|
To reduce the static memory required by this code, the
|
820 |
|
|
pthread_info structure for a pthread is now allocated in the stack
|
821 |
|
|
memory for that thread, and not in a static table. The table is
|
822 |
|
|
now just an array of pointers. The per-thread data array is now
|
823 |
|
|
also allocated onto the stack only when first required.
|
824 |
|
|
|
825 |
|
|
* include/pthread.h: Removed some redundant code.
|
826 |
|
|
|
827 |
|
|
* include/limits.h: Added PTHREAD_STACK_OVERHEAD to record
|
828 |
|
|
management overhead imposed on POSIX threads stacks. This is added
|
829 |
|
|
to the HAL minimum requirement to generate PTHREAD_STACK_MIN.
|
830 |
|
|
|
831 |
|
|
* src/pprivate.h (pthread_info):
|
832 |
|
|
* include/types.h (pthread_attr_t): Converted a number of integer
|
833 |
|
|
state and boolean fields to bitfields.
|
834 |
|
|
|
835 |
|
|
* cdl/pthread.cdl:
|
836 |
|
|
Added requirement for CYGFUN_KERNEL_THREADS_STACK_LIMIT.
|
837 |
|
|
|
838 |
|
|
2000-05-16 Nick Garnett
|
839 |
|
|
|
840 |
|
|
* include/types.h: Added stacksize_valid to pthread_attr_t
|
841 |
|
|
structure.
|
842 |
|
|
|
843 |
|
|
* include/signal.h:
|
844 |
|
|
Added SI_EXCEPT to mark any signals that were caused by an
|
845 |
|
|
exception. Removed conditions around SIGBUS.
|
846 |
|
|
|
847 |
|
|
* src/startup.cxx (cyg_posix_start):
|
848 |
|
|
Added call to cyg_posix_exception_start().
|
849 |
|
|
|
850 |
|
|
* src/signal.cxx:
|
851 |
|
|
Rearranged cyg_deliver_signals() so that it is possible to
|
852 |
|
|
longjmp() out of a signal handler without leaving signal handling
|
853 |
|
|
code in an inconsistent state.
|
854 |
|
|
Added handling of SIG_IGN in sigaction().
|
855 |
|
|
|
856 |
|
|
* src/pthread.cxx: Added setting and checking of stacksize_valid.
|
857 |
|
|
|
858 |
|
|
* src/pprivate.h: Added cyg_deliver_signals() as an export of
|
859 |
|
|
signal system. Added exports from except.cxx.
|
860 |
|
|
|
861 |
|
|
* src/except.cxx: Added this file to handle delivery of exceptions
|
862 |
|
|
into the POSIX signal mechanism.
|
863 |
|
|
|
864 |
|
|
* cdl/posix.cdl: Added except.cxx to compile list, added signal2
|
865 |
|
|
to tests. Added requirement on kernel exception processing.
|
866 |
|
|
|
867 |
|
|
* tests/tm_basic.cxx: Tidied up a compilation warning.
|
868 |
|
|
|
869 |
|
|
* tests/signal2.c: Added this test for exception signal generation.
|
870 |
|
|
|
871 |
|
|
* tests/mutex3.c: Fixed stupid bug.
|
872 |
|
|
|
873 |
|
|
2000-05-10 Nick Garnett
|
874 |
|
|
|
875 |
|
|
* src/pprivate.h: Added cyg_posix_clock_start() prototype.
|
876 |
|
|
|
877 |
|
|
* src/startup.cxx: Added call to cyg_posix_clock_start().
|
878 |
|
|
|
879 |
|
|
* src/time.cxx: Added startup routine to initialize
|
880 |
|
|
converters. Fixed error result bug in timer_delete().
|
881 |
|
|
|
882 |
|
|
* include/signal.h: Removed some configuration tests which are now
|
883 |
|
|
done in CDL.
|
884 |
|
|
|
885 |
|
|
* cdl/posix.cdl: Added configury for the signals component. Added
|
886 |
|
|
tm_basic to tests.
|
887 |
|
|
|
888 |
|
|
* tests/tm_basic.cxx:
|
889 |
|
|
Added this POSIXized version of the tm_basic test. Note that this
|
890 |
|
|
has not been entirely converted. While the code being tested is
|
891 |
|
|
POSIX, the timing infrastructure remains a mish-mash of kernel,
|
892 |
|
|
KAPI and HAL code.
|
893 |
|
|
|
894 |
|
|
2000-05-04 Nick Garnett
|
895 |
|
|
|
896 |
|
|
* src/time.cxx:
|
897 |
|
|
Many changes to implement the delivery of signals on timer expiry.
|
898 |
|
|
Also added timer_delete().
|
899 |
|
|
|
900 |
|
|
* src/signal.cxx:
|
901 |
|
|
cyg_sigqueue() and cyg_deliver_signals() may now only be called
|
902 |
|
|
from within the context of a POSIX thread, either from an API call
|
903 |
|
|
or an ASR.
|
904 |
|
|
cyg_deliver_signals() can now cope with a signal that has
|
905 |
|
|
SA_SIGINFO set but no signals queued. It also determines
|
906 |
|
|
dynamically whether to lock the signal_mutex.
|
907 |
|
|
cyg_deliver_signals() is no longer called implicitly from
|
908 |
|
|
cyg_sigqueue() - so a number of expicit calls have been added.
|
909 |
|
|
|
910 |
|
|
* src/sched.cxx:
|
911 |
|
|
Added this file to implement scheduling API.
|
912 |
|
|
|
913 |
|
|
* src/pthread.cxx:
|
914 |
|
|
Moved priority translation macros to pprivate.h.
|
915 |
|
|
Removed errno handling, now done in isoinfra package.
|
916 |
|
|
Added iterative calls to per-thread data destructors.
|
917 |
|
|
|
918 |
|
|
* src/pprivate.h:
|
919 |
|
|
Removed error field from pthread_info structure.
|
920 |
|
|
Moved priority translation macros here.
|
921 |
|
|
Removed prototype for cyg_deliver_signals().
|
922 |
|
|
Added prototype for cyg_posix_timer_asr().
|
923 |
|
|
|
924 |
|
|
* include/time.h: Added timer_delete() which was mysteriously
|
925 |
|
|
omitted.
|
926 |
|
|
|
927 |
|
|
* cdl/posix.cdl: Added sched.cxx to compile list and timer1.c to
|
928 |
|
|
tests.
|
929 |
|
|
|
930 |
|
|
* tests/signal1.c:
|
931 |
|
|
* tests/pthread1.c:
|
932 |
|
|
Fixed bug in use of stack sizes.
|
933 |
|
|
|
934 |
|
|
* tests/timer1.c:
|
935 |
|
|
Added test for use of timers.
|
936 |
|
|
|
937 |
|
|
2000-05-02 Jonathan Larmour
|
938 |
|
|
|
939 |
|
|
* include/sched.h: No longer needed - just use the default definition
|
940 |
|
|
in isoinfra
|
941 |
|
|
|
942 |
|
|
* include/errno.h: No longer needed - errno provision now comes from
|
943 |
|
|
CYGPKG_ERROR
|
944 |
|
|
|
945 |
|
|
* include/sys/types.h: Moved to include/types.h
|
946 |
|
|
|
947 |
|
|
* cdl/posix.cdl, cdl/pthread.cdl: Put include files in cyg/posix, and
|
948 |
|
|
configure CYGPKG_ISOINFRA to include the appropriate headers
|
949 |
|
|
|
950 |
|
|
* include/semaphore.h: Don't need to check kernel - including
|
951 |
|
|
pkgconf/kernel.h would already fail
|
952 |
|
|
Give SEM_FAILED a type so casting behaves in C++
|
953 |
|
|
|
954 |
|
|
* include/signal.h: This uses pid_t etc., so include
|
955 |
|
|
Add signal() and raise() prototypes (to allow libc compilation, even
|
956 |
|
|
though they aren't implemented yet)
|
957 |
|
|
|
958 |
|
|
* include/time.h: Remove unnecessary includes. Move clockid_t and
|
959 |
|
|
timer_t definitions here from sys/types.h since this is where the
|
960 |
|
|
standard says they must live.
|
961 |
|
|
|
962 |
|
|
* src/pprivate.h: Include signal.h and limits.h since their contents
|
963 |
|
|
are used later in the file.
|
964 |
|
|
|
965 |
|
|
2000-04-28 Nick Garnett
|
966 |
|
|
|
967 |
|
|
* src/signal.cxx:
|
968 |
|
|
Added implementations of alarm(), pause() and sleep().
|
969 |
|
|
Modified cyg_sigqueue() so that it could be called from an ASR.
|
970 |
|
|
Added cyg_posix_signal_asr() to do signal processing in ASRs.
|
971 |
|
|
Miscellaneous bug fixes.
|
972 |
|
|
|
973 |
|
|
* src/pthread.cxx:
|
974 |
|
|
Added pthread_count to count number of threads created.
|
975 |
|
|
Added call to signal ASR function in main ASR.
|
976 |
|
|
Added cyg_posix_pthread_release_thread() to seek out and kick a
|
977 |
|
|
thread to which a given set of signals may be delivered.
|
978 |
|
|
|
979 |
|
|
* src/pprivate.h:
|
980 |
|
|
Added some more functions that are shared between POSIX
|
981 |
|
|
subsystems.
|
982 |
|
|
|
983 |
|
|
* include/signal.h:
|
984 |
|
|
Added alarm(), pause() and sleep() prototypes.
|
985 |
|
|
|
986 |
|
|
* tests/signal1.c: Added this test for various aspects of signal
|
987 |
|
|
handling.
|
988 |
|
|
|
989 |
|
|
* cdl/posix.cdl: Added signal1 test.
|
990 |
|
|
|
991 |
|
|
2000-04-20 Nick Garnett
|
992 |
|
|
|
993 |
|
|
* src/signal.cxx: Added this file to contain signal handling code.
|
994 |
|
|
|
995 |
|
|
* src/time.cxx: Made tick<->timespec converters exported to
|
996 |
|
|
rest of POSIX subsystem. Enabled interface to signal mechanism for
|
997 |
|
|
notifying timer expiration.
|
998 |
|
|
|
999 |
|
|
* src/pthread.cxx:
|
1000 |
|
|
Made pthread_mutex exported to rest of POSIX subsystem.
|
1001 |
|
|
Exported pthread_info_id().
|
1002 |
|
|
Added thread init and destroy functions for signal subsystem.
|
1003 |
|
|
|
1004 |
|
|
* src/startup.cxx: Added call to cyg_posix_signal_start().
|
1005 |
|
|
|
1006 |
|
|
* src/pprivate.h: Added signal handling fields support to
|
1007 |
|
|
pthread_info structure. Added extra internal interfaces to support
|
1008 |
|
|
signal handling code.
|
1009 |
|
|
|
1010 |
|
|
* include/signal.h: Added _how_ argument values for the sigmask
|
1011 |
|
|
functions.
|
1012 |
|
|
|
1013 |
|
|
* cdl/posix.cdl: Added signal.cxx to compile list.
|
1014 |
|
|
|
1015 |
|
|
2000-04-13 Nick Garnett
|
1016 |
|
|
|
1017 |
|
|
* include/time.h:
|
1018 |
|
|
* src/time.cxx:
|
1019 |
|
|
Added implementation of clock and timer functions. These are
|
1020 |
|
|
currently untested since they need working signals.
|
1021 |
|
|
|
1022 |
|
|
2000-04-12 Nick Garnett
|
1023 |
|
|
|
1024 |
|
|
* src/pprivate.h: Added cancellation support fields to
|
1025 |
|
|
pthread_info structure. Made pthread_self_info() exported.
|
1026 |
|
|
|
1027 |
|
|
* include/semaphore.h: Added SEM_FAILED plus misc. tidies.
|
1028 |
|
|
|
1029 |
|
|
* include/pthread.h: Added PTHREAD_CANCELED.
|
1030 |
|
|
|
1031 |
|
|
* include/errno.h: Fixed cyg_pthread_errno_p() return type.
|
1032 |
|
|
|
1033 |
|
|
* src/pthread.cxx:
|
1034 |
|
|
Added pthread_reap() to clean up exited threads.
|
1035 |
|
|
Added support for cancellation.
|
1036 |
|
|
Added cyg_posix_errno_p().
|
1037 |
|
|
|
1038 |
|
|
* src/time.cxx:
|
1039 |
|
|
Added this file to implement time functionality. At present only
|
1040 |
|
|
nanosleep() is actually implemented.
|
1041 |
|
|
|
1042 |
|
|
* src/sem.cxx:
|
1043 |
|
|
Added this file to implement semaphore functionality.
|
1044 |
|
|
|
1045 |
|
|
* cdl/pthread.cdl:
|
1046 |
|
|
Added some extra configuration requirements.
|
1047 |
|
|
|
1048 |
|
|
* cdl/posix.cdl:
|
1049 |
|
|
Added some more files to compile.
|
1050 |
|
|
Added semaphore configuration.
|
1051 |
|
|
|
1052 |
|
|
* tests/mutex3.c:
|
1053 |
|
|
Added this test program. This is actually a POSIXized version of
|
1054 |
|
|
Hugo's splendid kernel test of the same name. It exercises quite a
|
1055 |
|
|
lot of the pthread infrastructure and is thus a good test to run.
|
1056 |
|
|
|
1057 |
|
|
* tests/pthread1.c:
|
1058 |
|
|
Added proper comment headers and added full testing stuff.
|
1059 |
|
|
|
1060 |
|
|
2000-04-10 Nick Garnett
|
1061 |
|
|
|
1062 |
|
|
* src/pprivate.h:
|
1063 |
|
|
* src/pthread.cxx:
|
1064 |
|
|
Added per-thread data support.
|
1065 |
|
|
|
1066 |
|
|
2000-04-06 Nick Garnett
|
1067 |
|
|
|
1068 |
|
|
* src/pthread.cxx:
|
1069 |
|
|
Filled in implementations of lots of functions.
|
1070 |
|
|
|
1071 |
|
|
* src/main.cxx:
|
1072 |
|
|
Added this file to contain a default main. This is currenly just a
|
1073 |
|
|
duplicate of the same file from the C library. Work is needed to
|
1074 |
|
|
combine these.
|
1075 |
|
|
|
1076 |
|
|
* include/sys/types.h:
|
1077 |
|
|
Modified pthread_mutex_t to conform to kernel structure.
|
1078 |
|
|
|
1079 |
|
|
* cdl/pthread.cdl:
|
1080 |
|
|
Added support for main thread.
|
1081 |
|
|
|
1082 |
|
|
* cdl/posix.cdl:
|
1083 |
|
|
Added main.cxx to compile list.
|
1084 |
|
|
|
1085 |
|
|
2000-03-31 Nick Garnett
|
1086 |
|
|
|
1087 |
|
|
* cdl/pthread.cdl:
|
1088 |
|
|
* cdl/posix.cdl:
|
1089 |
|
|
Added CDL files to configure POSIX subsystem.
|
1090 |
|
|
|
1091 |
|
|
* src/pprivate.h:
|
1092 |
|
|
* src/pthread.cxx:
|
1093 |
|
|
* src/startup.cxx:
|
1094 |
|
|
Added these files to begin implementation of POSIX package.
|
1095 |
|
|
|
1096 |
|
|
* include/pthread.h:
|
1097 |
|
|
* include/sched.h:
|
1098 |
|
|
* include/signal.h:
|
1099 |
|
|
* include/time.h:
|
1100 |
|
|
* include/sys/types.h:
|
1101 |
|
|
Many changes needed by implementation work.
|
1102 |
|
|
|
1103 |
|
|
* include/limits.h:
|
1104 |
|
|
* include/errno.h:
|
1105 |
|
|
Added these header files.
|
1106 |
|
|
|
1107 |
|
|
2000-03-24 Nick Garnett
|
1108 |
|
|
|
1109 |
|
|
* include/sys/types.h:
|
1110 |
|
|
* include/time.h:
|
1111 |
|
|
* include/sched.h:
|
1112 |
|
|
* include/pthread.h:
|
1113 |
|
|
* include/signal.h:
|
1114 |
|
|
* include/semaphore.h:
|
1115 |
|
|
* include/mqueue.h:
|
1116 |
|
|
Roughed out (most of) the set of POSIX headers for the
|
1117 |
|
|
functionality we are currently going to support. These files are
|
1118 |
|
|
currently neither fully standard conformant nor implementation
|
1119 |
|
|
ready. Much work is still needed to make them so. Watch this
|
1120 |
|
|
space.
|
1121 |
|
|
|
1122 |
|
|
## ####GPLCOPYRIGHTBEGIN####
|
1123 |
|
|
## -------------------------------------------
|
1124 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
1125 |
|
|
## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
|
1126 |
|
|
##
|
1127 |
|
|
## This program is free software; you can redistribute it and/or modify
|
1128 |
|
|
## it under the terms of the GNU General Public License as published by
|
1129 |
|
|
## the Free Software Foundation; either version 2 or (at your option) any
|
1130 |
|
|
## later version.
|
1131 |
|
|
##
|
1132 |
|
|
## This program is distributed in the hope that it will be useful, but
|
1133 |
|
|
## WITHOUT ANY WARRANTY; without even the implied warranty of
|
1134 |
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1135 |
|
|
## General Public License for more details.
|
1136 |
|
|
##
|
1137 |
|
|
## You should have received a copy of the GNU General Public License
|
1138 |
|
|
## along with this program; if not, write to the
|
1139 |
|
|
## Free Software Foundation, Inc., 51 Franklin Street,
|
1140 |
|
|
## Fifth Floor, Boston, MA 02110-1301, USA.
|
1141 |
|
|
## -------------------------------------------
|
1142 |
|
|
## ####GPLCOPYRIGHTEND####
|