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