1 2015-01-28 Corinna Vinschen <corinna@vinschen.de>
3 * Makefile.in: Simplify rule to build dependencies from cygwin dir.
5 2015-01-19 Corinna Vinschen <corinna@vinschen.de>
7 * bsd_helper.h: Throughout, convert "struct thread" to "class thread".
8 * bsd_mutex.cc (_msleep): Fetch signal_arrived handle from thread's
10 * process.h (class process): Drop _signal_arrived and align methods.
11 (process_cache::process): Drop signal_arrived parameter.
12 * process.cc (process::process): Ditto. Drop related code.
13 (process::~process): Drop closing signal_arrived handle.
14 (process_cache::process): Drop signal_arrived parameter in call to
16 (thread::dup_signal_arrived): New method duplicating thread's
17 signal_arrived handle.
18 (thread::close_signal_arrived): New method closing thread's
19 signal_arrived handle.
20 * msg.cc (client_request_msg::serve): Drop signal_arrived parameter from
21 call to process_cache::process. Use thread constructor to initialize td.
22 * sem.cc (client_request_sem::serve): Ditto.
23 * shm.cc (client_request_shm::serve): Ditto.
25 2014-11-06 Florian Friesdorf <flo@chaoflow.net>
27 * cygserver-config: Add -N option to allow different service name.
29 2014-08-15 Corinna Vinschen <corinna@vinschen.de>
31 * configure.ac: Convert to new AC_INIT style.
32 * configure: Regenerate.
34 2014-06-23 Corinna Vinschen <corinna@vinschen.de>
36 * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
37 case to make Coverity really happy (CID 59993).
39 2014-06-23 Corinna Vinschen <corinna@vinschen.de>
41 * client.cc: Throughout, fix debug output of signed byte count value.
43 2014-05-19 Corinna Vinschen <corinna@vinschen.de>
45 * bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor
46 to make Coverity happy (CID 59838).
48 2014-05-19 Corinna Vinschen <corinna@vinschen.de>
50 * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to make
51 Coverity happy (CID 59993).
52 * transport_pipes.cc (transport_layer_pipes::listen): Make listen_pipe
53 and connect_pipe statics to make Coverity happy (CID 60010/60011).
55 2014-04-16 Corinna Vinschen <corinna@vinschen.de>
57 * pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
58 length to account for the trailing NUL.
60 2014-04-16 Corinna Vinschen <corinna@vinschen.de>
62 * cygserver-config: Use numeric id 18 instead of "system" in chown.
64 2014-04-07 Corinna Vinschen <corinna@vinschen.de>
66 * process.cc (process::process): Only notice that signal_arrived is
69 2014-03-12 Corinna Vinschen <corinna@vinschen.de>
71 * Makefile.in (OBJS): Add pwdgrp.o.
72 * client.cc (client_request::handle_request): Handle
73 CYGSERVER_REQUEST_PWDGRP message.
74 * pwdgrp.cc: New file implementing CYGSERVER_REQUEST_PWDGRP.
76 2014-03-12 Corinna Vinschen <corinna@vinschen.de>
78 * Throughout, fix format specifiers in debug statements to accommodate
81 2014-03-06 Corinna Vinschen <corinna@vinschen.de>
83 * setpwd.cc (client_request_setpwd::serve): Use RtlSecureZeroMemory to
84 delete password from memory.
86 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx>
88 * configure.ac: Detect windows headers/libs after we've figured out the
90 * configure: Regenerate.
91 * aclocal.m4: Regenerate.
93 2013-04-23 Corinna Vinschen <corinna@vinschen.de>
95 * Merge in cygwin-64bit-branch. See ChangeLog.64bit for details.
97 2012-11-27 Christopher Faylor <me.cygwin2012@cgf.cx>
99 * Makefile.in: Remove old from CFLAGS and move C*FLAGS so that they can
100 be manipulated by Makefile.common.
102 2012-11-26 Christopher Faylor <me.cygwin2012@cgf.cx>
104 * configure.ac: Rename from configure.in.
105 * configure.in: Delete.
106 * configure: Regenerate.
108 2012-11-26 Corinna Vinschen <corinna@vinschen.de>
110 * transport_pipes.cc (pipe_instance_lock_once): Remove.
111 (pipe_instance_lock): Remove.
112 (pipe_instance): Remove.
113 (initialise_pipe_instance_lock): Remove.
114 (transport_layer_pipes::accept): Drop entire pipe_instance handling.
115 (transport_layer_pipes::close): Ditto.
117 2012-11-23 Corinna Vinschen <corinna@vinschen.de>
119 * cygserver.cc (main): Call listen right after creating the
121 * transport_pipes.cc (transport_layer_pipes::listen): Create
122 first instance of the named pipe here. Connect the client side
123 to block it for further use by the system.
124 (transport_layer_pipes::accept): Don't handle first pipe instance
125 here. Change debug output accordingly.
127 2012-11-23 Christopher Faylor <me.cygwin2012@cgf.cx>
129 * Makefile.in: Use /bin/mkdir to make install directories.
131 2012-11-23 Corinna Vinschen <corinna@vinschen.de>
133 * sysv_sem.cc (semundo_clear): Move condition to break from
134 inner loop to the right spot.
136 2012-11-12 Christopher Faylor <me.cygwin2012@cgf.cx>
138 * Makefile.in: Revamp for new configury.
139 * configure.in: Revamp for new configury.
140 * aclocal.m4: Regenerate.
142 * autogen.sh: New script.
144 2012-10-25 Corinna Vinschen <corinna@vinschen.de>
146 * bsd_helper.cc (adjust_identity_info): Fix typo in log message.
148 2012-07-19 Corinna Vinschen <corinna@vinschen.de>
150 * woutsup.h: Just include winlean.h.
152 2012-03-19 Christopher Faylor <me.cygwin2012@cgf.cx>
154 * client.cc: Revert sigproc.h inclusion since it was fixed elsewhere.
156 2012-03-19 Corinna Vinschen <corinna@vinschen.de>
158 * client.cc: Include sigproc.h if __INSIDE_CYGWIN__ is defined.
160 2012-03-19 Christopher Faylor <me.cygwin2012@cgf.cx>
162 * client.cc: Remove unneeded #include "sigproc.h".
164 2012-02-14 Corinna Vinschen <corinna@vinschen.de>
166 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
167 Always use cygwin_internal to fetch installation key.
169 2011-10-10 Corinna Vinschen <corinna@vinschen.de>
171 * cygserver.cc (print_usage): Align output to utilities in utils
173 (print_version): Ditto.
175 2011-08-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
177 * sysv_shm.cc (ACCESSPERMS): Remove to fix redefined warning, as
178 this is now defined in <sys/stat.h>.
180 2011-02-07 Corinna Vinschen <corinna@vinschen.de>
182 * configure.in: Remove AC_ALLOCA test and test for __builtin_memset.
183 * configure: Regenerate.
185 2010-04-19 Christopher Faylor <me+cygwin@cgf.cx>
187 * transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
189 2009-11-16 Corinna Vinschen <corinna@vinschen.de>
191 * Makefile.in (cygserver.exe): Link with -static to avoid linking
192 against cygstdc++-6.dll due to references to __cxa_pure_virtual.
194 2009-11-06 Corinna Vinschen <corinna@vinschen.de>
196 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
197 Check cygwin_internal for returning 0 rather than for != 0.
198 (transport_layer_pipes::accept): Add debug output.
199 (transport_layer_pipes::connect): Ditto.
201 2009-10-31 Corinna Vinschen <corinna@vinschen.de>
203 * transport_pipes.h (PIPE_NAME_PREFIX): New define.
204 (PIPE_NAME_SUFFIX): Ditto.
205 (class transport_layer_pipes): Convert _pipe_name from char pointer
207 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
208 Accommodate the fact that _pipe_name is a wchar_t array, rather than
210 (transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name
211 with variable pipe name based in installation key fetched from Cygwin
213 (transport_layer_pipes::accept): Call CreateNamedPipeW explicitely.
214 (transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW
217 2009-08-18 Corinna Vinschen <corinna@vinschen.de>
219 * Makefile.in (CXXFLAGS): Allow override.
221 2009-03-26 Yaakov Selkowitz <yselkowitz@cygwin.com>
223 * README: Remove "How to use" section, as CYGWIN="server" is
226 2009-03-20 Corinna Vinschen <corinna@vinschen.de>
228 * cygserver-config: Remove misleading text describing the
229 "CYGWIN=server" setting for the client.
231 2009-02-23 Sjors Gielen <mailinglist@dazjorz.com>
233 * Makefile.in: Add DESTDIR functionality.
235 2009-01-21 Corinna Vinschen <corinna@vinschen.de>
237 * client.cc (allow_server): Remove variable.
238 (client_request_get_version::client_request_get_version): Drop checking
241 2009-01-03 Christopher Faylor <me+cygwin@cgf.cx>
243 * Makefile.in (CFLAGS): Look in cygwin's build directory for header
246 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
248 * setpwd.cc (client_request_setpwd::serve): Don't treat removing
249 non-existant private data as error.
251 2008-12-15 Corinna Vinschen <corinna@vinschen.de>
253 * setpwd.cc (client_request_setpwd::serve): Explicitely erase password
254 buffer content after usage.
256 2008-11-26 Corinna Vinschen <corinna@vinschen.de>
258 * Makefile.in (OBJS): Add setpwd.o.
259 * README: Explain new service to store passwords in the LSA registry
261 * bsd_helper.cc (get_token_info): Make externally available.
262 * bsd_helper.h (get_token_info): Declare.
263 * client.cc (client_request::handle_request): Add case for
264 CYGSERVER_REQUEST_SETPWD request.
265 * setpwd.cc: New file implementing the CYGSERVER_REQUEST_SETPWD
268 2008-10-30 Christopher Faylor <me+cygwin@cgf.cx>
270 * Makefile.in: Use -static-libgcc when creating cygserver.exe.
272 2008-04-30 Corinna Vinschen <corinna@vinschen.de>
274 * sysv_msg.cc: Add fix from upstream version 1.65.
275 (msgsnd): Call msleep with timeout value. Handle EWOULDBLOCK. Make
276 sure it's clear from where msleep has been called in debug output.
277 (msgrcv): Make sure it's clear from where msleep has been called in
280 2008-02-06 Corinna Vinschen <corinna@vinschen.de>
282 * bsd_helper.cc: Replace %E __small_printf format specifier with %lu
283 and call to GetLastError throughout.
284 * bsd_mutex.cc: Ditto.
285 * sysv_sem.cc (semget): Replace %X __small_printf format specifier
288 2008-02-06 Corinna Vinschen <corinna@vinschen.de>
290 Remove dependency from Cygwin internal code.
291 * Makefile.in (CYGWIN_OBJS): Remove smallprint.o.
292 (cygserver.exe): Remove strfuncs.o
293 (strfuncs.o): Drop rule.
294 * bsd_log.cc (_vlog): Use snprintf/vsnprintf instead of
295 __small_sprintf/__small_vsprintf.
296 * sysv_sem.cc (seminit): Use sys_malloc instead of malloc. Use
297 snprintf instead of __small_sprintf.
298 (semunload): Free the above allocated sema_mtx names here.
300 2008-02-03 Brian Dessent <brian@dessent.net>
302 * Makefile.in: Don't link strfuncs.o from the Cygwin build dir.
303 Build it again with __OUTSIDE_CYGWIN__ defined.
305 2007-11-05 Corinna Vinschen <corinna@vinschen.de>
307 * bsd_helper.cc (tunable_params): Add kern.ipc.shm_allow_removed as
309 * cygserver.conf: Add a description for the kern.ipc.shm_allow_removed
311 * sysv_shm.cc (shminit): Set shm_allow_removed variable according to
312 kern.ipc.shm_allow_removed setting.
314 2007-08-02 Corinna Vinschen <corinna@vinschen.de>
316 * smallprint.c: Remove.
318 2007-08-02 Christopher Faylor <me+cygwin@cgf.cx>
320 * Makefile.in: Add -lntdll to link line.
321 (CYGWIN_OBJS): Include strfuncs.o.
323 2007-08-02 Corinna Vinschen <corinna@vinschen.de>
325 * smallprint.c: New file.
326 * Makefile.in (OBJS): Add smallprint.o.
327 (CYGWIN_OBJS): Remove smallprint.o from Cygwin dir.
329 2007-07-21 Corinna Vinschen <corinna@vinschen.de>
331 * bsd_helper.cc: Drop unnecessary security.h include.
333 2007-02-23 Corinna Vinschen <corinna@vinschen.de>
335 Throughout remove using wincap.
336 * Makefile.in (OBJS): Remove wincap.o.
337 * README: Don't mention 9x.
338 * bsd_mutex.cc (_mtx_unlock): Drop checking for 9x error codes.
339 * cygserver.cc (server_submission_loop::request_loop): Add FIXME
343 * woutsup.h: Don't include wincap.h.
345 2007-02-22 Corinna Vinschen <corinna@vinschen.de>
347 * Makefile.in (OBJS): Drop transport_sockets.o.
348 * sysv_shm.cc (shmget_allocate_segment): Remove spurious cast.
349 * transport.cc: Don't include transport_sockets.h.
350 (create_server_transport): Always create transport_layer_pipes.
351 * transport_sockets.cc: Remove.
352 * transport_sockets.h: Remove.
354 2006-05-24 Christopher Faylor <cgf@timesys.com>
356 * configure.in: Update to newer autoconf.
357 (thanks to Steve Ellcey)
358 * configure: Regenerate.
359 * aclocal.m4: New file.
361 2006-01-12 Corinna Vinschen <corinna@vinschen.de>
363 * wincap.cc: New file.
364 * wincap.h: New file.
365 * Makefile.in: Accomodate having our own wincap implementation now.
367 2006-01-09 Corinna Vinschen <corinna@vinschen.de>
369 Check FreeBSD upstream changes and apply important patches.
370 * sysv_sem.cc (__semctl): Check copyin return value (from 1.76).
371 * sysv_shm.cc (shminit): Actually use the iterating variable in the
372 for loop when trying to avoid overflow (from 1.102).
374 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
376 * bsd_helper.cc (securityinit): New function. Move initialization
377 of security related variables from ipcinit here.
378 * bsd_helper.h (securityinit): Add prototype.
379 * cygserver.cc (main): Call securityinit right after wincap.init.
381 2005-11-10 Corinna Vinschen <corinna@vinschen.de>
383 * bsd_log.cc (_vpanic): LOG_EMERG is overkill, use LOG_CRIT.
385 2005-11-09 Corinna Vinschen <corinna@vinschen.de>
387 * process.cc (process_cache::process): Fix maximum process condition.
389 2005-10-24 Corinna Vinschen <corinna@vinschen.de>
391 * README: Add description for new -p/--process-cache option.
392 * bsd_helper.cc (default_tun_check): Add kern.srv.process_cache_size
393 entry to tunable_params. Set max value of kern.srv.request_threads
395 * cygserver.cc (SERVER_VERSION): Set to 1.20.
396 (print_usage): Print usage of new parameter -p.
397 (main): Add process cache parameter handling. Accomodate new max
398 value of request threads.
399 * cygserver.conf: Add kern.srv.process_cache_size tunable parameter.
400 Accomodate new max value of kern.srv.request_threads.
401 * process.cc: Fix a comment.
402 (process_cache::process_cache): Add max process cache size parameter.
403 Change _cache_add_trigger to manual reset event.
404 (struct pcache_wait_t): New struct used as parameter to
406 (pcache_wait_thread): New thread function used for threaded process
408 (process_cache::wait_for_processes): Use threaded waiting if number
409 of processes to wait for is bigger than 62. Always check all processes
410 to avoid race under heavy load.
411 (process_cache::sync_wait_array): Remove useless assert. Reset
412 _cache_add_trigger right at the start since it's manual reset now.
413 Accomodate threaded waiting.
414 * process.h (process_cache::process_cache): Add max_procs parameter.
415 (process_cache::_max_process_count): New member.
416 (process_cache::_wait_array: Raise to allow up to 5 wait threads.
417 (process_cache::_process_array): Ditto.
419 2005-08-08 Christopher Faylor <cgf@timesys.com>
421 * cygserver.cc (main): Call wincap.init() earlier to avoid a NULL
424 2005-06-14 Corinna Vinschen <corinna@vinschen.de>
426 * sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
429 2005-04-08 Corinna Vinschen <corinna@vinschen.de>
431 * bsd_mutex.cc (msleep_cnt): Remove.
432 (msleep_max_cnt): Remove.
433 (msleep_arr): Remove.
434 (class msleep_sync_array): New class to encapsulate msleep/wakeup
435 thread synchronization.
436 (msleep_sync): New object pointer.
437 (msleep_init): Initialize new msleep_sync object.
438 (_mutex): Just call msleep_sync->enter() and msleep_sync->leave() for
439 thread synchronization. Improve debug output a bit more.
440 (wakeup): Just call msleep_sync->wakeup().
441 (wakeup_all): Whitespace fix.
443 2005-04-06 Corinna Vinschen <corinna@vinschen.de>
445 * bsd_helper.cc (ipcexit_hookthread): Fix whitespace and handle leak.
446 * bsd_mutex.cc: Include stdlib.h, sys/msg.h and sys/sem.h.
447 (mtx_init): Initialize lock counter to 0.
448 (_mtx_lock): Increment and log mutex lock counter.
449 (mtx_owned): Add winpid argument. Return true only if mutex is
450 actually owned by process winpid.
451 (_mtx_assert): Add winpid argument accordingly.
452 (_mtx_unlock): Log owner and lock count.
453 (MSLEEP_MUTEX): Remove.
455 (MSLEEP_EVENT): Ditto.
456 (msleep_event_name): Ditto.
457 (msleep_cs): New global critical section.
458 (msleep_cnt): New global variable indicating msleep record usage.
459 (msleep_max_cnt): New global variable indicating msleep record size.
460 (msleep_arr): New global pointer to msleep records.
461 (msleep_init): Initialize msleep_cs. Allocate msleep_arr array.
462 (_msleep): Rewrite using new msleep_cs/msleep_arr based thread
463 synchronization. Don't be shy with debug output.
464 (wakeup): Rewrite using new msleep_cs/msleep_arr based thread
466 * bsd_mutex.h (struct mtx): Add lock counter for better debugging.
467 (mtx_owned): Declare with winpid argument.
468 (_mtx_assert): Ditto.
469 (mtx_assert): Define with winpid argument.
470 * cygserver.cc (version): Remove.
471 (SERVER_VERSION): New define, decoupling server version information
472 from source code control system.
473 (print_version): Simplify printing server version.
474 * process.cc (process::process): Fix wrong bracketing (and handle leak).
475 (process::~process): Only try to close _signal_arrived if valid.
476 * sysv_sem.cc: Include sys/smallprint.h.
477 (semundo_clear): Define with additional struct thread pointer argument.
478 Accomodate throughout.
479 (SEMUNDO_LOCKASSERT): Define with winpid argument. Accomodate
481 (struct sem_undo): Define un_proc as pid_t on Cygwin. Accomodate
483 (seminit): Improve debugging by adding the semid to the mutex name.
484 (semget): Correctly print key value as 64 bit hex value in debug
486 (semexit_myhook): Remove Cygwin specific unlocking of mutexes owned
487 by exiting process. Keep semaphore global lock throughout whole
488 function to avoid races.
489 * sysv_shm.cc (GIANT_REQUIRED): Define empty on Cygwin. We know that
492 2005-04-01 Corinna Vinschen <corinna@vinschen.de>
494 * bsd_mutex.cc (_msleep): Whitespace fix.
495 * process.cc (process::process): Handle invalid signal_arrived values
498 2004-12-30 Corinna Vinschen <corinna@vinschen.de>
500 * bsd_mutex.cc: Include limits.h.
501 (MSLEEP_MUTEX): New define for third parameter to msleep_event_name.
503 (MSLEEP_EVENT): Ditto.
504 (msleep_event_name): Add third parameter to allow multiple
505 synchronization objects per ident.
506 (_msleep): Implement new synchronization technique to make sure
507 that all threads have been woken up by a corresponding wakeup call.
510 2004-10-18 Corinna Vinschen <corinna@vinschen.de>
512 * sysv_sem.cc: Redefine offsetof to circumvent build problems with
515 2004-10-04 Corinna Vinschen <corinna@vinschen.de>
517 * bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
518 2004-08-24. It should be unnecessary now.
519 * msg.cc (client_request_msg::serve): Release process critical
520 section as early as possible.
521 * sem.cc (client_request_sem::serve): Ditto.
522 * shm.cc (client_request_shm::serve): Ditto.
523 * process.cc: Use hold and release method calls instead of
524 EnterCriticalSection/LeaveCriticalSection calls throughout.
525 * process.h (_hold): Rename from hold. Take filename and linenumber
526 parameter for logging. Define matching hold macro.
529 2004-10-01 Corinna Vinschen <corinna@vinschen.de>
531 * sysv_sem.cc: Update to FreeBSD version 1.69.
532 1.68: Reduce the overhead of semop() by using the kernel stack
533 instead of malloc'd memory to store the operations array if it
534 is small enough to fit.
535 1.69: Adjust the number of processes waiting on a semaphore properly
536 if we're woken up in the middle of sleeping.
538 2004-09-23 Corinna Vinschen <corinna@vinschen.de>
540 * sysv_shm.cc (kern_shmat): Avoid compiler warning.
542 2004-09-21 Corinna Vinschen <corinna@vinschen.de>
544 * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
545 (vm_map_find): Ditto.
546 (vm_map_inherit): Ditto.
547 (kern_shmat): On Cygwin, take shmaddr just as is. Don't call vm
548 system calls on Cygwin. Add comment.
550 2004-09-15 Corinna Vinschen <corinna@vinschen.de>
552 Fix copyright throughout.
553 Eliminate use of _impure_ptr outside Cygwin.
554 * bsd_helper.cc: Include errno.h instead of cygerrno.h.
555 * bsd_mutex.cc : Ditto.
557 * cygserver.cc: Ditto.
558 * process.cc: Don't build functions inside Cygwin. Don't include
559 cygerrno.h. Don't set errno.
560 * transport_pipes.cc (SET_ERRNO): New define. Use througout.
561 * transport_sockets.cc (SET_ERRNO): Ditto.
564 2004-09-06 Corinna Vinschen <corinna@vinschen.de>
566 * bsd_mutex.cc (_msleep): Disable resetting event object for now.
568 2004-08-31 Corinna Vinschen <corinna@vinschen.de>
570 * sysv_shm.cc (kern_shmat): Add debug_printf's.
572 2004-08-24 Corinna Vinschen <corinna@vinschen.de>
574 * bsd_mutex.cc (_msleep): Release process object while waiting.
576 2004-08-03 Corinna Vinschen <corinna@vinschen.de>
578 * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
579 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
581 2004-07-30 Corinna Vinschen <corinna@vinschen.de>
583 * bsd_mutex.cc (_msleep): Reset event object and close it before
584 entering mutex. Turn order of conditional for better readability.
586 2004-07-26 Corinna Vinschen <corinna@vinschen.de>
588 * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
590 2004-07-20 Corinna Vinschen <corinna@vinschen.de>
592 * bsd_helper.cc: Whitespace fixes.
593 * bsd_mutex.cc: Ditto.
595 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
597 * transport.cc (transport_layer_base::~transport_layer_base): Remove.
598 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
600 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
602 * bsd_mutex.cc (win_priority): Actually calculate p from priority.
604 2004-06-03 Corinna Vinschen <corinna@vinschen.de>
606 * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
608 2004-03-30 Corinna Vinschen <corinna@vinschen.de>
610 * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
611 by shmid when IPC_KEY_IS_SHMID is set.
613 2004-03-02 Corinna Vinschen <corinna@vinschen.de>
615 * sysv_sem.cc (semundo_adjust): Check for process id instead of
616 process struct pointer, which isn't fixed under Cygwin.
617 (semexit_myhook): Ditto. Adjust debug print statements to print
618 Cygwin and Windows PIDs instead of process pointer under Cygwin.
620 2004-02-07 Corinna Vinschen <corinna@vinschen.de>
622 * bsd_mutex.cc (win_priority): Move to msleep helper function section.
623 (set_priority): Ditto. Fix formatting.
624 (_msleep): Cleanup obj formatting. Rearrange obj order.
626 2004-02-06 Corinna Vinschen <corinna@vinschen.de>
628 * bsd_mutex.cc (_msleep): Handle PCATCH using signal_arrived event.
629 * client.cc: Include sigproc.h.
630 * msg.cc (client_request_msg::serve): Accomodate third parameter to
632 * sem.cc (client_request_sem::serve): Ditto.
633 * shm.cc (client_request_shm::serve): Ditto.
634 * process.cc (process::process): Duplicate signal_arrived into
635 Cygserver process space.
636 (process::~process): Close _signal_arrived handle.
637 (process_cache::process): Add signal_arrived handling.
638 * process.h (process::process): Add signal_arrived parameter.
639 (process:signal_arrived): New read accessor.
640 (process:_signal_arrived): New member.
641 (process_cache::process): Add signal_arrived parameter.
643 2004-01-16 Corinna Vinschen <corinna@vinschen.de>
645 * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
646 function to avoid miscompilation with certain versions of gcc.
647 * process.cc (cleanup_routine::~cleanup_routine): Remove.
649 2003-12-26 Christopher Faylor <cgf@redhat.com>
651 * Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
652 (CYGWIN_LIB): Delete.
653 (cygserver.exe target): Add -L$(cygwin_build) to the link line to force
654 linker to use build tree version of the library. Remove specific
655 inclusion of libcygwin.a from the link line.
657 2003-12-16 Corinna Vinschen <corinna@vinschen.de>
659 * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
660 kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535.
661 * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
662 * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
663 kern.ipc.msgmnb and kern.ipc.msgtql.
665 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
667 * cygserver.cc (main): Move call to ipcinit() up before installing
669 * sysv_sem.cc: Update to FreeBSD version 1.67.
670 (seminit): Initialize semaphore sequence numbers to 0.
672 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
674 * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
675 the parallel cygwin dir.
676 (cygserver.exe): Depend on and link against $CYGWIN_LIB.
678 2003-11-25 Christopher Faylor <cgf@redhat.com>
680 * Makefile.in (CXXFLAGS): Remove duplicate options handled in
683 2003-11-22 Corinna Vinschen <corinna@vinschen.de>
685 * msg.cc (client_request_msg::serve): Add default case to msgop switch.
686 * sem.cc (client_request_sem::serve): Add default case to semop switch.
687 * shm.cc (client_request_shm::serve): Add default case to shmop switch.
689 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
691 * Makefile.in (install): Explicitely create directories. Install
692 README to $(prefix)/share/doc/Cygwin.
695 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
697 * cygserver.cc (print_usage): Fix scrambled output.
699 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
701 * cygserver-config: Slightly modify printed message.
703 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
705 * Makefile.in (install): Install cygserver-config script to bindir.
706 * cygserver-config: New script.
708 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
710 Don't use safe_new but new throughout. Fix copyright dates
712 * Makefile.in: Accomodate all new files and name changes.
713 Add a *.d dependency.
715 (etcdir): Drop in favor of more appropriate sysconfdir definition.
717 (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
719 (install): Add action items.
720 (libclean): New target.
722 * bsd_helper.cc: New file.
723 * bsd_helper.h: Ditto.
726 * bsd_mutex.cc: Ditto.
727 * bsd_mutex.h: Ditto.
728 * client.cc: Rearrange to build as less as possible if
730 (client_request::handle_request): Add Message Queue and Semaphore
732 * cygserver.cc: Rearrange to build as less as possible if
733 __INSIDE_CYGWIN__. Use new debug/log/panic logging functions.
734 (DEF_CONFIG_FILE): New definition for configuration file. Use
737 (__cygserver__printf): Remove.
738 (client_request_attach_tty::serve): Return error if impersonation
740 (print_usage): Pump up help message.
741 (print_version): Add output of default configuration file.
742 (main): Accommodate new options. Allow overwrite of threading options
743 from config file. Call several new initialization functions. Drop
744 printing dots. Don't define SIGHANDLE inline.
745 * cygserver.conf: New file.
746 * cygserver_process.h: Rename to process.h.
747 * cygserver_transport.h: Rename to transport.h.
748 * cygserver_transport_pipes.h: Rename to transport_pipes.h.
749 * cygserver_transport_sockets.h: Rename to transport_sockets.h.
753 * sysv_msg.cc: New file, derived from FreeBSD version 1.52.
754 * sysv_sem.cc: New file, derived from FreeBSD version 1.66.
755 * sysv_shm.cc: New file, derived from FreeBSD version 1.89.
756 * threaded_queue.cc: Rearrange to build as less as possible if
758 * transport.cc (transport_layer_base::impersonate_client): Define bool.
759 (transport_layer_base::revert_to_self): Ditto.
760 * transport.h (transport_layer_base::impersonate_client): Declare bool.
761 (transport_layer_base::revert_to_self): Ditto.
762 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
763 Don't call init_security.
764 (init_security): Remove.
765 (transport_layer_pipes::accept): Use global sec_all_nih.
766 (transport_layer_pipes::connect): Ditto.
767 (transport_layer_pipes::impersonate_client): Define bool.
768 (transport_layer_pipes::revert_to_self): Ditt.
769 * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare
771 (transport_layer_pipes::revert_to_self): Ditto.
772 * woutsup.h: Include bsd compatibility headers.
773 (SIGHANDLE): Add definition.
774 (__cygserver__printf): Remove definition.
775 (__noop_printf): Ditto.
776 (debug_printf): Define using debug.
777 (syscall_printf): Define using log.
778 (system_printf): Ditto.
779 Drop all other _printf definitions.
781 2003-10-22 Corinna Vinschen <corinna@vinschen.de>
783 Accomodate moving cygserver header files from cygwin/include/cygwin
784 to here and cygwin dir.
785 * Makefile.in (EXEEXT): Drop as unused.
786 (EXEEXT_FOR_BUILD): Ditto.
787 (all): Don't build libcygserver.a.
788 * cygserver_process.h: Moved from cygwin/include/cygwin to here.
789 * cygserver_transport.h: Ditto.
790 * cygserver_transport_pipes.h: Ditto.
791 * cygserver_transport_sockets.h: Ditto.
792 * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h.
793 * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.
795 2003-08-30 Christopher Faylor <cgf@redhat.com>
800 2003-08-30 Christopher Faylor <cgf@redhat.com>
802 * threaded_queue.h: New file.
804 2003-08-25 Christopher Faylor <cgf@redhat.com>
806 * Makefile.in: Build libcygserver.a.
807 * client.cc: Rename allow_daemon to allow_server.
809 2003-07-25 Christopher Faylor <cgf@redhat.com>
811 * configure.in: Use 'install-sh -c'.
812 * configure: Regenerate.
814 2003-07-25 Christopher Faylor <cgf@redhat.com>
816 * configure.in: Always use install-sh.
817 * configure: Regenerate.
819 2003-07-01 Christopher Faylor <cgf@redhat.com>
821 * Makefile.in (OBJS): Move some more files from cygwin directory.
822 * woutsup.h: Define _MT_SAFE.
824 2003-07-01 Christopher Faylor <cgf@redhat.com>
826 * configure.in: First pass.
827 * Makefile.in: Ditto.
828 * configure: Generate.