1 2014-03-12 Corinna Vinschen <corinna@vinschen.de>
3 * Makefile.in (OBJS): Add pwdgrp.o.
4 * client.cc (client_request::handle_request): Handle
5 CYGSERVER_REQUEST_PWDGRP message.
6 * pwdgrp.cc: New file implementing CYGSERVER_REQUEST_PWDGRP.
8 2014-03-12 Corinna Vinschen <corinna@vinschen.de>
10 * Throughout, fix format specifiers in debug statements to accommodate
13 2014-03-06 Corinna Vinschen <corinna@vinschen.de>
15 * setpwd.cc (client_request_setpwd::serve): Use RtlSecureZeroMemory to
16 delete password from memory.
18 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx>
20 * configure.ac: Detect windows headers/libs after we've figured out the
22 * configure: Regenerate.
23 * aclocal.m4: Regenerate.
25 2013-04-23 Corinna Vinschen <corinna@vinschen.de>
27 * Merge in cygwin-64bit-branch. See ChangeLog.64bit for details.
29 2012-11-27 Christopher Faylor <me.cygwin2012@cgf.cx>
31 * Makefile.in: Remove old from CFLAGS and move C*FLAGS so that they can
32 be manipulated by Makefile.common.
34 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx>
36 * configure.ac: Rename from configure.in.
37 * configure.in: Delete.
38 * configure: Regenerate.
40 2012-11-26 Corinna Vinschen <corinna@vinschen.de>
42 * transport_pipes.cc (pipe_instance_lock_once): Remove.
43 (pipe_instance_lock): Remove.
44 (pipe_instance): Remove.
45 (initialise_pipe_instance_lock): Remove.
46 (transport_layer_pipes::accept): Drop entire pipe_instance handling.
47 (transport_layer_pipes::close): Ditto.
49 2012-11-23 Corinna Vinschen <corinna@vinschen.de>
51 * cygserver.cc (main): Call listen right after creating the
53 * transport_pipes.cc (transport_layer_pipes::listen): Create
54 first instance of the named pipe here. Connect the client side
55 to block it for further use by the system.
56 (transport_layer_pipes::accept): Don't handle first pipe instance
57 here. Change debug output accordingly.
59 2012-11-23 Christopher Faylor <me.cygwin2012@cgf.cx>
61 * Makefile.in: Use /bin/mkdir to make install directories.
63 2012-11-23 Corinna Vinschen <corinna@vinschen.de>
65 * sysv_sem.cc (semundo_clear): Move condition to break from
66 inner loop to the right spot.
68 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx>
70 * Makefile.in: Revamp for new configury.
71 * configure.in: Revamp for new configury.
72 * aclocal.m4: Regenerate.
74 * autogen.sh: New script.
76 2012-10-25 Corinna Vinschen <corinna@vinschen.de>
78 * bsd_helper.cc (adjust_identity_info): Fix typo in log message.
80 2012-07-19 Corinna Vinschen <corinna@vinschen.de>
82 * woutsup.h: Just include winlean.h.
84 2012-03-19 Christopher Faylor <me.cygwin2012@cgf.cx>
86 * client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.
88 2012-03-19 Corinna Vinschen <corinna@vinschen.de>
90 * client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.
92 2012-03-19 Christopher Faylor <me.cygwin2012@cgf.cx>
94 * client.cc: Remove unneeded #include "sigproc.h".
96 2012-02-14 Corinna Vinschen <corinna@vinschen.de>
98 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
99 Always use cygwin_internal to fetch installation key.
101 2011-10-10 Corinna Vinschen <corinna@vinschen.de>
103 * cygserver.cc (print_usage): Align output to utilities in utils
105 (print_version): Ditto.
107 2011-08-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
109 * sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
110 this is now defined in <sys/stat.h>.
112 2011-02-07 Corinna Vinschen <corinna@vinschen.de>
114 * configure.in: Remove AC_ALLOCA test and test for __builtin_memset.
115 * configure: Regenerate.
117 2010-04-19 Christopher Faylor <me+cygwin@cgf.cx>
119 * transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
121 2009-11-16 Corinna Vinschen <corinna@vinschen.de>
123 * Makefile.in (cygserver.exe): Link with -static to avoid linking
124 against cygstdc++-6.dll due to references to __cxa_pure_virtual.
126 2009-11-06 Corinna Vinschen <corinna@vinschen.de>
128 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
129 Check cygwin_internal for returning 0 rather than for != 0.
130 (transport_layer_pipes::accept): Add debug output.
131 (transport_layer_pipes::connect): Ditto.
133 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
135 * transport_pipes.h (PIPE_NAME_PREFIX): New define.
136 (PIPE_NAME_SUFFIX): Ditto.
137 (class transport_layer_pipes): Convert _pipe_name from char pointer
139 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
140 Accommodate the fact that _pipe_name is a wchar_t array, rather than
142 (transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name
143 with variable pipe name based in installation key fetched from Cygwin
145 (transport_layer_pipes::accept): Call CreateNamedPipeW explicitely.
146 (transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW
149 2009-08-18 Corinna Vinschen <corinna@vinschen.de>
151 * Makefile.in (CXXFLAGS): Allow override.
153 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
155 * README: Remove "How to use" section, as CYGWIN="server" is
158 2009-03-20 Corinna Vinschen <corinna@vinschen.de>
160 * cygserver-config: Remove misleading text describing the
161 "CYGWIN=server" setting for the client.
163 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
165 * Makefile.in: Add DESTDIR functionality.
167 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
169 * client.cc (allow_server): Remove variable.
170 (client_request_get_version::client_request_get_version): Drop checking
173 2009-01-03 Christopher Faylor <me+cygwin@cgf.cx>
175 * Makefile.in (CFLAGS): Look in cygwin's build directory for header
178 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
180 * setpwd.cc (client_request_setpwd::serve): Don't treat removing
181 non-existant private data as error.
183 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
185 * setpwd.cc (client_request_setpwd::serve): Explicitely erase password
186 buffer content after usage.
188 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
190 * Makefile.in (OBJS): Add setpwd.o.
191 * README: Explain new service to store passwords in the LSA registry
193 * bsd_helper.cc (get_token_info): Make externally available.
194 * bsd_helper.h (get_token_info): Declare.
195 * client.cc (client_request::handle_request): Add case for
196 CYGSERVER_REQUEST_SETPWD request.
197 * setpwd.cc: New file implementing the CYGSERVER_REQUEST_SETPWD
200 2008-10-30 Christopher Faylor <me+cygwin@cgf.cx>
202 * Makefile.in: Use -static-libgcc when creating cygserver.exe.
204 2008-04-30 Corinna Vinschen <corinna@vinschen.de>
206 * sysv_msg.cc: Add fix from upstream version 1.65.
207 (msgsnd): Call msleep with timeout value. Handle EWOULDBLOCK. Make
208 sure it's clear from where msleep has been called in debug output.
209 (msgrcv): Make sure it's clear from where msleep has been called in
212 2008-02-06 Corinna Vinschen <corinna@vinschen.de>
214 * bsd_helper.cc: Replace %E __small_printf format specifier with %lu
215 and call to GetLastError throughout.
216 * bsd_mutex.cc: Ditto.
217 * sysv_sem.cc (semget): Replace %X __small_printf format specifier
220 2008-02-06 Corinna Vinschen <corinna@vinschen.de>
222 Remove dependency from Cygwin internal code.
223 * Makefile.in (CYGWIN_OBJS): Remove smallprint.o.
224 (cygserver.exe): Remove strfuncs.o
225 (strfuncs.o): Drop rule.
226 * bsd_log.cc (_vlog): Use snprintf/vsnprintf instead of
227 __small_sprintf/__small_vsprintf.
228 * sysv_sem.cc (seminit): Use sys_malloc instead of malloc. Use
229 snprintf instead of __small_sprintf.
230 (semunload): Free the above allocated sema_mtx names here.
232 2008-02-03 Brian Dessent <brian@dessent.net>
234 * Makefile.in: Don't link strfuncs.o from the Cygwin build dir.
235 Build it again with __OUTSIDE_CYGWIN__ defined.
237 2007-11-05 Corinna Vinschen <corinna@vinschen.de>
239 * bsd_helper.cc (tunable_params): Add kern.ipc.shm_allow_removed as
241 * cygserver.conf: Add a description for the kern.ipc.shm_allow_removed
243 * sysv_shm.cc (shminit): Set shm_allow_removed variable according to
244 kern.ipc.shm_allow_removed setting.
246 2007-08-02 Corinna Vinschen <corinna@vinschen.de>
248 * smallprint.c: Remove.
250 2007-08-02 Christopher Faylor <me+cygwin@cgf.cx>
252 * Makefile.in: Add -lntdll to link line.
253 (CYGWIN_OBJS): Include strfuncs.o.
255 2007-08-02 Corinna Vinschen <corinna@vinschen.de>
257 * smallprint.c: New file.
258 * Makefile.in (OBJS): Add smallprint.o.
259 (CYGWIN_OBJS): Remove smallprint.o from Cygwin dir.
261 2007-07-21 Corinna Vinschen <corinna@vinschen.de>
263 * bsd_helper.cc: Drop unnecessary security.h include.
265 2007-02-23 Corinna Vinschen <corinna@vinschen.de>
267 Throughout remove using wincap.
268 * Makefile.in (OBJS): Remove wincap.o.
269 * README: Don't mention 9x.
270 * bsd_mutex.cc (_mtx_unlock): Drop checking for 9x error codes.
271 * cygserver.cc (server_submission_loop::request_loop): Add FIXME
275 * woutsup.h: Don't include wincap.h.
277 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
279 * Makefile.in (OBJS): Drop transport_sockets.o.
280 * sysv_shm.cc (shmget_allocate_segment): Remove spurious cast.
281 * transport.cc: Don't include transport_sockets.h.
282 (create_server_transport): Always create transport_layer_pipes.
283 * transport_sockets.cc: Remove.
284 * transport_sockets.h: Remove.
286 2006-05-24 Christopher Faylor <cgf@timesys.com>
288 * configure.in: Update to newer autoconf.
289 (thanks to Steve Ellcey)
290 * configure: Regenerate.
291 * aclocal.m4: New file.
293 2006-01-12 Corinna Vinschen <corinna@vinschen.de>
295 * wincap.cc: New file.
296 * wincap.h: New file.
297 * Makefile.in: Accomodate having our own wincap implementation now.
299 2006-01-09 Corinna Vinschen <corinna@vinschen.de>
301 Check FreeBSD upstream changes and apply important patches.
302 * sysv_sem.cc (__semctl): Check copyin return value (from 1.76).
303 * sysv_shm.cc (shminit): Actually use the iterating variable in the
304 for loop when trying to avoid overflow (from 1.102).
306 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
308 * bsd_helper.cc (securityinit): New function. Move initialization
309 of security related variables from ipcinit here.
310 * bsd_helper.h (securityinit): Add prototype.
311 * cygserver.cc (main): Call securityinit right after wincap.init.
313 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
315 * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.
317 2005-11-09 Corinna Vinschen <corinna@vinschen.de>
319 * process.cc (process_cache::process): Fix maximum process condition.
321 2005-10-24 Corinna Vinschen <corinna@vinschen.de>
323 * README: Add description for new -p/--process-cache option.
324 * bsd_helper.cc (default_tun_check): Add kern.srv.process_cache_size
325 entry to tunable_params. Set max value of kern.srv.request_threads
327 * cygserver.cc (SERVER_VERSION): Set to 1.20.
328 (print_usage): Print usage of new parameter -p.
329 (main): Add process cache parameter handling. Accomodate new max
330 value of request threads.
331 * cygserver.conf: Add kern.srv.process_cache_size tunable parameter.
332 Accomodate new max value of kern.srv.request_threads.
333 * process.cc: Fix a comment.
334 (process_cache::process_cache): Add max process cache size parameter.
335 Change _cache_add_trigger to manual reset event.
336 (struct pcache_wait_t): New struct used as parameter to
338 (pcache_wait_thread): New thread function used for threaded process
340 (process_cache::wait_for_processes): Use threaded waiting if number
341 of processes to wait for is bigger than 62. Always check all processes
342 to avoid race under heavy load.
343 (process_cache::sync_wait_array): Remove useless assert. Reset
344 _cache_add_trigger right at the start since it's manual reset now.
345 Accomodate threaded waiting.
346 * process.h (process_cache::process_cache): Add max_procs parameter.
347 (process_cache::_max_process_count): New member.
348 (process_cache::_wait_array: Raise to allow up to 5 wait threads.
349 (process_cache::_process_array): Ditto.
351 2005-08-08 Christopher Faylor <cgf@timesys.com>
353 * cygserver.cc (main): Call wincap.init() earlier to avoid a NULL
356 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
358 * sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
361 2005-04-08 Corinna Vinschen <corinna@vinschen.de>
363 * bsd_mutex.cc (msleep_cnt): Remove.
364 (msleep_max_cnt): Remove.
365 (msleep_arr): Remove.
366 (class msleep_sync_array): New class to encapsulate msleep/wakeup
367 thread synchronization.
368 (msleep_sync): New object pointer.
369 (msleep_init): Initialize new msleep_sync object.
370 (_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for
371 thread synchronization. Improve debug output a bit more.
372 (wakeup): Just call msleep_sync->wakeup().
373 (wakeup_all): Whitespace fix.
375 2005-04-06 Corinna Vinschen <corinna@vinschen.de>
377 * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
378 * bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
379 (mtx_init): Initialize lock counter to 0.
380 (_mtx_lock): Increment and log mutex lock counter.
381 (mtx_owned): Add winpid argument. Return true only if mutex is
382 actually owned by process winpid.
383 (_mtx_assert): Add winpid argument accordingly.
384 (_mtx_unlock): Log owner and lock count.
385 (MSLEEP_MUTEX): Remove.
387 (MSLEEP_EVENT): Ditto.
388 (msleep_event_name): Ditto.
389 (msleep_cs): New global critical section.
390 (msleep_cnt): New global variable indicating msleep record usage.
391 (msleep_max_cnt): New global variable indicating msleep record size.
392 (msleep_arr): New global pointer to msleep records.
393 (msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
394 (_msleep): Rewrite using new msleep_cs/msleep_arr based thread
395 synchronization. Don't be shy with debug output.
396 (wakeup): Rewrite using new msleep_cs/msleep_arr based thread
398 * bsd_mutex.h (struct mtx): Add lock counter for better debugging.
399 (mtx_owned): Declare with winpid argument.
400 (_mtx_assert): Ditto.
401 (mtx_assert): Define with winpid argument.
402 * cygserver.cc (version): Remove.
403 (SERVER_VERSION): New define, decoupling server version information
404 from source code control system.
405 (print_version): Simplify printing server version.
406 * process.cc (process::process): Fix wrong bracketing (and handle leak).
407 (process::~process): Only try to close _signal_arrived if valid.
408 * sysv_sem.cc: Include sys/smallprint.h.
409 (semundo_clear): Define with additional struct thread pointer argument.
410 Accomodate throughout.
411 (SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
413 (struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
415 (seminit): Improve debugging by adding the semid to the mutex name.
416 (semget): Correctly print key value as 64 bit hex value in debug
418 (semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
419 by exiting process. Keep semaphore global lock throughout whole
420 function to avoid races.
421 * sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
424 2005-04-01 Corinna Vinschen <corinna@vinschen.de>
426 * bsd_mutex.cc (_msleep): Whitespace fix.
427 * process.cc (process::process): Handle invalid signal_arrived values
430 2004-12-30 Corinna Vinschen <corinna@vinschen.de>
432 * bsd_mutex.cc: Include limits.h.
433 (MSLEEP_MUTEX): New define for third parameter to msleep_event_name.
435 (MSLEEP_EVENT): Ditto.
436 (msleep_event_name): Add third parameter to allow multiple
437 synchronization objects per ident.
438 (_msleep): Implement new synchronization technique to make sure
439 that all threads have been woken up by a corresponding wakeup call.
442 2004-10-18 Corinna Vinschen <corinna@vinschen.de>
444 * sysv_sem.cc: Redefine offsetof to circumvent build problems with
447 2004-10-04 Corinna Vinschen <corinna@vinschen.de>
449 * bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
450 2004-08-24. It should be unnecessary now.
451 * msg.cc (client_request_msg::serve): Release process critical
452 section as early as possible.
453 * sem.cc (client_request_sem::serve): Ditto.
454 * shm.cc (client_request_shm::serve): Ditto.
455 * process.cc: Use hold and release method calls instead of
456 EnterCriticalSection/LeaveCriticalSection calls throughout.
457 * process.h (_hold): Rename from hold. Take filename and linenumber
458 parameter for logging. Define matching hold macro.
461 2004-10-01 Corinna Vinschen <corinna@vinschen.de>
463 * sysv_sem.cc: Update to FreeBSD version 1.69.
464 1.68: Reduce the overhead of semop() by using the kernel stack
465 instead of malloc'd memory to store the operations array if it
466 is small enough to fit.
467 1.69: Adjust the number of processes waiting on a semaphore properly
468 if we're woken up in the middle of sleeping.
470 2004-09-23 Corinna Vinschen <corinna@vinschen.de>
472 * sysv_shm.cc (kern_shmat): Avoid compiler warning.
474 2004-09-21 Corinna Vinschen <corinna@vinschen.de>
476 * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
477 (vm_map_find): Ditto.
478 (vm_map_inherit): Ditto.
479 (kern_shmat): On Cygwin, take shmaddr just as is. Don't call vm
480 system calls on Cygwin. Add comment.
482 2004-09-15 Corinna Vinschen <corinna@vinschen.de>
484 Fix copyright throughout.
485 Eliminate use of _impure_ptr outside Cygwin.
486 * bsd_helper.cc: Include errno.h instead of cygerrno.h.
487 * bsd_mutex.cc : Ditto.
489 * cygserver.cc: Ditto.
490 * process.cc: Don't build functions inside Cygwin. Don't include
491 cygerrno.h. Don't set errno.
492 * transport_pipes.cc (SET_ERRNO): New define. Use througout.
493 * transport_sockets.cc (SET_ERRNO): Ditto.
496 2004-09-06 Corinna Vinschen <corinna@vinschen.de>
498 * bsd_mutex.cc (_msleep): Disable resetting event object for now.
500 2004-08-31 Corinna Vinschen <corinna@vinschen.de>
502 * sysv_shm.cc (kern_shmat): Add debug_printf's.
504 2004-08-24 Corinna Vinschen <corinna@vinschen.de>
506 * bsd_mutex.cc (_msleep): Release process object while waiting.
508 2004-08-03 Corinna Vinschen <corinna@vinschen.de>
510 * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
511 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
513 2004-07-30 Corinna Vinschen <corinna@vinschen.de>
515 * bsd_mutex.cc (_msleep): Reset event object and close it before
516 entering mutex. Turn order of conditional for better readability.
518 2004-07-26 Corinna Vinschen <corinna@vinschen.de>
520 * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
522 2004-07-20 Corinna Vinschen <corinna@vinschen.de>
524 * bsd_helper.cc: Whitespace fixes.
525 * bsd_mutex.cc: Ditto.
527 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
529 * transport.cc (transport_layer_base::~transport_layer_base): Remove.
530 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
532 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
534 * bsd_mutex.cc (win_priority): Actually calculate p from priority.
536 2004-06-03 Corinna Vinschen <corinna@vinschen.de>
538 * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
540 2004-03-30 Corinna Vinschen <corinna@vinschen.de>
542 * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
543 by shmid when IPC_KEY_IS_SHMID is set.
545 2004-03-02 Corinna Vinschen <corinna@vinschen.de>
547 * sysv_sem.cc (semundo_adjust): Check for process id instead of
548 process struct pointer, which isn't fixed under Cygwin.
549 (semexit_myhook): Ditto. Adjust debug print statements to print
550 Cygwin and Windows PIDs instead of process pointer under Cygwin.
552 2004-02-07 Corinna Vinschen <corinna@vinschen.de>
554 * bsd_mutex.cc (win_priority): Move to msleep helper function section.
555 (set_priority): Ditto. Fix formatting.
556 (_msleep): Cleanup obj formatting. Rearrange obj order.
558 2004-02-06 Corinna Vinschen <corinna@vinschen.de>
560 * bsd_mutex.cc (_msleep): Handle PCATCH using signal_arrived event.
561 * client.cc: Include sigproc.h.
562 * msg.cc (client_request_msg::serve): Accomodate third parameter to
564 * sem.cc (client_request_sem::serve): Ditto.
565 * shm.cc (client_request_shm::serve): Ditto.
566 * process.cc (process::process): Duplicate signal_arrived into
567 Cygserver process space.
568 (process::~process): Close _signal_arrived handle.
569 (process_cache::process): Add signal_arrived handling.
570 * process.h (process::process): Add signal_arrived parameter.
571 (process:signal_arrived): New read accessor.
572 (process:_signal_arrived): New member.
573 (process_cache::process): Add signal_arrived parameter.
575 2004-01-16 Corinna Vinschen <corinna@vinschen.de>
577 * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
578 function to avoid miscompilation with certain versions of gcc.
579 * process.cc (cleanup_routine::~cleanup_routine): Remove.
581 2003-12-26 Christopher Faylor <cgf@redhat.com>
583 * Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
584 (CYGWIN_LIB): Delete.
585 (cygserver.exe target): Add -L$(cygwin_build) to the link line to force
586 linker to use build tree version of the library. Remove specific
587 inclusion of libcygwin.a from the link line.
589 2003-12-16 Corinna Vinschen <corinna@vinschen.de>
591 * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
592 kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535.
593 * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
594 * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
595 kern.ipc.msgmnb and kern.ipc.msgtql.
597 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
599 * cygserver.cc (main): Move call to ipcinit() up before installing
601 * sysv_sem.cc: Update to FreeBSD version 1.67.
602 (seminit): Initialize semaphore sequence numbers to 0.
604 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
606 * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
607 the parallel cygwin dir.
608 (cygserver.exe): Depend on and link against $CYGWIN_LIB.
610 2003-11-25 Christopher Faylor <cgf@redhat.com>
612 * Makefile.in (CXXFLAGS): Remove duplicate options handled in
615 2003-11-22 Corinna Vinschen <corinna@vinschen.de>
617 * msg.cc (client_request_msg::serve): Add default case to msgop switch.
618 * sem.cc (client_request_sem::serve): Add default case to semop switch.
619 * shm.cc (client_request_shm::serve): Add default case to shmop switch.
621 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
623 * Makefile.in (install): Explicitely create directories. Install
624 README to $(prefix)/share/doc/Cygwin.
627 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
629 * cygserver.cc (print_usage): Fix scrambled output.
631 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
633 * cygserver-config: Slightly modify printed message.
635 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
637 * Makefile.in (install): Install cygserver-config script to bindir.
638 * cygserver-config: New script.
640 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
642 Don't use safe_new but new throughout. Fix copyright dates
644 * Makefile.in: Accomodate all new files and name changes.
645 Add a *.d dependency.
647 (etcdir): Drop in favor of more appropriate sysconfdir definition.
649 (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
651 (install): Add action items.
652 (libclean): New target.
654 * bsd_helper.cc: New file.
655 * bsd_helper.h: Ditto.
658 * bsd_mutex.cc: Ditto.
659 * bsd_mutex.h: Ditto.
660 * client.cc: Rearrange to build as less as possible if
662 (client_request::handle_request): Add Message Queue and Semaphore
664 * cygserver.cc: Rearrange to build as less as possible if
665 __INSIDE_CYGWIN__. Use new debug/log/panic logging functions.
666 (DEF_CONFIG_FILE): New definition for configuration file. Use
669 (__cygserver__printf): Remove.
670 (client_request_attach_tty::serve): Return error if impersonation
672 (print_usage): Pump up help message.
673 (print_version): Add output of default configuration file.
674 (main): Accommodate new options. Allow overwrite of threading options
675 from config file. Call several new initialization functions. Drop
676 printing dots. Don't define SIGHANDLE inline.
677 * cygserver.conf: New file.
678 * cygserver_process.h: Rename to process.h.
679 * cygserver_transport.h: Rename to transport.h.
680 * cygserver_transport_pipes.h: Rename to transport_pipes.h.
681 * cygserver_transport_sockets.h: Rename to transport_sockets.h.
685 * sysv_msg.cc: New file, derived from FreeBSD version 1.52.
686 * sysv_sem.cc: New file, derived from FreeBSD version 1.66.
687 * sysv_shm.cc: New file, derived from FreeBSD version 1.89.
688 * threaded_queue.cc: Rearrange to build as less as possible if
690 * transport.cc (transport_layer_base::impersonate_client): Define bool.
691 (transport_layer_base::revert_to_self): Ditto.
692 * transport.h (transport_layer_base::impersonate_client): Declare bool.
693 (transport_layer_base::revert_to_self): Ditto.
694 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
695 Don't call init_security.
696 (init_security): Remove.
697 (transport_layer_pipes::accept): Use global sec_all_nih.
698 (transport_layer_pipes::connect): Ditto.
699 (transport_layer_pipes::impersonate_client): Define bool.
700 (transport_layer_pipes::revert_to_self): Ditt.
701 * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare
703 (transport_layer_pipes::revert_to_self): Ditto.
704 * woutsup.h: Include bsd compatibility headers.
705 (SIGHANDLE): Add definition.
706 (__cygserver__printf): Remove definition.
707 (__noop_printf): Ditto.
708 (debug_printf): Define using debug.
709 (syscall_printf): Define using log.
710 (system_printf): Ditto.
711 Drop all other _printf definitions.
713 2003-10-22 Corinna Vinschen <corinna@vinschen.de>
715 Accomodate moving cygserver header files from cygwin/include/cygwin
716 to here and cygwin dir.
717 * Makefile.in (EXEEXT): Drop as unused.
718 (EXEEXT_FOR_BUILD): Ditto.
719 (all): Don't build libcygserver.a.
720 * cygserver_process.h: Moved from cygwin/include/cygwin to here.
721 * cygserver_transport.h: Ditto.
722 * cygserver_transport_pipes.h: Ditto.
723 * cygserver_transport_sockets.h: Ditto.
724 * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h.
725 * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.
727 2003-08-30 Christopher Faylor <cgf@redhat.com>
732 2003-08-30 Christopher Faylor <cgf@redhat.com>
734 * threaded_queue.h: New file.
736 2003-08-25 Christopher Faylor <cgf@redhat.com>
738 * Makefile.in: Build libcygserver.a.
739 * client.cc: Rename allow_daemon to allow_server.
741 2003-07-25 Christopher Faylor <cgf@redhat.com>
743 * configure.in: Use 'install-sh -c'.
744 * configure: Regenerate.
746 2003-07-25 Christopher Faylor <cgf@redhat.com>
748 * configure.in: Always use install-sh.
749 * configure: Regenerate.
751 2003-07-01 Christopher Faylor <cgf@redhat.com>
753 * Makefile.in (OBJS): Move some more files from cygwin directory.
754 * woutsup.h: Define _MT_SAFE.
756 2003-07-01 Christopher Faylor <cgf@redhat.com>
758 * configure.in: First pass.
759 * Makefile.in: Ditto.
760 * configure: Generate.