]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygserver/ChangeLog
* wincap.cc: New file.
[newlib-cygwin.git] / winsup / cygserver / ChangeLog
1 2006-01-12 Corinna Vinschen <corinna@vinschen.de>
2
3 * wincap.cc: New file.
4 * wincap.h: New file.
5 * Makefile.in: Accomodate having our own wincap implementation now.
6
7 2006-01-09 Corinna Vinschen <corinna@vinschen.de>
8
9 Check FreeBSD upstream changes and apply important patches.
10 * sysv_sem.cc (__semctl): Check copyin return value (from 1.76).
11 * sysv_shm.cc (shminit): Actually use the iterating variable in the
12 for loop when trying to avoid overflow (from 1.102).
13
14 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
15
16 * bsd_helper.cc (securityinit): New function. Move initialization
17 of security related variables from ipcinit here.
18 * bsd_helper.h (securityinit): Add prototype.
19 * cygserver.cc (main): Call securityinit right after wincap.init.
20
21 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
22
23 * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.
24
25 2005-11-09 Corinna Vinschen <corinna@vinschen.de>
26
27 * process.cc (process_cache::process): Fix maximum process condition.
28
29 2005-10-24 Corinna Vinschen <corinna@vinschen.de>
30
31 * README: Add description for new -p/--process-cache option.
32 * bsd_helper.cc (default_tun_check): Add kern.srv.process_cache_size
33 entry to tunable_params. Set max value of kern.srv.request_threads
34 to 310.
35 * cygserver.cc (SERVER_VERSION): Set to 1.20.
36 (print_usage): Print usage of new parameter -p.
37 (main): Add process cache parameter handling. Accomodate new max
38 value of request threads.
39 * cygserver.conf: Add kern.srv.process_cache_size tunable parameter.
40 Accomodate new max value of kern.srv.request_threads.
41 * process.cc: Fix a comment.
42 (process_cache::process_cache): Add max process cache size parameter.
43 Change _cache_add_trigger to manual reset event.
44 (struct pcache_wait_t): New struct used as parameter to
45 pcache_wait_thread.
46 (pcache_wait_thread): New thread function used for threaded process
47 cache.
48 (process_cache::wait_for_processes): Use threaded waiting if number
49 of processes to wait for is bigger than 62. Always check all processes
50 to avoid race under heavy load.
51 (process_cache::sync_wait_array): Remove useless assert. Reset
52 _cache_add_trigger right at the start since it's manual reset now.
53 Accomodate threaded waiting.
54 * process.h (process_cache::process_cache): Add max_procs parameter.
55 (process_cache::_max_process_count): New member.
56 (process_cache::_wait_array: Raise to allow up to 5 wait threads.
57 (process_cache::_process_array): Ditto.
58
59 2005-08-08 Christopher Faylor <cgf@timesys.com>
60
61 * cygserver.cc (main): Call wincap.init() earlier to avoid a NULL
62 dereference.
63
64 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
65
66 * sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
67 warning.
68
69 2005-04-08 Corinna Vinschen <corinna@vinschen.de>
70
71 * bsd_mutex.cc (msleep_cnt): Remove.
72 (msleep_max_cnt): Remove.
73 (msleep_arr): Remove.
74 (class msleep_sync_array): New class to encapsulate msleep/wakeup
75 thread synchronization.
76 (msleep_sync): New object pointer.
77 (msleep_init): Initialize new msleep_sync object.
78 (_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for
79 thread synchronization. Improve debug output a bit more.
80 (wakeup): Just call msleep_sync->wakeup().
81 (wakeup_all): Whitespace fix.
82
83 2005-04-06 Corinna Vinschen <corinna@vinschen.de>
84
85 * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
86 * bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
87 (mtx_init): Initialize lock counter to 0.
88 (_mtx_lock): Increment and log mutex lock counter.
89 (mtx_owned): Add winpid argument. Return true only if mutex is
90 actually owned by process winpid.
91 (_mtx_assert): Add winpid argument accordingly.
92 (_mtx_unlock): Log owner and lock count.
93 (MSLEEP_MUTEX): Remove.
94 (MSLEEP_SEM): Ditto.
95 (MSLEEP_EVENT): Ditto.
96 (msleep_event_name): Ditto.
97 (msleep_cs): New global critical section.
98 (msleep_cnt): New global variable indicating msleep record usage.
99 (msleep_max_cnt): New global variable indicating msleep record size.
100 (msleep_arr): New global pointer to msleep records.
101 (msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
102 (_msleep): Rewrite using new msleep_cs/msleep_arr based thread
103 synchronization. Don't be shy with debug output.
104 (wakeup): Rewrite using new msleep_cs/msleep_arr based thread
105 synchronization.
106 * bsd_mutex.h (struct mtx): Add lock counter for better debugging.
107 (mtx_owned): Declare with winpid argument.
108 (_mtx_assert): Ditto.
109 (mtx_assert): Define with winpid argument.
110 * cygserver.cc (version): Remove.
111 (SERVER_VERSION): New define, decoupling server version information
112 from source code control system.
113 (print_version): Simplify printing server version.
114 * process.cc (process::process): Fix wrong bracketing (and handle leak).
115 (process::~process): Only try to close _signal_arrived if valid.
116 * sysv_sem.cc: Include sys/smallprint.h.
117 (semundo_clear): Define with additional struct thread pointer argument.
118 Accomodate throughout.
119 (SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
120 throughout.
121 (struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
122 throughout.
123 (seminit): Improve debugging by adding the semid to the mutex name.
124 (semget): Correctly print key value as 64 bit hex value in debug
125 output.
126 (semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
127 by exiting process. Keep semaphore global lock throughout whole
128 function to avoid races.
129 * sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
130 Giant is locked.
131
132 2005-04-01 Corinna Vinschen <corinna@vinschen.de>
133
134 * bsd_mutex.cc (_msleep): Whitespace fix.
135 * process.cc (process::process): Handle invalid signal_arrived values
136 more gracefully.
137
138 2004-12-30 Corinna Vinschen <corinna@vinschen.de>
139
140 * bsd_mutex.cc: Include limits.h.
141 (MSLEEP_MUTEX): New define for third parameter to msleep_event_name.
142 (MSLEEP_SEM): Ditto.
143 (MSLEEP_EVENT): Ditto.
144 (msleep_event_name): Add third parameter to allow multiple
145 synchronization objects per ident.
146 (_msleep): Implement new synchronization technique to make sure
147 that all threads have been woken up by a corresponding wakeup call.
148 (wakeup): Ditto.
149
150 2004-10-18 Corinna Vinschen <corinna@vinschen.de>
151
152 * sysv_sem.cc: Redefine offsetof to circumvent build problems with
153 gcc 3.4.
154
155 2004-10-04 Corinna Vinschen <corinna@vinschen.de>
156
157 * bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
158 2004-08-24. It should be unnecessary now.
159 * msg.cc (client_request_msg::serve): Release process critical
160 section as early as possible.
161 * sem.cc (client_request_sem::serve): Ditto.
162 * shm.cc (client_request_shm::serve): Ditto.
163 * process.cc: Use hold and release method calls instead of
164 EnterCriticalSection/LeaveCriticalSection calls throughout.
165 * process.h (_hold): Rename from hold. Take filename and linenumber
166 parameter for logging. Define matching hold macro.
167 (release): Ditto.
168
169 2004-10-01 Corinna Vinschen <corinna@vinschen.de>
170
171 * sysv_sem.cc: Update to FreeBSD version 1.69.
172 1.68: Reduce the overhead of semop() by using the kernel stack
173 instead of malloc'd memory to store the operations array if it
174 is small enough to fit.
175 1.69: Adjust the number of processes waiting on a semaphore properly
176 if we're woken up in the middle of sleeping.
177
178 2004-09-23 Corinna Vinschen <corinna@vinschen.de>
179
180 * sysv_shm.cc (kern_shmat): Avoid compiler warning.
181
182 2004-09-21 Corinna Vinschen <corinna@vinschen.de>
183
184 * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
185 (vm_map_find): Ditto.
186 (vm_map_inherit): Ditto.
187 (kern_shmat): On Cygwin, take shmaddr just as is. Don't call vm
188 system calls on Cygwin. Add comment.
189
190 2004-09-15 Corinna Vinschen <corinna@vinschen.de>
191
192 Fix copyright throughout.
193 Eliminate use of _impure_ptr outside Cygwin.
194 * bsd_helper.cc: Include errno.h instead of cygerrno.h.
195 * bsd_mutex.cc : Ditto.
196 * client.cc: Ditto.
197 * cygserver.cc: Ditto.
198 * process.cc: Don't build functions inside Cygwin. Don't include
199 cygerrno.h. Don't set errno.
200 * transport_pipes.cc (SET_ERRNO): New define. Use througout.
201 * transport_sockets.cc (SET_ERRNO): Ditto.
202 (GET_ERRNO): Ditto.
203
204 2004-09-06 Corinna Vinschen <corinna@vinschen.de>
205
206 * bsd_mutex.cc (_msleep): Disable resetting event object for now.
207
208 2004-08-31 Corinna Vinschen <corinna@vinschen.de>
209
210 * sysv_shm.cc (kern_shmat): Add debug_printf's.
211
212 2004-08-24 Corinna Vinschen <corinna@vinschen.de>
213
214 * bsd_mutex.cc (_msleep): Release process object while waiting.
215
216 2004-08-03 Corinna Vinschen <corinna@vinschen.de>
217
218 * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
219 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
220
221 2004-07-30 Corinna Vinschen <corinna@vinschen.de>
222
223 * bsd_mutex.cc (_msleep): Reset event object and close it before
224 entering mutex. Turn order of conditional for better readability.
225
226 2004-07-26 Corinna Vinschen <corinna@vinschen.de>
227
228 * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
229
230 2004-07-20 Corinna Vinschen <corinna@vinschen.de>
231
232 * bsd_helper.cc: Whitespace fixes.
233 * bsd_mutex.cc: Ditto.
234
235 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
236
237 * transport.cc (transport_layer_base::~transport_layer_base): Remove.
238 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
239
240 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
241
242 * bsd_mutex.cc (win_priority): Actually calculate p from priority.
243
244 2004-06-03 Corinna Vinschen <corinna@vinschen.de>
245
246 * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
247
248 2004-03-30 Corinna Vinschen <corinna@vinschen.de>
249
250 * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
251 by shmid when IPC_KEY_IS_SHMID is set.
252
253 2004-03-02 Corinna Vinschen <corinna@vinschen.de>
254
255 * sysv_sem.cc (semundo_adjust): Check for process id instead of
256 process struct pointer, which isn't fixed under Cygwin.
257 (semexit_myhook): Ditto. Adjust debug print statements to print
258 Cygwin and Windows PIDs instead of process pointer under Cygwin.
259
260 2004-02-07 Corinna Vinschen <corinna@vinschen.de>
261
262 * bsd_mutex.cc (win_priority): Move to msleep helper function section.
263 (set_priority): Ditto. Fix formatting.
264 (_msleep): Cleanup obj formatting. Rearrange obj order.
265
266 2004-02-06 Corinna Vinschen <corinna@vinschen.de>
267
268 * bsd_mutex.cc (_msleep): Handle PCATCH using signal_arrived event.
269 * client.cc: Include sigproc.h.
270 * msg.cc (client_request_msg::serve): Accomodate third parameter to
271 process::process.
272 * sem.cc (client_request_sem::serve): Ditto.
273 * shm.cc (client_request_shm::serve): Ditto.
274 * process.cc (process::process): Duplicate signal_arrived into
275 Cygserver process space.
276 (process::~process): Close _signal_arrived handle.
277 (process_cache::process): Add signal_arrived handling.
278 * process.h (process::process): Add signal_arrived parameter.
279 (process:signal_arrived): New read accessor.
280 (process:_signal_arrived): New member.
281 (process_cache::process): Add signal_arrived parameter.
282
283 2004-01-16 Corinna Vinschen <corinna@vinschen.de>
284
285 * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
286 function to avoid miscompilation with certain versions of gcc.
287 * process.cc (cleanup_routine::~cleanup_routine): Remove.
288
289 2003-12-26 Christopher Faylor <cgf@redhat.com>
290
291 * Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
292 (CYGWIN_LIB): Delete.
293 (cygserver.exe target): Add -L$(cygwin_build) to the link line to force
294 linker to use build tree version of the library. Remove specific
295 inclusion of libcygwin.a from the link line.
296
297 2003-12-16 Corinna Vinschen <corinna@vinschen.de>
298
299 * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
300 kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535.
301 * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
302 * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
303 kern.ipc.msgmnb and kern.ipc.msgtql.
304
305 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
306
307 * cygserver.cc (main): Move call to ipcinit() up before installing
308 any threads.
309 * sysv_sem.cc: Update to FreeBSD version 1.67.
310 (seminit): Initialize semaphore sequence numbers to 0.
311
312 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
313
314 * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
315 the parallel cygwin dir.
316 (cygserver.exe): Depend on and link against $CYGWIN_LIB.
317
318 2003-11-25 Christopher Faylor <cgf@redhat.com>
319
320 * Makefile.in (CXXFLAGS): Remove duplicate options handled in
321 Makefile.common.
322
323 2003-11-22 Corinna Vinschen <corinna@vinschen.de>
324
325 * msg.cc (client_request_msg::serve): Add default case to msgop switch.
326 * sem.cc (client_request_sem::serve): Add default case to semop switch.
327 * shm.cc (client_request_shm::serve): Add default case to shmop switch.
328
329 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
330
331 * Makefile.in (install): Explicitely create directories. Install
332 README to $(prefix)/share/doc/Cygwin.
333 * README: New file.
334
335 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
336
337 * cygserver.cc (print_usage): Fix scrambled output.
338
339 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
340
341 * cygserver-config: Slightly modify printed message.
342
343 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
344
345 * Makefile.in (install): Install cygserver-config script to bindir.
346 * cygserver-config: New script.
347
348 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
349
350 Don't use safe_new but new throughout. Fix copyright dates
351 throughout.
352 * Makefile.in: Accomodate all new files and name changes.
353 Add a *.d dependency.
354 (sbindir): Add.
355 (etcdir): Drop in favor of more appropriate sysconfdir definition.
356 (sysconfdir): Add.
357 (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
358 (.SUFFIXES): Add.
359 (install): Add action items.
360 (libclean): New target.
361 (fullclean): Ditto.
362 * bsd_helper.cc: New file.
363 * bsd_helper.h: Ditto.
364 * bsd_log.cc: Ditto.
365 * bsd_log.h: Ditto.
366 * bsd_mutex.cc: Ditto.
367 * bsd_mutex.h: Ditto.
368 * client.cc: Rearrange to build as less as possible if
369 __INSIDE_CYGWIN__.
370 (client_request::handle_request): Add Message Queue and Semaphore
371 handling.
372 * cygserver.cc: Rearrange to build as less as possible if
373 __INSIDE_CYGWIN__. Use new debug/log/panic logging functions.
374 (DEF_CONFIG_FILE): New definition for configuration file. Use
375 throughout.
376 (getfunc): Remove.
377 (__cygserver__printf): Remove.
378 (client_request_attach_tty::serve): Return error if impersonation
379 fails.
380 (print_usage): Pump up help message.
381 (print_version): Add output of default configuration file.
382 (main): Accommodate new options. Allow overwrite of threading options
383 from config file. Call several new initialization functions. Drop
384 printing dots. Don't define SIGHANDLE inline.
385 * cygserver.conf: New file.
386 * cygserver_process.h: Rename to process.h.
387 * cygserver_transport.h: Rename to transport.h.
388 * cygserver_transport_pipes.h: Rename to transport_pipes.h.
389 * cygserver_transport_sockets.h: Rename to transport_sockets.h.
390 * msg.cc: Rewrite.
391 * sem.cc: Rewrite.
392 * shm.cc: Rewrite.
393 * sysv_msg.cc: New file, derived from FreeBSD version 1.52.
394 * sysv_sem.cc: New file, derived from FreeBSD version 1.66.
395 * sysv_shm.cc: New file, derived from FreeBSD version 1.89.
396 * threaded_queue.cc: Rearrange to build as less as possible if
397 __INSIDE_CYGWIN__.
398 * transport.cc (transport_layer_base::impersonate_client): Define bool.
399 (transport_layer_base::revert_to_self): Ditto.
400 * transport.h (transport_layer_base::impersonate_client): Declare bool.
401 (transport_layer_base::revert_to_self): Ditto.
402 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
403 Don't call init_security.
404 (init_security): Remove.
405 (transport_layer_pipes::accept): Use global sec_all_nih.
406 (transport_layer_pipes::connect): Ditto.
407 (transport_layer_pipes::impersonate_client): Define bool.
408 (transport_layer_pipes::revert_to_self): Ditt.
409 * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare
410 bool.
411 (transport_layer_pipes::revert_to_self): Ditto.
412 * woutsup.h: Include bsd compatibility headers.
413 (SIGHANDLE): Add definition.
414 (__cygserver__printf): Remove definition.
415 (__noop_printf): Ditto.
416 (debug_printf): Define using debug.
417 (syscall_printf): Define using log.
418 (system_printf): Ditto.
419 Drop all other _printf definitions.
420
421 2003-10-22 Corinna Vinschen <corinna@vinschen.de>
422
423 Accomodate moving cygserver header files from cygwin/include/cygwin
424 to here and cygwin dir.
425 * Makefile.in (EXEEXT): Drop as unused.
426 (EXEEXT_FOR_BUILD): Ditto.
427 (all): Don't build libcygserver.a.
428 * cygserver_process.h: Moved from cygwin/include/cygwin to here.
429 * cygserver_transport.h: Ditto.
430 * cygserver_transport_pipes.h: Ditto.
431 * cygserver_transport_sockets.h: Ditto.
432 * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h.
433 * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.
434
435 2003-08-30 Christopher Faylor <cgf@redhat.com>
436
437 * msg.cc: New file.
438 * sem.cc: Ditto.
439
440 2003-08-30 Christopher Faylor <cgf@redhat.com>
441
442 * threaded_queue.h: New file.
443
444 2003-08-25 Christopher Faylor <cgf@redhat.com>
445
446 * Makefile.in: Build libcygserver.a.
447 * client.cc: Rename allow_daemon to allow_server.
448
449 2003-07-25 Christopher Faylor <cgf@redhat.com>
450
451 * configure.in: Use 'install-sh -c'.
452 * configure: Regenerate.
453
454 2003-07-25 Christopher Faylor <cgf@redhat.com>
455
456 * configure.in: Always use install-sh.
457 * configure: Regenerate.
458
459 2003-07-01 Christopher Faylor <cgf@redhat.com>
460
461 * Makefile.in (OBJS): Move some more files from cygwin directory.
462 * woutsup.h: Define _MT_SAFE.
463
464 2003-07-01 Christopher Faylor <cgf@redhat.com>
465
466 * configure.in: First pass.
467 * Makefile.in: Ditto.
468 * configure: Generate.
This page took 0.054802 seconds and 5 git commands to generate.