OSDN Git Service

* transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygserver / ChangeLog
1 2010-04-19  Christopher Faylor  <me+cygwin@cgf.cx>
2
3         * transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
4
5 2009-11-16  Corinna Vinschen  <corinna@vinschen.de>
6
7         * Makefile.in (cygserver.exe): Link with -static to avoid linking
8         against cygstdc++-6.dll due to references to __cxa_pure_virtual.
9
10 2009-11-06  Corinna Vinschen  <corinna@vinschen.de>
11
12         * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
13         Check cygwin_internal for returning 0 rather than for != 0.
14         (transport_layer_pipes::accept): Add debug output.
15         (transport_layer_pipes::connect): Ditto.
16
17 2009-10-31  Corinna Vinschen  <corinna@vinschen.de>
18
19         * transport_pipes.h (PIPE_NAME_PREFIX): New define.
20         (PIPE_NAME_SUFFIX): Ditto.
21         (class transport_layer_pipes): Convert _pipe_name from char pointer
22         to wchar_t array.
23         * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
24         Accommodate the fact that _pipe_name is a wchar_t array, rather than
25         a char pointer.
26         (transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name
27         with variable pipe name based in installation key fetched from Cygwin
28         DLL.
29         (transport_layer_pipes::accept): Call CreateNamedPipeW explicitely.
30         (transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW
31         explicitely.
32
33 2009-08-18  Corinna Vinschen  <corinna@vinschen.de>
34
35         * Makefile.in (CXXFLAGS): Allow override.
36
37 2009-03-26  Yaakov Selkowitz  <yselkowitz@cygwin.com>
38
39         * README: Remove "How to use" section, as CYGWIN="server" is
40         no longer required.
41
42 2009-03-20  Corinna Vinschen  <corinna@vinschen.de>
43
44         * cygserver-config: Remove misleading text describing the
45         "CYGWIN=server" setting for the client.
46
47 2009-02-23  Sjors Gielen <mailinglist@dazjorz.com>
48
49         * Makefile.in: Add DESTDIR functionality.
50
51 2009-01-21  Corinna Vinschen  <corinna@vinschen.de>
52
53         * client.cc (allow_server): Remove variable.
54         (client_request_get_version::client_request_get_version): Drop checking
55         allow_server.
56
57 2009-01-03  Christopher Faylor  <me+cygwin@cgf.cx>
58
59         * Makefile.in (CFLAGS): Look in cygwin's build directory for header
60         files.
61
62 2008-12-15  Corinna Vinschen  <corinna@vinschen.de>
63
64         * setpwd.cc (client_request_setpwd::serve): Don't treat removing
65         non-existant private data as error.
66
67 2008-12-15  Corinna Vinschen  <corinna@vinschen.de>
68
69         * setpwd.cc (client_request_setpwd::serve): Explicitely erase password
70         buffer content after usage.
71
72 2008-11-26  Corinna Vinschen  <corinna@vinschen.de>
73
74         * Makefile.in (OBJS): Add setpwd.o.
75         * README: Explain new service to store passwords in the LSA registry
76         area.
77         * bsd_helper.cc (get_token_info): Make externally available.
78         * bsd_helper.h (get_token_info): Declare.
79         * client.cc (client_request::handle_request): Add case for
80         CYGSERVER_REQUEST_SETPWD request.
81         * setpwd.cc: New file implementing the CYGSERVER_REQUEST_SETPWD
82         request.
83
84 2008-10-30  Christopher Faylor  <me+cygwin@cgf.cx>
85
86         * Makefile.in: Use -static-libgcc when creating cygserver.exe.
87
88 2008-04-30  Corinna Vinschen  <corinna@vinschen.de>
89
90         * sysv_msg.cc: Add fix from upstream version 1.65.
91         (msgsnd): Call msleep with timeout value.  Handle EWOULDBLOCK.  Make
92         sure it's clear from where msleep has been called in debug output.
93         (msgrcv): Make sure it's clear from where msleep has been called in
94         debug output.
95
96 2008-02-06  Corinna Vinschen  <corinna@vinschen.de>
97
98         * bsd_helper.cc: Replace %E __small_printf format specifier with %lu
99         and call to GetLastError throughout.
100         * bsd_mutex.cc: Ditto.
101         * sysv_sem.cc (semget): Replace %X __small_printf format specifier
102         with %llx.
103
104 2008-02-06  Corinna Vinschen  <corinna@vinschen.de>
105
106         Remove dependency from Cygwin internal code.
107         * Makefile.in (CYGWIN_OBJS): Remove smallprint.o.
108         (cygserver.exe): Remove strfuncs.o
109         (strfuncs.o): Drop rule.
110         * bsd_log.cc (_vlog): Use snprintf/vsnprintf instead of
111         __small_sprintf/__small_vsprintf.
112         * sysv_sem.cc (seminit): Use sys_malloc instead of malloc.  Use
113         snprintf instead of __small_sprintf.
114         (semunload): Free the above allocated sema_mtx names here.
115
116 2008-02-03  Brian Dessent  <brian@dessent.net>
117
118         * Makefile.in: Don't link strfuncs.o from the Cygwin build dir.
119         Build it again with __OUTSIDE_CYGWIN__ defined.
120
121 2007-11-05  Corinna Vinschen  <corinna@vinschen.de>
122
123         * bsd_helper.cc (tunable_params): Add kern.ipc.shm_allow_removed as
124         bool parameter.
125         * cygserver.conf: Add a description for the kern.ipc.shm_allow_removed
126         parameter.
127         * sysv_shm.cc (shminit): Set shm_allow_removed variable according to
128         kern.ipc.shm_allow_removed setting.
129
130 2007-08-02  Corinna Vinschen  <corinna@vinschen.de>
131
132         * smallprint.c: Remove.
133
134 2007-08-02  Christopher Faylor  <me+cygwin@cgf.cx>
135
136         * Makefile.in: Add -lntdll to link line.
137         (CYGWIN_OBJS): Include strfuncs.o.
138
139 2007-08-02  Corinna Vinschen  <corinna@vinschen.de>
140
141         * smallprint.c: New file.
142         * Makefile.in (OBJS): Add smallprint.o.
143         (CYGWIN_OBJS): Remove smallprint.o from Cygwin dir.
144
145 2007-07-21  Corinna Vinschen  <corinna@vinschen.de>
146
147         * bsd_helper.cc: Drop unnecessary security.h include.
148
149 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
150
151         Throughout remove using wincap.
152         * Makefile.in (OBJS): Remove wincap.o.
153         * README: Don't mention 9x.
154         * bsd_mutex.cc (_mtx_unlock): Drop checking for 9x error codes.
155         * cygserver.cc (server_submission_loop::request_loop): Add FIXME
156         comment.
157         * wincap.cc: Remove.
158         * wincap.h: Remove.
159         * woutsup.h: Don't include wincap.h.
160
161 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
162
163         * Makefile.in (OBJS): Drop transport_sockets.o.
164         * sysv_shm.cc (shmget_allocate_segment): Remove spurious cast.
165         * transport.cc: Don't include transport_sockets.h.
166         (create_server_transport): Always create transport_layer_pipes.
167         * transport_sockets.cc: Remove.
168         * transport_sockets.h: Remove.
169
170 2006-05-24  Christopher Faylor  <cgf@timesys.com>
171
172         * configure.in: Update to newer autoconf.
173         (thanks to Steve Ellcey)
174         * configure: Regenerate.
175         * aclocal.m4: New file.
176
177 2006-01-12  Corinna Vinschen  <corinna@vinschen.de>
178
179         * wincap.cc: New file.
180         * wincap.h: New file.
181         * Makefile.in: Accomodate having our own wincap implementation now.
182
183 2006-01-09  Corinna Vinschen  <corinna@vinschen.de>
184
185         Check FreeBSD upstream changes and apply important patches.
186         * sysv_sem.cc (__semctl): Check copyin return value (from 1.76).
187         * sysv_shm.cc (shminit): Actually use the iterating variable in the
188         for loop when trying to avoid overflow (from 1.102).
189
190 2005-11-10  Corinna Vinschen  <corinna@vinschen.de>
191
192         * bsd_helper.cc (securityinit): New function.  Move initialization
193         of security related variables from ipcinit here.
194         * bsd_helper.h (securityinit): Add prototype.
195         * cygserver.cc (main): Call securityinit right after wincap.init.
196
197 2005-11-10  Corinna Vinschen  <corinna@vinschen.de>
198
199         * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.
200
201 2005-11-09  Corinna Vinschen  <corinna@vinschen.de>
202
203         * process.cc (process_cache::process): Fix maximum process condition.
204
205 2005-10-24  Corinna Vinschen  <corinna@vinschen.de>
206
207         * README: Add description for new -p/--process-cache option.
208         * bsd_helper.cc (default_tun_check): Add kern.srv.process_cache_size
209         entry to tunable_params. Set max value of kern.srv.request_threads
210         to 310.
211         * cygserver.cc (SERVER_VERSION): Set to 1.20.
212         (print_usage): Print usage of new parameter -p.
213         (main): Add process cache parameter handling. Accomodate new max
214         value of request threads.
215         * cygserver.conf: Add kern.srv.process_cache_size tunable parameter.
216         Accomodate new max value of kern.srv.request_threads.
217         * process.cc: Fix a comment.
218         (process_cache::process_cache): Add max process cache size parameter.
219         Change _cache_add_trigger to manual reset event.
220         (struct pcache_wait_t): New struct used as parameter to
221         pcache_wait_thread.
222         (pcache_wait_thread): New thread function used for threaded process
223         cache.
224         (process_cache::wait_for_processes): Use threaded waiting if number
225         of processes to wait for is bigger than 62. Always check all processes
226         to avoid race under heavy load.
227         (process_cache::sync_wait_array): Remove useless assert. Reset
228         _cache_add_trigger right at the start since it's manual reset now.
229         Accomodate threaded waiting.
230         * process.h (process_cache::process_cache): Add max_procs parameter.
231         (process_cache::_max_process_count): New member.
232         (process_cache::_wait_array: Raise to allow up to 5 wait threads.
233         (process_cache::_process_array): Ditto.
234
235 2005-08-08  Christopher Faylor  <cgf@timesys.com>
236
237         * cygserver.cc (main): Call wincap.init() earlier to avoid a NULL
238         dereference.
239
240 2005-06-14  Corinna Vinschen  <corinna@vinschen.de>
241
242         * sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
243         warning.
244
245 2005-04-08  Corinna Vinschen  <corinna@vinschen.de>
246
247         * bsd_mutex.cc (msleep_cnt): Remove.
248         (msleep_max_cnt): Remove.
249         (msleep_arr): Remove.
250         (class msleep_sync_array): New class to encapsulate msleep/wakeup
251         thread synchronization.
252         (msleep_sync): New object pointer.
253         (msleep_init): Initialize new msleep_sync object.
254         (_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for
255         thread synchronization. Improve debug output a bit more.
256         (wakeup): Just call msleep_sync->wakeup().
257         (wakeup_all): Whitespace fix.
258
259 2005-04-06  Corinna Vinschen  <corinna@vinschen.de>
260
261         * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
262         * bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
263         (mtx_init): Initialize lock counter to 0.
264         (_mtx_lock): Increment and log mutex lock counter.
265         (mtx_owned): Add winpid argument. Return true only if mutex is
266         actually owned by process winpid.
267         (_mtx_assert): Add winpid argument accordingly.
268         (_mtx_unlock): Log owner and lock count.
269         (MSLEEP_MUTEX): Remove.
270         (MSLEEP_SEM): Ditto.
271         (MSLEEP_EVENT): Ditto.
272         (msleep_event_name): Ditto.
273         (msleep_cs): New global critical section.
274         (msleep_cnt): New global variable indicating msleep record usage.
275         (msleep_max_cnt): New global variable indicating msleep record size.
276         (msleep_arr): New global pointer to msleep records.
277         (msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
278         (_msleep): Rewrite using new msleep_cs/msleep_arr based thread
279         synchronization. Don't be shy with debug output.
280         (wakeup): Rewrite using new msleep_cs/msleep_arr based thread
281         synchronization.
282         * bsd_mutex.h (struct mtx): Add lock counter for better debugging.
283         (mtx_owned): Declare with winpid argument.
284         (_mtx_assert): Ditto.
285         (mtx_assert): Define with winpid argument.
286         * cygserver.cc (version): Remove.
287         (SERVER_VERSION): New define, decoupling server version information
288         from source code control system.
289         (print_version): Simplify printing server version.
290         * process.cc (process::process): Fix wrong bracketing (and handle leak).
291         (process::~process): Only try to close _signal_arrived if valid.
292         * sysv_sem.cc: Include sys/smallprint.h.
293         (semundo_clear): Define with additional struct thread pointer argument.
294         Accomodate throughout.
295         (SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
296         throughout.
297         (struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
298         throughout.
299         (seminit): Improve debugging by adding the semid to the mutex name.
300         (semget): Correctly print key value as 64 bit hex value in debug
301         output.
302         (semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
303         by exiting process.  Keep semaphore global lock throughout whole
304         function to avoid races.
305         * sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
306         Giant is locked.
307
308 2005-04-01  Corinna Vinschen  <corinna@vinschen.de>
309
310         * bsd_mutex.cc (_msleep): Whitespace fix.
311         * process.cc (process::process): Handle invalid signal_arrived values
312         more gracefully.
313
314 2004-12-30  Corinna Vinschen  <corinna@vinschen.de>
315
316         * bsd_mutex.cc: Include limits.h.
317         (MSLEEP_MUTEX): New define for third parameter to msleep_event_name.
318         (MSLEEP_SEM): Ditto.
319         (MSLEEP_EVENT): Ditto.
320         (msleep_event_name): Add third parameter to allow multiple
321         synchronization objects per ident.
322         (_msleep): Implement new synchronization technique to make sure
323         that all threads have been woken up by a corresponding wakeup call.
324         (wakeup): Ditto.
325
326 2004-10-18  Corinna Vinschen  <corinna@vinschen.de>
327
328         * sysv_sem.cc: Redefine offsetof to circumvent build problems with
329         gcc 3.4.
330
331 2004-10-04  Corinna Vinschen  <corinna@vinschen.de>
332
333         * bsd_mutex.cc (_msleep): Simplify event creation.  Revert change from
334         2004-08-24.  It should be unnecessary now.
335         * msg.cc (client_request_msg::serve): Release process critical
336         section as early as possible.
337         * sem.cc (client_request_sem::serve): Ditto.
338         * shm.cc (client_request_shm::serve): Ditto.
339         * process.cc: Use hold and release method calls instead of
340         EnterCriticalSection/LeaveCriticalSection calls throughout.
341         * process.h (_hold): Rename from hold.  Take filename and linenumber
342         parameter for logging.  Define matching hold macro.
343         (release): Ditto.
344
345 2004-10-01  Corinna Vinschen  <corinna@vinschen.de>
346
347         * sysv_sem.cc: Update to FreeBSD version 1.69.
348         1.68: Reduce the overhead of semop() by using the kernel stack
349         instead of malloc'd memory to store the operations array if it
350         is small enough to fit.
351         1.69: Adjust the number of processes waiting on a semaphore properly
352         if we're woken up in the middle of sleeping.
353
354 2004-09-23  Corinna Vinschen  <corinna@vinschen.de>
355
356         * sysv_shm.cc (kern_shmat): Avoid compiler warning.
357
358 2004-09-21  Corinna Vinschen  <corinna@vinschen.de>
359
360         * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
361         (vm_map_find): Ditto.
362         (vm_map_inherit): Ditto.
363         (kern_shmat): On Cygwin, take shmaddr just as is.  Don't call vm
364         system calls on Cygwin.  Add comment.
365
366 2004-09-15  Corinna Vinschen  <corinna@vinschen.de>
367
368         Fix copyright throughout.
369         Eliminate use of _impure_ptr outside Cygwin.
370         * bsd_helper.cc: Include errno.h instead of cygerrno.h.
371         * bsd_mutex.cc : Ditto.
372         * client.cc: Ditto.
373         * cygserver.cc: Ditto.
374         * process.cc: Don't build functions inside Cygwin.  Don't include
375         cygerrno.h.  Don't set errno.
376         * transport_pipes.cc (SET_ERRNO): New define.  Use througout.
377         * transport_sockets.cc (SET_ERRNO): Ditto.
378         (GET_ERRNO): Ditto.
379
380 2004-09-06  Corinna Vinschen  <corinna@vinschen.de>
381
382         * bsd_mutex.cc (_msleep): Disable resetting event object for now.
383
384 2004-08-31  Corinna Vinschen  <corinna@vinschen.de>
385
386         * sysv_shm.cc (kern_shmat): Add debug_printf's.
387
388 2004-08-24  Corinna Vinschen  <corinna@vinschen.de>
389
390         * bsd_mutex.cc (_msleep): Release process object while waiting.
391
392 2004-08-03  Corinna Vinschen  <corinna@vinschen.de>
393
394         * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
395         * transport.h (transport_layer_base::~transport_layer_base): Ditto.
396
397 2004-07-30  Corinna Vinschen  <corinna@vinschen.de>
398
399         * bsd_mutex.cc (_msleep): Reset event object and close it before
400         entering mutex.  Turn order of conditional for better readability.
401
402 2004-07-26  Corinna Vinschen  <corinna@vinschen.de>
403
404         * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
405
406 2004-07-20  Corinna Vinschen  <corinna@vinschen.de>
407
408         * bsd_helper.cc: Whitespace fixes.
409         * bsd_mutex.cc: Ditto.
410
411 2004-07-19  Corinna Vinschen  <corinna@vinschen.de>
412
413         * transport.cc (transport_layer_base::~transport_layer_base): Remove.
414         * transport.h (transport_layer_base::~transport_layer_base): Ditto.
415
416 2004-07-19  Corinna Vinschen  <corinna@vinschen.de>
417
418         * bsd_mutex.cc (win_priority): Actually calculate p from priority.
419
420 2004-06-03  Corinna Vinschen  <corinna@vinschen.de>
421
422         * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
423
424 2004-03-30  Corinna Vinschen  <corinna@vinschen.de>
425
426         * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
427         by shmid when IPC_KEY_IS_SHMID is set.
428
429 2004-03-02  Corinna Vinschen  <corinna@vinschen.de>
430
431         * sysv_sem.cc (semundo_adjust): Check for process id instead of
432         process struct pointer, which isn't fixed under Cygwin.
433         (semexit_myhook): Ditto.  Adjust debug print statements to print
434         Cygwin and Windows PIDs instead of process pointer under Cygwin.
435
436 2004-02-07  Corinna Vinschen  <corinna@vinschen.de>
437
438         * bsd_mutex.cc (win_priority): Move to msleep helper function section.
439         (set_priority): Ditto. Fix formatting.
440         (_msleep): Cleanup obj formatting.  Rearrange obj order.
441
442 2004-02-06  Corinna Vinschen  <corinna@vinschen.de>
443
444         * bsd_mutex.cc (_msleep): Handle PCATCH using signal_arrived event.
445         * client.cc: Include sigproc.h.
446         * msg.cc (client_request_msg::serve): Accomodate third parameter to
447         process::process.
448         * sem.cc (client_request_sem::serve): Ditto.
449         * shm.cc (client_request_shm::serve): Ditto.
450         * process.cc (process::process): Duplicate signal_arrived into
451         Cygserver process space.
452         (process::~process): Close _signal_arrived handle.
453         (process_cache::process): Add signal_arrived handling.
454         * process.h (process::process): Add signal_arrived parameter.
455         (process:signal_arrived): New read accessor.
456         (process:_signal_arrived): New member.
457         (process_cache::process): Add signal_arrived parameter.
458
459 2004-01-16  Corinna Vinschen  <corinna@vinschen.de>
460
461         * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
462         function to avoid miscompilation with certain versions of gcc.
463         * process.cc (cleanup_routine::~cleanup_routine): Remove.
464
465 2003-12-26  Christopher Faylor  <cgf@redhat.com>
466
467         * Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
468         (CYGWIN_LIB): Delete.
469         (cygserver.exe target): Add -L$(cygwin_build) to the link line to force
470         linker to use build tree version of the library.  Remove specific
471         inclusion of libcygwin.a from the link line.
472
473 2003-12-16  Corinna Vinschen  <corinna@vinschen.de>
474
475         * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
476         kern.ipc.msgtql.  Raise max value for kern.ipc.msgseg to 65535.
477         * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
478         * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
479         kern.ipc.msgmnb and kern.ipc.msgtql.
480
481 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
482
483         * cygserver.cc (main): Move call to ipcinit() up before installing
484         any threads.
485         * sysv_sem.cc: Update to FreeBSD version 1.67.
486         (seminit): Initialize semaphore sequence numbers to 0.
487
488 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
489
490         * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
491         the parallel cygwin dir.
492         (cygserver.exe): Depend on and link against $CYGWIN_LIB.
493
494 2003-11-25  Christopher Faylor  <cgf@redhat.com>
495
496         * Makefile.in (CXXFLAGS): Remove duplicate options handled in
497         Makefile.common.
498
499 2003-11-22  Corinna Vinschen  <corinna@vinschen.de>
500
501         * msg.cc (client_request_msg::serve): Add default case to msgop switch.
502         * sem.cc (client_request_sem::serve): Add default case to semop switch.
503         * shm.cc (client_request_shm::serve): Add default case to shmop switch.
504
505 2003-11-21  Corinna Vinschen  <corinna@vinschen.de>
506
507         * Makefile.in (install): Explicitely create directories.  Install
508         README to $(prefix)/share/doc/Cygwin.
509         * README: New file.
510
511 2003-11-21  Corinna Vinschen  <corinna@vinschen.de>
512
513         * cygserver.cc (print_usage): Fix scrambled output.
514
515 2003-11-20  Corinna Vinschen  <corinna@vinschen.de>
516
517         * cygserver-config: Slightly modify printed message.
518
519 2003-11-20  Corinna Vinschen  <corinna@vinschen.de>
520
521         * Makefile.in (install): Install cygserver-config script to bindir.
522         * cygserver-config: New script.
523
524 2003-11-19  Corinna Vinschen  <corinna@vinschen.de>
525
526         Don't use safe_new but new throughout.  Fix copyright dates
527         throughout.
528         * Makefile.in: Accomodate all new files and name changes.
529         Add a *.d dependency.
530         (sbindir): Add.
531         (etcdir): Drop in favor of more appropriate sysconfdir definition.
532         (sysconfdir): Add.
533         (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
534         (.SUFFIXES): Add.
535         (install): Add action items.
536         (libclean): New target.
537         (fullclean): Ditto.
538         * bsd_helper.cc: New file.
539         * bsd_helper.h: Ditto.
540         * bsd_log.cc: Ditto.
541         * bsd_log.h: Ditto.
542         * bsd_mutex.cc: Ditto.
543         * bsd_mutex.h: Ditto.
544         * client.cc: Rearrange to build as less as possible if
545         __INSIDE_CYGWIN__.
546         (client_request::handle_request): Add Message Queue and Semaphore
547         handling.
548         * cygserver.cc: Rearrange to build as less as possible if
549         __INSIDE_CYGWIN__. Use new debug/log/panic logging functions.
550         (DEF_CONFIG_FILE): New definition for configuration file.  Use
551         throughout.
552         (getfunc): Remove.
553         (__cygserver__printf): Remove.
554         (client_request_attach_tty::serve): Return error if impersonation
555         fails.
556         (print_usage): Pump up help message.
557         (print_version): Add output of default configuration file.
558         (main): Accommodate new options.  Allow overwrite of threading options
559         from config file.  Call several new initialization functions.  Drop
560         printing dots.  Don't define SIGHANDLE inline.
561         * cygserver.conf: New file.
562         * cygserver_process.h: Rename to process.h.
563         * cygserver_transport.h: Rename to transport.h.
564         * cygserver_transport_pipes.h: Rename to transport_pipes.h.
565         * cygserver_transport_sockets.h: Rename to transport_sockets.h.
566         * msg.cc: Rewrite.
567         * sem.cc: Rewrite.
568         * shm.cc: Rewrite.
569         * sysv_msg.cc: New file, derived from FreeBSD version 1.52.
570         * sysv_sem.cc: New file, derived from FreeBSD version 1.66.
571         * sysv_shm.cc: New file, derived from FreeBSD version 1.89.
572         * threaded_queue.cc: Rearrange to build as less as possible if
573         __INSIDE_CYGWIN__.
574         * transport.cc (transport_layer_base::impersonate_client): Define bool.
575         (transport_layer_base::revert_to_self): Ditto.
576         * transport.h (transport_layer_base::impersonate_client): Declare bool.
577         (transport_layer_base::revert_to_self): Ditto.
578         * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
579         Don't call init_security.
580         (init_security): Remove.
581         (transport_layer_pipes::accept): Use global sec_all_nih.
582         (transport_layer_pipes::connect): Ditto.
583         (transport_layer_pipes::impersonate_client): Define bool.
584         (transport_layer_pipes::revert_to_self): Ditt.
585         * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare
586         bool.
587         (transport_layer_pipes::revert_to_self): Ditto.
588         * woutsup.h: Include bsd compatibility headers.
589         (SIGHANDLE): Add definition.
590         (__cygserver__printf): Remove definition.
591         (__noop_printf): Ditto.
592         (debug_printf): Define using debug.
593         (syscall_printf): Define using log.
594         (system_printf): Ditto.
595         Drop all other _printf definitions.
596
597 2003-10-22  Corinna Vinschen  <corinna@vinschen.de>
598
599         Accomodate moving cygserver header files from cygwin/include/cygwin
600         to here and cygwin dir.
601         * Makefile.in (EXEEXT): Drop as unused.
602         (EXEEXT_FOR_BUILD): Ditto.
603         (all): Don't build libcygserver.a.
604         * cygserver_process.h: Moved from cygwin/include/cygwin to here.
605         * cygserver_transport.h: Ditto.
606         * cygserver_transport_pipes.h: Ditto.
607         * cygserver_transport_sockets.h: Ditto.
608         * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h.
609         * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.
610
611 2003-08-30  Christopher Faylor  <cgf@redhat.com>
612
613         * msg.cc: New file.
614         * sem.cc: Ditto.
615
616 2003-08-30  Christopher Faylor  <cgf@redhat.com>
617
618         * threaded_queue.h: New file.
619
620 2003-08-25  Christopher Faylor  <cgf@redhat.com>
621
622         * Makefile.in: Build libcygserver.a.
623         * client.cc: Rename allow_daemon to allow_server.
624
625 2003-07-25  Christopher Faylor  <cgf@redhat.com>
626
627         * configure.in: Use 'install-sh -c'.
628         * configure: Regenerate.
629
630 2003-07-25  Christopher Faylor  <cgf@redhat.com>
631
632         * configure.in: Always use install-sh.
633         * configure: Regenerate.
634
635 2003-07-01  Christopher Faylor  <cgf@redhat.com>
636
637         * Makefile.in (OBJS): Move some more files from cygwin directory.
638         * woutsup.h: Define _MT_SAFE.
639
640 2003-07-01  Christopher Faylor  <cgf@redhat.com>
641
642         * configure.in: First pass.
643         * Makefile.in: Ditto.
644         * configure: Generate.