]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
* include/stdlib.h (qsort): Remove const from first parm.
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
556ceaeb
CV
12003-03-10 Corinna Vinschen <corinna@vinschen.de>
2
3 * sec_acl.cc (setacl): Don't handle DELETE flag specially.
4 * security.cc (alloc_sd): Ditto.
5
a201401c
CV
62003-03-09 Corinna Vinschen <corinna@vinschen.de>
7
6bbf711e 8 * winver.rc: Change Copyright hint to include 2003.
a201401c 9
b1aae492
CV
102003-03-09 Corinna Vinschen <corinna@vinschen.de>
11
12 Switch to 32/64 datatypes:
13 * Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
14 aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
15 facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
16 ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
17 getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
18 seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
19 telldir truncate.
20 (NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
21 aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
22 acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
23 fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
24 getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
25 getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
26 mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
27 setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
28 above.
29 * cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
30 members to __uid32_t and __gid32_t.
31 * cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
32 aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
33 acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
34 _fstat64 ftello64 _lseek64 mknod32 _open64.
35 * glob.c: Include perprocess.h.
36 (globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
37 getuid.
38 (g_lstat): Check for applications API version to call the appropriate
39 typed gl_lstat function.
40 (g_stat): Ditto for gl_stat.
41 * shm.cc (client_request_shm::client_request_shm): Call geteuid32
42 and getegid32 instead of geteuid and getegid throughout.
43 * syscalls.cc (_open64): New alias for open.
44 (_lseek64): New alias for lseek64.
45 (_fstat64): New alias for fseek64.
46 (mknod32): New function.
47 (mknod): Calls mknod32 now.
48 * winsup.h: Make function declarations for getuid32, geteuid32,
49 and getpwuid32 accessible for plain C sources. Add declarations
50 for getegid32 and getpwnam.
51 * include/cygwin/version.h: Bum API minor number to 78.
52 * include/sys/cygwin.h: Guard C++ specific members of struct
53 per_process against inclusion in plain C sources.
54 * include/sys/mman.h (mman): Add guard to avoid type clash when
55 compiling Cygwin.
56
659fb3ff
CF
572003-03-09 Christopher Faylor <cgf@redhat.com>
58
d580d86c 59 * include/cygwin/version.h: Bump DLL minor number to 22.
659fb3ff 60
c367dfd0
CF
612003-03-09 Christopher Faylor <cgf@redhat.com>
62
63 Do some minor reformatting of 'extern "C"' use throughout.
64
652003-03-06 Christopher January <chris@atomice.net>
66
67 * autoload.cc (GetSystemTimes): Define new autoload function.
68 * fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
69 (fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS
70 cases.
71 (format_proc_uptime): Use GetSystemTimes if available.
72 (read_value): New macro.
73 (print): New macro.
74 (cpuid): New function.
75 (can_set_flag): New function.
76 (format_proc_cpuinfo): New function.
77 (format_proc_partitions): New function.
78
36c4a441
CF
792003-03-09 Christopher Faylor <cgf@redhat.com>
80
81 * syscalls.cc (unlink): Attempt to be more clever about setting
82 attributes of file. Only open file in query mode to avoid having to
83 mess with security stuff for reading.
84
639ebe29
CV
852003-03-09 Corinna Vinschen <corinna@vinschen.de>
86
87 * rmsym: Fix regular expression.
88
3a1d827f
CF
892003-03-09 Christopher Faylor <cgf@redhat.com>
90
91 * Makefile.in: Change from using new-* to cygwin0 for temporary
92 targets.
93
ca0e9071
CV
942003-03-09 Corinna Vinschen <corinna@vinschen.de>
95
96 * include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
97
ed269cea
CF
982003-03-08 Christopher Faylor <cgf@redhat.com>
99
100 * syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE
101 to delete files since this allows us to preserve the protection of hard
102 linked files.
103 (link): Generate full path for potentially recalculated .lnk target.
104
1114c3d0
CF
1052003-03-08 Christopher Faylor <cgf@redhat.com>
106
107 Revert below changes regarding _pinfo::cmdline.
108
d66ac2bc
CV
1092003-03-08 Corinna Vinschen <corinna@vinschen.de>
110
111 * external.cc (cygwin_internal): Change n to __off64_t to match change
112 of _pinfo::cmdline.
113 * fhandler.h (class fhandler_virtual): Change filesize member to
114 __off64_t.
115 * fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
116 (format_proc_stat): Ditto.
117 (format_proc_uptime): Ditto.
118 * fhandler_process.cc (format_process_stat): Ditto.
119 (format_process_status): Ditto.
120 (format_process_statm): Ditto.
121 * pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
122 * pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
123
762520f3
CF
1242003-03-07 Christopher Faylor <cgf@redhat.com>
125
126 * path.h (PATH_LNK): New enum val.
127 (path_conv::is_lnk_symlink): New function. True if path represents
128 .lnk style symlink.
129 * path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
130 (symlink_info::check): Ditto. Remove PATH_LNK from pflags initially.
131 * syscalls.cc (unlink): Always remove readonly attribute from a symlink
132 regardless of type.
133 (link): (from Corinna Vinschen) Allow links to symlinks. Reset
134 attributes on a symlink after successful link creation.
135 (chmod): Use is_lnk_symlink where appropriate.
136 (rename): Ditto.
137
1382003-03-07 Pierre Humblet <pierre.humblet@ieee.org>
139
140 * tty.cc (create_tty_master): Call GetComputerName instead of
141 cygwin_gethostname. Set ut_id.
142 * syscalls.cc (login): Call endutent.
143 (setutent): Do not seek after a fresh open.
144
6f8102cb
CV
1452003-03-07 Corinna Vinschen <corinna@vinschen.de>
146
147 * syscalls.cc (seteuid32): Fix formatting.
148
88243328
TP
1492003-03-04 Thomas Pfaff <tpfaff@gmx.net>
150
151 * thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
152 prior to pthread objects.
762520f3 153
12390bc4
CV
1542003-03-04 Jason Tishler <jason@tishler.net>
155
156 * fhandler_socket.cc (fhandler_socket::dup): Initialize type.
157
c418817e
CF
1582003-03-03 Christopher Faylor <cgf@redhat.com>
159
160 * fhandler.h (fhandler_tty_slave::close): Declare new function.
161 (fhandler_tty_slave::dup): Declare new function.
162 (fhandler_tty_slave::fixup_after_function): Declare new function.
163 * fhandler_tty.cc (fhandler_tty_slave_open): Only increment
164 fhandler_console::open_fhs when associated with a pty.
165 (fhandler_tty_slave::close): Define new function. Decrement
166 fhandler_console::open_fhs when associated with a pty.
167 (fhandler_tty_slave::dup): Define new function. Increment
168 fhandler_console::open_fhs when associated with a pty.
169 (fhandler_tty_slave::fixup_after_fork): Define new function. Increment
170 fhandler_console::open_fhs when associated with a pty.
171
e11fe31b
CF
1722003-03-03 Christopher Faylor <cgf@redhat.com>
173
174 * fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
175 fhandler_console::open_fhs here.
176 (fhandler_pty_slave::close): Ditto for close.
177
cffdb4b1
CF
1782003-03-02 Christopher Faylor <cgf@redhat.com>
179
180 * lib/getopt.c: Refresh from NetBSD sources.
181
d5d2ffee
CF
1822003-03-02 Christopher Faylor <cgf@redhat.com>
183
184 * fhandler_console.cc (fhandler_console::close): Don't decrement
185 in use counter if in vfork fixup stage.
186
c2c6b170
CF
1872003-03-02 Christopher Faylor <cgf@redhat.com>
188
189 * lib/getopt.c: Nuke use of unneeded BSDisms.
190
8b19b43d
CF
1912003-03-02 Christopher Faylor <cgf@redhat.com>
192
193 * dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary
194 if LoadLibraryEx fails.
195 * dtable.cc (dtable::dec_console_fds): Eliminate.
196 (dtable::release): Don't treat console specially.
197 (dtable::build_fhandler): Ditto.
198 * dtable.h (console_fds): Eliminate.
199 (dtable::dec_console_fds): Eliminate.
200 (dtable::inc_console_fds): Eliminate.
201 * fhandler.h (fhandler_console::open_fhs): New static element.
202 * fhandler_console.cc (fhandler_console::open): Increment open_fs.
203 (fhandler_console::close): Call FreeConsole if no more open consoles
204 and ctty is not associated with the console.
205 * syscalls.cc (setsid): Simplify check for when to call FreeConsole.
206 (check_pty_fds): Eliminate definition.
207 * winsup.h (check_pty_fds): Eliminate declaration.
208
3efc65f7
CF
2092003-03-02 Christopher Faylor <cgf@redhat.com>
210
211 * dll_init.cc (dll_list::load_after_fork): Fix typo where result of
212 LoadLibrary was ignored.
213
5a082e9e
CV
2142003-03-01 Corinna Vinschen <corinna@vinschen.de>
215
216 * fhandler_socket.cc (fhandler_socket::bind): Open and write socket
217 file using Win32 calls.
218
9d913f07
CV
2192003-03-01 Corinna Vinschen <corinna@vinschen.de>
220
221 * fhandler_socket.cc (get_inet_addr): Open and read socket file using
222 Win32 calls.
223
005c3065
CF
2242003-02-28 Christopher Faylor <cgf@redhat.com>
225
226 * cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions.
227 * dcrt0.cc (cygwin_atexit): New function.
228 (cygwin_exit): Ditto.
229
27b4082a
PH
2302003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
231
232 * syscalls.cc (fstat64): Pass get_name () to pc.
005c3065 233 (access): Pass fn to stat_worker.
27b4082a
PH
234
2352003-03-27 Corinna Vinschen <corinna@vinschen.de>
5777b970
CV
236
237 * fhandler_socket.cc (class sock_event): New class managing Winsock
238 events for interruptible socket calls.
239 (fhandler_socket::connect): Move support for interruptible call to
240 class sock_event. Use class object instead.
241 (fhandler_socket::accept): Ditto. Remove useless casts.
242
005c3065 2432003-03-27 Thomas Pfaff <tpfaff@gmx.net>
5777b970
CV
244
245 * fhandler_socket.cc (fhandler_socket::connect): Add support for
246 an interruptable connect.
247
7b2ce663
CV
2482003-02-27 Pierre Humblet <pierre.humblet@ieee.org>
249
250 * uinfo.cc (internal_getlogin): Only update user.groups.pgsid
251 if the call to set the primary group succeeds.
252
0e7a60fe
CF
2532003-02-27 Christopher Faylor <cgf@redhat.com>
254
255 * cygthread::detach: Improve error message.
256
61a52599
CV
2572003-02-26 Pierre Humblet <pierre.humblet@ieee.org>
258
259 * sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid.
260
6b9a9ce6
CV
2612003-02-25 Corinna Vinschen <corinna@vinschen.de>
262
263 * mmap.cc (mmap64): Fix returned address by taking the granularity
264 into account.
265
1ffc44aa
PH
2662003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
267
268 * syslog.cc (syslog): Do not unlock the file before closing it
269 and remove debug_printf about stream errors.
270
a066f364
CF
2712003-02-22 Christopher Faylor <cgf@redhat.com>
272
273 * cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true.
274 # cygwin.din: Export mallinfo.
275 # malloc_wrapper.cc (mallinfo): New function.
276
878e60c5
CF
2772003-02-22 Pierre Humblet <pierre.humblet@ieee.org>
278
279 * syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin
280 pid as an unsigned decimal. On Win95 print a timestamp and attempt to
281 lock the file up to four times in 3 ms.
282
b1d1e50d
CV
2832003-02-21 Corinna Vinschen <corinna@vinschen.de>
284
285 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler
286 warning.
287 (fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective
288 uid/gid of current process in case of open sockets.
289
cf762b08
CV
2902003-02-21 Corinna Vinschen <corinna@vinschen.de>
291
292 * dtable.cc (dtable::build_fhandler_from_name): Set some fhandler
293 data on sockets to evaluate AF_LOCAL sockets correctly.
294 (dtable::build_fhandler): Set unit number on sockets.
295 * fhandler.h (fhandler_socket): Add unit number.
296 (fhandler_socket::get_unit): New method.
297 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit
298 number.
299 (fhandler_socket::fstat): Reorganize to return more Linux-like
300 values.
301 * net.cc: include ctype.h.
302 (fdsock): Set unit number when building fhandler.
303 * path.cc (path_conv::check): Set device type to FH_SOCKET if file
304 is a AF_UNIX socket.
305 (get_devn): Evaluate unit for virtual socket devices.
306 (win32_device_name): Set windows path for sockets to unix_path with
307 just backslashes to keep the different names.
308 * syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev
309 for sockets.
310 (stat_worker): Ditto.
311
3122003-02-21 Pierre Humblet <pierre.humblet@ieee.org>
313
314 * autoload.cc (AccessCheck): Add.
315 (DuplicateToken): Add.
316 * security.h (check_file_access): Declare.
317 * syscalls.cc (access): Convert path to Windows, check existence
318 and readonly attribute. Call check_file_access instead of acl_access.
319 * security.cc (check_file_access): Create.
320 * sec_acl (acl_access): Delete.
321
5cd82412
CF
3222003-02-19 Christopher Faylor <cgf@redhat.com>
323
324 * fhandler.cc (fhandler_base::open): Move some filesystem specific
325 stuff.
326 (fhandler_disk_file::open): Accept some filesystem specific stuff.
327 * sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
328 (sig_send): Don't assume that signal thread is ready.
329
892d8962
CV
3302003-02-20 Corinna Vinschen <corinna@vinschen.de>
331
332 * wincap.h (wincap): Remove unnecessary definition of
333 supports_sparse_files.
334 * wincap.cc: Ditto.
335
518f5d49
CV
3362003-02-20 Corinna Vinschen <corinna@vinschen.de>
337
338 * fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
339 created by cygheap_fdnew constructor.
340 * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
341 * fhandler_socket.cc (fhandler_socket::accept): Ditto and move
342 creation of file descriptor behind blocking OS call.
343 * net.cc (cygwin_socket): Ditto.
344 (cygwin_rcmd): Ditto.
345 (cygwin_rresvport): Ditto.
346 (cygwin_rexec): Ditto.
347 (socketpair): Ditto.
348
3a88cf1b
CV
3492003-02-20 Corinna Vinschen <corinna@vinschen.de>
350
351 * autoload.cc (GetCompressedFileSize): Add.
352 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
353 st_blocks value from GetCompressedFileSize() if available.
354
79207923
CV
3552003-02-18 Vaclav Haisman <V.Haisman@sh.cvut.cz>
356
357 * wincap.h (wincaps::supports_sparse_files): New flag.
358 (wincapc::supports_sparse_files): New method.
359 * wincap.cc (wincap_unknown): Define value for the new flag.
360 (wincap_95): Ditto.
361 (wincap_95osr2): Ditto.
362 (wincap_98): Ditto.
363 (wincap_98se): Ditto.
364 (wincap_me): Ditto.
365 (wincap_nt3): Ditto.
366 (wincap_nt4): Ditto.
367 (wincap_nt4sp4): Ditto.
368 (wincap_2000): Ditto.
369 (wincap_xp): Ditto.
370 * path.h (path_conv::fs_flags): New method.
005c3065
CF
371 * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
372 (fhandler_disk_file::open): Set newly created and truncated files as
79207923
CV
373 sparse on platforms that support it.
374
afe13e84
CV
3752003-02-17 Pierre Humblet <pierre.humblet@ieee.org>
376
377 * grp.cc (internal_getgroups): Handle properly tokens with
378 no groups. Fix bug introduced on 2003-02-04.
379
8fc16812
CF
3802003-02-16 Christopher Faylor <cgf@redhat.com>
381
408e9b2f 382 * cygwin.din: Export all appropriate newlib libm functions. Sort.
8fc16812
CF
383 * include/cygwin/version.h: Bump API minor number.
384
f655eadf
CF
3852003-02-15 Christopher Faylor <cgf@redhat.com>
386
8fc16812 387 * cygwin.din: Export all appropriate newlib libc functions.
f655eadf
CF
388 * include/cygwin/version.h: Bump API minor number.
389
4d9ba012
CV
3902003-02-14 Jason Tishler <jason@tishler.net>
391
392 * mmap.cc (mprotect): Add missing break.
393
dff01e3a
CF
3942003-02-13 Christopher Faylor <cgf@redhat.com>
395
396 * exceptions.cc (try_to_debug): Don't reset priority when returning
397 from non-waitloop call.
d1d1797e
CF
398
3992003-02-13 Vaclav Haisman <V.Haisman@sh.cvut.cz>
005c3065 400 Christopher Faylor <cgf@redhat.com>
d1d1797e
CF
401
402 * fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep
403 for bell sound.
404 * autoload.cc (MessageBeep): Add.
405
97c61aeb
CF
4062003-02-13 Christopher Faylor <cgf@redhat.com>
407
408 * include/cygwin/types.h: Use correct ifdef guard for u_ definitions.
409
a200c081
CF
4102003-02-13 Christopher Faylor <cgf@redhat.com>
411
412 * environ.cc (environ_init): Use strechr.
413
2858de3a
CF
4142003-02-13 Christopher Faylor <cgf@redhat.com>
415
416 * include/cygwin/in.h (sockaddr_in): Fix typo.
417
75c8a70c
CF
4182003-02-12 Christopher Faylor <cgf@redhat.com>
419
420 * path.h (path_conv): Reorganize slightly.
421
939d19b0
CF
4222003-02-12 Christopher Faylor <cgf@redhat.com>
423
424 * fhandler_tty.cc (process_input): Add sanity check to ensure that
425 console typeahead is cleared on signal.
426
7a44ba05
CF
4272003-02-12 Christopher Faylor <cgf@redhat.com>
428
429 * spawn.cc (linebuf::~linebuf): Resurrect commented out (for
430 debugging?) code.
431
407b8df6
CF
4322003-02-10 Ralf Habacker <ralf.habacker@freenet.de>
433
434 * include/cygwin/in.h (in_attr_t): Define new type.
435 * include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
436 (inet_lnaof): Ditto.
437 (inet_netof): Ditto.
438 (inet_network): Ditto.
439
4402003-02-10 Christopher Faylor <cgf@redhat.com>
441
442 * include/cygwin/types.h: Move many *_t typedefs here. Protect them
443 with ifdefs.
444 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to mode_t.
445 * security.cc (get_attribute_from_acl): Accept mode_t attribute.
446 (get_nt_attribute): Ditto.
447 (get_file_attribute): Ditto.
448 (get_nt_object_attribute): Ditto.
449 (get_object_attribute): Ditto.
450 * security.h: Reflect above changes.
451 * syscalls.cc (chown_worker): Change attrib to mode_t.
452
ad80bc42
CF
4532003-02-08 Christopher Faylor <cgf@redhat.com>
454
67c64e3b 455 * include/cygwin/version.h: Bump DLL minor number to 21.
ad80bc42
CF
456
4572003-02-07 Christopher Faylor <cgf@redhat.com>
458
459 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
460 changes.
461
4136fdb1
CV
4622003-02-07 Corinna Vinschen <corinna@vinschen.de>
463
464 * mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
465 parameter. Only protect pages actually unused currently. Do job
466 of map_map() when initializing a map.
467 (mmap_record::map_map): Reduce functionality for the reuse case
468 of private anonymous mapping.
469 (mmap_record::fixup_map): Format change.
470 (list::add_record): Add offset and length parameter to call
471 mmap_record::alloc_map() correctly.
472 (mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
473 (munmap): Rename `l' variable to `map_list'.
474 (msync): Ditto.
475 (fhandler_disk_file::mmap): Streamline code.
476 (mprotect): Ditto.
477 (fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
478
49b84ce4
CF
4792003-02-07 Vaclav Haisman <V.Haisman@sh.cvut.cz>
480 Christopher Faylor <cgf@redhat.com>
481
482 * exceptions.cc (try_to_debug): Set priority of current thread rather
483 than the main thread. Make busy waiting loop less busy. Restore
484 priority when function returns.
485
bc5b63ed
CF
4862003-02-07 Christopher Faylor <cgf@redhat.com>
487
488 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
489
4902003-02-07 Christopher Faylor <cgf@redhat.com>
491
492 * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
493
1de8d164
CF
4942003-02-06 Christopher Faylor <cgf@redhat.com>
495
496 * heap.cc (heap_init): Remove debugging code.
497
565e8015
CV
4982003-02-06 Pierre Humblet <pierre.humblet@ieee.org>
499
500 * security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
1de8d164 501 declaration of is_grp_member.
565e8015
CV
502 * uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
503 * passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
504 * grp.cc (pwdgrp::read_group): Change group name to provide better
505 feedback.
506 (getgrgid): Use gid16togid32.
507 * sec_helper.cc (is_grp_member): Delete.
508
d238c1b4
CF
5092003-02-05 Christopher Faylor <cgf@redhat.com>
510
511 * path.cc: Change 'to_posix_p' to 'to_posix' throughout.
512 (conv_path_list_buf_size): Accommodate relative paths.
513
b7f52fe8
CF
5142003-02-05 Christopher Faylor <cgf@redhat.com>
515
516 * path.cc (etc::dir_changed): Fix debug printf.
517
62cd433e
CV
5182003-02-05 Corinna Vinschen <corinna@vinschen.de>
519
520 * sec_acl.cc (setacl): Move all permission settings to beginning of
521 loop. Set default rights to same values as in alloc_sd(). Set DELETE
522 for owner and default owner only if S_IWOTH is given.
523
5242003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
525
526 * sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
527 wrapper function definitions. Replace call to the aclXYZ functions by
528 calls aclXYZ32.
529 (searchace): Change type of third argument to __uid32_t and use
530 ILLEGAL_UID instead of -1;
531 (setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
532 for S_IWOTH. Replace -1 by ILLEGAL_UID.
533 (getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
534 In last else clause, suppress second call to ace_sid.get_id and use
535 TRUE in first call. Replace EqualSid by ==.
536 (acl_access): Call internal_getgroups in USER and GROUP cases.
537 (acecmp: Define static.
538 (acl32): Create from 16 bit type.
539 (facl32): Ditto.
540 (lacl32): Ditto.
541 (aclcheck32): Ditto.
542 (aclsort32): Ditto.
543 (acltomode32): Ditto.
544 (aclfrommode32): Ditto.
545 (acltopbits32): Ditto.
546 (aclfrompbits32): Ditto.
547 (acltotext32): Ditto.
548 (aclfromtext32): Ditto, and use strechr.
549 (acl16to32): Create.
550 (acl): Make it a wrapper function.
551 (facl): Ditto.
552 (lacl): Ditto.
553 (aclcheck): Ditto.
554 (aclsort): Ditto.
555 (acltomode): Ditto.
556 (aclfrommode): Ditto.
557 (acltopbits): Ditto.
558 (aclfrompbits): Ditto.
559 (acltotext): Ditto.
560 (aclfromtext): Ditto.
561 * security.cc (write_sd): Call set_process_privilege and check
562 ownership.
563 (alloc_sd): Remove call to set_process_privilege and the owner check.
564
cadd065b
CF
5652003-02-05 Christopher Faylor <cgf@redhat.com>
566
567 * include/sys/cygwin.h: Use C-style comments.
568
0c8455c3
CV
5692003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
570
571 * sec_helper.cc (get_sids_info): New function.
572 * security.cc (extract_nt_dom_user): Simplify with strechr.
573 (get_user_groups): Initialize glen to MAX_SID_LEN.
574 (get_user_local_groups): Ditto.
575 (get_attribute_from_acl): Define ace_sid as cygpsid.
576 (get_nt_attribute): Define owner_sid and group_sid as cygpsid.
577 Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
578 (get_nt_object_attribute): Ditto.
579 (alloc_sd): Define ace_sid as cygpsid.
580
5ae9331a
TP
5812003-02-04 Thomas Pfaff <tpfaff@gmx.net>
582
583 * syscalls.cc (struct system_cleanup_args): New struct.
584 (system_cleanup): New function.
585 (system): Use pthread_cleanup_push and _pop to save and restore
586 signal handlers and sigprocmask.
587
3dbafd87
CV
5882003-02-04 Corinna Vinschen <corinna@vinschen.de>
589
590 * path.cc (symlink): Create security attributes so that only the
591 user can modify the symlink.
592 * security.cc (set_security_attribute): Remove symlink special
593 handling.
594
0daf2561
CV
5952003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
596
597 * grp.cc (internal_getgroups): Do not return without closing
598 the process handle.
599
4a21c2d5
CV
6002003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
601
602 * security.h (class cygpsid): New class.
603 (class cygsid): Use cygpsid as base. Remove members psid, get_id,
604 get_uid, get_gid, string, debug_printf and the == and != operators.
605 (cygsidlist::clear_supp): Only do work if setgroups has been called.
606 * sec_helper.cc: Define sid_auth NO_COPY.
607 (cygpsid::operator==): New operator.
608 (cygpsid::get_id): New function.
609 (cygpsid::string): New function.
610 (cygsid::string): Delete.
611 (cygsid::get_id): Delete.
612 * pwdgrp.h: Change arguments of internal_getpwsid,
613 internal_getgrsid and internal_getgroups to cygpsid.
614 * passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
d238c1b4 615 * grp.cc (internal_getgrsid): Ditto.
4a21c2d5
CV
616 (internal_getgroups): Ditto.
617
335556d5
CF
6182003-02-03 Christopher Faylor <cgf@redhat.com>
619
620 Eliminate most unneeded this-> pointers throughout.
621
153e83c6
CV
6222003-02-03 Pierre Humblet <pierre.humblet@ieee.org>
623
624 * security.h: Add third argument to set_process_privilege.
625 * autoload.cc: Add OpenThreadToken.
626 * sec_helper.cc (set_process_privilege): Add and use use_thread
627 argument.
628 * security.cc (alloc_sd): Modify call to set_process_privilege.
629 Remember the result in each process. If failed and file owner is not
630 the user, fail.
631
f0f3ea68
CV
6322003-02-03 Corinna Vinschen <corinna@vinschen.de>
633
634 * fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
635 length and don't set errno in case of WSAEMSGSIZE error.
636 (fhandler_socket::recvmsg): Ditto.
637
6688a061
CF
6382003-02-01 Christopher Faylor <cgf@redhat.com>
639
640 * grp.cc (getgrent32): Only refresh group entries when at beginning.
641 (internal_getgrsid): Only refresh if uninitialized.
642 (internal_getgrent): Ditto.
643 * passwd.cc (getpwent): Only refresh passwd entries when at beginning.
644 (pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
645 (internal_getpwsid): Only refresh if uninitialized.
646 (getpass): No need to refresh passwd data here.
647 * pwdgrp.h (refresh): Eliminate default.
648
a5a93a62
CF
6492003-01-31 Christopher Faylor <cgf@redhat.com>
650
651 * dlfcn.cc (dlerror): Only report load errors once per error.
652
b0a82a85
CF
6532003-01-31 Christopher Faylor <cgf@redhat.com>
654
655 * fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
656 of res.
657
658 * termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
659
6602003-01-31 Troy Curtiss <troyc@usa.net>
661
662 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking
663 so that if any Win32 SetComm*() calls fail, errno gets set to EINVAL
664 and tcsetattr() returns -1. Catch invalid bitrates, mostly. If baud
665 rate setting is B0, just drop DTR and leave Win32 DCB bitrate as-is
666 since 0 is not a valid Win32 setting.
667 (fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as
668 B0, otherwise get it from the DCB.
669
949c3da1
CF
6702003-01-31 Christopher Faylor <cgf@redhat.com>
671
672 * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from
673 Pierre Humblet).
674 * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already
675 have lock since that means we are in the process of reading the file.
676
485d85bf
CF
6772003-01-31 Jason Tishler <jason@tishler.net>
678
679 * shared.cc (shared_info::heap_chunk_size): Use correct variable when
680 reading HKLM.
681
704ce461
CF
6822003-01-30 Christopher Faylor <cgf@redhat.com>
683
684 * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one
685 error when inspecting path.
686
ba6e1083
CF
6872003-01-29 Christopher Faylor <cgf@redhat.com>
688
689 * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT
690 behavior.
691
6922003-01-28 Corinna Vinschen <corinna@vinschen.de>
01e3c897
CV
693
694 * fhandler_socket.cc (fhandler_socket::accept): On successful execution
695 set connection state of returned socket to CONNECTED.
696
dfb366da
CF
6972003-01-27 Christopher Faylor <cgf@redhat.com>
698
699 * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about
700 non-numeric fields.
701
03dba1de
CF
7022003-01-26 Christopher Faylor <cgf@redhat.com>
703
704 * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no
705 longer a valid return from next_str.
706 (pwdgrp::add_line): Duh. Revert to use strchr.
707
fea48988
CF
7082003-01-26 Christopher Faylor <cgf@redhat.com>
709
ca6018a0 710 * string.h (strechr): New function.
fea48988
CF
711 * uinfo.cc (pwdgrp::next_str): Search only for input char in string.
712 Return EOS on failure. Don't check for NULL since it shouldn't be
713 possible.
714 (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
715 (pwdgrp::next_num): Pass explicit separator character to next_str.
716 * grp.cc (pwdgrp::parse_group): Ditto.
717 * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage
718 input.
719 * pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
720
9a751621
CF
7212003-01-26 Christopher Faylor <cgf@redhat.com>
722
723 * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
724 CreateFile failure.
725
c9133395
CF
7262003-01-26 Christopher Faylor <cgf@redhat.com>
727
bdbd7fb6
CF
728 * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The
729 structure should always be completely filled out.
730 * grp.cc (pwdgrp::parse_group): Ditto.
731
7322003-01-26 Christopher Faylor <cgf@redhat.com>
733
734 * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
c9133395 735 gr_mem.
65037056
CF
736
7372003-01-26 Christopher Faylor <cgf@redhat.com>
738
739 * include/sys/strace.h (paranoid_printf): Define as not being part of
740 "all" output.
741
7422003-01-25 Christopher Faylor <cgf@redhat.com>
743
744 * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns
745 true/false if parse operation succeeded.
746 (pwdgrp::reparse): Remove.
747 (pwdgrp::raw_ptr): New function. Returns pointer in line.
748 (pwdgrp::next_num): New functions for parsing other than unsigned long.
749 * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior.
750 Don't fill in fields with NULL and assign empty gr_mem to known pointer
751 rather than doing a pointless calloc. Streamline gr_mem parsing.
752 Don't increment curr_lines here.
753 * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num.
754 Don't increment curr_lines here.
755 * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
756 (pwdgrp::reparse): Remove.
757 (pwdgrp::next_num): Rename from next_int. Return bool indicating
758 success of parse, argument returns value parsed.
759 (pwdgrp::add_line): Increment curr_lines here on successful parse.
760 (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report
761 it here.
762
a53ddfe6
CF
7632003-01-25 Christopher Faylor <cgf@redhat.com>
764
765 * pwdgrp.cc (pwdgrp::reparse): Declare.
766 * uinfo.cc (pwdgrp::reparse): Define.
c9b99d0d 767 * grp.cc (pwdgrp::parse_group): Use reparse.
a53ddfe6 768
4f7e12dd
CV
7692003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
770
771 * syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
772 update the euid and call cygheap->user.set_name. Remove special
773 handling of ILLEGAL_UID.
ba6e1083 774 (setgid32): Add a debug_printf. On Win95, always set the egid.
4f7e12dd
CV
775 Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
776 * child_info.h (class cygheap_exec_info): Remove uid.
777 * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
778 * dcrto.cc (dll_crt0_1): Always call uinfo_init.
779 * uinfo.cc (uinfo_init): Reorganize and close handle if needed.
780 (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
781
45dbfc26
CF
7822003-01-24 Christopher Faylor <cgf@redhat.com>
783
784 * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset
785 scroll region if size changes.
786
7d33eefa
CV
7872003-01-24 Pierre Humblet <pierre.humblet@ieee.org>
788 Jason Tishler <jason@tishler.net>
789
790 * cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
791 * syscalls.cc (setreuid32): New function.
792 (setreuid): Ditto.
793 (setregid32): Ditto.
794 (setregid): Ditto.
795 * include/cygwin/version.h: Bump API minor number.
796
ac413374 7972003-01-23 Christopher Faylor <cgf@redhat.com>
69fae986 798
ac413374 799 * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
2037688a 800
ac413374 8012003-01-23 Christopher Faylor <cgf@redhat.com>
09a88426
CF
802
803 * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member
804 instead. Use next_str and next_int to parse arguments.
805 * passwd.cc (pwdgrp::parse_passwd): Ditto.
806 (grab_string): Eliminate.
807 (grab_int): Ditto.
808 * pwdgrp.h (pwdgrp::parse): Eliminate input arg.
809 (pwdgrp::parse_passwd): Reflect above change.
810 (pwdgrp::parse_group): Reflect above change.
811 (pwdgrp::next_str): New function.
812 (pwdgrp::next_int): Ditto.
813 (pwdgrp::gets): Eliminate.
814 * uinfo.cc (pwdgrp::next_str): New function.
815 (pwdgrp::next_int): Ditto.
816 (pwdgrp::add_line): Subsume gets.
817 (pwdgrp::gets): Eliminate.
818 (pwdgrp::load): Just call add_line to parse input buffer.
819
ac413374
CF
8202003-01-22 Thomas Pfaff <tpfaff@gmx.net>
821
822 * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from
823 2003-01-09 mutex patch.
824 (PTHREAD_MUTEX_ERRORCHECK): Ditto.
825
8262003-01-22 Corinna Vinschen <corinna@vinschen.de>
827
828 * cygrun.c: Move from here to ../testsuite.
829 * Makefile.in: Remove cygrun.exe dependencies.
830
8312003-01-21 Jason Tishler <jason@tishler.net>
832
833 * cygwin.din: Export nanosleep().
834 * signal.cc (nanosleep): New function.
835 (sleep): Move old functionality to nanosleep(). Call nanosleep().
836 (usleep): Remove old functionality. Call nanosleep().
837 * include/cygwin/version.h: Bump API minor number.
838
57394495
CF
8392003-01-21 Christopher Faylor <cgf@redhat.com>
840
841 * grp.cc: Call gr.refresh() rather than doing isunitialized tests
842 throughout.
843 (gr): Use constructor (sigh).
844 (pwdgrp::parse_group): Rename from parse_grp.
845 (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load
846 with a single argument.
847 * passwd.cc: Call pr.refresh() rather than doing isunitialized tests
848 throughout.
849 (pr): Use constructor (sigh).
850 (pwdgrp::parse_passwd): Rename from "parse_pwd".
851 (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load
852 with a single argument.
853 * pwdgrp.h (pwdgrp_state): Eliminate.
854 (pwdgrp): Reflect above renamings.
855 (pwdgrp::etc_ix): Rename from pwd_ix.
856 (pwdgrp::read): New element.
857 (pwdgrp::lock): New element.
858 (pwdgrp::refresh): New function.
859 (pwdgrp::load): Eliminate variations which take buffer arguments.
860 (pwdgrp::pwdgrp): New constructors. Initialize mutex here.
861 * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
862 (pwdgrp::load): Set initialized state to true rather than setting state
863 to loaded.
864
984864e9
CF
8652003-01-21 Christopher Faylor <cgf@redhat.com>
866
89f7e8d1 867 * include/cygwin/version.h: Bump DLL minor number.
984864e9 868
d8cde3a3
CF
8692003-01-21 Pierre Humblet <pierre.humblet@ieee.org>
870
871 * path.h (etc::change_possible): Revert the type to bool.
872 (etc::set_last_modified): Remove obsolete function.
873 * path.cc (etc::change_possible): Revert type to bool.
874 (etc::test_file_change): Do not test for negative values of
875 change_possible and do not set it to -res.
876 (etc::dir_changed): When the handle is NULL, call memset instead of
09a88426
CF
877 test_file_changed. When the handle is invalid, return true. Detect
878 filename change in /etc.
d8cde3a3 879 (etc::file_changed): Remove unneeded check for !fn[n].
33de631b 880 * uinfo.cc (pwdgrp::load): Eliminate spurious setting of fh to NULL.
b99b804b 881 * pwdgrp.h (pwdgrp::operator =): Eliminate.
d8cde3a3 882
7905c4f1
CF
8832003-01-19 Christopher Faylor <cgf@redhat.com>
884
885 * pwdgrp.h (etc): Move to path.h.
886 (pwdgrp::max_lines): New field.
887 (pwdgrp::curr_lines): New field.
888 (pwdgrp::pwdgrp_buf): Ditto.
889 (pwdgrp_buf_elem_size): Ditto.
890 (pwdgrp_parse): Ditto.
891 (pwdgrp::gets): Just declare here.
892 (pwdgrp::load): Ditto. Just take one argument.
893 (pwdgrp::load): Define overloaded function accepting passwd buf.
894 (pwdgrp::load): Define overloaded function accepting group buf.
895 * grp.cc: Use pwdgrp elements rather than standalone static variables
896 throughout.
897 (curr_lines): Eliminate.
898 (max_lines): Ditto.
899 (add_grp_line): Ditto.
900 (parse_grp): Define as returning boolean. Accept void * arg and line
901 count. Coerce first argument into __group32 buf reference. Increment
902 curr_line as appropriate.
903 (read_etc_group): Pass pwdgrp buffer to gr.load.
904 * passwd.cc: Use pwdgrp elements rather than standalone static variables
905 throughout.
906 (curr_lines): Eliminate.
907 (max_lines): Ditto.
908 (add_grp_line): Ditto.
909 (parse_passwd): Define as returning boolean. Accept void * arg and line
910 count. Coerce first argument into passwd buf reference. Increment
911 curr_line as appropriate.
912 (read_etc_group): Pass pwdgrp buffer to pr.load.
913 * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than
914 zero.
915 (etc::last_modified): Ditto.
916 (etc::change_possible): Ditto. Renamed from sawchange. Change to
917 signed char since elements are now tri-state.
918 (etc::init): Assume "handle" is 1 based rather than 0.
919 (etc::test_file_change): New function. Sets change_possible based on
920 file date comparison.
921 (etc::dir_changed): Check file states immediately after changed_h is
922 initialized to avoid a race.
923 (etc::file_changed): Use test_file_change to detect if file needs to be
924 updated.
925 * path.h (etc): Move class here from pwdgrp.h.
7905c4f1
CF
926 * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions
927 here.
928 (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
929 (pwdgrp::add_line): New function.
930 (pwdgrp::load): Call generic add_line function which will call correct
931 parser.
932
4c6a3e50
CF
9332003-01-17 Christopher Faylor <cgf@redhat.com>
934
935 * cygheap.cc: Change most 'int's to 'unsigned's.
936 (_cmalloc): Only check for size of malloced region when calculating
97d2bc79 937 bucket. Add overhead when performing the sbrk. Previous change broke
4c6a3e50
CF
938 _crealloc.
939
e9152439
CF
9402003-01-17 Christopher Faylor <cgf@redhat.com>
941
942 * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
943 * grp.cc: Change most statics to NO_COPY throughout.
944 * passwd.cc: Ditto.
945
9462003-01-17 Christopher Faylor <cgf@redhat.com>
947
948 * pwdgrp.h: Change some BOOLs to bools.
949 (pwdgrp::pwdgrp): Remove unneeded constructor.
950 * passwd.cc: Change BOOL to bool throughout.
951
afa378e7
CV
9522003-01-17 Corinna Vinschen <corinna@vinschen.de>
953
954 * cygwin.din: Add strerror_r.
955 * include/cygwin/version.h: Bump API minor number.
956
1de6f431
CF
9572003-01-17 Christopher Faylor <cgf@redhat.com>
958
959 * uinfo.cc (etc::dir_changed): Don't print a warning if can't open
960 /etc, unless debugging.
961
d8cde3a3 9622003-01-17 Pierre Humblet <pierre.humblet@ieee.org>
14ea5029
CF
963
964 * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
965 "unknown" to "mkgroup".
966 (internal_getgrgid): Do not return default in nontsec case.
967 (internal_getgroups): Add argument srchsid and look for it in groups if
968 not NULL.
969 * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use
970 same default uid for Win95 and NT. Call cygheap_user::ontherange to
971 initialize HOME.
972
14ea5029
CF
9732003-01-16 Christopher Faylor <cgf@redhat.com>
974
975 * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
976 * cygheap.h (init_cygheap::etc_changed_h): Remove.
977 (init_cygheap::etc_changed): Ditto.
978 * grp.cc (group_state): Remove. Use gr instead throughout.
979 (gr): Define as class pwdgrp.
980 (read_etc_group): Remove gr definition. Remove calls to
981 set_last_modified and close. Pass add_grp to gr.load to load file.
982 * passwd.cc (passwd_state): Remove. Use pr instead, throughout.
983 (pr): Define as class pwdgrp.
984 (read_etc_passwd): Remove pr definition. Remove calls to
985 set_last_modified and close. Pass add_pwd_line to pr.load to load
986 file.
987 * pwdgrp.h (etc): New helper class for pwdgrp.
988 (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove
989 file_w32 and last_modified fields.
990 (pwdgrp::set_last_modified): Remove.
991 (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
992 etc::file_changed.
993 (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc
994 scanning. Close file handle after reading buffer into memory. Parse
995 buffer by calling second argument.
996 (pwdgrp::gets): Reorganize slightly to rely on eptr starting at
5304bcdf 997 beginning of buffer.
14ea5029
CF
998 (pwdgrp::close): Remove.
999 * uinfo.cc (etc::dir_changed): New function.
1000 (etc::init): Ditto.
1001 (etc::file_changed): Ditto.
1002 (etc::set_last_modified): Ditto.
1003
41429bc9
CV
10042003-01-16 Jason Tishler <jason@tishler.net>
1005
1006 * mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
1007 ReadProcessMemory() error codes that trigger a retry with temporary
1008 PAGE_READONLY access. Note that this can occur on NT 4.0.
1009
18813254
CF
10102003-01-15 Christopher Faylor <cgf@redhat.com>
1011
1012 * path.cc (normalize_posix_path): Convert win32 path separators to
1013 slashes when full path is specified.
1014
77cb0c56
CF
10152003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
1016
1017 * cmalloc.cc (_cmalloc): Fix memory leak.
1018
ce542f78
CV
10192003-01-15 Corinna Vinschen <corinna@vinschen.de>
1020
1021 * autoload.cc: Fix copyright date.
1022 * fhandler_dsp.cc: Ditto.
1023 * mmap.cc: Ditto.
1024 * net.cc: Ditto.
1025 * ntdll.h: Ditto.
1026 * signal.cc: Ditto.
1027 * syscalls.cc: Ditto.
1028 * uname.cc: Ditto.
1029 * wait.cc: Ditto.
1030
15996b6f
CV
10312003-01-14 Corinna Vinschen <corinna@vinschen.de>
1032
1033 * mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
1034 Change ambiguous debug output.
1035
857b65dd
CV
10362003-01-14 Corinna Vinschen <corinna@vinschen.de>
1037
1038 * mmap.cc (mmap_record::access): Change argument type to caddr_t
1039 for strictness.
1040 (mprotect): Protect against calling VirtualProtect() for shared
1041 pages on 9x/Me.
1042 (fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
1043 change protection of parent page to PAGE_READONLY, then try again.
1044 Revert protection afterwards.
1045
e14328f4
TP
10462003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1047
1048 * syscalls.cc (system): Add pthread_testcancel call.
1049 * thread.cc: Update list of cancellation points.
1050
4a3584c8
TP
10512003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1052
1053 * wait.cc: Include thread.h
1054 (wait4): Add pthread_testcancel call.
1055 Wait for child process and cancellation event.
1056 * thread.cc: Update list of cancellation points.
1057
7ec66a2c
TP
10582003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1059
1060 * signal.cc (sleep): Add pthread_testcancel call.
1061 Wait for signal and cancellation event.
1062 (usleep): Ditto.
1063
10642003-01-14 Thomas Pfaff <tpfaff@gmx.net>
3457ce4d
TP
1065
1066 * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call.
1067 Wait for signal and cancellation event.
1068 * thread.cc: Update list of cancellation points.
1069
2673d5f2
CF
10702003-01-14 David Huang <davehzhr@hotmail.com>
1071
1072 * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
1073 SNDCTL_DSP_GETFMTS.
1074
9f0d3f37
CF
10752003-01-12 Christopher Faylor <cgf@redhat.com>
1076
1077 * ntdll.h: Fix typo.
1078
7f129d87
CV
10792003-01-12 Corinna Vinschen <corinna@vinschen.de>
1080
1081 * uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
1082
ab2dbccc
CV
10832003-01-12 Pierre Humblet <pierre.humblet@ieee.org>
1084
1085 * sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
1086 (setacl): Start the search for a matching default at the next entry.
1087 Invalidate the type of merged entries instead of clearing it.
1088 Use well_known_creator for default owner and owning group and do
1089 not try to merge non-default and default entries in these cases.
1090 (getacl): Recognize well_known_creator for default owner and group.
1091 (acl_worker): Improve errno settings and streamline the nontsec case.
1092 * security.cc (write_sd): Remove the call to set_process_privilege.
1093 (alloc_sd): If the owner changes, call set_process_privilege and return
1094 immediately on failure. Change inheritance rules: on new directories add
1095 inherit only allow ACEs for creator_owner, creator_group and everyone.
1096 Preserve all inheritances through chmod and chown calls. Introduce
1097 isownergroup to implement the uid == gid case, to keep the inheritance
1098 code simple. Do not initialize owner_sid and group_sid and stop using
1099 the variable psd.
1100
68115c74
CF
11012003-01-10 Christopher Faylor <cgf@redhat.com>
1102
1103 * net.cc: Use gethostname define from winsock2.h.
1104
e3abf986
CF
11052003-01-10 Christopher Faylor <cgf@redhat.com>
1106
1107 * path.cc: Unrevert below reversion except for
1108 mount_info::conv_to_posix_path part.
1109
df2caa88
CV
11102003-01-10 Corinna Vinschen <corinna@vinschen.de>
1111
1112 * path.cc: Revert patch from 2003-01-09 to normalize a windows path
1113 rather than converting to posix.
1114
dc8d11f5
CV
11152003-01-10 Corinna Vinschen <corinna@vinschen.de>
1116
1117 * autoload.cc (gethostname): Make call optional, return 1 if function
1118 can't get loaded.
1119 * net.cc (cygwin_gethostname): Call GetComputerName if return value
1120 of gethostname is non-zero.
1121
70d61f30
CV
11222003-01-10 Charles Wilson <cwilson@ece.gatech.edu>
1123
8735f49f 1124 * cygwin.din: Add asprintf and vasprintf, as well as the reentrant
70d61f30 1125 versions and underscore variants.
8735f49f 1126 * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
70d61f30 1127
a7711767
CV
11282003-01-10 Corinna Vinschen <corinna@vinschen.de>
1129
1130 * net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
1131
d5223b2b
CF
11322003-01-09 Christopher Faylor <cgf@redhat.com>
1133
1134 * cygthread.cc (cygthread::cygthread): Be more noisy about odd
1135 condition.
1136 * miscfuncs.cc (low_priority_sleep): Sleep in regular priority if
1137 that's what we're currently running at.
1138
65f207e8
TP
11392003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1140
1141 * include/semaphore.h: Modify typedef for sem_t.
1142 * include/cygwin/types.h: Modify typedefs for pthread_t,
1143 pthread_mutex_t, pthread_key_t, pthread_attr_t,
1144 pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t,
1145 pthread_rwlock_t and pthread_rwlockattr_t.
1146
09cbb9d6
TP
11472003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1148
1149 * thread.h (WAIT_CANCELED): New define.
1150 (pthread::cancelable_wait): New static method.
1151 * thread.cc (pthread::cancelable_wait): Implement.
1152 (semaphore::Wait): Wait on semaphore and thread cancellation.
1153 (pthread::join): Wait on joined thread and thread cancellation.
1154 (semaphore::wait): Add testcancel to check for thread
1155 cancellation even if the semaphore is available.
1156
5d68d1de
TP
11572003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1158
1159 * include/pthread.h: Add define for errorchecking mutexes.
1160 Change default mutex type.
1161 * thread.cc (pthread_cond::TimedWait): Update mutex unlock
1162 calls.
1163 (pthread_mutex::pthread_mutex): New implement.
1164 (pthread_mutex::~pthread_mutex): Ditto.
1165 (pthread_mutex::Lock): Ditto.
1166 (pthread_mutex::TryLock): Ditto.
1167 (pthread_mutex::UnLock): Ditto.
1168 (pthread_mutex::Destroy): Implement new method.
1169 (pthread_mutex::SetOwner): Ditto.
1170 (pthread_mutex::LockRecursive): Ditto.
1171 (pthread_mutex::fixup_after_fork): Restore locking state after
1172 fork.
1173 (__pthread_mutex_lock): Return pthread_mutex::Lock errorcode.
1174 (__pthread_mutex_trylock): Return pthread_mutex::TryLock
1175 errorcode.
1176 (__pthread_mutex_unlock): Return pthread_mutex::UnLock
1177 errorcode.
1178 (__pthread_mutex_destroy): Call pthread_mutex::Destroy to
3457ce4d 1179 destroy mutex.
5d68d1de
TP
1180 (__pthread_mutexattr_settype): Allow errorchecking and recursive
1181 types.
1182 * thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define.
1183 (pthread_mutex::criticalsection): Remove.
1184 (pthread_mutex::lock_counter): New member.
1185 (pthread_mutex::recursion_counter): Ditto.
1186 (pthread_mutex::owner): Ditto.
1187 (pthread_mutex::type): Ditto.
1188 (pthread_mutex::Destroy): New method.
1189 (pthread_mutex::SetOwner): Ditto.
1190 (pthread_mutex::LockRecursive): Ditto.
1191
ed9fe455
TP
11922003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1193
1194 * pthread.cc (pthread_cond_init): Use new pthread_cond::init.
1195 * thread.cc: Some white spaces cleanups.
1196 Change __pthread_cond_init to pthread_cond::init throughout.
1197 (nativeMutex): Move class methods outside pthread_mutex.
1198 (MTinterface::Init): Initialize pthread_cond init lock.
1199 (pthread_cond::condInitializationLock): Instantiate.
1200 (pthread_cond::initMutex): New Method.
1201 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
1202 * thread.h: Some white spaces cleanups.
1203 (nativeMutex): Move class declaration outside pthread_mutex.
1204 (pthread_cond::condInitializationLock): New static member.
1205 (pthread_cond::initMutex): New Method.
1206 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
1207 (__pthread_cond_init): Remove prototype.
1208
93353aee
CV
12092003-01-09 Corinna Vinschen <corinna@vinschen.de>
1210
1211 * fhandler_disk_file.cc (num_entries): Return 2 as link count if
1212 directory unreadable.
1213
3eb27a4e
CV
12142003-01-09 Corinna Vinschen <corinna@vinschen.de>
1215
1216 * security.cc (get_nt_attribute): Always return -1 when read_sd()
1217 fails.
1218 (get_file_attribute): Set permissions to 0 and owner/group to -1
1219 if security descriptor is unreadable.
1220
85ba109d
CF
12212003-01-09 Christopher Faylor <cgf@redhat.com>
1222
1223 Use isdirsep rather than SLASH_P throughout.
1224 * path.cc (iscygdrive): Disallow /cygdrive\x.
1225 (normalize_posix_path): "Normalize" a windows path, if detected, rather
1226 than converting to posix.
1227
12282003-01-06 Troy Curtiss <troyc@usa.net>
1229
1230 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and
1231 capability checking for B230400 bitrate.
1232 (fhandler_serial::tcgetattr): Add support for B230400 bitrate.
1233 * include/sys/termios.h: Add B230400 definition for Posix support of
1234 230.4Kbps.
1235
cbdbe9d7
CF
12362003-01-05 Christopher Faylor <cgf@redhat.com>
1237
1238 * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just
1239 lock when leaving.
1240
f3afe99b
CF
12412003-01-03 Christopher Faylor <cgf@redhat.com>
1242
1243 * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork
1244 cleanup needed.
1245 * dtable.cc (dtable::vfork_parent_restore): Remove assertion.
1246 * pipe.cc (fhandler_pipe::close): Don't close read_state during
1247 fork_fixup since it wasn't inherited.
1248
2665fb15
CF
12492003-01-01 Christopher Faylor <cgf@redhat.com>
1250
1251 * passwd.cc (getpwuid_r32): Revert previous change.
1252
8619b42b
CF
12532003-01-01 Christopher Faylor <cgf@redhat.com>
1254
1255 * sysconf.cc (sysconf): Return arbitrary values for
1256 _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
1257
1258 * passwd.cc (getpwuid_r32): Add uid/gid fields to size check
1259 calculation.
1260
This page took 0.173606 seconds and 5 git commands to generate.