1 2004-10-01 Corinna Vinschen <corinna@vinschen.de>
3 * sysv_sem.cc: Update to FreeBSD version 1.69.
4 1.68: Reduce the overhead of semop() by using the kernel stack
5 instead of malloc'd memory to store the operations array if it
6 is small enough to fit.
7 1.69: Adjust the number of processes waiting on a semaphore properly
8 if we're woken up in the middle of sleeping.
10 2004-09-23 Corinna Vinschen <corinna@vinschen.de>
12 * sysv_shm.cc (kern_shmat): Avoid compiler warning.
14 2004-09-21 Corinna Vinschen <corinna@vinschen.de>
16 * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
18 (vm_map_inherit): Ditto.
19 (kern_shmat): On Cygwin, take shmaddr just as is. Don't call vm
20 system calls on Cygwin. Add comment.
22 2004-09-15 Corinna Vinschen <corinna@vinschen.de>
24 Fix copyright throughout.
25 Eliminate use of _impure_ptr outside Cygwin.
26 * bsd_helper.cc: Include errno.h instead of cygerrno.h.
27 * bsd_mutex.cc : Ditto.
29 * cygserver.cc: Ditto.
30 * process.cc: Don't build functions inside Cygwin. Don't include
31 cygerrno.h. Don't set errno.
32 * transport_pipes.cc (SET_ERRNO): New define. Use througout.
33 * transport_sockets.cc (SET_ERRNO): Ditto.
36 2004-09-06 Corinna Vinschen <corinna@vinschen.de>
38 * bsd_mutex.cc (_msleep): Disable resetting event object for now.
40 2004-08-31 Corinna Vinschen <corinna@vinschen.de>
42 * sysv_shm.cc (kern_shmat): Add debug_printf's.
44 2004-08-24 Corinna Vinschen <corinna@vinschen.de>
46 * bsd_mutex.cc (_msleep): Release process object while waiting.
48 2004-08-03 Corinna Vinschen <corinna@vinschen.de>
50 * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
51 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
53 2004-07-30 Corinna Vinschen <corinna@vinschen.de>
55 * bsd_mutex.cc (_msleep): Reset event object and close it before
56 entering mutex. Turn order of conditional for better readability.
58 2004-07-26 Corinna Vinschen <corinna@vinschen.de>
60 * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
62 2004-07-20 Corinna Vinschen <corinna@vinschen.de>
64 * bsd_helper.cc: Whitespace fixes.
65 * bsd_mutex.cc: Ditto.
67 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
69 * transport.cc (transport_layer_base::~transport_layer_base): Remove.
70 * transport.h (transport_layer_base::~transport_layer_base): Ditto.
72 2004-07-19 Corinna Vinschen <corinna@vinschen.de>
74 * bsd_mutex.cc (win_priority): Actually calculate p from priority.
76 2004-06-03 Corinna Vinschen <corinna@vinschen.de>
78 * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
80 2004-03-30 Corinna Vinschen <corinna@vinschen.de>
82 * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
83 by shmid when IPC_KEY_IS_SHMID is set.
85 2004-03-02 Corinna Vinschen <corinna@vinschen.de>
87 * sysv_sem.cc (semundo_adjust): Check for process id instead of
88 process struct pointer, which isn't fixed under Cygwin.
89 (semexit_myhook): Ditto. Adjust debug print statements to print
90 Cygwin and Windows PIDs instead of process pointer under Cygwin.
92 2004-02-07 Corinna Vinschen <corinna@vinschen.de>
94 * bsd_mutex.cc (win_priority): Move to msleep helper function section.
95 (set_priority): Ditto. Fix formatting.
96 (_msleep): Cleanup obj formatting. Rearrange obj order.
98 2004-02-06 Corinna Vinschen <corinna@vinschen.de>
100 * bsd_mutex.cc (_msleep): Handle PCATCH using signal_arrived event.
101 * client.cc: Include sigproc.h.
102 * msg.cc (client_request_msg::serve): Accomodate third parameter to
104 * sem.cc (client_request_sem::serve): Ditto.
105 * shm.cc (client_request_shm::serve): Ditto.
106 * process.cc (process::process): Duplicate signal_arrived into
107 Cygserver process space.
108 (process::~process): Close _signal_arrived handle.
109 (process_cache::process): Add signal_arrived handling.
110 * process.h (process::process): Add signal_arrived parameter.
111 (process:signal_arrived): New read accessor.
112 (process:_signal_arrived): New member.
113 (process_cache::process): Add signal_arrived parameter.
115 2004-01-16 Corinna Vinschen <corinna@vinschen.de>
117 * process.h (cleanup_routine::~cleanup_routine): Make pure virtual
118 function to avoid miscompilation with certain versions of gcc.
119 * process.cc (cleanup_routine::~cleanup_routine): Remove.
121 2003-12-26 Christopher Faylor <cgf@redhat.com>
123 * Makefile.in (CFLAGS, CXXFLAGS): Remove unneeded include.
124 (CYGWIN_LIB): Delete.
125 (cygserver.exe target): Add -L$(cygwin_build) to the link line to force
126 linker to use build tree version of the library. Remove specific
127 inclusion of libcygwin.a from the link line.
129 2003-12-16 Corinna Vinschen <corinna@vinschen.de>
131 * bsd_helper.cc (tunable_params): Add entries for kern.ipc.msgmnb and
132 kern.ipc.msgtql. Raise max value for kern.ipc.msgseg to 65535.
133 * cygserver.conf: Add kern.ipc.msgmnb and kern.ipc.msgtql.
134 * sysv_msg.cc (msginit): Add TUNABLE_INT_FETCH call for
135 kern.ipc.msgmnb and kern.ipc.msgtql.
137 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
139 * cygserver.cc (main): Move call to ipcinit() up before installing
141 * sysv_sem.cc: Update to FreeBSD version 1.67.
142 (seminit): Initialize semaphore sequence numbers to 0.
144 2003-11-26 Corinna Vinschen <corinna@vinschen.de>
146 * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
147 the parallel cygwin dir.
148 (cygserver.exe): Depend on and link against $CYGWIN_LIB.
150 2003-11-25 Christopher Faylor <cgf@redhat.com>
152 * Makefile.in (CXXFLAGS): Remove duplicate options handled in
155 2003-11-22 Corinna Vinschen <corinna@vinschen.de>
157 * msg.cc (client_request_msg::serve): Add default case to msgop switch.
158 * sem.cc (client_request_sem::serve): Add default case to semop switch.
159 * shm.cc (client_request_shm::serve): Add default case to shmop switch.
161 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
163 * Makefile.in (install): Explicitely create directories. Install
164 README to $(prefix)/share/doc/Cygwin.
167 2003-11-21 Corinna Vinschen <corinna@vinschen.de>
169 * cygserver.cc (print_usage): Fix scrambled output.
171 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
173 * cygserver-config: Slightly modify printed message.
175 2003-11-20 Corinna Vinschen <corinna@vinschen.de>
177 * Makefile.in (install): Install cygserver-config script to bindir.
178 * cygserver-config: New script.
180 2003-11-19 Corinna Vinschen <corinna@vinschen.de>
182 Don't use safe_new but new throughout. Fix copyright dates
184 * Makefile.in: Accomodate all new files and name changes.
185 Add a *.d dependency.
187 (etcdir): Drop in favor of more appropriate sysconfdir definition.
189 (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
191 (install): Add action items.
192 (libclean): New target.
194 * bsd_helper.cc: New file.
195 * bsd_helper.h: Ditto.
198 * bsd_mutex.cc: Ditto.
199 * bsd_mutex.h: Ditto.
200 * client.cc: Rearrange to build as less as possible if
202 (client_request::handle_request): Add Message Queue and Semaphore
204 * cygserver.cc: Rearrange to build as less as possible if
205 __INSIDE_CYGWIN__. Use new debug/log/panic logging functions.
206 (DEF_CONFIG_FILE): New definition for configuration file. Use
209 (__cygserver__printf): Remove.
210 (client_request_attach_tty::serve): Return error if impersonation
212 (print_usage): Pump up help message.
213 (print_version): Add output of default configuration file.
214 (main): Accommodate new options. Allow overwrite of threading options
215 from config file. Call several new initialization functions. Drop
216 printing dots. Don't define SIGHANDLE inline.
217 * cygserver.conf: New file.
218 * cygserver_process.h: Rename to process.h.
219 * cygserver_transport.h: Rename to transport.h.
220 * cygserver_transport_pipes.h: Rename to transport_pipes.h.
221 * cygserver_transport_sockets.h: Rename to transport_sockets.h.
225 * sysv_msg.cc: New file, derived from FreeBSD version 1.52.
226 * sysv_sem.cc: New file, derived from FreeBSD version 1.66.
227 * sysv_shm.cc: New file, derived from FreeBSD version 1.89.
228 * threaded_queue.cc: Rearrange to build as less as possible if
230 * transport.cc (transport_layer_base::impersonate_client): Define bool.
231 (transport_layer_base::revert_to_self): Ditto.
232 * transport.h (transport_layer_base::impersonate_client): Declare bool.
233 (transport_layer_base::revert_to_self): Ditto.
234 * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
235 Don't call init_security.
236 (init_security): Remove.
237 (transport_layer_pipes::accept): Use global sec_all_nih.
238 (transport_layer_pipes::connect): Ditto.
239 (transport_layer_pipes::impersonate_client): Define bool.
240 (transport_layer_pipes::revert_to_self): Ditt.
241 * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare
243 (transport_layer_pipes::revert_to_self): Ditto.
244 * woutsup.h: Include bsd compatibility headers.
245 (SIGHANDLE): Add definition.
246 (__cygserver__printf): Remove definition.
247 (__noop_printf): Ditto.
248 (debug_printf): Define using debug.
249 (syscall_printf): Define using log.
250 (system_printf): Ditto.
251 Drop all other _printf definitions.
253 2003-10-22 Corinna Vinschen <corinna@vinschen.de>
255 Accomodate moving cygserver header files from cygwin/include/cygwin
256 to here and cygwin dir.
257 * Makefile.in (EXEEXT): Drop as unused.
258 (EXEEXT_FOR_BUILD): Ditto.
259 (all): Don't build libcygserver.a.
260 * cygserver_process.h: Moved from cygwin/include/cygwin to here.
261 * cygserver_transport.h: Ditto.
262 * cygserver_transport_pipes.h: Ditto.
263 * cygserver_transport_sockets.h: Ditto.
264 * ipc.h: Moved to ../cygwin and renamed to cygserver_ipc.h.
265 * shm.h: Moved to ../cygwin and renamed to cygserver_shm.h.
267 2003-08-30 Christopher Faylor <cgf@redhat.com>
272 2003-08-30 Christopher Faylor <cgf@redhat.com>
274 * threaded_queue.h: New file.
276 2003-08-25 Christopher Faylor <cgf@redhat.com>
278 * Makefile.in: Build libcygserver.a.
279 * client.cc: Rename allow_daemon to allow_server.
281 2003-07-25 Christopher Faylor <cgf@redhat.com>
283 * configure.in: Use 'install-sh -c'.
284 * configure: Regenerate.
286 2003-07-25 Christopher Faylor <cgf@redhat.com>
288 * configure.in: Always use install-sh.
289 * configure: Regenerate.
291 2003-07-01 Christopher Faylor <cgf@redhat.com>
293 * Makefile.in (OBJS): Move some more files from cygwin directory.
294 * woutsup.h: Define _MT_SAFE.
296 2003-07-01 Christopher Faylor <cgf@redhat.com>
298 * configure.in: First pass.
299 * Makefile.in: Ditto.
300 * configure: Generate.