OSDN Git Service

* sysv_sem.cc: Update to FreeBSD version 1.69.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / cygserver / ChangeLog
1 2004-10-01  Corinna Vinschen  <corinna@vinschen.de>
2
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.
9
10 2004-09-23  Corinna Vinschen  <corinna@vinschen.de>
11
12         * sysv_shm.cc (kern_shmat): Avoid compiler warning.
13
14 2004-09-21  Corinna Vinschen  <corinna@vinschen.de>
15
16         * sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
17         (vm_map_find): Ditto.
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.
21
22 2004-09-15  Corinna Vinschen  <corinna@vinschen.de>
23
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.
28         * client.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.
34         (GET_ERRNO): Ditto.
35
36 2004-09-06  Corinna Vinschen  <corinna@vinschen.de>
37
38         * bsd_mutex.cc (_msleep): Disable resetting event object for now.
39
40 2004-08-31  Corinna Vinschen  <corinna@vinschen.de>
41
42         * sysv_shm.cc (kern_shmat): Add debug_printf's.
43
44 2004-08-24  Corinna Vinschen  <corinna@vinschen.de>
45
46         * bsd_mutex.cc (_msleep): Release process object while waiting.
47
48 2004-08-03  Corinna Vinschen  <corinna@vinschen.de>
49
50         * transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
51         * transport.h (transport_layer_base::~transport_layer_base): Ditto.
52
53 2004-07-30  Corinna Vinschen  <corinna@vinschen.de>
54
55         * bsd_mutex.cc (_msleep): Reset event object and close it before
56         entering mutex.  Turn order of conditional for better readability.
57
58 2004-07-26  Corinna Vinschen  <corinna@vinschen.de>
59
60         * cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
61
62 2004-07-20  Corinna Vinschen  <corinna@vinschen.de>
63
64         * bsd_helper.cc: Whitespace fixes.
65         * bsd_mutex.cc: Ditto.
66
67 2004-07-19  Corinna Vinschen  <corinna@vinschen.de>
68
69         * transport.cc (transport_layer_base::~transport_layer_base): Remove.
70         * transport.h (transport_layer_base::~transport_layer_base): Ditto.
71
72 2004-07-19  Corinna Vinschen  <corinna@vinschen.de>
73
74         * bsd_mutex.cc (win_priority): Actually calculate p from priority.
75
76 2004-06-03  Corinna Vinschen  <corinna@vinschen.de>
77
78         * shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
79
80 2004-03-30  Corinna Vinschen  <corinna@vinschen.de>
81
82         * sysv_shm.cc (shmget): Allow to retrieve shared memory segments
83         by shmid when IPC_KEY_IS_SHMID is set.
84
85 2004-03-02  Corinna Vinschen  <corinna@vinschen.de>
86
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.
91
92 2004-02-07  Corinna Vinschen  <corinna@vinschen.de>
93
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.
97
98 2004-02-06  Corinna Vinschen  <corinna@vinschen.de>
99
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
103         process::process.
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.
114
115 2004-01-16  Corinna Vinschen  <corinna@vinschen.de>
116
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.
120
121 2003-12-26  Christopher Faylor  <cgf@redhat.com>
122
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.
128
129 2003-12-16  Corinna Vinschen  <corinna@vinschen.de>
130
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.
136
137 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
138
139         * cygserver.cc (main): Move call to ipcinit() up before installing
140         any threads.
141         * sysv_sem.cc: Update to FreeBSD version 1.67.
142         (seminit): Initialize semaphore sequence numbers to 0.
143
144 2003-11-26  Corinna Vinschen  <corinna@vinschen.de>
145
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.
149
150 2003-11-25  Christopher Faylor  <cgf@redhat.com>
151
152         * Makefile.in (CXXFLAGS): Remove duplicate options handled in
153         Makefile.common.
154
155 2003-11-22  Corinna Vinschen  <corinna@vinschen.de>
156
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.
160
161 2003-11-21  Corinna Vinschen  <corinna@vinschen.de>
162
163         * Makefile.in (install): Explicitely create directories.  Install
164         README to $(prefix)/share/doc/Cygwin.
165         * README: New file.
166
167 2003-11-21  Corinna Vinschen  <corinna@vinschen.de>
168
169         * cygserver.cc (print_usage): Fix scrambled output.
170
171 2003-11-20  Corinna Vinschen  <corinna@vinschen.de>
172
173         * cygserver-config: Slightly modify printed message.
174
175 2003-11-20  Corinna Vinschen  <corinna@vinschen.de>
176
177         * Makefile.in (install): Install cygserver-config script to bindir.
178         * cygserver-config: New script.
179
180 2003-11-19  Corinna Vinschen  <corinna@vinschen.de>
181
182         Don't use safe_new but new throughout.  Fix copyright dates
183         throughout.
184         * Makefile.in: Accomodate all new files and name changes.
185         Add a *.d dependency.
186         (sbindir): Add.
187         (etcdir): Drop in favor of more appropriate sysconfdir definition.
188         (sysconfdir): Add.
189         (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition.
190         (.SUFFIXES): Add.
191         (install): Add action items.
192         (libclean): New target.
193         (fullclean): Ditto.
194         * bsd_helper.cc: New file.
195         * bsd_helper.h: Ditto.
196         * bsd_log.cc: Ditto.
197         * bsd_log.h: Ditto.
198         * bsd_mutex.cc: Ditto.
199         * bsd_mutex.h: Ditto.
200         * client.cc: Rearrange to build as less as possible if
201         __INSIDE_CYGWIN__.
202         (client_request::handle_request): Add Message Queue and Semaphore
203         handling.
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
207         throughout.
208         (getfunc): Remove.
209         (__cygserver__printf): Remove.
210         (client_request_attach_tty::serve): Return error if impersonation
211         fails.
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.
222         * msg.cc: Rewrite.
223         * sem.cc: Rewrite.
224         * shm.cc: Rewrite.
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
229         __INSIDE_CYGWIN__.
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
242         bool.
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.
252
253 2003-10-22  Corinna Vinschen  <corinna@vinschen.de>
254
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.
266
267 2003-08-30  Christopher Faylor  <cgf@redhat.com>
268
269         * msg.cc: New file.
270         * sem.cc: Ditto.
271
272 2003-08-30  Christopher Faylor  <cgf@redhat.com>
273
274         * threaded_queue.h: New file.
275
276 2003-08-25  Christopher Faylor  <cgf@redhat.com>
277
278         * Makefile.in: Build libcygserver.a.
279         * client.cc: Rename allow_daemon to allow_server.
280
281 2003-07-25  Christopher Faylor  <cgf@redhat.com>
282
283         * configure.in: Use 'install-sh -c'.
284         * configure: Regenerate.
285
286 2003-07-25  Christopher Faylor  <cgf@redhat.com>
287
288         * configure.in: Always use install-sh.
289         * configure: Regenerate.
290
291 2003-07-01  Christopher Faylor  <cgf@redhat.com>
292
293         * Makefile.in (OBJS): Move some more files from cygwin directory.
294         * woutsup.h: Define _MT_SAFE.
295
296 2003-07-01  Christopher Faylor  <cgf@redhat.com>
297
298         * configure.in: First pass.
299         * Makefile.in: Ditto.
300         * configure: Generate.