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