]>
Commit | Line | Data |
---|---|---|
8996623b CF |
1 | 2002-03-28 Christopher Faylor <cgf@redhat.com> |
2 | ||
3 | * times.cc (gettimeofday): Fix typo in previous patch. | |
4 | ||
7d7524e5 CF |
5 | 2002-03-27 Wu Yongwei <adah@netstd.com> |
6 | ||
7 | * times.cc (gettimeofday): Revert to setting timezone info if tz != | |
8 | NULL. | |
9 | ||
2f3126f6 CF |
10 | 2002-03-21 Christopher Faylor <cgf@redhat.com> |
11 | ||
12 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set | |
13 | st_[ug]id to value derived from get_file_attributes. | |
14 | ||
45d2ea8a CF |
15 | 2002-03-21 Christopher Faylor <cgf@redhat.com> |
16 | ||
17 | * spawn.cc (find_exec): Return input if file not found. | |
18 | ||
99dbafac CV |
19 | 2002-03-19 Boris Schaeling <boriss@web.de> |
20 | ||
21 | * poll.cc (poll): Add support for invalid descriptors. | |
22 | ||
b0359971 RC |
23 | 2002-03-15 Robert Collins <rbtcollins@hotmail.com> |
24 | ||
25 | * fhandler.h (fhandler_termios::lseek): Override lseek. | |
26 | * fhandler_termios.cc (fhandler_termios::lseek): Implement this. | |
27 | ||
59a2339f CF |
28 | 2002-03-15 Christopher Faylor <cgf@redhat.com> |
29 | ||
30 | * cygserver.cc: Include stdlib.h for exit declaration. | |
31 | * threaded_queue.cc: Ditto. | |
32 | ||
ca175377 CF |
33 | 2002-03-15 Christopher Faylor <cgf@redhat.com> |
34 | ||
35 | * pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a | |
36 | redirected block should be marked as nonexistent. | |
37 | (winpids::add): Use PID_ALLPIDS when looking for all pids. | |
38 | * cygwin.h (PID_ALLPIDS): New enum element. | |
39 | ||
2f263187 CV |
40 | 2002-03-15 Corinna Vinschen <corina@vinschen.de> |
41 | ||
42 | * glob.c (stat32_to_STAT): New function. | |
43 | (g_lstat): Call user space functions always with 32 bit struct stat | |
44 | as a workaround. | |
45 | (g_stat): Ditto. | |
46 | * include/glob.h (struct glob): Don't prototype function pointers | |
47 | when compiling Cygwin. | |
48 | ||
4af6d4a9 CF |
49 | 2002-03-14 Christopher Faylor <cgf@redhat.com> |
50 | ||
51 | * pinfo.cc (pinfo::init): Properly handle execed process stub when | |
52 | PID_NOREDIR is specified. | |
53 | ||
6ea9c716 CV |
54 | 2002-03-13 Boris Schaeling <boriss@web.de> |
55 | ||
e10c087b CF |
56 | * poll.cc (poll): Remove variable open_fds. Rearrange and add code to |
57 | fix settings of revents. | |
6ea9c716 | 58 | |
bbe09139 CV |
59 | 2002-03-13 Corinna Vinschen <corina@vinschen.de> |
60 | ||
61 | * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails. | |
62 | (list::erase): New method with no argument. Erase latest record | |
63 | added. | |
64 | (mmap64): Fail if map_map() fails. | |
65 | ||
cb4589f4 CV |
66 | 2002-03-12 Corinna Vinschen <corina@vinschen.de> |
67 | ||
68 | * sysconf.cc (sysconf): Fix condition. | |
69 | ||
2817e0dc CV |
70 | 2002-03-11 Corinna Vinschen <corina@vinschen.de> |
71 | ||
72 | * mmap.cc (msync): Check area given by addr and len for being a | |
73 | contigeous mmap'd region. | |
74 | ||
713fb38b CV |
75 | 2002-03-11 Corinna Vinschen <corina@vinschen.de> |
76 | ||
77 | * fork.cc (fork_child): Call fixup_mmaps_after_fork() before | |
78 | closing parent process handle. Call fixup_mmaps_after_fork() | |
79 | with parent process handle as parameter. | |
80 | * mmap.cc (mmap_record::access): New method. | |
81 | (fixup_mmaps_after_fork): Take process handle as parameter. | |
82 | In case of FILE_MAP_COPY access, copy valid memory regions to child. | |
83 | * pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly. | |
84 | ||
c8c3824d CV |
85 | 2002-03-07 Corinna Vinschen <corina@vinschen.de> |
86 | ||
87 | * autoload.cc (NetGetDCName): Add symbol. | |
88 | (NetServerEnum): Remove symbol. | |
89 | * security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of | |
90 | NetServerEnum() since it's faster. Don't call it at all if machine | |
91 | is not a domain member. | |
92 | ||
9420d2b8 CF |
93 | 2002-03-06 Christopher Faylor <cgf@redhat.com> |
94 | ||
95 | * path.cc (normalize_posix_path): Avoid runs of '.'s > 2. | |
96 | ||
07a21bce CF |
97 | 2002-03-05 Christopher Faylor <cgf@redhat.com> |
98 | ||
99 | * errno.cc: Change EPERM associated text to "Operation not permitted" | |
100 | throughout. | |
101 | ||
eeac69d8 CF |
102 | 2002-03-05 Christopher Faylor <cgf@redhat.com> |
103 | ||
104 | * fhandler_socket.cc (fhandler_socket::close): Respond to signals while | |
105 | looping, waiting for socket to close. Superstitiously clear last error | |
106 | when WSAEWOULDBLOCK. | |
107 | ||
241a7c5a RC |
108 | 2002-03-05 Robert Collins <rbtcollins@hotmail.com> |
109 | ||
110 | * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): | |
111 | Always init - until static members work correctly. | |
112 | * shm.cc (shmget): Initialize the security descriptor - thanks Corinna! | |
113 | * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem | |
114 | control constants. | |
115 | ||
ad2864f4 CV |
116 | 2002-03-04 Christian Lestrade <christian.lestrade@free.fr> |
117 | ||
118 | * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro. | |
119 | * fhandler_termios.cc: Include <sys/termios.h>. | |
120 | (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when | |
121 | not in ICANON mode. | |
122 | ||
59149930 CV |
123 | 2002-03-04 Dmitry Timoshkov <dmitry@baikal.ru> |
124 | ||
125 | * syscalls.cc (truncate64): Use ftruncate64 directly to not lose | |
126 | upper 32 bits. | |
127 | ||
7c3617cc RC |
128 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
129 | ||
130 | * cygserver_shm.cc (delete_shmnode): New function. | |
131 | (client_request_shm::serve): Use it. | |
132 | ||
038c71f1 RC |
133 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
134 | ||
135 | * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH. | |
136 | * shm.cc (shmdt): Implement. | |
137 | ||
67be0adb RC |
138 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
139 | ||
140 | * cygserver_shm.cc: Run indent. | |
141 | (deleted_head): New global for storing shm id's pending deletion. | |
142 | (client_request_shm::serve): Return ENOSYS for invalid request types. | |
143 | Implement SHM_DEL - delete a shm id. | |
144 | * cygserver_shm.h (SHM_DEL): New type value. | |
145 | * shm.cc (delete_inprocess_shmds): New function, does what it's name implies. | |
146 | (shmctl): Implement shm_rmid control type. | |
147 | ||
74c3173a RC |
148 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
149 | ||
150 | * Makefile.in (install): Remove install-bin to allow make install to work. | |
151 | ||
009314a4 RC |
152 | 2002-03-03 Robert Collins <rbtcollins@hotmail.com> |
153 | ||
154 | * shm.cc (shmat): Prevent a compile error. | |
155 | (shmdt): Set errno as this function is incomplete. | |
156 | ||
e7729287 CF |
157 | 2002-02-28 Christopher Faylor <cgf@redhat.com> |
158 | ||
159 | * times.cc: Remove if 0'd code. Clean up slightly. | |
160 | ||
f449bfef RC |
161 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> |
162 | ||
163 | * Merged cygwin_daemon into head minus the new shm and ipc exports. | |
164 | ||
165 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> | |
166 | ||
167 | * fhandler_tty.cc (fhandler_tty_slave::open): More debugging. | |
168 | (fhandler_tty_slave::read): Fix printf type for the handle. | |
169 | * tty.cc (tty::common_init): Add a FIXME for security. | |
170 | ||
171 | 2002-01-29 Robert Collins <rbtcollins@hotmail.com> | |
172 | ||
173 | * Makefile.in (OBJS): Remove duplicate localtime.o. | |
174 | ||
175 | 2002-01-17 Robert Collins <rbtcollins@hotmail.com> | |
176 | ||
177 | * cygserver.cc (check_and_dup_handle): Consolidate the two variants for | |
178 | simplicity. | |
179 | Add Some basic debug output. | |
180 | (client_request_attach_tty::serve): Use the new debug_printf for clarity. | |
181 | Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen | |
182 | tty's. | |
183 | ||
184 | 2002-01-16 Robert Collins <rbtcollins@hotmail.com> | |
185 | ||
186 | * cygserver.cc (transport): Correct scope. | |
187 | (client_request_attach_tty::serve): Add more debug information. | |
188 | Fix erroneous use of transport instead of conn. | |
189 | * cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug. | |
190 | (transport_layer_pipes::read): Ditto. | |
191 | (transport_layer_pipes::write): Ditto. | |
192 | (transport_layer_pipes::impersonate_client): Ditto. | |
193 | ||
194 | Mon Oct 8 7:41:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
195 | ||
196 | * cygserver.cc (server_request::process): Rename client_request_shm_get to | |
197 | client_request_shm. | |
198 | * cygserver_process.cc (process_cache::add): Rename to add_task. | |
199 | Use process_cleanup instead of process_request. | |
200 | (process_cache::remove_process): New method. | |
201 | (process::process): Initialize new members. | |
202 | (process::~process): New member. | |
203 | (process::cleanup): New method. | |
204 | (process::add_cleanup_routine): New method. | |
205 | (process_request::process): Rename to process_cleanup. | |
206 | Call the process object's cleanup method and then delete it. | |
207 | (process_process_param::request_loop): Remove the signalling process. | |
208 | * cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm. | |
209 | (client_request_shm_get::serve): Handle attach request counting. | |
210 | * cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm. | |
211 | (class shm_cleanup): New class. | |
212 | * shm.cc: Globally rename client_request_shm_get to client_request_shm. | |
213 | (client_request_shm::client_request_shm): New constructor for attach requests. | |
214 | (shmat): Use it. | |
215 | * include/cygwin/cygserver_process.h (class process_request): Rename to | |
216 | process_cleanup. | |
217 | (class cleanup_routine): New class. | |
218 | (class process): New members and methods to allow calling back when the process | |
219 | terminates. | |
220 | ||
221 | Thu Oct 4 14:12:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
222 | * cygserver.cc (request_loop): Make static. | |
223 | (main): Use new cache constructor syntax. | |
224 | Start cache worker threads. | |
225 | Cleanup the cache at shutdown. | |
226 | * cygserver_process.cc: Run indent. | |
227 | (process_cache::process_cache): Add a trigger to use when adding a process. | |
228 | (process_cache::process): Move process_entry to process. | |
229 | Insert at the end of the list. | |
230 | Trigger the request loop when new process's inserted. | |
231 | (process_cache::process_requests): Do it. | |
232 | (process_cache::add): New method. | |
233 | (process_cache::handle_snapshot): New method. | |
234 | (process::process): Merge in the process_entry fields. | |
235 | (process::handle): Make a stub function. | |
236 | (process::exit_code): New method. | |
237 | (process_request::process): New method. | |
238 | (process_process_param::request_loop): New method. | |
239 | * cygserver_shm.cc: New header dependency - threaded_queue.h. | |
240 | * threaded_queue.cc (threaded_queue::cleanup): Clearer messages. | |
241 | (queue_process_param::stop): Short spinlock on interruptible threads. | |
242 | * threaded_queue.h (class threaded_queue): New constructor. | |
243 | * include/cygwin/cygserver_process.h (process_request): New class. | |
244 | (process_entry): Remove. | |
245 | (process): Merge in process_entry. | |
246 | (process_cache): Inherit from threaded_queue. | |
247 | ||
248 | Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
249 | ||
250 | * cygserver.cc (class server_process_param): Use new constructor syntax. | |
251 | * cygserver_process.cc (process_cache::~process_cache): New function. | |
252 | * threaded_queue.cc: Define condition debug_printf. | |
253 | Run indent. | |
254 | (threaded_queue::cleanup): Move queue_process_param guts to a method. | |
255 | (threaded_queue::process_requests): Ditto. | |
256 | (queue_process_param::queue_process_param): New method. | |
257 | (queue_process_param::~queue_process_param): Ditto. | |
258 | (queue_process_param::start): Ditto. | |
259 | (queue_process_param::stop): Ditto. | |
260 | * threaded_queue.h (class queue_process_param): Add support for | |
261 | interruptible request loops. | |
262 | * cygwin/include/cygwin/cygserver_process.h (class process_cache): Add | |
263 | destructor. | |
264 | ||
265 | Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
266 | ||
267 | * cygserver_client.cc: New flag allow_daemon to disable the daemon completely. | |
268 | (cygserver_request): Check it. | |
269 | (cygserver_init): Ditto. | |
270 | * environ.cc (parse_thing): Add (no)daemon option. | |
271 | ||
272 | Tue Oct 2 23:00:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
273 | ||
274 | * shm.cc: Update to handle include changes from HEAD. | |
275 | ||
276 | Tue Oct 2 16:06:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
277 | ||
278 | * Makefile.in: Remove cygserver_shm.o from cygwin1.dll. | |
279 | Rename cygserver_shm_outside.o to cygserver_shm.o. | |
280 | * cygserver.cc (server_request::process): Use the new client_request | |
281 | constructor. | |
282 | * cygserver_client.cc: Remove the #ifdef's stubs for the server method | |
283 | within cygwin. | |
284 | (client_request_attach_tty::client_request_attach_tty): Use the new | |
285 | client_request constructor. | |
286 | (client_request_shutdown::client_request_shutdown): Ditto. | |
287 | (client_request::client_request): Ditto. | |
288 | * cygserver_shm.cc (client_request_shm_get::serve): Remove the | |
289 | #ifdef'd stub for in-cygwin builds. | |
290 | (client_request_shm_get::client_request_shm_get): Use the new | |
291 | client_request constructor, and remove the in-cygwin variants. | |
292 | * cygserver_shm.h (class client_request_shm_get): #ifndef test the | |
293 | serve method - it's only used in cygserver. | |
294 | * shm.cc (client_request_shm_get::client_request_shm_get): New function. | |
295 | * include/cygwin/cygserver.h (request_header): New constructor. | |
296 | (class client_request): Use it. | |
297 | New constructor accepting the header size. | |
298 | #ifndef test the server method - it's only used within cygserver. | |
299 | (client_request_get_version): #ifdef test the server method. | |
300 | (client_request_shutdown): Ditto. | |
301 | (client_request_attach_tty): Ditto. | |
302 | ||
303 | Tue Oct 2 9:57:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
304 | ||
305 | * Makefile.in: add threaded_queue.o to cygserver.exe. | |
306 | * cygserver.cc: Include threaded_queue.h | |
307 | (class server_request): Inherit from queue_request. | |
308 | (class server_process_param): Inherit from queue_process_param. | |
309 | (class server_request_queue): Inherit from threaded_queue. | |
310 | (request_loop): Adjust for new types. | |
311 | (server_request_queue::process_requests): Remove guts to | |
312 | threaded_queue::process_requests. | |
313 | (server_request::server_request): Adjust for new types. | |
314 | (worker_function): Delete. | |
315 | (server_request_queue::create_workers): Delete. | |
316 | (server_request_queue::cleanup): Delete. | |
317 | (server_request_queue::add): Move guts to threaded_queue::add. | |
318 | * threaded_queue.cc: New file. | |
319 | * threaded_queue.h: New file. | |
320 | ||
321 | Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
322 | ||
323 | * cygserver.cc (client_request::serve): New function. | |
324 | * cygserver_process.cc: Inlude <pthread.h> for pthread_once. | |
325 | (process_cache::process_cache): Initialise a crtiical section for write access. | |
326 | (process_cache::process): Use the critical section. Also add missing entries to | |
327 | the cache. | |
328 | (do_process_init): New function to initalise class process static variables. | |
329 | (process::process): Ensure that the process access critical section is | |
330 | initialised. | |
331 | (process::handle): Close the handle of old process's when they have terminated | |
332 | and we are returning the handle for a process with the same pid. | |
333 | * cygserver_shm.cc: Run indent. | |
334 | Include cygserver_process.h to allow process cache functionality. | |
335 | (client_request_shm_get::serve): New parameter for process cache support. | |
336 | Use the process cache, not OpenProcess to get a handle to the originating process. | |
337 | Fix a handle leak with token_handle. | |
338 | * cygserver_shm.h (class client_request_shm_get): Update ::serve for process | |
339 | cache support. | |
340 | * cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG. | |
341 | * include/cygwin/cygserver.h: Do not implement client_request::serve in the | |
342 | header. | |
343 | * include/cygwin/cygserver_process.h (class process_cache): Add a write access | |
344 | critical section to prevent races when requests from a multithreaded | |
345 | application arrive. | |
346 | ||
347 | Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
348 | ||
349 | * Makefile.in: Add cygserver_process.o to cygserver.exe. | |
350 | * cygserver.cc: Include signal.h and cygwin_version.h. | |
351 | Define debug_printf as a macro. | |
352 | Define DEBUG to a value. | |
353 | (client_request_attach_tty::serve): Add beginning of process cache support. | |
354 | Change from #ifdef DEBUG to work with new DEBUG style. | |
355 | (client_request_get_version::serve): Add beginning of process cache support. | |
356 | (class server_request): New prototype for support of process cache. | |
357 | (class queue_process_param): New class to allow request loop threading. | |
358 | (class server_request_queue): Add beginning of process cache support. | |
359 | Allow request loop threading. | |
360 | (request_loop): Thread function for request loops. | |
361 | (server_request_queue::process_requests): Initiator for threaded request loops. | |
362 | (client_request_shutdown::serve): Add beginning of process cache support. | |
363 | (server_request::server_request): Ditto. | |
364 | (server_request::process): Use debug_printf. Add beginning of process cache | |
365 | support. | |
366 | (server_request_queue::cleanup): Kill off any request loop threads. | |
367 | (server_request_queue::add): Add beginning of process cache support. | |
368 | (handle_signal): Trigger a shutdown. | |
369 | (main): Print out some useful info at startup - version, date time. | |
370 | Add process cache support. | |
371 | Spawn a separate thread for the transport request loop, thus allowing concurrent | |
372 | support for multiple transports. | |
373 | * cygserver_client.cc (client_request_get_version::serve): Add process cache | |
374 | support. | |
375 | (client_request_attach_tty::serve): Add process cache support. | |
376 | (client_request_shutdown::serve): Add process cache support. | |
377 | * cygsserver_process.cc: New file with the process cache support. | |
378 | * cygserver_shm.cc: Redefine debug_printf to allow conditional output. | |
379 | * cygwin.din: Export shmdt(). | |
380 | * shm.cc: Run indent. | |
381 | Update FIXME's. | |
382 | (shmdt): New function. | |
383 | * include/cygwin/cygserver.h (class client_request): Add process cache support. | |
384 | (class client_request_get_version): Ditto. | |
385 | (class client_request_shutdown): Ditto. | |
386 | (class client_request_attach_tty): Ditto. | |
387 | * include/cygwin/cygserver_process.h: New header for process cache support. | |
388 | ||
389 | Sun Sep 30 8:52:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
390 | ||
391 | * include/cygwin/cygserver_transport.h: Add copyright header. | |
392 | * include/cygwin/cygserver_transport_pipes.h: Ditto. | |
393 | * include/cygwin/cygserver_transport_sockets.h: Ditto. | |
394 | ||
395 | Sat Sep 29 20:40:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
396 | ||
397 | * Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES. | |
398 | Add cygserver_transport_sockets_outside.o to cygserver.exe. | |
399 | * cygserver.cc: Include new include files. | |
400 | * cygserver_client.cc: Ditto. | |
401 | * cygserver_shm.h: No need to include <sys/socket.h> now. | |
402 | * cygerver_transport.cc: Include new include files. | |
403 | (transport_layer_base::transport_layer_base): Strip back to a stub. | |
404 | (transport_layer_base::listen): Ditto. | |
405 | (transport_layer_base::accept): Ditto. | |
406 | (transport_layer_base::close): Ditto. | |
407 | (transport_layer_base::read): Ditto. | |
408 | (transport_layer_base::write): Ditto. | |
409 | (transport_layer_base::connect): Ditto. | |
410 | * cygserver_transport_pipes.cc: Include new header | |
411 | "cygwin/cygserver_transport_pipes.h". | |
412 | * cygserver_transport_sockets.cc: New file. | |
413 | * dcrt0.cc: No need to include <sys/socket.h> now. | |
414 | * fhandler_tty.cc: Ditto. | |
415 | * tty.cc: Ditto. | |
416 | * include/cygwin/cygserver_transport.h: Strip the base class to a stub. | |
417 | Remove the cygserver_transport_pipes class. | |
418 | * include/cygwin/cygserver_transport_pipes.h: New file. | |
419 | * include/cygwin/cygserver_transport_sockets.h: New file. | |
420 | ||
421 | Tue Sep 25 16:22:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
422 | ||
423 | * autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'. | |
424 | * Makefile.in: Add new object files, and build instructions for cygserver.exe. | |
425 | * cygwin.din: Export ftok, shmat, shmctl and shmget. | |
426 | * dcrt0.cc: Additional includes for cygserver support. | |
427 | (dll_crt0_1): Initialise the cygserver client. | |
428 | * fhandler.h (fhandler_tty): New method cygserver_attach_tty. | |
429 | * fhandler_tty.cc: Additional includes for cygserver support. | |
430 | (fhandler_tty_slave::open): Attempt to use the cygserver when obtaining | |
431 | handles from the parent process. On failure or 9x use the current method. | |
432 | (fhandler_tty_slave::cygserver_attach_tty): New function. | |
433 | * fork.cc (fork_child): Fixup shm memory mapped areas. | |
434 | * pinfo.h: Declare fixup_shms_after_fork(). | |
435 | * security.h: Declare alloc_sd(). | |
436 | * tty.cc: Additonal includes to support cygserver. | |
437 | (tty::common_init): Don't allow others to open us if the cygserver is running. | |
438 | * winsup.h: Declare cygserver_running. | |
439 | * cygserver.cc: New file. | |
440 | * cygserver_client.cc: New file. | |
441 | * cygserver_shm.cc: New file. | |
442 | * cygserver_shm.h: New file. | |
443 | * cygserver_transport.cc: New file. | |
444 | * cygserver_transport_pipes.cc: New file. | |
445 | * ipc.cc: New file. | |
446 | * shm.cc: New file. | |
447 | * include/cygwin/cygserver.h: New file. | |
448 | * include/cygwin/cygserver_transport.h: New file. | |
449 | * include/sys/ipc.h: New file. | |
450 | * include/sys/shm.h: New file. | |
451 | ||
062401c9 RC |
452 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> |
453 | ||
454 | * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1. | |
455 | (__sem_wait): Ditto. | |
456 | (__sem_trywait): Ditto. | |
457 | ||
d1f50ae5 CF |
458 | 2002-02-27 Christopher Faylor <cgf@redhat.com> |
459 | ||
460 | * include/cygwin/version.h: Bump DLL minor number. | |
461 | ||
acb56175 CV |
462 | 2002-02-23 Corinna Vinschen <corinna@vinschen.de> |
463 | ||
464 | * cygwin.din (fstat64): New symbol. | |
465 | (ftruncate64): Ditto. | |
466 | (lseek64): Ditto. | |
467 | (lstat64): Ditto. | |
468 | (mmap64): Ditto. | |
469 | (seekdir64): Ditto. | |
470 | (stat64): Ditto. | |
471 | (telldir64): Ditto. | |
472 | (truncate64): Ditto. | |
473 | * dir.cc (telldir64): New function. | |
474 | (telldir): Call telldir64(). | |
475 | (seekdir64): New function. | |
476 | (seekdir): Call seekdir64(). | |
477 | * fhandler.h: Redefine all methods using __off32_t to use __off64_t. | |
478 | * fhandler.cc: Use __off64_t and struct __stat64 throughout. | |
479 | * fhandler_clipboard.cc: Ditto. | |
480 | * fhandler_disk_file.cc: Ditto. | |
481 | * fhandler_dsp.cc: Ditto. | |
482 | * fhandler_floppy.cc: Ditto. | |
483 | * fhandler_mem.cc: Ditto. | |
484 | * fhandler_random.cc: Ditto. | |
485 | * fhandler_socket.cc: Ditto. | |
486 | * fhandler_tape.cc: Ditto. | |
487 | * fhandler_zero.cc: Ditto. | |
488 | * pipe.cc: Ditto. | |
489 | * glob.c: Ditto, call lstat64 and stat64 in Cygwin. | |
490 | * mmap.cc: Use __off64_t throughout. | |
491 | (mmap64): New function. | |
492 | * sec_acl.cc (acl_worker): Use struct __stat64, call stat64 and lstat64. | |
493 | * syscalls.cc (lseek64): New function. | |
494 | (stat64_to_stat32): Ditto. | |
495 | (fstat64): Ditto. | |
496 | (stat64): Ditto. | |
497 | (lstat64): Ditto. | |
498 | (ftruncate64): Ditto. | |
499 | (truncate64): Ditto. | |
500 | (_fstat): Call fstat64. | |
501 | (_stat): Call stat64. | |
502 | (cygwin_lstat): Rename to avoid declaration problem. Call lstat64. | |
503 | (stat_worker): Use struct __stat64. | |
504 | (access): Ditto. | |
505 | (ftruncate): Call ftruncate64. | |
506 | (truncate): Call truncate64. | |
507 | * wincap.cc: Set flag has_64bit_file_access appropriately. | |
508 | * wincap.h: Add flag has_64bit_file_access. | |
509 | * winsup.h (ILLEGAL_SEEK): Define as __off64_t. | |
510 | (stat_dev): Declare using struct __stat64. | |
511 | (stat_worker): Ditto. | |
512 | * include/cygwin/stat.h (struct __stat32): Define if compiling Cygwin. | |
513 | (struct __stat64): Ditto. | |
514 | (struct stat): Revert definition with explicitly sized datatypes. | |
515 | Eliminate sized field names. | |
516 | * include/cygwin/types.h (blksize_t): New type. | |
517 | (__blkcnt32_t): Ditto. | |
518 | (__blkcnt64_t): Ditto. | |
519 | (blkcnt_t): Ditto. | |
520 | ||
083abe54 CF |
521 | 2002-02-22 Christopher Faylor <cgf@redhat.com> |
522 | ||
523 | * sync.h (new_muto): Just accept an argument which denotes the name of | |
524 | the muto. Use this argument to construct static storage. | |
525 | * cygheap.cc (cygheap_init): Reflect above change. | |
526 | * exceptions.cc (events_init): Ditto. | |
527 | * malloc.cc (malloc_init): Ditto. | |
528 | * path.cc (cwdstuff::init): Ditto. | |
529 | * cygheap.h (cwdstuff): Change name of lock element to make it less | |
530 | generic. | |
531 | * path.cc (cwdstuff::get_hash): Ditto. | |
532 | (cwdstuff::get_initial): Ditto. | |
533 | (cwdstuff::set): Ditto. | |
534 | (cwdstuff::get): Ditto. | |
535 | * sigproc.cc (proc_subproc): Ditto. | |
536 | ||
537 | * debug.cc (lock_debug): Change to method. Use method rather than | |
538 | macro throughout. | |
539 | ||
540 | * tty.h (tty_min::kill_pgrp): Declare new method. | |
541 | * fhandler_termios.cc (tty_min::kill_pgrp): New method. | |
542 | (fhandler_termios::line_edit): Use new method for killing process. | |
543 | * dcrt0.cc (do_exit): Ditto. | |
544 | ||
545 | * dtable.cc (dtable::get_debugger_info): New method for inheriting | |
546 | dtable info from a debugger. | |
547 | * tty.cc (tty_init): Attempt to grab file handle info from parent | |
548 | debugger, if appropriate. | |
549 | ||
550 | # dtable.cc (dtable::stdio_init): Make this a method. | |
551 | (dtable::init_std_file_from_handle): Don't set fd unless it's not open. | |
552 | (dtable::build_fhandler_from_name): Move name setting to | |
553 | dtable::build_fhandler. | |
554 | (dtable::build_fhandler): Add win32 name parameter. | |
555 | * dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init. | |
556 | * dtable.h (dtable): Reflect build_fhandler parameter change. | |
557 | * mmap.cc (mmap_record::alloc_fh): Don't set name parameter in | |
558 | build_fhandler. | |
559 | * net.cc (fdsock): Remove set_name call since it is now handled by | |
560 | build_fhandler. | |
561 | ||
562 | * sigproc.cc (proc_subproc): Release muto as early as possible. | |
563 | ||
a6790c5f CV |
564 | 2001-02-22 Corinna Vinschen <corinna@vinschen.de> |
565 | ||
566 | * smallprint.c (rn): Allow long long values. | |
567 | (__small_vsprintf): Add 'D', 'U' and 'X' formats for long long | |
568 | parameters. | |
569 | ||
aa6df8d7 CF |
570 | 2002-02-19 Christopher Faylor <cgf@redhat.com> |
571 | ||
572 | * fhandler.cc (fhandler_base::puts_readahead): Remove default parameter | |
573 | setting. Newer gcc's complain about this. | |
574 | (fhandler_base::set_readahead_valid): Ditto. | |
575 | * fhandler_dsp.cc (Audio::open): Ditto. | |
576 | (fhandler_dev_dsp::open): Ditto. | |
577 | ||
cecb74ae CF |
578 | 2002-02-19 Christopher Faylor <cgf@redhat.com> |
579 | ||
580 | * fork.cc (fork_parent): Use sec_user_nih to control process/thread | |
581 | inheritance/permission. | |
582 | * spawn.cc (spawn_guts): Ditto. | |
583 | * security.cc (create_token): Initialize token so that it is not tested | |
584 | for bogus value later. Use sec_user to control process/thread | |
585 | creation. | |
586 | * security.h (__sec_user): Rename declaration from sec_user. | |
587 | (sec_user_nih): Declare here as inline function wrapper for __sec_user. | |
588 | (sec_user): Ditto. | |
589 | * sigproc.cc (czombies): Allocate a character array for zombies to | |
590 | avoid constructor overhead | |
591 | (extremely hackish, I know). | |
592 | (cpchildren): Ditto. | |
593 | (pchildren): New define. | |
594 | (zombies): Ditto. | |
595 | (getsem): Use sec_user_nih to control semaphore inheritance/permission. | |
596 | ||
2bd22312 CF |
597 | 2002-02-16 Christopher Faylor <cgf@redhat.com> |
598 | ||
599 | * times.cc (hires::prime): Restore thread priority on failure | |
600 | condition. | |
601 | ||
602 | * uinfo.cc (uinfo_init): Use more robust method for determining if | |
603 | process was invoked from a non-cygwin process. | |
604 | ||
605 | * sync.h (muto::init): Eliminate "inheritance" parameter. | |
606 | (new_muto): Reflect removal of parameter. | |
607 | * sync.cc (muto::init): Ditto. | |
608 | * cygheap.cc (cygheap_init): Ditto. | |
609 | * debug.cc (threadname_init): Ditto. | |
610 | * exceptions.cc (events_init): Ditto. | |
611 | * malloc.cc (malloc_init): Ditto. | |
612 | * path.cc (cwdstuff::init): Ditto. | |
613 | * sigproc.cc (sigproc_init): Ditto. | |
614 | ||
4c761646 CF |
615 | * grp.cc (group_lock): Use different method for locking with static |
616 | member. | |
2bd22312 | 617 | (read_etc_group): REALLY ensure that read lock mutex is released. |
4c761646 CF |
618 | * passwd.cc (passwd_lock): Use different method for locking with static |
619 | member. | |
620 | (read_etc_passwd): REALLY ensure that read lock mutex is released. | |
2bd22312 CF |
621 | |
622 | * shared.cc (sec_user): Correct reversed inheritance test. | |
623 | ||
60b68f0d CF |
624 | 2002-02-15 Christopher Faylor <cgf@redhat.com> |
625 | ||
626 | * hires.h (hires::usecs): Rename from utime. Accept an argument. | |
627 | * strace.cc (strace::microseconds): Use hires class for calculating | |
628 | times. | |
629 | * sync.h (new_muto): Use NO_COPY explicitly in declaration. | |
630 | * times.cc (gettimeofday): Reflect change in usecs argument. | |
631 | (hires::usecs): Ditto. Changed name from utime. | |
632 | * winsup.h (NO_COPY): Add nocommon attribute to force setting aside | |
633 | space for variable. | |
634 | * regcomp.c (REQUIRE): Add a void cast to bypass a warning. | |
635 | ||
dce87b21 CF |
636 | 2002-02-15 Christopher Faylor <cgf@redhat.com> |
637 | ||
638 | * hires.h: New file. | |
639 | * times.cc (gettimeofday): Use hires class for calculating current time. | |
640 | (hires::prime): New method. | |
641 | (hires::utime): Ditto. | |
642 | ||
3d456520 CF |
643 | 2002-02-14 Christopher Faylor <cgf@redhat.com> |
644 | ||
645 | * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE. | |
646 | * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE. | |
647 | ||
907dc7d0 CF |
648 | 2002-02-14 Christopher Faylor <cgf@redhat.com> |
649 | ||
650 | * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to | |
651 | asm. | |
652 | * external.cc (cygwin_internal): Change CW_STRACE_ON to | |
653 | CW_STRACE_TOGGLE. | |
654 | * strace.cc (strace::hello): Toggle strace on and off. | |
655 | * sync.cc (muto::init): Renamed from constructor. | |
656 | * sync.h (muto::new): Delete. | |
657 | (muto::delete): Ditto. | |
658 | (new_muto): Simplify. Use muto.init for nearly everything. | |
659 | * uinfo.cc (uinfo_init): Avoid closing a NULL handle. | |
660 | * include/sys/cygwin.h (cygwin_getinfo_types): Rename CW_STRACE_OFF to | |
661 | CW_STRACE_TOGGLE. Delete CW_STRACE_OFF. | |
662 | * include/sys/strace.h (strace): Add "inited" field. | |
663 | ||
4753a17b CV |
664 | 2001-02-12 Corinna Vinschen <corinna@vinschen.de> |
665 | ||
666 | * include/cygwin/acl.h: Fix definition of aclent_t. | |
667 | ||
909acaf6 CF |
668 | 2002-02-10 Christopher Faylor <cgf@redhat.com> |
669 | ||
670 | * Makefile.in (DLL_OFILES): Consolidate object files. | |
671 | ||
de4e0d30 CV |
672 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> |
673 | ||
b31c68c4 CV |
674 | * child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc, |
675 | fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, | |
676 | fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, | |
677 | pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, | |
678 | security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright. | |
679 | ||
680 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> | |
681 | ||
682 | * child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h, | |
de4e0d30 CV |
683 | fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc, |
684 | fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, | |
685 | fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, | |
686 | pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, | |
b31c68c4 | 687 | security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h: |
de4e0d30 CV |
688 | Change usage of uid_t to __uid16_t, gid_t to __gid16_t and |
689 | off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and | |
690 | INVALID_SEEK instead casting -1 to the appropriate type. | |
691 | * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK. | |
692 | * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t | |
693 | types. Don't declare acl functions when compiling Cygwin. | |
694 | * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with | |
695 | correct types for internal usage. | |
696 | ||
39b553b8 CV |
697 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> |
698 | ||
699 | Patch suggested by Pierre A. Humblet <Pierre.Humblet@ieee.org>: | |
700 | * uinfo.cc (internal_getlogin): Try evaluating user by SID even if | |
701 | ntsec is off. | |
702 | (uinfo_init): Set primary group even if ntsec is off. | |
703 | ||
52296b85 CV |
704 | 2002-02-09 Corinna Vinschen <corinna@vinschen.de> |
705 | ||
706 | * include/cygwin/grp.h: New file. | |
707 | * include/cygwin/stat.h: Ditto. | |
708 | * include/cygwin/types.h: Add definitions for __off32_t, | |
709 | __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t, | |
710 | __gid32_t and gid_t. | |
711 | * include/sys/cygwin.h: Use correct uid and gid types. | |
712 | ||
ff86860b CV |
713 | 2002-02-09 Corinna Vinschen <corinna@vinschen.de> |
714 | ||
715 | * dtable.cc (dtable::dup2): Revert previous patch. | |
716 | * fhandler.h: Ditto. | |
717 | (fhandler_socket::recv): Define new method. | |
718 | (fhandler_socket::send): Ditto. | |
719 | * fhandler_socket.cc (fhandler_socket::recv): New method. | |
720 | (fhandler_socket::send): Ditto. | |
721 | (fhandler_socket::read): Call fhandler_socket::recv() now. | |
722 | (fhandler_socket::write): Call fhandler_socket::send() now. | |
723 | * net.cc (class wsock_event): Move definition to wsock_event.h. | |
724 | (fdsock): Revert previous patch. | |
725 | (cygwin_recv): Move implementation to fhandler_socket::recv(). | |
726 | (cygwin_send): Move implementation to fhandler_socket::send(). | |
727 | * wsock_event.h: New file. | |
728 | ||
d0672acc CV |
729 | 2002-02-06 Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de> |
730 | ||
731 | * net.cc (get_2k_ifconf): Create interface entries for tokenring cards. | |
732 | ||
fae28904 CV |
733 | 2002-02-08 Corinna Vinschen <corinna@vinschen.de> |
734 | ||
735 | * dtable.cc (dtable::dup2): Store fd for fhandler_socket. | |
736 | * fhandler.h (fhandler_base::set_fd): New virtual method. | |
737 | (fhandler_base::get_fd): Ditto. | |
738 | (fhandler_socket::set_fd): Ditto. | |
739 | (fhandler_socket::get_fd): Ditto. | |
740 | * fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead | |
741 | of native Winsock recv. | |
742 | (fhandler_socket::write): Call cygwin_send instead of native Winsock | |
743 | send. | |
744 | * net.cc (fdsock): Store fd in fhandler_socket. | |
745 | ||
1f64102f CV |
746 | 2002-02-07 Corinna Vinschen <corinna@vinschen.de> |
747 | ||
748 | * net.cc (cygwin_getsockname): Fix handling of NULL sun_path. | |
749 | ||
562d9745 CV |
750 | 2002-01-29 Corinna Vinschen <corinna@vinschen.de> |
751 | ||
752 | * net.cc (getdomainname): Fix registry key for 9x systems, too. | |
753 | ||
94ee02fa CV |
754 | 2002-01-29 Corinna Vinschen <corinna@vinschen.de> |
755 | ||
756 | * net.cc (getdomainname): Fix registry key for NT systems. | |
757 | ||
494a66d9 CF |
758 | 2002-01-28 Christopher Faylor <cgf@redhat.com> |
759 | ||
760 | * external.cc (cygwin_internal): Initialize various internal settings | |
761 | if required to allow use of some things from user loaded DLL. | |
762 | (CW_STRACE_ON): Add new feature. | |
763 | (CW_CYGWIN_PID_TO_WINPID): Ditto. | |
764 | * pinfo.cc (set_myself): Call "strace.hello" to initiate possible | |
765 | strace session. | |
766 | (pinfo::init): Guard against dereferencing uninitialized myself. | |
767 | * sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal" | |
768 | received. | |
769 | * strace.cc (strace::hello): New method. | |
770 | * wincap.cc (wincapc::init): Avoid initializing if already initialized. | |
771 | * wincap.h (wincapc::wincapc): New method. | |
772 | * include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of | |
773 | {g,u}id_t if required. | |
774 | * strace.h (strace::hello): Declare new method. | |
775 | ||
6616e6cf CF |
776 | 2002-01-28 Earnie Boyd <earnie@users.sf.net> |
777 | ||
778 | * include/sys/strace.h (_STRACE_ON): Define. | |
779 | (_STRACE_OFF): Ditto. | |
780 | ||
dfb4c347 CF |
781 | 2002-01-24 Christopher Faylor <cgf@redhat.com> |
782 | ||
783 | * speclib: Ensure that temporary def file is removed. | |
784 | ||
3c07fbeb CF |
785 | 2002-01-23 Christopher Faylor <cgf@redhat.com> |
786 | ||
787 | * speclib: Use rm -f to remove temp file just to quiet any potential | |
788 | warnings. | |
789 | ||
f6fc31e1 CV |
790 | 2002-01-23 Corinna Vinschen <corinna@vinschen.de> |
791 | ||
792 | * security.cc (create_token): Use sec_user() to create | |
be6d8567 CV |
793 | SECURITY_ATTRIBUTES structure for primary token. Use |
794 | MAXIMUM_ALLOWED access rights instead of TOKEN_ALL_ACCESS. | |
f6fc31e1 | 795 | |
adbd01af CV |
796 | 2002-01-23 Corinna Vinschen <corinna@vinschen.de> |
797 | ||
798 | * path.cc (symlink): Fix check for already existing file. | |
799 | ||
aed69a5b CF |
800 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
801 | ||
802 | * cygmagic: Suppress error output when figuring out if sum takes an | |
803 | option. | |
804 | ||
f3647dd7 CF |
805 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
806 | ||
807 | * cygmagic: Attempt to figure out if sum takes an option. | |
808 | ||
51076b73 CF |
809 | 2002-01-21 DJ Delorie <dj@redhat.com> |
810 | ||
811 | * Makefile.in (libpthread.a): Pass the assembler also. | |
812 | (libm.a): Ditto. | |
813 | (libc.a): Ditto. | |
814 | * speclib: Specify the assembler to dlltool. | |
815 | ||
0ac2abea CF |
816 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
817 | ||
818 | * include/cygwin/version.h: Bump DLL minor number. | |
819 | ||
ac11ec88 CV |
820 | 2002-01-21 Corinna Vinschen <corinna@vinschen.de> |
821 | ||
28982aa8 | 822 | * grp.cc (getgrgid): Don't return default gid entry when ntsec is on. |
ac11ec88 CV |
823 | * syscalls.cc (setegid): Don't set primary group in process token. |
824 | ||
8ef47135 CF |
825 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
826 | ||
827 | * speclib: Don't use /dev/null as DLL name. Just default to what's | |
828 | already in .def file. | |
829 | ||
830 | 2002-01-21 Christopher Faylor <cgf@redhat.com> | |
831 | ||
832 | * exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code | |
833 | which caused SIGCHLD to be ignored. | |
834 | ||
07cc1f1f CF |
835 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
836 | ||
837 | * include/cygwin/version.h: Bump DLL minor number. | |
838 | ||
385437d4 CF |
839 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
840 | ||
841 | * syscalls.cc (regfree): Make dll_export. | |
842 | ||
d7c16d8d CF |
843 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
844 | ||
845 | * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid | |
846 | when detecting if we should actually handle CTRL-C. | |
847 | ||
216109a8 CF |
848 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
849 | ||
850 | * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a | |
851 | is only available in libstdc++-v3. | |
852 | ||
9e73b339 CF |
853 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
854 | ||
855 | * exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent | |
856 | doesn't want it. | |
857 | (sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough | |
858 | information. | |
859 | ||
5946622e CF |
860 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
861 | ||
862 | * include/cygwin/version.h: Bump DLL minor number. | |
863 | ||
994fe87b CF |
864 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
865 | ||
866 | * Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link. | |
867 | * sigproc.cc (proc_exists): Change existence criteria. | |
868 | * sync.h (new_muto): Add volatile to definition to avoid gcc | |
869 | optimization problems. | |
870 | ||
df3af773 CV |
871 | 2002-01-19 Corinna Vinschen <corinna@vinschen.de> |
872 | ||
873 | * include/cygwin/version.h: Bump API minor version to 51. | |
874 | ||
7d6be0d6 CV |
875 | 2002-01-19 Mark Bradshaw <bradshaw@staff.crosswalk.com> |
876 | ||
877 | * cygwin.din: Add recvmsg and sendmsg. | |
878 | * net.cc: Add cygwin_recvmsg and cygwin_sendmsg. | |
879 | * /usr/include/sys/socket.h: Add recvmsg and sendmsg. | |
880 | ||
2d3dab2e CV |
881 | 2002-01-19 Corinna Vinschen <corinna@vinschen.de> |
882 | ||
883 | * security.cc (create_token): Close processes token handle as soon | |
884 | as it's not used anymore. | |
885 | ||
104c3be6 CV |
886 | 2002-01-17 Corinna Vinschen <corinna@vinschen.de> |
887 | ||
888 | * Makefile.in: Add fnmatch.o to DLL_OFILES. | |
889 | * cygwin.din: Add fnmatch export symbol. | |
890 | * fnmatch.c: New file. | |
891 | * include/fnmatch.h: Ditto. | |
892 | * include/cygwin/version.h: Bump API minor version to 50. | |
893 | ||
9a7e1562 CV |
894 | 2002-01-15 Corinna Vinschen <corinna@vinschen.de> |
895 | ||
896 | * path.cc (fchdir): Call chdir with full windows path. | |
897 | ||
7eddac1b CV |
898 | 2002-01-14 Corinna Vinschen <corinna@vinschen.de> |
899 | ||
900 | * dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1" | |
901 | for file attributes throughout. | |
902 | * fhandler.cc: Ditto. | |
903 | * fhandler_disk_file.cc: Ditto. | |
904 | * path.cc: Ditto. | |
905 | * path.h: Ditto. | |
906 | * syscalls.cc: Ditto. | |
907 | * times.cc (utimes): Use path_conv::isdir() instead of explicit | |
908 | GetFileAttributes() call. | |
909 | ||
5daa0835 CF |
910 | 2002-01-13 Christopher Faylor <cgf@redhat.com> |
911 | ||
912 | * dcrt0.cc (multiple_cygwin_problem): Clarify logic and make | |
913 | CYGWIN_MISMATCH_OK more powerful. | |
914 | ||
06486d9e CF |
915 | 2002-01-10 Christopher Faylor <cgf@redhat.com> |
916 | ||
917 | * exceptions.cc (sig_handle): Accept a second argument indicating | |
918 | whether the signal came from this process or not. | |
919 | * sigproc.h: Reflect sig_handle arg change. | |
920 | * signal.cc (kill_pgrp): Add sigframe info. | |
921 | (abort): New function. Eliminates newlib function of same name. | |
922 | * sigproc.cc (wait_sig): Pass "signal from this process" value as arg | |
923 | 2. | |
924 | ||
bb5225c2 CV |
925 | 2002-01-10 Corinna Vinschen <corinna@vinschen.de> |
926 | ||
927 | * syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid | |
928 | file parameter. | |
929 | ||
c0a8e8d0 CF |
930 | 2002-01-09 Christopher Faylor <cgf@redhat.com> |
931 | Robert Collins <rbtcollins@hotmail.com> | |
932 | ||
933 | * exceptions.cc (early_stuff_init): Rename from misnamed | |
934 | set_console_handler. | |
935 | (ctrl_c_handler): Attempt to work around potential signal duplication | |
936 | during process startup. | |
937 | (sig_handle): Ignore SIGINT when we're just an "exec stub". | |
938 | * spawn.cc (spawn_guts): Store pid of spawned process in global for use | |
939 | by ctrl_c_handler. | |
940 | * dcrt0.cc (dll_crt0_1): Call renamed initialization function. | |
941 | * winsup.h: Reflect function name change. | |
942 | ||
fe37dd79 CV |
943 | 2002-01-08 Corinna Vinschen <corinna@vinschen.de> |
944 | ||
945 | * net.cc (cygwin_accept): Set sun_path for newly connected socket. | |
946 | ||
cbf7a9eb CF |
947 | 2002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de> |
948 | ||
949 | * Makefile.in: Add uninstall target. | |
950 | ||
a2e12d0c CF |
951 | 2002-01-07 Christopher Faylor <cgf@redhat.com> |
952 | ||
953 | * sigproc.cc (getsem): Clean up debugging output. | |
954 | ||
4a08cbfe CF |
955 | 2002-01-07 Christopher Faylor <cgf@redhat.com> |
956 | ||
957 | * sigproc.cc (getsem): Set errno when unable to create own semaphore. | |
958 | Reorganize to make clearer that error should only come from initial | |
959 | creation of process semaphore. | |
960 | ||
10dedaaa CF |
961 | 2002-01-06 Christopher Faylor <cgf@redhat.com> |
962 | ||
963 | * dtable.cc (dtable::init_std_file_from_handle): Add some defensive | |
964 | code to invalid handle case. | |
965 | ||
d6154fb7 CV |
966 | 2002-01-06 Corinna Vinschen <corinna@vinschen.de> |
967 | ||
968 | * ioctl.cc (ioctl): Make third argument optional. | |
969 | * include/sys/ioctl.h: Ditto in declaration. | |
970 | * dtable.cc (dtable::init_std_file_from_handle): Revert previous | |
971 | bogus patch. | |
972 | * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB | |
973 | message. | |
974 | ||
9125cbd7 | 975 | 2002-01-05 Christopher Faylor <cgf@redhat.com> |
fcb76c5d | 976 | |
9125cbd7 CF |
977 | * dir.cc (opendir): Guarantee release of alloced fhandler structure on |
978 | error. | |
fcb76c5d | 979 | |
9125cbd7 CF |
980 | 2002-01-05 Corinna Vinschen <corinna@vinschen.de> |
981 | ||
982 | * exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN. | |
983 | ||
984 | 2002-01-05 Corinna Vinschen <corinna@vinschen.de> | |
2edba236 CV |
985 | |
986 | * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL | |
987 | handle as errorneous. | |
988 | ||
acf05df7 CF |
989 | 2002-01-04 Christopher Faylor <cgf@redhat.com> |
990 | ||
991 | * cygmagic: Change logic for equality test. | |
992 | ||
7acba971 CF |
993 | 2002-01-04 Christopher Faylor <cgf@redhat.com> |
994 | ||
995 | * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT. | |
996 | ||
9125cbd7 | 997 | 2002-01-04 Corinna Vinschen <corinna@vinschen.de> |
dc63cea5 CV |
998 | |
999 | * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL | |
1000 | throughout. | |
1001 | (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types | |
1002 | in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL | |
1003 | and PF_INET protocols. Return error otherwise. Implement datagram | |
1004 | socketpairs. | |
1005 | ||
3b789217 CF |
1006 | 2002-01-01 Christopher Faylor <cgf@redhat.com> |
1007 | ||
f449bfef | 1008 | * speclib: Remove temp files automatically. |
3b789217 | 1009 | |
2fe27909 | 1010 | 2002-01-01 Corinna Vinschen <corinna@vinschen.de> |
2fe27909 CV |
1011 | * fhandler.h (fhandler_socket::sun_path): New private member. |
1012 | (fhandler_socket::set_sun_path): New method. | |
1013 | (fhandler_socket::get_sun_path): Ditto. | |
1014 | * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize | |
1015 | sun_path to NULL. | |
1016 | (fhandler_socket::~fhandler_socket): Free sun_path if needed. | |
1017 | (fhandler_socket::set_sun_path): New method. | |
1018 | * net.cc (cygwin_bind): Set sun_path to path of local socket file. | |
1019 | (cygwin_getsockname): Add code to return correct sockaddr for unix | |
1020 | domain sockets. |