]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
* include/wchar.h: Define __need_size_t.
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
2e2dcba3
CF
12002-06-08 Christopher Faylor <cgf@redhat.com>
2
3 * include/wchar.h: Define __need_size_t.
4
9cde3cf3
CF
52002-06-07 Christopher Faylor <cgf@redhat.com>
6
7 * fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket
8 is unix-domain socket.
9
102002-06-07 Christopher Faylor <cgf@redhat.com>
11
12 * times.cc (hires_ms::prime): Set init flag.
13
142002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
15
16 * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to
17 1970.
18
9d0efbb3
CF
192002-06-06 Christopher Faylor <cgf@redhat.com>
20
21 * autoload.cc (timeGetDevCaps): Define new autoload function.
22 (timeGetTime): Ditto.
23 (timeBeginPeriod): Ditto.
24 (timeEndPeriod): Ditto.
25 * hires.h (hires_base): New class. Renamed from hires.
26 (hires_us): New class.
27 (hires_ms): New class.
28 * strace.cc (strace::microseconds): Use hires_us class.
29 * times.cc (gettimeofday): Use hires-ms class.
30 (hires_us::prime): Renamed from hires::prime.
31 (hires_us::usecs): Renamed from hires:usecs.
32 (hires_ms::prime): New method.
33 (hires_ms::usecs): New method.
34 (hires_ms::~hires_ms): New destructor.
35
46b941fc
CF
362002-06-06 Christopher Faylor <cgf@redhat.com>
37
38 * autoload.cc (noload): Correctly save argument count register.
39
c4e6ff48
CV
402002-06-05 Conrad Scott <conrad.scott@dsl.pipex.com>
41
42 * fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of
43 st_atim, st_mtim, and st_ctim fields.
44 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Ditto.
45 * fhandler_process.cc (fhandler_process::fstat): Ditto.
46b941fc
CF
46 * glob.c (stat32_to_STAT): Copy across the whole st_atim, st_mtime, and
47 st_ctim fields.
c4e6ff48
CV
48 * syscalls.cc (stat64_to_stat32): Ditto.
49 * times.cc (to_timestruc_t): New function.
50 (time_as_timestruc_t): New function.
51 * winsup.h: Add to_timestruc_t and time_as_timestruc_t functions.
46b941fc
CF
52 * include/cygwin/stat.h: Replace time_t with timestruc_t throughout for
53 all file times, removing the st_spare1, st_spare2, and st_spare3 fields
54 in the process. Add macros to access tv_sec fields by old names.
55 * include/cygwin/types.h: Typedef timespec_t and timestruc_t as struct
56 timespec.
c4e6ff48 57
2e8abfc1
CV
582002-06-03 Pierre Humblet <pierre.humblet@ieee.org>
59
60 * sec_helper.cc (lookup_name): Suppress.
61 * security.cc (alloc_sd): Remove logsrv argument.
62 Remove two calls to lookup_name.
63 (set_security_attribute): Remove logsrv argument.
64 Remove logsrv argument in call to alloc_sd.
65 (set_nt_attribute): Remove logsrv argument.
66 Remove logsrv argument in call to set_security_attribute.
67 (set_file_attribute): Remove logsrv argument.
68 Remove logsrv argument in call to set_nt_attribute.
69 (set_file_attribute): Remove logsrv argument.
70 Remove logsrv argument in call to set_file_attribute.
71 * syscalls.cc (chown_worker): Remove logserver argument in
72 call to set_file_attribute.
73 (chmod): Ditto.
74 * shm.cc (shmget): Remove logsrv argument in call to alloc_sd.
75 * uinfo.cc (internal_getlogin): Replace calls to
76 lookup_name by call to LookupAccountName.
77 * security.h: Remove logsrv in declarations of set_file_attribute
78 and alloc_sd. Remove declaration of lookup_name.
79
f7a7cc90
CF
802002-06-05 Christopher Faylor <cgf@redhat.com>
81
82 * child_info.h (CHILD_INFO_MAGIC): Oops. Revert previous change. gcc
83 3.1 bug?
84
784e340c
CF
852002-06-05 Christopher Faylor <cgf@redhat.com>
86
87 * child_info.h (CHILD_INFO_MAGIC): Update.
88
58fcd93a
CF
892002-06-05 Christopher Faylor <cgf@redhat.com>
90
91 * strace.cc (strace::hello): Set inited, when appropriate.
92
ee964e2f
CF
932002-06-05 Christopher Faylor <cgf@redhat.com>
94
95 * cygwin.din: Eliminate some newlib wrappers.
96 * path.cc (get_devn): Only consider first 99 potential com devices.
97 (get_device_number): Ditto.
98 * times.cc (_times): Eliminate.
99 (_times): Renamed from times().
100
ea4e6ec8
CF
1012002-06-05 Christopher Faylor <cgf@redhat.com>
102
103 * dir.cc (rmdir): Streamline. Detect attempts to remove directories
104 from "read-only" virtual devices. (Suggested by Pavel Tsekov)
46b941fc
CF
105 * syscalls.cc (unlink): Detect attempts to remove directories from
106 "read-only" virtual devices. (From Pavel Tsekov)
ea4e6ec8 107
2bb6b3e5
CF
1082002-06-05 Christopher Faylor <cgf@redhat.com>
109
110 * dtable.cc (handle_to_fn): Check error return value from NtQueryObject
111 first before seeing if name buffer is NULL.
112
113 * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format.
114 * passwd.cc (read_etc_passwd): Ditto.
115
e9259cb2
RC
1162002-04-18 Thomas Pfaff <tpfaff@gmx.net>
117
118 * thread.h (pthread::joiner): New member.
119 * thread.cc (pthread::pthread): Initialize joiner to NULL
120 (pthread::create): Increment of thread counter moved from
121 __pthread_create to this location.
122 (__pthread_create): Increment thread counter removed.
123 (thread_init_wrapper): Set joiner to self when thread was created
124 detached.
125 (__pthread_exit): delete thread when it is detached and not
126 joined.
127 (__pthread_join): Check for deadlock and delete thread when it has
128 terminated.
129 (__pthread_detach): Set joiner to self when thread state
130 changed to detached.
131
eceee297
CV
1322002-06-05 Corinna Vinschen <corinna@vinschen.de>
133
134 * grp.cc (read_etc_group): When emulating nonexisting group file on
135 NT systems, read primary group SID from process token. Use that info
136 to create correct group entry. On error or on 9x systems fallback
137 to emulating Administrators group as before.
ae1ebb81 138 * passwd.cc (read_etc_passwd): When emulating nonexisting passwd file
46b941fc 139 on NT systems, read user and primary group SID from process token.
ae1ebb81
CV
140 Use that info to create correct passwd entry. On error or on 9x
141 systems fallback to emulating user with Administrator user id and
142 Administrators group as before.
eceee297 143
38f39368
CV
1442002-06-05 Corinna Vinschen <corinna@vinschen.de>
145
146 * grp.cc (etc_group): Removed.
147 (parse_grp): Make line parameter nonconst. Don't copy data into new
148 allocated memory. Check for CR instead of LF to accomodate new
149 read method.
150 (add_grp_line): Make line parameter nonconst.
151 (read_etc_group): Rearrange using new pwdgrp_read class.
152 * passwd.cc (parse_pwd): Don't copy data into new allocated memory.
153 Check for CR instead of LF to accomodate new read method.
154 (read_etc_passwd): Rearrange using new pwdgrp_read class.
155 * pwdgrp.h (pwdgrp_check::set_last_modified): Use different
156 parameters.
157 (class pwdgrp_read): New class for opening and reading passwd and
158 group files.
159
ce006ffa
CF
1602002-06-04 Christopher Faylor <cgf@redhat.com>
161
162 * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote
163 shares.
164 * path.cc (mount_info::conv_to_win32_path): Set flags to binary when
165 mount entry is not found.
166 (mount_info::set_flags_from_win32_path): Ditto.
167
147d2ab4
CF
1682002-06-04 Christopher Faylor <cgf@redhat.com>
169
170 * dtable.cc (handle_to_fn): Correct placement and length of name
ea4e6ec8 171 buffer. (Suggested by Pavel Tsekov)
147d2ab4 172
e35f391f
CF
1732002-06-04 Christopher Faylor <cgf@redhat.com>
174
175 Remove fcntl.h includes throughout.
176 * fhandler.h: Move fcntl.h include here.
177 (fhandler_base::set_flags): Accept supplied_bin argument. Make
178 non-inlined.
179 * dtable.cc (dtable::init_std_file_from_handle): Just use binmode from
180 pc.
181 (reset_to_open_binmode): Use set_flags.
182 * cygwin.din (open): Avoid newlib wrapper.
183 (read): Ditto.
184 (unlink): Ditto.
185 (write): Ditto.
186 * fhandler.cc (fhandler_base::set_flags): Accept supplied_bin argument.
187 Make binmode decisions here.
188 (fhandler_base::open): Avoid using pc if it is NULL. Eliminate binmode
189 logic. Just call set_flags with binmode argument.
190 (fhandler_base::init): Call set_flags with binmode argument.
191 * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto.
192 * fhandler_console.cc (fhandler_console::open): Ditto.
193 (fhandler_console::init): Force binary on open.
194 * fhandler_disk_file.cc (fhandler_disk_file::open): Don't set binmode
195 here. Let it happen in base class.
196 * fhandler_dsp.cc (fhandler_dev_dsp::open): Force binmode open. Set
197 return value appropriately if unable to open.
198 * fhandler_proc.cc (fhandler_proc::open): Make sure flags are set
199 before open_status.
200 * fhandler_process.cc (fhandler_process::open): Ditto.
201 * fhandler_registry.cc (fhandler_registry::open): Ditto.
202 * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto.
203 * fhandler_raw.cc (fhandler_dev_raw::open): Force O_BINARY by default.
204 * fhandler_serial.cc (fhandler_serial::init): Ditto.
205 * fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
206 (fhandler_pty_master::open): Ditto.
207 * fhandler_virtual.cc (fhandler_virtual::open): Ditto.
208 * fhandler_windows.cc (fhandler_windows::open): Ditto.
209 * fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
210 * net.cc (fdsock): Ditto.
211 * path.cc (path_conv::check): Avoid checking for executable extension
212 when directory. (Suggested by Pavel Tsekov)
213 (set_flags): Set PATH_TEXT explicitly, when appropriate.
214 (mount_info::conv_to_win32_path): Use set_flags() to set path flags.
215 * path.h (PATH_TEXT): New enum.
216 (path_conv::binmode): Return appropriate constant based on binmode.
217 * pipe.cc (make_pipe): Set binmode to O_TEXT xor O_BINARY.
218 * syscalls.cc (setmode_helper): Make debugging message a little
219 clearer.
220 (setmode): Set binmode via set_flags.
221
4e138847
CV
2222002-06-04 Corinna Vinschen <corinna@vinschen.de>
223
224 * fhandler.h (class fhandler_socket): Add private method
225 fixup_after_fork (bool, HANDLE).
226 * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Move
227 functionality to new private method. Add closing parent socket
228 if not called from dup(). Create method new calling private method
229 with appropriate parameter.
230 (fhandler_socket::fixup_after_exec): Call private method
231 fixup_after_fork with appropriate parameter.
232 (fhandler_socket::dup): Ditto.
233
2342002-06-04 Corinna Vinschen <corinna@vinschen.de>
6bfca3cc
CV
235
236 * fhandler_dsp.cc (fhandler_dev_dsp::open): Set errno to EACCES if
237 requested mode isn't supported.
238
e02f1e9c
CF
2392002-06-03 Christopher Faylor <cgf@redhat.com>
240
241 * fhandler.cc (fhandler_base::open): Don't set binmode if already set.
242 Don't check for file. Files should already be set. Report on binary
243 mode for debugging.
244 (fhandler_base::fhandler_base): Don't set default binmode here. That's
245 for later.
246 * fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set
247 binmode, ever, for console.
248 * fhandler_disk_file.cc (fhandler_disk_file::open): Always set the
249 binary mode to the value derived from mount table.
250 * path.cc (mount_info::conv_to_win32_path): Default to binmode if path
251 does not translate into anything in the mount table.
252
31b98a62
CV
2532002-06-03 Corinna Vinschen <corinna@vinschen.de>
254
255 * external.cc (cygwin_internal): Add CW_EXTRACT_DOMAIN_AND_USER
256 handling to call extract_nt_dom_user() from applications.
257 * include/sys/cygwin.h (cygwin_getinfo_types): Add
258 CW_EXTRACT_DOMAIN_AND_USER.
259
b3c29731
CV
2602002-06-03 Corinna Vinschen <corinna@vinschen.de>
261
262 * syscalls.cc (stat64_to_stat32): Transform st_dev correctly.
263 (fstat64): Add evaluating st_ino and st_dev.
264 (stat_worker): Evaluate st_dev as 32 bit value.
265 * include/cygwin/stat.h: Use new dev_t definition throughout.
266 * include/cygwin/types.h: Define __dev16_t and __dev32_t. Define
267 dev_t according to __CYGWIN_USE_BIG_TYPES__ setting.
268 * include/sys/sysmacros.h: Define major, minor and makedev
269 according to __CYGWIN_USE_BIG_TYPES__ setting.
270
656c3192
CV
2712002-06-03 Pierre Humblet <pierre.humblet@ieee.org>
272
273 * syscalls.cc (setegid32): Verify the correctness of the gid
274 of the group returned by getgrgid32.
275
1eb934b7
CV
2762002-06-03 Pierre Humblet <pierre.humblet@ieee.org>
277
278 * security.cc (lsa2wchar): Suppressed.
279 (get_lsa_srv_inf): Suppressed.
280 (get_logon_server_and_user_domain): Suppressed.
281 (get_logon_server): Essentially new.
282 (get_user_groups): Add "domain" argument. Only lookup the
283 designated server and use "domain" in LookupAccountName.
284 (is_group_member): Simplify the arguments.
285 (get_user_local_groups): Simplify the arguments. Do only a
286 local lookup. Use "BUILTIN" and local domain in LookupAccountName.
287 (get_user_primary_group). Only lookup the designated server.
288 (get_group_sidlist): Remove logonserver argument. Do not lookup
289 any server for the SYSTEM account.
290 (create_token): Delete logonserver and call to get_logon_server.
291 Adjust arguments of get_group_sidlist, see above.
292 * security.h: Delete declaration of get_logon_server_and_user_domain
e35f391f 293 and add declaration of get_logon_server.
1eb934b7
CV
294 * uinfo.cc (internal_get_login): Call get_logon_server instead of
295 get_logon_server_and_user_domain.
296
37be5a67
CF
2972002-06-02 Christopher Faylor <cgf@redhat.com>
298
e35f391f
CF
299 * dtable.cc (handle_to_fn): Use largest match for device. Correctly
300 (?) deal with remote drive weirdness.
37be5a67 301
97478fe6
CF
3022002-06-02 Christopher Faylor <cgf@redhat.com>
303
304 * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Check
305 specifically for non-existent file, first.
306 (fhandler_disk_file::fstat): Perform fd open on files with funny
307 characters.
308
47413f84
CF
3092002-06-02 Christopher January <chris@atomice.net>
310
311 * fhandler_process.cc (fhandler_process::open): Set fileid.
312
6b7cd251
CF
3132002-06-02 Christopher Faylor <cgf@redhat.com>
314
315 Remove unneeded sigproc.h includes throughout.
316 * fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument.
317 * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search
318 for given pid.
319 (fhandler_proc::readdir): Assume that pid exists if it shows up in the
320 winpid list.
321 * fhandler_process.cc (fhandler_process::open): Simplify search for
322 given pid. Call fill_filebuf with pinfo argument.
323 (fhandler_process::fill_filebuf): Pass pinfo here and assume that it
324 exists.
325 * pinfo.h (pinfo::remember): Define differently if sigproc.h is not
326 included.
327
3282002-06-02 Christopher Faylor <cgf@redhat.com>
329
330 * dll_init.cc (dll_list::detach): Don't run destructor on exit.
331
e065a187
CF
3322002-06-01 Christopher Faylor <cgf@redhat.com>
333
334 * fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into
335 caller.
336 * syscalls.cc (stat_worker): Calculate dev and ino calculation here, if
337 zero.
338 * fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for
339 debugging.
340 * fhandler_process.cc (fhandler_process::exists): Return 0 on
341 nonexistence.
342 (fhandler_process::fstat): Simplify pid logic.
343 * fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting.
344
60abf1c4
CF
3452002-06-01 Christopher Faylor <cgf@redhat.com>
346
347 * path.cc (chdir): Don't allow cd'ing to a non-directory virtual path.
348
28af03fa
CF
3492002-05-31 Christopher Faylor <cgf@redhat.com>
350
351 * fhandler_disk_file.cc (readdir): Move inode calculation into caller.
352 (fhandler_cygdrive::readdir): Add "." and "..".
353 * dir.cc (readdir): Move inode calculation here so that fhandler
354 readdirs can benefit.
355
8e74c320
CF
3562002-05-31 Christopher Faylor <cgf@redhat.com>
357
358 * fhandler_console.cc (fhandler_console::open): Reinstate setting of
359 flags.
360
30478f15
CF
361 * dtable.cc (dtable::init_std_file_from_handle): Default to using
362 binmode derived from path_conv, when required.
363 * fhandler.h (fhandler_base::get_w_binary): Default to binmode if
364 nothing else is specified.
365 * fhandler.h (fhandler_base::get_r_binary): Ditto.
366
367 * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_handle): Work
368 around g++ warning.
369
370 * path.cc (path_conv::check): Remove a debugging statement.
371
de86e35b
CF
3722002-05-31 Christopher Faylor <cgf@redhat.com>
373
374 * fhandler_console.cc (fhandler_console::open): Always default to
375 binmode.
376 (fhandler_console::write_normal): Don't honor binmode setting. There
377 is already a termios setting for this.
378 (fhandler_console::init): Correct argument order in init call.
379
8461f41e
CF
3802002-05-31 Christopher Faylor <cgf@redhat.com>
381
382 * fhandler.cc (fhandler_base::open): Make default open mode == binmode.
383 (fhandler_base::init): Set open flags based on derived binmode argument.
384
bcd0ed9f
CF
3852002-05-31 Christopher Faylor <cgf@redhat.com>
386
387 * dll_init.cc (dll_list::init): Eliminate unneeded debugging statement.
388
18c04cc4
CF
3892002-05-31 Christopher Faylor <cgf@redhat.com>
390
391 * fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more
392 files.
393 * fhandler_process.cc (fhandler_process::readdir): Ditto.
394 * fhandler_registry.cc (fhandler_registry::readdir): Ditto.
395
69be001c
CF
3962002-05-30 Christopher Faylor <cgf@redhat.com>
397
398 * path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES
399 for nonexistent virtual device path.
400 (chdir): Set correct errno when attempt is made to cd to nonexistent
401 virtual device path.
402
5d8c7a56
CF
4032002-05-30 Christopher Faylor <cgf@redhat.com>
404
405 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call
406 fstat_by_name if fd is not opened to allow fstat_by_name to properly
407 set errno.
408
d74eced5
CV
4092002-05-30 Corinna Vinschen <corinna@vinschen.de>
410
411 * autoload.cc: Replace autoload statments for ZwXXX by NtXXX.
412 Drop ZwQuerySystemInformation since NtQuerySystemInformation was
413 already available.
414 * fhandler_proc.cc (format_proc_uptime): Replace call to
415 ZwQuerySystemInformation by call to NtQuerySystemInformation.
416 (format_proc_stat): Ditto.
417 * fhandler_process.cc (format_process_stat): Replace call to
418 ZwQueryInformationProcess by call to NtQueryInformationProcess.
419 (get_process_state): Ditto.
420 (get_mem_values): Ditto. Replace call to ZwQueryVirtualMemory by
421 call to NtQueryVirtualMemory.
422 * ntdll.h: Cleanup. Drop ZwQuerySystemInformation since
423 NtQuerySystemInformation was already available. Replace declarations
424 of ZwXXX functions by declarations of NtXXX.
425 * pinfo.cc (winpids::enumNT): Replace call to ZwQuerySystemInformation
426 by call to NtQuerySystemInformation.
427
5d8c7a56
CF
4282002-05-29 Christopher Faylor <cgf@redhat.com>
429
430 * fhandler.cc (binmode): Default to binmode when mode is not known.
431
186637a5
CF
4322002-05-29 Christopher Faylor <cgf@redhat.com>
433
434 * include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate.
435 * external.cc (fillout_pinfo): Use it.
436
3a571063
CV
4372002-05-29 Corinna Vinschen <corinna@vinschen.de>
438
439 * external.cc (fillout_pinfo): Use new version define.
440 * include/sys/cygwin.h (external_pinfo): Define
441 EXTERNAL_PINFO_VERSION_16_BIT and EXTERNAL_PINFO_VERSION_32_BIT
442 instead of just EXTERNAL_PINFO_VERSION.
443
9fef0139
CF
4442002-05-29 Christopher Faylor <cgf@redhat.com>
445
446 * external.cc (fillout_pinfo): Set new version field in external_pinfo
447 structure.
448 * include/sys/cygwin.h (external_pinfo): Replace strace_file with
449 version field.
450
a8d7ae61
CV
4512002-05-29 Corinna Vinschen <corinna@vinschen.de>
452
453 Change internal uid datatype from __uid16_t to __uid32_t
454 throughout.
455 * cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32,
456 geteuid32, setuid32, seteuid32.
457 * passwd.cc (getpwuid32): New function.
458 (getpwuid_r32): Ditto.
459 * syscalls.cc (seteuid32): Ditto.
460 (setuid32): Ditto.
461 * uinfo.cc (getuid32): Ditto.
462 (geteuid32): Ditto.
d4000bc4 463 * winsup.h (uid16touid32): New macro, correct casting from __uid16_t
a8d7ae61
CV
464 to __uid32_t.
465 (gid16togid32): Ditto fir gids.
466 (getuid32): Declare.
467 (geteuid32): Ditto.
468 (getpwuid32): Ditto.
469 * include/sys/cygwin.h (struct external_pinfo): Add members uid32 and
470 gid32.
471
9854c44c
CV
4722002-05-29 Corinna Vinschen <corinna@vinschen.de>
473
474 * include/cygwin/socket.h: Protect some symbols against multiple
475 definition.
476 * include/netinet/ip.h: Ditto.
477 * include/netinet/tcp.h: Ditto.
478
4792002-05-29 Wu Yongwei <adah@netstd.com>
480
481 * include/netinet/ip.h: Replace by BSD derived version of the file.
482 * include/netinet/tcp.h: Ditto.
483 * include/netinet/udp.h: New file.
484 * include/cygwin/ip.h: Remove.
485
cef69559
CF
4862002-05-29 Christopher Faylor <cgf@redhat.com>
487
488 * dtable.cc (dtable::init_std_file_from_handle): Attempt stronger
489 detection of invalid handle.
490 (handle_to_fn): Detect pathological condition where NT resets the
491 buffer pointer to NULL on an invalid handle.
492
a761ad82
CF
4932002-05-28 Christopher Faylor <cgf@redhat.com>
494
495 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly
496 check for whether we should be opening the file to search for #!
654783b6
CF
497 characters. Set path_conv structure execability, too, when
498 appropriate.
a761ad82 499
7ea70e99
CV
5002002-05-28 Corinna Vinschen <corinna@vinschen.de>
501
502 * security.cc (set_security_attribute): Call getegid32() instead of
503 getegid().
504 * include/cygwin/grp.h: Declare getegid32().
505
57196405
CV
5062002-05-28 Corinna Vinschen <corinna@vinschen.de>
507
508 Change internal gid datatype from __gid16_t to __gid32_t
509 throughout.
510 * cygwin.din: Export new symbols chown32, fchown32, getegid32,
511 getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32,
512 setgid32, setegid32, getgrent32.
513 * grp.cc (grp32togrp16): New static function.
514 (getgrgid32): New function.
515 (getgrnam32): Ditto.
516 (getgrent32): Ditto.
517 (getgroups32): Change name of internal function from getgroups.
518 (getgroups32): New function.
519 (initgroups32): Ditto.
520 * syscalls.cc (chown32): Ditto.
521 (lchown32): Ditto.
522 (fchown32): Ditto.
523 (setegid32): Ditto.
524 (setgid32): Ditto.
525 * uinfo.cc (getgid32): Ditto.
526 (getegid32): Ditto.
527 * include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam().
528 Declare getgrgid32() and getgrnam32() instead. Declare getgid32().
529
0c12979b
CF
5302002-05-27 Christopher Faylor <cgf@redhat.com>
531
532 * autoload.cc (noload): Properly mask low order word for determining
533 number of bytes to pop.
534
57e2ae68
CF
5352002-05-27 Christopher Faylor <cgf@redhat.com>
536
537 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic
538 cleanup.
539
2402700d
CF
5402002-05-27 Christopher Faylor <cgf@redhat.com>
541
542 * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.
543 (LoadFuncEx2): Adapted from LoadFuncEx. Provides control of return
544 value for nonexistent function.
545 (NtQueryObject): Declare.
546 (IsDebuggerPresent): Declare via LoadFuncEx2 and always return true if
547 not available.
548 * debug.h (being_debugged): Just rely on IsDebuggerPresent return
549 value.
550 * dtable.cc (handle_to_fn): New function.
551 (dtable::init_std_file_from_handle): Attempt to derive std handle's
552 name via handle_to_fn.
553 (dtable::build_fhandler_from_name): Fill in what we can in path_conv
554 structure when given a handle and path doesn't exist.
555 * fhandler.cc (fhandler_base::open): Don't set the file pointer here.
556 Use pc->exists () to determine if file exists rather than calling
557 GetFileAttributes again.
558 * fhandler.h (fhandler_base::exec_state_isknown): New method.
559 (fhandler_base::fstat_helper): Add extra arguments to declaration.
560 (fhandler_base::fstat_by_handle): Declare new method.
561 (fhandler_base::fstat_by_name): Declare new method.
562 * fhandler_disk_file (num_entries): Make __stdcall.
563 (fhandler_base::fstat_by_handle): Define new method.
564 (fhandler_base::fstat_by_name): Define new method.
565 (fhandler_base:fstat): Call fstat_by_{handle,name} as appropriate.
566 (fhandler_disk_file::fstat_helper): Accept extra arguments for filling
567 out stat structure. Move handle or name specific stuff to new methods
568 above.
569 (fhandler_disk_file::open): Use real_path->exists rather than calling
570 GetFileAttributes again.
571 * ntdll.h (FILE_NAME_INFORMATION): Define new structure.
572 (OBJECT_INFORMATION_CLASS): Partially define new enum.
573 (OBJECT_NAME_INFORMATION): Define new structure.
574 (NtQueryInformationFile): New declaration.
575 (NtQueryObject): New declaration.
576 * path.cc (path_conv::fillin): Define new method.
577 * path.h (path_conv::fillin): Declare new method.
578 (path_conv::drive_thpe): Rename from 'get_drive_type'.
579 (path_conv::volser): Declare new method.
580 (path_conv::volname): Declare new method.
581 (path_conv::root_dir): Declare new method.
582 * syscalls.cc (fstat64): Send real path_conv to fstat as second
583 argument.
584
74b2f73e
CV
5852002-05-24 Pierre Humblet <pierre.humblet@ieee.org>
586
587 * security.cc (lsa2str): New function.
588 (get_priv_list): Call lsa2str instead of sys_wcstombs.
589
75bf2931
CV
5902002-05-22 Pierre Humblet <pierre.humblet@ieee.org>
591
592 * syscalls.cc (seteuid): Do not take allow_ntsec into account.
593 Attempt to use an existing or new token even when the uid
594 matches orig_uid, but the gid is not in the process token.
595 Major reorganization after several incremental changes.
596 (setegid): Do not take allow_ntsec into account. Minor
597 reorganization after several incremental changes.
598
918a268c
CF
5992002-05-26 Christopher Faylor <cgf@redhat.com>
600
601 * debug.h (being_debugged): New macro.
602 * dtable.cc (dtable::extend): Use new macro.
603 * exceptions.cc (try_to_debug): Ditto.
604 * strace.cc (strace::hello): Only output debugging info when we think
605 we're being debugged.
606
0cfbfc24
CF
6072002-05-25 Robert Collins <rbtcollins@hotmail.com>
608
609 * winsup.h: Remove duplicate declarations of malloc_lock and
610 malloc_unlock.
611
d7b4a300
CF
6122002-05-24 Christopher Faylor <cgf@redhat.com>
613
614 Remove unneeded sync.h, where appropriate, throughout.
615 Remove unneeded heap.h, where appropriate, throughout.
616 Remove unneeded exceptions.h, where appropriate, throughout.
617 Remove unneeded perprocess.h, where appropriate, throughout.
618
908f9b65
CV
6192002-05-22 Pierre Humblet <pierre.humblet@ieee.org>
620
621 * security.cc (create_token): Call __sec_user() instead of
622 sec_user() to remove dependence on allow_ntsec. Verify that
623 the returned sd is non-null.
624
a6247be9
RC
6252002-05-25 Robert Collins <rbtcollins@hotmail.com>
626
627 * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.
628
ff938546
CF
6292002-05-24 Christopher Faylor <cgf@redhat.com>
630
631 * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path
632 along to set_name via return_and_clear_normalized_path.
633 (dtable::build_fhandler): New method with const char * argument.
634 (dtable::reset_unix_path_name): Eliminate.
635 (dtable::dup_worker): Use correct build_fhandler method.
636 * mmap.cc (mmap_record::alloc_fh): Ditto.
637 * dtable.h (dtable::build_fhandler): New method.
638 (dtable::reset_unix_path_name): Eliminate.
639 * fhandler.cc (fhandler_base::set_name): Assume that unix_name has
640 already been cmalloced.
641 (fhandler_base::reset_unix_path_name): Eliminate.
642 (fhandler_base::~fhandler_base): Coercion for cfree.
643 * fhandler.h (fhandler_base::unix_path_name): Make const char *.
644 (fhandler_base::win32_path_name): Ditto.
645 (fhandler_base::reset_unix_path_name): Eliminate.
646 * fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate
647 const char *ness of win32_path_name.
648 * fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name
649 requirements.
650 * path.cc (path_conv::return_and_clear_normalized_path): New method.
651 (path_conv::clear_normalized_path): Eliminate.
652 (path_conv::~path_conv): Ditto.
653 (path_conv::check): Accommodate new build_fhandler method.
654 * path.h (path_conv::~path_conv): Eliminate.
655 (path_conv::clear_normalized_path): Ditto.
656 (path_conv::return_and_clear_normalized_path): Declare new method.
657
b4bb31ad
CF
6582002-05-23 Christopher Faylor <cgf@redhat.com>
659
660 * path.cc (path_conv::check): Make sure any trailing path component is
661 part of potential normalized posix path.
662
b2f338e9
CF
6632002-05-23 Christopher Faylor <cgf@redhat.com>
664
665 * smallprint.c (__small_vsprintf): Implement '%o' after all these
666 years.
667
fc240f58
CF
6682002-05-22 Christopher Faylor <cgf@redhat.com>
669
670 * fhandler.h (fhandler_virtual::exists): Eliminate path argument.
671 (fhandler_proc::exists): Ditto.
672 (fhandler_registry::exists): Ditto.
673 (fhandler_process::exists): Ditto.
674 * fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name.
675 * fhandler_process.cc (fhandler_process::exists): Ditto.
676 (fstat): Ditto.
677 * fhandler_registry.cc (fhandler_registry::exists): Ditto.
678 (fhandler_registry::fstat): Ditto.
679 * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
680 * path.cc (path_conv::check): Ditto. Add debugging.
681
6822002-05-22 Christopher Faylor <cgf@redhat.com>
683
684 * syscalls.cc (dup): Always call dup2 for error handling.
685
1d2b71d6
CV
6862002-05-22 Corinna Vinschen <corinna@vinschen.de>
687
688 * include/cygwin/types.h: Revert previous patch.
689
36f86a55
CV
6902002-05-22 Corinna Vinschen <corinna@vinschen.de>
691
692 * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
693 is defined.
694
2d6ce5c2
CV
6952002-05-19 Pierre Humblet <pierre.humblet@ieee.org>
696
fc240f58 697 * security.cc (open_local_policy): Initialize lsa to
2d6ce5c2
CV
698 INVALID_HANDLE_VALUE instead of NULL.
699 (get_logon_server_and_user_domain): Test for INVALID_HANDLE_VALUE
700 instead of NULL.
701 (create_token): Both of the above.
702
9ded8bd8
CF
7032002-05-18 Christopher Faylor <cgf@redhat.com>
704
705 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of
706 nlink consistent for remote files.
707
2701126a
CF
7082002-05-18 Christopher Faylor <cgf@redhat.com>
709
710 * path.cc (path_conv::check): Always set executable bit for executable
711 extension.
712
b05b7d84
CF
7132002-05-17 Christopher Faylor <cgf@redhat.com>
714
715 * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with
716 high order part of 64 bit address on OS's which do not support that
717 kind of operation. Otherwise Windows 95 will become confused.
718
d6dc9825
CV
7192002-05-16 Pierre Humblet <pierre.humblet@ieee.org>
720
721 * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
722 by __seterrno_from_win_error().
723 * security.cc (open_local_policy): Ditto.
724 (get_lsa_srv_inf): Ditto.
725 (get_user_groups): Ditto.
726 (get_user_primary_group): Ditto.
727 (create_token): Ditto.
728 (subauth): Ditto.
729
35a89cbe
CV
7302002-05-17 Corinna Vinschen <corinna@vinschen.de>
731
732 * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when
733 opening file for writing timestamp.
734 * wincap.cc: Remove flag has_specific_access_rights.
735 * wincap.h: Ditto.
736
ebbdc703
CV
7372002-05-13 Pierre Humblet <pierre.humblet@ieee.org>
738
739 * syscalls.cc (seteuid): Set default dacl in process token.
740 Replace in-line code by call to verify_token().
741 (setegid): Reverse change from 2002-01-21. Add call to
742 RevertToSelf and set primary group in impersonation token.
743 * security.cc (create_token): Store pgrpsid in token security
744 descriptor, except if it already appears in my_grps.
745 Use sec_acl() in place of get_dacl().
746 (verify_token): Create from code in seteuid(), with tighter checks.
747 (get_dacl) Deleted.
748 (get_group_sidlist): Add argument to indicate if pgrpsid is already
749 in the groups.
750 * security.h: Define verify_token().
751 * autoload.cc: Load GetKernelObjectSecurity().
752
feb7f1a9
CF
7532002-05-13 Mark Bradshaw <bradshaw@staff.crosswalk.com>
754
755 * cygwin.din: Add strlcat and strlcpy.
756 * include/cygwin/version.h: Increment API minor version number.
757
fc240f58 7582002-05-09 Pierre Humblet <pierre.humblet@ieee.org>
043bc3e1
CV
759
760 * shared.cc (__sec_user): Split into sec_acl() and call orig_sid().
761 (sec_acl): Create from part of __sec_user(), except creator/owner.
762 * security.h: Define sec_acl() and MAX_DACL_LEN.
763
c8b20196
CF
7642002-05-12 Christopher Faylor <cgf@redhat.com>
765
766 * fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using
767 O_DIROPEN when OS doesn't support it. Return proper errno in that
768 case.
769
b4f8d31f
CF
7702002-05-12 Christopher Faylor <cgf@redhat.com>
771
56caca1d
CF
772 * syscalls.cc (_read): Change error to EBADF if attempt to read from a
773 non-readable fd.
b4f8d31f 774
29ee580d
CF
7752002-05-11 Christopher Faylor <cgf@redhat.com>
776
777 * fhandler.h (executable_states): For now, make dont_care_if_executable
778 equivalent to not_executable.
779 * sys/mount.h: Define MOUNT_NOTEXEC.
780 * path.h (fs_info): New class.
781 (path_conv): Move fs-specific fields to new 'fs' structure.
782 (path_conv::update_fs_info): Move to fs_info and rename to just 'update'.
783 * path.cc (fs_info::update): Ditto. Return 'true' if successful.
784 (fillout_mntent): Add ',noexec' to list of reported options.
785
b84621d2
CF
7862002-05-11 Christopher Faylor <cgf@redhat.com>
787
788 * fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler
789 warning.
790
9ba913a5
CF
7912002-05-10 Christopher January <chris@atomice.net>
792
793 * autoload.cc: Add dynamic load statements for
794 'ZwQueryInformationProcess' and 'ZwQueryVirtualMemory'.
795 * fhandler.h: Change type of bufalloc and filesize members of
796 fhandler_virtual from int to size_t. Change type of position member
797 from __off32_t to __off64_t. Add new fileid member to fhandler_virtual
798 class. Make seekdir take an __off64_t argument. Make lseek take an
799 __off64_t argument. Add fill_filebuf method to fhandler_virtual. Add
800 fill_filebuf method to fhandler_proc. Add fill_filebuf method to
801 fhandler_registry. Add fill_filebuf method to fhandler_process. Add
802 saved_pid and saved_p members to fhandler_process.
803 * fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'.
804 (proc_fhandlers array): Ditto.
805 (fhandler_proc::open): Use fill_filebuf to flesh out the file contents.
806 (fhandler_proc::fill_filebuf): New method.
807 (fhandler_proc::format_proc_meminfo): Ditto.
808 (fhandler_proc::format_proc_stat): Ditto.
809 (fhandler_proc::format_proc_uptime): Ditto.
810 * fhandler_process.cc (process_listing): Add 'stat' and 'statm'.
811 (fhandler_process::fstat): Find the _pinfo structure for the process
812 named in the filename. Return ENOENT if the process is no longer
813 around. Set the gid and uid fields of the stat structure.
814 (fhandler_process::open): Store pid and pointer to _pinfo structure in
815 saved_pid and saved_p respectively. Use fill_filebuf to flesh out file
816 contents.
817 (fhandler_proc::fill_filebuf): New method.
818 (format_process_stat): New function.
819 (format_process_status): Ditto.
820 (format_process_statm): Ditto.
821 (get_process_state): Ditto.
822 (get_mem_values): Ditto.
823 * fhandler_registry.cc (fhandler_registry::seekdir): Change argument
824 type from __off32_t to __off64_t.
825 (fhandler_registry::fill_filebuf): New method.
826 * fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type
827 from __off32_t to __off64_t.
828 (fhandler_virtual::lseek): Ditto.
829 (fhandler_virtual::fill_filebuf): New method.
830 (fhandler_virtual::fhandler_virtual): Initialise fileid to -1.
831 * wincap.cc: Set flag has_process_io_counters appropriately.
832 * wincap.h: Add flag has_process_io_counters.
833
8342002-05-09 Christopher Faylor <cgf@redhat.com>
f561f644
CF
835
836 * syscalls.cc (_write): Change error to EBADF if attempt to write to a
56caca1d 837 non-writeable fd.
f561f644 838
6327de5f
CV
8392002-05-08 Corinna Vinschen <corinna@vinschen.de>
840
841 * cygheap.h (class cygheap_user): Add member `orig_psid'.
842 Add method `orig_sid()'.
843 * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.
844
795b46cf
CV
8452002-04-28 Norbert Schulze <norbert.schulze@web.de>
846
847 * localtime.cc (tzsetwall): Use wildabbr if generated timezone name
848 length < 3.
849
a9917779
CV
8502002-05-05 Pierre Humblet <pierre.humblet@ieee.org>
851
852 * spawn.cc (spawn_guts): Move call to set_process_privilege()
853 to load_registry_hive().
854 * registry.cc (load_registry_hive): ditto.
855 * fork.cc (fork_parent): Call sec_user_nih() only once.
856
8572002-05-04 Christopher January <chris@atomice.net>
13ee3618
CF
858
859 * path.h (path_conv::path_conv): Initialise normalized_path to NULL.
860
8761c1dc
CF
8612002-05-03 Christopher Faylor <cgf@redhat.com>
862
863 * net.cc (getdomainname): Change second argument of getdomainname to
864 size_t.
865
8662002-05-03 Christopher January <chris@atomice.net>
867
868 * fhandler_proc.cc (proc_listing): Add '.' and '..' to directory
869 listing.
870 (fhandler_proc::open): Change use of mode to flags. If the file does
871 not exist already, fail with EROFS if O_CREAT flag is set. Change
872 EROFS error to EACCES error when writing to a file. Use cmalloc to
873 allocate memory for filebuf.
874 (fhandler_proc::close): Use cfree to free filebuf.
875 (fhandler_proc::get_proc_fhandler): Properly detect attempts to access
876 unknown subdir.
877 * fhandler_process.cc (process_listing): Add '.' and '..' to directory
878 listing.
879 (fhandler_process::open): Use cmalloc to allocate memory for filebuf.
880 (fhandler_process::close): Use cfree to free filebuf.
881 * fhandler_registry.cc (registry_listing): Add . and '..' to directory
882 listing.
883 (fhandler_registry::open): Move check for open for writing before
884 open_key. Use cmalloc to allocate memory for filebuf.
885 (fhandler_registry::close): Use cfree to free filebuf.
886 (fhandler_registry::telldir): Use lower 16 bits of __d_position as
887 position in directory.
888 (fhandler_registry::seekdir): Ditto.
889 * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to
890 EACCES error.
891 (fhandler_virtual::open): Set the NOHANDLE flag.
892 (fhandler_virtual::dup): Add call to fhandler_base::dup. Allocate
893 child's filebuf using cmalloc. Copy filebuf from parent to child.
894 (fhandler_virtual::close): Use cfree to free filebuf.
895 (fhandler_virtual::~fhandler_virtual): Ditto.
896 (from Chris Faylor <cgf@redhat.com>).
897 (fhandler_registry::readdir): Add support for '.' and '..' files in
898 subdirectories of /proc/registry.
899 * path.cc (path_conv::check): Do not return ENOENT if a file is not
900 found in /proc.
901
335c87f9
CF
9022002-05-02 Christopher Faylor <cgf@redhat.com>
903
904 * fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather
905 than path_conv name.
906 (fhandler_proc::open): Ditto.
907 * fhandler_process.cc (fhandler_process::fstat): Use fhandler name
908 rather than path_conv name.
909 (fhandler_process::open): Ditto.
910 * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name
911 rather than path_conv name.
912 (fhandler_registry::open): Ditto.
913 * path.cc (path_conv::check): Don't copy posix path when virtual.
914 (mount_info::conv_to_win32_path): Don't zero string when isproc. Just
915 derive normal windows path.
916
917 * path.h (path_conv::clear_normalized_path): Declare new method.
918 * path.cc (path_conv::clear_normalized_path): Define new method.
919 * dtable.cc (build_fhandler_from_name): Clear normalized path when
920 finished to conserve space.
921
3bb7eb44
CF
9222002-05-02 Christopher Faylor <cgf@redhat.com>
923
924 * fhandler_proc.cc (fhandler_proc::fstat): Prime with information from
925 fhandler_base::fstat. Use defines rather than constants for permission
926 settings.
927
d055ecb0
CV
9282002-04-30 Eric Blake <ebb9@email.byu.edu>
929
930 * path.cc (hash_path_name): Improve hash function strength.
931
37143995
RC
9322002-05-02 Robert Collins <rbtcollins@hotmail.com>
933
934 * thread.cc (__pthread_cond_dowait): Fix a race on signalling from a
935 thread woken by the same condition variable it's signalling on. Thanks
936 to Michael Beach for the report and test case.
937
291be307
CF
9382002-05-02 Christopher Faylor <cgf@redhat.com>
939
940 * path.h (pathconv_arg): Add PC_POSIX.
941 (path_conv): Add normalized_path field.
942 * path.cc (path_conv::~path_conv): New destructor.
943 (path_conv::check): Set normalized_path, where appropriate.
944 * dtable.cc (build_fhandler_from_name): Use normalized path from
945 path_conv.
946 * syscalls.cc (chroot): Ditto.
947
948 * cygheap.h: Remove path_prefix_p declaration.
949
9502002-02-26 Christopher January <chris@atomice.net>
951 Christopher Faylor <cgf@redhat.com> (minor fixups)
952
953 * Makefile.in: Add fhandler_proc.o, fhandler_registry.o,
954 fhandler_process.o and fhandler_virtual.o.
955 * dtable.cc (dtable::build_fhandler): Add entries for FH_PROC,
956 FH_REGISTRY and FH_PROCESS. Set unix_name to the normalized posix
957 path.
958 * fhandler.h: Add constants for FH_PROC, FH_REGISTRY and FH_PROCESS.
959 Add class declarations for fhandler_virtual, fhandler_proc,
960 fhandler_registry and fhandler_virtual. Update fhandler_union
961 accordingly.
962 * fhandler_proc.cc: New file. Add implementation for fhandler_proc.
963 * fhandler_virtual.cc: New file. Add implementation for
964 fhandler_virtual.
965 * fhandler_process.cc: New file. Add implementation for
966 fhandler_process.
967 * fhandler_registry.cc: New file. Add implementation for
968 fhandler_registry.
8761c1dc
CF
969 * path.cc (isproc): New macro.
970 (isvirtual_dev): Ditto.
291be307
CF
971 * path.cc (path_conv::check): Add check for virtual devices.
972 * path.cc (mount_info::conv_to_win32_path): Convert paths in /proc to
973 empty Win32 paths.
974 * path.cc (chdir): Replace check for FH_CYGDRIVE with more generic
975 isvirtual_dev macro. Force setting of posix path for virtual
976 fhandlers.
8761c1dc 977 * path.h (path_prefix_p): Declare.
291be307
CF
978
979
fee93846
CF
980Wed May 1 16:06:02 2002 Jason Tishler <jason@tishler.net>
981
982 * include/cygwin/types.h: Include <sys/sysmacros.h>.
983
9b15f5fa
CV
984Wed Apr 17 11:27:04 2002 Jason Tishler <jason@tishler.net>
985
986 * security.cc (get_lsa_srv_inf): Prevent extraneous backslashes for
987 the NT Domain case.
988
4deace13
CV
9892002-04-12 Corinna Vinschen <corinna@vinschen.de>
990
991 * net.cc (cygwin_accept): Set socket type for accepted socket.
992 (socketpair): Set socket type for both sockets.
993
9942002-04-12 Egor Duda <deo@logos-m.ru>
995
291be307 996 * fhandler.h (class fhandler_socket): New member to store socket type.
4deace13
CV
997 (fhandler_socket::get_socket_type): Access it.
998 (fhandler_socket::set_socket_type): Ditto.
999 * net.cc (cygwin_socket): Store socket type.
1000 (cygwin_connect): Disable security checks for connectionless sockets.
1001 (cygwin_accept): Ditto.
1002
dbe67a81
CF
10032002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1004
1005 * cygwin.din: Add strptime.
1006 * include/cygwin/version.h: Increment API version number.
1007
464b3e80
CV
10082002-04-09 Corinna Vinschen <corinna@vinschen.de>
1009
1010 * fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
1011
d78bda7b
CV
10122002-04-09 Corinna Vinschen <corinna@vinschen.de>
1013
1014 * fhandler.cc (fhandler_base::open): Set read-only bit in
1015 file_attributes when adequate.
1016
8996623b
CF
10172002-03-28 Christopher Faylor <cgf@redhat.com>
1018
1019 * times.cc (gettimeofday): Fix typo in previous patch.
1020
7d7524e5
CF
10212002-03-27 Wu Yongwei <adah@netstd.com>
1022
1023 * times.cc (gettimeofday): Revert to setting timezone info if tz !=
1024 NULL.
1025
2f3126f6
CF
10262002-03-21 Christopher Faylor <cgf@redhat.com>
1027
1028 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
1029 st_[ug]id to value derived from get_file_attributes.
1030
45d2ea8a
CF
10312002-03-21 Christopher Faylor <cgf@redhat.com>
1032
1033 * spawn.cc (find_exec): Return input if file not found.
1034
99dbafac
CV
10352002-03-19 Boris Schaeling <boriss@web.de>
1036
291be307 1037 * poll.cc (poll): Add support for invalid descriptors.
99dbafac 1038
b0359971
RC
10392002-03-15 Robert Collins <rbtcollins@hotmail.com>
1040
1041 * fhandler.h (fhandler_termios::lseek): Override lseek.
1042 * fhandler_termios.cc (fhandler_termios::lseek): Implement this.
1043
59a2339f
CF
10442002-03-15 Christopher Faylor <cgf@redhat.com>
1045
1046 * cygserver.cc: Include stdlib.h for exit declaration.
1047 * threaded_queue.cc: Ditto.
1048
ca175377
CF
10492002-03-15 Christopher Faylor <cgf@redhat.com>
1050
1051 * pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a
1052 redirected block should be marked as nonexistent.
1053 (winpids::add): Use PID_ALLPIDS when looking for all pids.
1054 * cygwin.h (PID_ALLPIDS): New enum element.
1055
d78bda7b 10562002-03-15 Corinna Vinschen <corinna@vinschen.de>
2f263187 1057
291be307 1058 * glob.c (stat32_to_STAT): New function.
2f263187
CV
1059 (g_lstat): Call user space functions always with 32 bit struct stat
1060 as a workaround.
1061 (g_stat): Ditto.
1062 * include/glob.h (struct glob): Don't prototype function pointers
1063 when compiling Cygwin.
1064
4af6d4a9
CF
10652002-03-14 Christopher Faylor <cgf@redhat.com>
1066
1067 * pinfo.cc (pinfo::init): Properly handle execed process stub when
1068 PID_NOREDIR is specified.
1069
6ea9c716
CV
10702002-03-13 Boris Schaeling <boriss@web.de>
1071
e10c087b
CF
1072 * poll.cc (poll): Remove variable open_fds. Rearrange and add code to
1073 fix settings of revents.
6ea9c716 1074
d78bda7b 10752002-03-13 Corinna Vinschen <corinna@vinschen.de>
bbe09139
CV
1076
1077 * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails.
1078 (list::erase): New method with no argument. Erase latest record
1079 added.
1080 (mmap64): Fail if map_map() fails.
1081
d78bda7b 10822002-03-12 Corinna Vinschen <corinna@vinschen.de>
cb4589f4
CV
1083
1084 * sysconf.cc (sysconf): Fix condition.
1085
d78bda7b 10862002-03-11 Corinna Vinschen <corinna@vinschen.de>
2817e0dc
CV
1087
1088 * mmap.cc (msync): Check area given by addr and len for being a
1089 contigeous mmap'd region.
1090
d78bda7b 10912002-03-11 Corinna Vinschen <corinna@vinschen.de>
713fb38b
CV
1092
1093 * fork.cc (fork_child): Call fixup_mmaps_after_fork() before
1094 closing parent process handle. Call fixup_mmaps_after_fork()
1095 with parent process handle as parameter.
1096 * mmap.cc (mmap_record::access): New method.
1097 (fixup_mmaps_after_fork): Take process handle as parameter.
1098 In case of FILE_MAP_COPY access, copy valid memory regions to child.
1099 * pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly.
1100
d78bda7b 11012002-03-07 Corinna Vinschen <corinna@vinschen.de>
c8c3824d
CV
1102
1103 * autoload.cc (NetGetDCName): Add symbol.
1104 (NetServerEnum): Remove symbol.
1105 * security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of
1106 NetServerEnum() since it's faster. Don't call it at all if machine
1107 is not a domain member.
1108
9420d2b8
CF
11092002-03-06 Christopher Faylor <cgf@redhat.com>
1110
1111 * path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
1112
07a21bce
CF
11132002-03-05 Christopher Faylor <cgf@redhat.com>
1114
1115 * errno.cc: Change EPERM associated text to "Operation not permitted"
1116 throughout.
1117
eeac69d8
CF
11182002-03-05 Christopher Faylor <cgf@redhat.com>
1119
1120 * fhandler_socket.cc (fhandler_socket::close): Respond to signals while
1121 looping, waiting for socket to close. Superstitiously clear last error
1122 when WSAEWOULDBLOCK.
1123
241a7c5a
RC
11242002-03-05 Robert Collins <rbtcollins@hotmail.com>
1125
291be307 1126 * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
241a7c5a
RC
1127 Always init - until static members work correctly.
1128 * shm.cc (shmget): Initialize the security descriptor - thanks Corinna!
291be307 1129 * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem
241a7c5a
RC
1130 control constants.
1131
ad2864f4
CV
11322002-03-04 Christian Lestrade <christian.lestrade@free.fr>
1133
1134 * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro.
1135 * fhandler_termios.cc: Include <sys/termios.h>.
1136 (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when
1137 not in ICANON mode.
1138
59149930
CV
11392002-03-04 Dmitry Timoshkov <dmitry@baikal.ru>
1140
1141 * syscalls.cc (truncate64): Use ftruncate64 directly to not lose
1142 upper 32 bits.
1143
7c3617cc
RC
11442002-03-04 Robert Collins <rbtcollins@hotmail.com>
1145
1146 * cygserver_shm.cc (delete_shmnode): New function.
1147 (client_request_shm::serve): Use it.
1148
038c71f1
RC
11492002-03-04 Robert Collins <rbtcollins@hotmail.com>
1150
1151 * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH.
1152 * shm.cc (shmdt): Implement.
1153
67be0adb
RC
11542002-03-04 Robert Collins <rbtcollins@hotmail.com>
1155
1156 * cygserver_shm.cc: Run indent.
1157 (deleted_head): New global for storing shm id's pending deletion.
1158 (client_request_shm::serve): Return ENOSYS for invalid request types.
1159 Implement SHM_DEL - delete a shm id.
1160 * cygserver_shm.h (SHM_DEL): New type value.
1161 * shm.cc (delete_inprocess_shmds): New function, does what it's name implies.
1162 (shmctl): Implement shm_rmid control type.
1163
74c3173a
RC
11642002-03-04 Robert Collins <rbtcollins@hotmail.com>
1165
1166 * Makefile.in (install): Remove install-bin to allow make install to work.
1167
009314a4
RC
11682002-03-03 Robert Collins <rbtcollins@hotmail.com>
1169
1170 * shm.cc (shmat): Prevent a compile error.
1171 (shmdt): Set errno as this function is incomplete.
1172
e7729287
CF
11732002-02-28 Christopher Faylor <cgf@redhat.com>
1174
1175 * times.cc: Remove if 0'd code. Clean up slightly.
1176
f449bfef
RC
11772002-02-28 Robert Collins <rbtcollins@hotmail.com>
1178
1179 * Merged cygwin_daemon into head minus the new shm and ipc exports.
1180
11812002-02-28 Robert Collins <rbtcollins@hotmail.com>
1182
1183 * fhandler_tty.cc (fhandler_tty_slave::open): More debugging.
1184 (fhandler_tty_slave::read): Fix printf type for the handle.
1185 * tty.cc (tty::common_init): Add a FIXME for security.
1186
11872002-01-29 Robert Collins <rbtcollins@hotmail.com>
1188
1189 * Makefile.in (OBJS): Remove duplicate localtime.o.
1190
11912002-01-17 Robert Collins <rbtcollins@hotmail.com>
1192
291be307 1193 * cygserver.cc (check_and_dup_handle): Consolidate the two variants for
f449bfef
RC
1194 simplicity.
1195 Add Some basic debug output.
1196 (client_request_attach_tty::serve): Use the new debug_printf for clarity.
1197 Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen
1198 tty's.
1199
12002002-01-16 Robert Collins <rbtcollins@hotmail.com>
1201
1202 * cygserver.cc (transport): Correct scope.
1203 (client_request_attach_tty::serve): Add more debug information.
1204 Fix erroneous use of transport instead of conn.
1205 * cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug.
1206 (transport_layer_pipes::read): Ditto.
1207 (transport_layer_pipes::write): Ditto.
1208 (transport_layer_pipes::impersonate_client): Ditto.
1209
1210Mon Oct 8 7:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
1211
1212 * cygserver.cc (server_request::process): Rename client_request_shm_get to
1213 client_request_shm.
1214 * cygserver_process.cc (process_cache::add): Rename to add_task.
1215 Use process_cleanup instead of process_request.
1216 (process_cache::remove_process): New method.
1217 (process::process): Initialize new members.
1218 (process::~process): New member.
1219 (process::cleanup): New method.
1220 (process::add_cleanup_routine): New method.
1221 (process_request::process): Rename to process_cleanup.
1222 Call the process object's cleanup method and then delete it.
1223 (process_process_param::request_loop): Remove the signalling process.
1224 * cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm.
1225 (client_request_shm_get::serve): Handle attach request counting.
1226 * cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm.
1227 (class shm_cleanup): New class.
1228 * shm.cc: Globally rename client_request_shm_get to client_request_shm.
1229 (client_request_shm::client_request_shm): New constructor for attach requests.
1230 (shmat): Use it.
291be307 1231 * include/cygwin/cygserver_process.h (class process_request): Rename to
f449bfef
RC
1232 process_cleanup.
1233 (class cleanup_routine): New class.
1234 (class process): New members and methods to allow calling back when the process
1235 terminates.
1236
1237Thu Oct 4 14:12:00 2001 Robert Collins <rbtcollins@hotmail.com>
1238 * cygserver.cc (request_loop): Make static.
1239 (main): Use new cache constructor syntax.
1240 Start cache worker threads.
1241 Cleanup the cache at shutdown.
1242 * cygserver_process.cc: Run indent.
1243 (process_cache::process_cache): Add a trigger to use when adding a process.
1244 (process_cache::process): Move process_entry to process.
1245 Insert at the end of the list.
1246 Trigger the request loop when new process's inserted.
1247 (process_cache::process_requests): Do it.
1248 (process_cache::add): New method.
1249 (process_cache::handle_snapshot): New method.
1250 (process::process): Merge in the process_entry fields.
1251 (process::handle): Make a stub function.
1252 (process::exit_code): New method.
1253 (process_request::process): New method.
1254 (process_process_param::request_loop): New method.
1255 * cygserver_shm.cc: New header dependency - threaded_queue.h.
1256 * threaded_queue.cc (threaded_queue::cleanup): Clearer messages.
1257 (queue_process_param::stop): Short spinlock on interruptible threads.
1258 * threaded_queue.h (class threaded_queue): New constructor.
1259 * include/cygwin/cygserver_process.h (process_request): New class.
1260 (process_entry): Remove.
1261 (process): Merge in process_entry.
1262 (process_cache): Inherit from threaded_queue.
1263
1264Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
1265
1266 * cygserver.cc (class server_process_param): Use new constructor syntax.
1267 * cygserver_process.cc (process_cache::~process_cache): New function.
1268 * threaded_queue.cc: Define condition debug_printf.
1269 Run indent.
1270 (threaded_queue::cleanup): Move queue_process_param guts to a method.
1271 (threaded_queue::process_requests): Ditto.
1272 (queue_process_param::queue_process_param): New method.
1273 (queue_process_param::~queue_process_param): Ditto.
1274 (queue_process_param::start): Ditto.
1275 (queue_process_param::stop): Ditto.
291be307 1276 * threaded_queue.h (class queue_process_param): Add support for
f449bfef
RC
1277 interruptible request loops.
1278 * cygwin/include/cygwin/cygserver_process.h (class process_cache): Add
1279 destructor.
1280
1281Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
1282
1283 * cygserver_client.cc: New flag allow_daemon to disable the daemon completely.
1284 (cygserver_request): Check it.
1285 (cygserver_init): Ditto.
1286 * environ.cc (parse_thing): Add (no)daemon option.
1287
1288Tue Oct 2 23:00:00 2001 Robert Collins <rbtcollins@hotmail.com>
1289
1290 * shm.cc: Update to handle include changes from HEAD.
1291
1292Tue Oct 2 16:06:00 2001 Robert Collins <rbtcollins@hotmail.com>
1293
291be307 1294 * Makefile.in: Remove cygserver_shm.o from cygwin1.dll.
f449bfef
RC
1295 Rename cygserver_shm_outside.o to cygserver_shm.o.
1296 * cygserver.cc (server_request::process): Use the new client_request
1297 constructor.
1298 * cygserver_client.cc: Remove the #ifdef's stubs for the server method
1299 within cygwin.
1300 (client_request_attach_tty::client_request_attach_tty): Use the new
1301 client_request constructor.
1302 (client_request_shutdown::client_request_shutdown): Ditto.
1303 (client_request::client_request): Ditto.
291be307 1304 * cygserver_shm.cc (client_request_shm_get::serve): Remove the
f449bfef
RC
1305 #ifdef'd stub for in-cygwin builds.
1306 (client_request_shm_get::client_request_shm_get): Use the new
1307 client_request constructor, and remove the in-cygwin variants.
1308 * cygserver_shm.h (class client_request_shm_get): #ifndef test the
1309 serve method - it's only used in cygserver.
1310 * shm.cc (client_request_shm_get::client_request_shm_get): New function.
1311 * include/cygwin/cygserver.h (request_header): New constructor.
291be307 1312 (class client_request): Use it.
f449bfef
RC
1313 New constructor accepting the header size.
1314 #ifndef test the server method - it's only used within cygserver.
1315 (client_request_get_version): #ifdef test the server method.
1316 (client_request_shutdown): Ditto.
1317 (client_request_attach_tty): Ditto.
1318
1319Tue Oct 2 9:57:00 2001 Robert Collins <rbtcollins@hotmail.com>
1320
1321 * Makefile.in: add threaded_queue.o to cygserver.exe.
1322 * cygserver.cc: Include threaded_queue.h
1323 (class server_request): Inherit from queue_request.
1324 (class server_process_param): Inherit from queue_process_param.
1325 (class server_request_queue): Inherit from threaded_queue.
1326 (request_loop): Adjust for new types.
291be307 1327 (server_request_queue::process_requests): Remove guts to
f449bfef
RC
1328 threaded_queue::process_requests.
1329 (server_request::server_request): Adjust for new types.
1330 (worker_function): Delete.
1331 (server_request_queue::create_workers): Delete.
1332 (server_request_queue::cleanup): Delete.
1333 (server_request_queue::add): Move guts to threaded_queue::add.
1334 * threaded_queue.cc: New file.
1335 * threaded_queue.h: New file.
1336
1337Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com>
1338
1339 * cygserver.cc (client_request::serve): New function.
1340 * cygserver_process.cc: Inlude <pthread.h> for pthread_once.
1341 (process_cache::process_cache): Initialise a crtiical section for write access.
291be307 1342 (process_cache::process): Use the critical section. Also add missing entries to
f449bfef
RC
1343 the cache.
1344 (do_process_init): New function to initalise class process static variables.
291be307 1345 (process::process): Ensure that the process access critical section is
f449bfef
RC
1346 initialised.
1347 (process::handle): Close the handle of old process's when they have terminated
1348 and we are returning the handle for a process with the same pid.
1349 * cygserver_shm.cc: Run indent.
1350 Include cygserver_process.h to allow process cache functionality.
1351 (client_request_shm_get::serve): New parameter for process cache support.
1352 Use the process cache, not OpenProcess to get a handle to the originating process.
1353 Fix a handle leak with token_handle.
291be307 1354 * cygserver_shm.h (class client_request_shm_get): Update ::serve for process
f449bfef
RC
1355 cache support.
1356 * cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG.
291be307 1357 * include/cygwin/cygserver.h: Do not implement client_request::serve in the
f449bfef 1358 header.
291be307
CF
1359 * include/cygwin/cygserver_process.h (class process_cache): Add a write access
1360 critical section to prevent races when requests from a multithreaded
f449bfef
RC
1361 application arrive.
1362
1363Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
1364
1365 * Makefile.in: Add cygserver_process.o to cygserver.exe.
1366 * cygserver.cc: Include signal.h and cygwin_version.h.
1367 Define debug_printf as a macro.
1368 Define DEBUG to a value.
1369 (client_request_attach_tty::serve): Add beginning of process cache support.
1370 Change from #ifdef DEBUG to work with new DEBUG style.
1371 (client_request_get_version::serve): Add beginning of process cache support.
1372 (class server_request): New prototype for support of process cache.
1373 (class queue_process_param): New class to allow request loop threading.
1374 (class server_request_queue): Add beginning of process cache support.
1375 Allow request loop threading.
1376 (request_loop): Thread function for request loops.
1377 (server_request_queue::process_requests): Initiator for threaded request loops.
1378 (client_request_shutdown::serve): Add beginning of process cache support.
1379 (server_request::server_request): Ditto.
291be307 1380 (server_request::process): Use debug_printf. Add beginning of process cache
f449bfef
RC
1381 support.
1382 (server_request_queue::cleanup): Kill off any request loop threads.
1383 (server_request_queue::add): Add beginning of process cache support.
1384 (handle_signal): Trigger a shutdown.
1385 (main): Print out some useful info at startup - version, date time.
1386 Add process cache support.
1387 Spawn a separate thread for the transport request loop, thus allowing concurrent
1388 support for multiple transports.
291be307 1389 * cygserver_client.cc (client_request_get_version::serve): Add process cache
f449bfef
RC
1390 support.
1391 (client_request_attach_tty::serve): Add process cache support.
1392 (client_request_shutdown::serve): Add process cache support.
1393 * cygsserver_process.cc: New file with the process cache support.
1394 * cygserver_shm.cc: Redefine debug_printf to allow conditional output.
1395 * cygwin.din: Export shmdt().
1396 * shm.cc: Run indent.
1397 Update FIXME's.
1398 (shmdt): New function.
1399 * include/cygwin/cygserver.h (class client_request): Add process cache support.
1400 (class client_request_get_version): Ditto.
1401 (class client_request_shutdown): Ditto.
1402 (class client_request_attach_tty): Ditto.
1403 * include/cygwin/cygserver_process.h: New header for process cache support.
1404
1405Sun Sep 30 8:52:00 2001 Robert Collins <rbtcollins@hotmail.com>
1406
1407 * include/cygwin/cygserver_transport.h: Add copyright header.
1408 * include/cygwin/cygserver_transport_pipes.h: Ditto.
1409 * include/cygwin/cygserver_transport_sockets.h: Ditto.
1410
1411Sat Sep 29 20:40:00 2001 Robert Collins <rbtcollins@hotmail.com>
1412
1413 * Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES.
1414 Add cygserver_transport_sockets_outside.o to cygserver.exe.
1415 * cygserver.cc: Include new include files.
1416 * cygserver_client.cc: Ditto.
1417 * cygserver_shm.h: No need to include <sys/socket.h> now.
1418 * cygerver_transport.cc: Include new include files.
1419 (transport_layer_base::transport_layer_base): Strip back to a stub.
1420 (transport_layer_base::listen): Ditto.
1421 (transport_layer_base::accept): Ditto.
1422 (transport_layer_base::close): Ditto.
1423 (transport_layer_base::read): Ditto.
1424 (transport_layer_base::write): Ditto.
1425 (transport_layer_base::connect): Ditto.
291be307 1426 * cygserver_transport_pipes.cc: Include new header
f449bfef
RC
1427 "cygwin/cygserver_transport_pipes.h".
1428 * cygserver_transport_sockets.cc: New file.
1429 * dcrt0.cc: No need to include <sys/socket.h> now.
1430 * fhandler_tty.cc: Ditto.
1431 * tty.cc: Ditto.
1432 * include/cygwin/cygserver_transport.h: Strip the base class to a stub.
1433 Remove the cygserver_transport_pipes class.
1434 * include/cygwin/cygserver_transport_pipes.h: New file.
1435 * include/cygwin/cygserver_transport_sockets.h: New file.
1436
1437Tue Sep 25 16:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
1438
1439 * autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'.
1440 * Makefile.in: Add new object files, and build instructions for cygserver.exe.
1441 * cygwin.din: Export ftok, shmat, shmctl and shmget.
1442 * dcrt0.cc: Additional includes for cygserver support.
1443 (dll_crt0_1): Initialise the cygserver client.
1444 * fhandler.h (fhandler_tty): New method cygserver_attach_tty.
1445 * fhandler_tty.cc: Additional includes for cygserver support.
1446 (fhandler_tty_slave::open): Attempt to use the cygserver when obtaining
1447 handles from the parent process. On failure or 9x use the current method.
1448 (fhandler_tty_slave::cygserver_attach_tty): New function.
1449 * fork.cc (fork_child): Fixup shm memory mapped areas.
1450 * pinfo.h: Declare fixup_shms_after_fork().
1451 * security.h: Declare alloc_sd().
1452 * tty.cc: Additonal includes to support cygserver.
1453 (tty::common_init): Don't allow others to open us if the cygserver is running.
1454 * winsup.h: Declare cygserver_running.
1455 * cygserver.cc: New file.
1456 * cygserver_client.cc: New file.
1457 * cygserver_shm.cc: New file.
1458 * cygserver_shm.h: New file.
1459 * cygserver_transport.cc: New file.
1460 * cygserver_transport_pipes.cc: New file.
1461 * ipc.cc: New file.
1462 * shm.cc: New file.
1463 * include/cygwin/cygserver.h: New file.
1464 * include/cygwin/cygserver_transport.h: New file.
1465 * include/sys/ipc.h: New file.
1466 * include/sys/shm.h: New file.
1467
062401c9
RC
14682002-02-28 Robert Collins <rbtcollins@hotmail.com>
1469
1470 * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1.
1471 (__sem_wait): Ditto.
1472 (__sem_trywait): Ditto.
1473
d1f50ae5
CF
14742002-02-27 Christopher Faylor <cgf@redhat.com>
1475
1476 * include/cygwin/version.h: Bump DLL minor number.
1477
acb56175
CV
14782002-02-23 Corinna Vinschen <corinna@vinschen.de>
1479
1480 * cygwin.din (fstat64): New symbol.
1481 (ftruncate64): Ditto.
1482 (lseek64): Ditto.
1483 (lstat64): Ditto.
1484 (mmap64): Ditto.
1485 (seekdir64): Ditto.
1486 (stat64): Ditto.
1487 (telldir64): Ditto.
1488 (truncate64): Ditto.
1489 * dir.cc (telldir64): New function.
1490 (telldir): Call telldir64().
1491 (seekdir64): New function.
1492 (seekdir): Call seekdir64().
1493 * fhandler.h: Redefine all methods using __off32_t to use __off64_t.
1494 * fhandler.cc: Use __off64_t and struct __stat64 throughout.
1495 * fhandler_clipboard.cc: Ditto.
1496 * fhandler_disk_file.cc: Ditto.
1497 * fhandler_dsp.cc: Ditto.
1498 * fhandler_floppy.cc: Ditto.
1499 * fhandler_mem.cc: Ditto.
1500 * fhandler_random.cc: Ditto.
1501 * fhandler_socket.cc: Ditto.
1502 * fhandler_tape.cc: Ditto.
1503 * fhandler_zero.cc: Ditto.
1504 * pipe.cc: Ditto.
1505 * glob.c: Ditto, call lstat64 and stat64 in Cygwin.
1506 * mmap.cc: Use __off64_t throughout.
1507 (mmap64): New function.
1508 * sec_acl.cc (acl_worker): Use struct __stat64, call stat64 and lstat64.
1509 * syscalls.cc (lseek64): New function.
1510 (stat64_to_stat32): Ditto.
1511 (fstat64): Ditto.
1512 (stat64): Ditto.
1513 (lstat64): Ditto.
1514 (ftruncate64): Ditto.
1515 (truncate64): Ditto.
1516 (_fstat): Call fstat64.
1517 (_stat): Call stat64.
1518 (cygwin_lstat): Rename to avoid declaration problem. Call lstat64.
1519 (stat_worker): Use struct __stat64.
1520 (access): Ditto.
1521 (ftruncate): Call ftruncate64.
1522 (truncate): Call truncate64.
1523 * wincap.cc: Set flag has_64bit_file_access appropriately.
1524 * wincap.h: Add flag has_64bit_file_access.
1525 * winsup.h (ILLEGAL_SEEK): Define as __off64_t.
1526 (stat_dev): Declare using struct __stat64.
1527 (stat_worker): Ditto.
1528 * include/cygwin/stat.h (struct __stat32): Define if compiling Cygwin.
1529 (struct __stat64): Ditto.
1530 (struct stat): Revert definition with explicitly sized datatypes.
1531 Eliminate sized field names.
1532 * include/cygwin/types.h (blksize_t): New type.
1533 (__blkcnt32_t): Ditto.
1534 (__blkcnt64_t): Ditto.
1535 (blkcnt_t): Ditto.
1536
083abe54
CF
15372002-02-22 Christopher Faylor <cgf@redhat.com>
1538
1539 * sync.h (new_muto): Just accept an argument which denotes the name of
1540 the muto. Use this argument to construct static storage.
1541 * cygheap.cc (cygheap_init): Reflect above change.
1542 * exceptions.cc (events_init): Ditto.
1543 * malloc.cc (malloc_init): Ditto.
1544 * path.cc (cwdstuff::init): Ditto.
1545 * cygheap.h (cwdstuff): Change name of lock element to make it less
1546 generic.
1547 * path.cc (cwdstuff::get_hash): Ditto.
1548 (cwdstuff::get_initial): Ditto.
1549 (cwdstuff::set): Ditto.
1550 (cwdstuff::get): Ditto.
1551 * sigproc.cc (proc_subproc): Ditto.
1552
1553 * debug.cc (lock_debug): Change to method. Use method rather than
1554 macro throughout.
1555
1556 * tty.h (tty_min::kill_pgrp): Declare new method.
1557 * fhandler_termios.cc (tty_min::kill_pgrp): New method.
1558 (fhandler_termios::line_edit): Use new method for killing process.
1559 * dcrt0.cc (do_exit): Ditto.
1560
1561 * dtable.cc (dtable::get_debugger_info): New method for inheriting
1562 dtable info from a debugger.
1563 * tty.cc (tty_init): Attempt to grab file handle info from parent
1564 debugger, if appropriate.
1565
1566 # dtable.cc (dtable::stdio_init): Make this a method.
1567 (dtable::init_std_file_from_handle): Don't set fd unless it's not open.
1568 (dtable::build_fhandler_from_name): Move name setting to
1569 dtable::build_fhandler.
1570 (dtable::build_fhandler): Add win32 name parameter.
1571 * dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init.
1572 * dtable.h (dtable): Reflect build_fhandler parameter change.
1573 * mmap.cc (mmap_record::alloc_fh): Don't set name parameter in
1574 build_fhandler.
1575 * net.cc (fdsock): Remove set_name call since it is now handled by
1576 build_fhandler.
1577
1578 * sigproc.cc (proc_subproc): Release muto as early as possible.
1579
a6790c5f
CV
15802001-02-22 Corinna Vinschen <corinna@vinschen.de>
1581
1582 * smallprint.c (rn): Allow long long values.
1583 (__small_vsprintf): Add 'D', 'U' and 'X' formats for long long
1584 parameters.
1585
aa6df8d7
CF
15862002-02-19 Christopher Faylor <cgf@redhat.com>
1587
1588 * fhandler.cc (fhandler_base::puts_readahead): Remove default parameter
1589 setting. Newer gcc's complain about this.
1590 (fhandler_base::set_readahead_valid): Ditto.
1591 * fhandler_dsp.cc (Audio::open): Ditto.
1592 (fhandler_dev_dsp::open): Ditto.
1593
cecb74ae
CF
15942002-02-19 Christopher Faylor <cgf@redhat.com>
1595
1596 * fork.cc (fork_parent): Use sec_user_nih to control process/thread
1597 inheritance/permission.
1598 * spawn.cc (spawn_guts): Ditto.
1599 * security.cc (create_token): Initialize token so that it is not tested
1600 for bogus value later. Use sec_user to control process/thread
1601 creation.
1602 * security.h (__sec_user): Rename declaration from sec_user.
1603 (sec_user_nih): Declare here as inline function wrapper for __sec_user.
1604 (sec_user): Ditto.
1605 * sigproc.cc (czombies): Allocate a character array for zombies to
1606 avoid constructor overhead
1607 (extremely hackish, I know).
1608 (cpchildren): Ditto.
1609 (pchildren): New define.
1610 (zombies): Ditto.
1611 (getsem): Use sec_user_nih to control semaphore inheritance/permission.
1612
2bd22312
CF
16132002-02-16 Christopher Faylor <cgf@redhat.com>
1614
1615 * times.cc (hires::prime): Restore thread priority on failure
1616 condition.
1617
1618 * uinfo.cc (uinfo_init): Use more robust method for determining if
1619 process was invoked from a non-cygwin process.
1620
1621 * sync.h (muto::init): Eliminate "inheritance" parameter.
1622 (new_muto): Reflect removal of parameter.
1623 * sync.cc (muto::init): Ditto.
1624 * cygheap.cc (cygheap_init): Ditto.
1625 * debug.cc (threadname_init): Ditto.
1626 * exceptions.cc (events_init): Ditto.
1627 * malloc.cc (malloc_init): Ditto.
1628 * path.cc (cwdstuff::init): Ditto.
1629 * sigproc.cc (sigproc_init): Ditto.
1630
4c761646
CF
1631 * grp.cc (group_lock): Use different method for locking with static
1632 member.
2bd22312 1633 (read_etc_group): REALLY ensure that read lock mutex is released.
4c761646
CF
1634 * passwd.cc (passwd_lock): Use different method for locking with static
1635 member.
1636 (read_etc_passwd): REALLY ensure that read lock mutex is released.
2bd22312
CF
1637
1638 * shared.cc (sec_user): Correct reversed inheritance test.
1639
60b68f0d
CF
16402002-02-15 Christopher Faylor <cgf@redhat.com>
1641
1642 * hires.h (hires::usecs): Rename from utime. Accept an argument.
1643 * strace.cc (strace::microseconds): Use hires class for calculating
1644 times.
1645 * sync.h (new_muto): Use NO_COPY explicitly in declaration.
1646 * times.cc (gettimeofday): Reflect change in usecs argument.
1647 (hires::usecs): Ditto. Changed name from utime.
1648 * winsup.h (NO_COPY): Add nocommon attribute to force setting aside
1649 space for variable.
1650 * regcomp.c (REQUIRE): Add a void cast to bypass a warning.
1651
dce87b21
CF
16522002-02-15 Christopher Faylor <cgf@redhat.com>
1653
1654 * hires.h: New file.
1655 * times.cc (gettimeofday): Use hires class for calculating current time.
1656 (hires::prime): New method.
1657 (hires::utime): Ditto.
1658
3d456520
CF
16592002-02-14 Christopher Faylor <cgf@redhat.com>
1660
1661 * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
1662 * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
1663
907dc7d0
CF
16642002-02-14 Christopher Faylor <cgf@redhat.com>
1665
1666 * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to
1667 asm.
1668 * external.cc (cygwin_internal): Change CW_STRACE_ON to
1669 CW_STRACE_TOGGLE.
1670 * strace.cc (strace::hello): Toggle strace on and off.
1671 * sync.cc (muto::init): Renamed from constructor.
1672 * sync.h (muto::new): Delete.
1673 (muto::delete): Ditto.
1674 (new_muto): Simplify. Use muto.init for nearly everything.
1675 * uinfo.cc (uinfo_init): Avoid closing a NULL handle.
1676 * include/sys/cygwin.h (cygwin_getinfo_types): Rename CW_STRACE_OFF to
1677 CW_STRACE_TOGGLE. Delete CW_STRACE_OFF.
1678 * include/sys/strace.h (strace): Add "inited" field.
1679
4753a17b
CV
16802001-02-12 Corinna Vinschen <corinna@vinschen.de>
1681
1682 * include/cygwin/acl.h: Fix definition of aclent_t.
1683
909acaf6
CF
16842002-02-10 Christopher Faylor <cgf@redhat.com>
1685
1686 * Makefile.in (DLL_OFILES): Consolidate object files.
1687
de4e0d30
CV
16882002-02-10 Corinna Vinschen <corinna@vinschen.de>
1689
b31c68c4
CV
1690 * child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc,
1691 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
1692 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
1693 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
1694 security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright.
1695
16962002-02-10 Corinna Vinschen <corinna@vinschen.de>
1697
1698 * child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h,
de4e0d30
CV
1699 fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc,
1700 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
1701 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
1702 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
b31c68c4 1703 security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h:
de4e0d30
CV
1704 Change usage of uid_t to __uid16_t, gid_t to __gid16_t and
1705 off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and
1706 INVALID_SEEK instead casting -1 to the appropriate type.
1707 * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK.
1708 * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t
1709 types. Don't declare acl functions when compiling Cygwin.
1710 * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with
1711 correct types for internal usage.
1712
39b553b8
CV
17132002-02-10 Corinna Vinschen <corinna@vinschen.de>
1714
1715 Patch suggested by Pierre A. Humblet <Pierre.Humblet@ieee.org>:
1716 * uinfo.cc (internal_getlogin): Try evaluating user by SID even if
1717 ntsec is off.
1718 (uinfo_init): Set primary group even if ntsec is off.
1719
52296b85
CV
17202002-02-09 Corinna Vinschen <corinna@vinschen.de>
1721
1722 * include/cygwin/grp.h: New file.
1723 * include/cygwin/stat.h: Ditto.
1724 * include/cygwin/types.h: Add definitions for __off32_t,
1725 __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t,
1726 __gid32_t and gid_t.
1727 * include/sys/cygwin.h: Use correct uid and gid types.
1728
ff86860b
CV
17292002-02-09 Corinna Vinschen <corinna@vinschen.de>
1730
1731 * dtable.cc (dtable::dup2): Revert previous patch.
1732 * fhandler.h: Ditto.
1733 (fhandler_socket::recv): Define new method.
1734 (fhandler_socket::send): Ditto.
1735 * fhandler_socket.cc (fhandler_socket::recv): New method.
1736 (fhandler_socket::send): Ditto.
1737 (fhandler_socket::read): Call fhandler_socket::recv() now.
1738 (fhandler_socket::write): Call fhandler_socket::send() now.
1739 * net.cc (class wsock_event): Move definition to wsock_event.h.
1740 (fdsock): Revert previous patch.
1741 (cygwin_recv): Move implementation to fhandler_socket::recv().
1742 (cygwin_send): Move implementation to fhandler_socket::send().
1743 * wsock_event.h: New file.
1744
d0672acc
CV
17452002-02-06 Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de>
1746
1747 * net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
1748
fae28904
CV
17492002-02-08 Corinna Vinschen <corinna@vinschen.de>
1750
1751 * dtable.cc (dtable::dup2): Store fd for fhandler_socket.
1752 * fhandler.h (fhandler_base::set_fd): New virtual method.
1753 (fhandler_base::get_fd): Ditto.
1754 (fhandler_socket::set_fd): Ditto.
1755 (fhandler_socket::get_fd): Ditto.
1756 * fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead
1757 of native Winsock recv.
1758 (fhandler_socket::write): Call cygwin_send instead of native Winsock
1759 send.
1760 * net.cc (fdsock): Store fd in fhandler_socket.
1761
1f64102f
CV
17622002-02-07 Corinna Vinschen <corinna@vinschen.de>
1763
1764 * net.cc (cygwin_getsockname): Fix handling of NULL sun_path.
1765
562d9745
CV
17662002-01-29 Corinna Vinschen <corinna@vinschen.de>
1767
1768 * net.cc (getdomainname): Fix registry key for 9x systems, too.
1769
94ee02fa
CV
17702002-01-29 Corinna Vinschen <corinna@vinschen.de>
1771
1772 * net.cc (getdomainname): Fix registry key for NT systems.
1773
494a66d9
CF
17742002-01-28 Christopher Faylor <cgf@redhat.com>
1775
1776 * external.cc (cygwin_internal): Initialize various internal settings
1777 if required to allow use of some things from user loaded DLL.
1778 (CW_STRACE_ON): Add new feature.
1779 (CW_CYGWIN_PID_TO_WINPID): Ditto.
1780 * pinfo.cc (set_myself): Call "strace.hello" to initiate possible
1781 strace session.
1782 (pinfo::init): Guard against dereferencing uninitialized myself.
1783 * sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal"
1784 received.
1785 * strace.cc (strace::hello): New method.
1786 * wincap.cc (wincapc::init): Avoid initializing if already initialized.
1787 * wincap.h (wincapc::wincapc): New method.
1788 * include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of
1789 {g,u}id_t if required.
1790 * strace.h (strace::hello): Declare new method.
1791
6616e6cf
CF
17922002-01-28 Earnie Boyd <earnie@users.sf.net>
1793
1794 * include/sys/strace.h (_STRACE_ON): Define.
1795 (_STRACE_OFF): Ditto.
1796
dfb4c347
CF
17972002-01-24 Christopher Faylor <cgf@redhat.com>
1798
1799 * speclib: Ensure that temporary def file is removed.
1800
3c07fbeb
CF
18012002-01-23 Christopher Faylor <cgf@redhat.com>
1802
1803 * speclib: Use rm -f to remove temp file just to quiet any potential
1804 warnings.
1805
f6fc31e1
CV
18062002-01-23 Corinna Vinschen <corinna@vinschen.de>
1807
1808 * security.cc (create_token): Use sec_user() to create
be6d8567
CV
1809 SECURITY_ATTRIBUTES structure for primary token. Use
1810 MAXIMUM_ALLOWED access rights instead of TOKEN_ALL_ACCESS.
f6fc31e1 1811
adbd01af
CV
18122002-01-23 Corinna Vinschen <corinna@vinschen.de>
1813
1814 * path.cc (symlink): Fix check for already existing file.
1815
aed69a5b
CF
18162002-01-21 Christopher Faylor <cgf@redhat.com>
1817
1818 * cygmagic: Suppress error output when figuring out if sum takes an
1819 option.
1820
f3647dd7
CF
18212002-01-21 Christopher Faylor <cgf@redhat.com>
1822
1823 * cygmagic: Attempt to figure out if sum takes an option.
1824
51076b73
CF
18252002-01-21 DJ Delorie <dj@redhat.com>
1826
1827 * Makefile.in (libpthread.a): Pass the assembler also.
291be307 1828 (libm.a): Ditto.
51076b73
CF
1829 (libc.a): Ditto.
1830 * speclib: Specify the assembler to dlltool.
1831
0ac2abea
CF
18322002-01-21 Christopher Faylor <cgf@redhat.com>
1833
1834 * include/cygwin/version.h: Bump DLL minor number.
1835
ac11ec88
CV
18362002-01-21 Corinna Vinschen <corinna@vinschen.de>
1837
28982aa8 1838 * grp.cc (getgrgid): Don't return default gid entry when ntsec is on.
ac11ec88
CV
1839 * syscalls.cc (setegid): Don't set primary group in process token.
1840
8ef47135
CF
18412002-01-21 Christopher Faylor <cgf@redhat.com>
1842
1843 * speclib: Don't use /dev/null as DLL name. Just default to what's
1844 already in .def file.
1845
18462002-01-21 Christopher Faylor <cgf@redhat.com>
1847
1848 * exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code
1849 which caused SIGCHLD to be ignored.
1850
07cc1f1f
CF
18512002-01-20 Christopher Faylor <cgf@redhat.com>
1852
1853 * include/cygwin/version.h: Bump DLL minor number.
1854
385437d4
CF
18552002-01-20 Christopher Faylor <cgf@redhat.com>
1856
1857 * syscalls.cc (regfree): Make dll_export.
1858
d7c16d8d
CF
18592002-01-20 Christopher Faylor <cgf@redhat.com>
1860
1861 * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid
1862 when detecting if we should actually handle CTRL-C.
1863
216109a8
CF
18642002-01-19 Christopher Faylor <cgf@redhat.com>
1865
1866 * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a
1867 is only available in libstdc++-v3.
1868
9e73b339
CF
18692002-01-19 Christopher Faylor <cgf@redhat.com>
1870
1871 * exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent
1872 doesn't want it.
1873 (sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough
1874 information.
1875
5946622e
CF
18762002-01-19 Christopher Faylor <cgf@redhat.com>
1877
1878 * include/cygwin/version.h: Bump DLL minor number.
1879
994fe87b
CF
18802002-01-19 Christopher Faylor <cgf@redhat.com>
1881
1882 * Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link.
1883 * sigproc.cc (proc_exists): Change existence criteria.
1884 * sync.h (new_muto): Add volatile to definition to avoid gcc
1885 optimization problems.
1886
df3af773
CV
18872002-01-19 Corinna Vinschen <corinna@vinschen.de>
1888
1889 * include/cygwin/version.h: Bump API minor version to 51.
1890
7d6be0d6
CV
18912002-01-19 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1892
291be307
CF
1893 * cygwin.din: Add recvmsg and sendmsg.
1894 * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
1895 * /usr/include/sys/socket.h: Add recvmsg and sendmsg.
7d6be0d6 1896
2d3dab2e
CV
18972002-01-19 Corinna Vinschen <corinna@vinschen.de>
1898
1899 * security.cc (create_token): Close processes token handle as soon
1900 as it's not used anymore.
1901
104c3be6
CV
19022002-01-17 Corinna Vinschen <corinna@vinschen.de>
1903
1904 * Makefile.in: Add fnmatch.o to DLL_OFILES.
1905 * cygwin.din: Add fnmatch export symbol.
1906 * fnmatch.c: New file.
1907 * include/fnmatch.h: Ditto.
1908 * include/cygwin/version.h: Bump API minor version to 50.
1909
9a7e1562
CV
19102002-01-15 Corinna Vinschen <corinna@vinschen.de>
1911
1912 * path.cc (fchdir): Call chdir with full windows path.
1913
7eddac1b
CV
19142002-01-14 Corinna Vinschen <corinna@vinschen.de>
1915
1916 * dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1"
1917 for file attributes throughout.
1918 * fhandler.cc: Ditto.
1919 * fhandler_disk_file.cc: Ditto.
1920 * path.cc: Ditto.
1921 * path.h: Ditto.
1922 * syscalls.cc: Ditto.
1923 * times.cc (utimes): Use path_conv::isdir() instead of explicit
1924 GetFileAttributes() call.
1925
5daa0835
CF
19262002-01-13 Christopher Faylor <cgf@redhat.com>
1927
1928 * dcrt0.cc (multiple_cygwin_problem): Clarify logic and make
1929 CYGWIN_MISMATCH_OK more powerful.
1930
06486d9e
CF
19312002-01-10 Christopher Faylor <cgf@redhat.com>
1932
1933 * exceptions.cc (sig_handle): Accept a second argument indicating
1934 whether the signal came from this process or not.
1935 * sigproc.h: Reflect sig_handle arg change.
1936 * signal.cc (kill_pgrp): Add sigframe info.
1937 (abort): New function. Eliminates newlib function of same name.
1938 * sigproc.cc (wait_sig): Pass "signal from this process" value as arg
1939 2.
1940
bb5225c2
CV
19412002-01-10 Corinna Vinschen <corinna@vinschen.de>
1942
1943 * syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid
1944 file parameter.
1945
c0a8e8d0 19462002-01-09 Christopher Faylor <cgf@redhat.com>
291be307 1947 Robert Collins <rbtcollins@hotmail.com>
c0a8e8d0
CF
1948
1949 * exceptions.cc (early_stuff_init): Rename from misnamed
1950 set_console_handler.
1951 (ctrl_c_handler): Attempt to work around potential signal duplication
1952 during process startup.
1953 (sig_handle): Ignore SIGINT when we're just an "exec stub".
1954 * spawn.cc (spawn_guts): Store pid of spawned process in global for use
1955 by ctrl_c_handler.
1956 * dcrt0.cc (dll_crt0_1): Call renamed initialization function.
1957 * winsup.h: Reflect function name change.
1958
fe37dd79
CV
19592002-01-08 Corinna Vinschen <corinna@vinschen.de>
1960
1961 * net.cc (cygwin_accept): Set sun_path for newly connected socket.
1962
cbf7a9eb
CF
19632002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1964
1965 * Makefile.in: Add uninstall target.
1966
a2e12d0c
CF
19672002-01-07 Christopher Faylor <cgf@redhat.com>
1968
1969 * sigproc.cc (getsem): Clean up debugging output.
1970
4a08cbfe
CF
19712002-01-07 Christopher Faylor <cgf@redhat.com>
1972
1973 * sigproc.cc (getsem): Set errno when unable to create own semaphore.
1974 Reorganize to make clearer that error should only come from initial
1975 creation of process semaphore.
1976
10dedaaa
CF
19772002-01-06 Christopher Faylor <cgf@redhat.com>
1978
1979 * dtable.cc (dtable::init_std_file_from_handle): Add some defensive
1980 code to invalid handle case.
1981
d6154fb7
CV
19822002-01-06 Corinna Vinschen <corinna@vinschen.de>
1983
1984 * ioctl.cc (ioctl): Make third argument optional.
1985 * include/sys/ioctl.h: Ditto in declaration.
1986 * dtable.cc (dtable::init_std_file_from_handle): Revert previous
1987 bogus patch.
1988 * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB
1989 message.
1990
9125cbd7 19912002-01-05 Christopher Faylor <cgf@redhat.com>
fcb76c5d 1992
9125cbd7
CF
1993 * dir.cc (opendir): Guarantee release of alloced fhandler structure on
1994 error.
fcb76c5d 1995
9125cbd7
CF
19962002-01-05 Corinna Vinschen <corinna@vinschen.de>
1997
1998 * exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN.
1999
20002002-01-05 Corinna Vinschen <corinna@vinschen.de>
2edba236
CV
2001
2002 * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL
2003 handle as errorneous.
2004
acf05df7
CF
20052002-01-04 Christopher Faylor <cgf@redhat.com>
2006
2007 * cygmagic: Change logic for equality test.
2008
7acba971
CF
20092002-01-04 Christopher Faylor <cgf@redhat.com>
2010
2011 * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
2012
9125cbd7 20132002-01-04 Corinna Vinschen <corinna@vinschen.de>
dc63cea5
CV
2014
2015 * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL
2016 throughout.
2017 (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types
2018 in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL
2019 and PF_INET protocols. Return error otherwise. Implement datagram
2020 socketpairs.
2021
3b789217
CF
20222002-01-01 Christopher Faylor <cgf@redhat.com>
2023
291be307 2024 * speclib: Remove temp files automatically.
3b789217 2025
2fe27909 20262002-01-01 Corinna Vinschen <corinna@vinschen.de>
2fe27909
CV
2027 * fhandler.h (fhandler_socket::sun_path): New private member.
2028 (fhandler_socket::set_sun_path): New method.
2029 (fhandler_socket::get_sun_path): Ditto.
2030 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize
2031 sun_path to NULL.
2032 (fhandler_socket::~fhandler_socket): Free sun_path if needed.
2033 (fhandler_socket::set_sun_path): New method.
2034 * net.cc (cygwin_bind): Set sun_path to path of local socket file.
2035 (cygwin_getsockname): Add code to return correct sockaddr for unix
2036 domain sockets.
This page took 0.258929 seconds and 5 git commands to generate.