]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
Pierre's update for mkgroup/mkpasswd
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
2a1e8e11
CV
12003-04-10 Corinna Vinschen <corinna@vinschen.de>
2
3 * regex/regex.h: Define regoff_t as _off_t.
4 * regex/regex2.h: Ditto.
5
ac5ec961
CV
62003-04-10 Corinna Vinschen <corinna@vinschen.de>
7
8 * cygwin.din: Export wcscoll, wcswidth and wcwidth.
9 * include/cygwin/version.h: Bump API minor number.
10
e5d6d535
CF
112003-04-10 Christopher Faylor <cgf@redhat.com>
12
13 * cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
14 * cygthread.cc: Ditto.
15 (cygthread::stub): Don't initialize already initialized events.
16 (cygthread::freerange): Don't create thread here.
17 (cygthread::cygthread): Create thread here. Die if thread not created.
18 (cygthread::operator new): Simplify. Just grab a thread structure from
19 the pool. Don't try to start the thread.
20 (cygthread::terminate_thread): Don't close event handles. Just reuse
21 them. Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
22
ca81cd60
CF
232003-04-08 Bob Cassels <bcassels@abinitio.com>
24
25 * fhandler_console.cc (fhandler_console::read) Handle certain key up
26 events, to allow pasting accented characters and typing them using the
27 "alt + numerics" sequences.
28
292003-04-07 Christopher Faylor <cgf@redhat.com>
30
31 * include/limits.h (IOV_MAX): Set to a number which is small enough to
32 use in an array.
33
b410f168
CF
342003-04-04 Christopher Faylor <cgf@redhat.com>
35
9dbe3289
CF
36 * cygthread.h (cygthread::avail): Make LONG for easier use with
37 Interlocked* functions.
38 * cygthread.cc (cygthread::init): Eliminate unneeded muto.
39 (cygthread::operator new): Don't lock. Instead change use of avail
40 variable into tri-state: available (1), not available (-1),
41 uninitialized (0).
42 (cygthread::terminate_thread): Set avail to uninitialized.
43 (cygthread::detach): Eliminate local 'avail'. Always set avail to 1
44 unless signalled.
45
462003-04-04 Christopher Faylor <cgf@redhat.com>
47
48 * cygthread.cc (cygthread::operator new): Be more defensive when messing with
b410f168
CF
49 threads that are marked "unavailable".
50
a61bf8c3
CF
512003-04-03 Christopher Faylor <cgf@redhat.com>
52
53 * fhandler_console.cc (CONVERT_LIMIT): Use a size for the 21st century.
54
d5292d66
CV
552003-04-03 Corinna Vinschen <corinna@vinschen.de>
56
57 * external.cc (check_ntsec): Return general ntsec state on NULL
58 filename. Check wincap.is_security() additionally.
59
5a87c616
CF
602003-04-02 Christopher Faylor <cgf@redhat.com>
61
62 * Makefile.in (EXTRA_OFILES): Remove debugging object.
63
d99c6176
CF
642003-04-02 Jason Tishler <jason@tishler.net>
65 Christopher Faylor <cgf@redhat.com>
66
67 * external.cc (check_ntsec): New function.
68 (cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec()
69 from applications.
70 * include/cygwin/version.h: Bump API minor number.
71 * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
72
732003-04-02 Christopher Faylor <cgf@redhat.com>
74
75 * cygthread.cc (cygthread::new): Add more defensive debugging.
76
2d388e43 772003-04-01 Pierre Humblet <pierre.humblet@ieee.org>
d99c6176 78
2d388e43
CV
79 * fhandler.cc (fhandler_base::fstat): Set the uid and gid fields
80 from the current effective ids.
81 * fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set
82 by fhandler_base::fstat.
83 * security.cc (get_nt_attribute): Do not test wincap.has_security ().
84 (get_nt_object_attribute): Ditto.
85 (get_file_attribute): Add test for wincap.has_security ().
86 (get_object_attribute): Ditto.
87
1727fba0
CV
882003-04-01 Corinna Vinschen <corinna@vinschen.de>
89
90 * dir.cc: Change __off32_t to _off_t and __off64_t to _off64_t
91 throughout.
92 * fhandler.cc: Ditto.
93 * fhandler.h: Ditto.
94 * fhandler_clipboard.cc: Ditto.
95 * fhandler_disk_file.cc: Ditto.
96 * fhandler_dsp.cc: Ditto.
97 * fhandler_floppy.cc: Ditto.
98 * fhandler_mem.cc: Ditto.
99 * fhandler_proc.cc: Ditto.
100 * fhandler_process.cc: Ditto.
101 * fhandler_random.cc: Ditto.
102 * fhandler_registry.cc: Ditto.
103 * fhandler_tape.cc: Ditto.
104 * fhandler_termios.cc: Ditto.
105 * fhandler_virtual.cc: Ditto.
106 * fhandler_zero.cc: Ditto.
107 * mmap.cc: Ditto.
108 * pipe.cc: Ditto.
109 * syscalls.cc: Ditto.
110 * winsup.h: Ditto.
111 * include/cygwin/stat.h: Ditto.
112 * include/cygwin/types.h: Ditto. Remove definition of __off32_t
113 and __off64_t.
114
333879e7
CF
1152003-03-31 Christopher Faylor <cgf@redhat.com>
116
117 * exceptions.cc (setup_handler): Make sure winapi lock is released when
118 exiting loop.
119
a2105d93
CF
1202003-03-30 Christopher Faylor <cgf@redhat.com>
121
122 * include/cygwin/fs.h: Remove unneeded include.
123 * include/cygwin/in.h: Include sys/types.h rather than cygwin/types.h.
124
856a9750
CV
1252003-03-29 Corinna Vinschen <corinna@vinschen.de>
126
127 * syscalls.cc (login): Fix comment.
128 (logout): Ditto.
129
8304de2e
CV
1302003-03-29 Corinna Vinschen <corinna@vinschen.de>
131
132 * syscalls.cc: Slightly cleanup all utmp functions.
133 (login): Use mutex to secure against concurrent access to wtmp file.
134 (logout): Rewrite using POSIX calls.
135 (utmp_fd): Initialized to -1 now. Any value < 0 is treated as closed
136 in subsequent functions.
137 (utmp_readonly): New variable, indicating utmp file open for reading
138 only.
139 (internal_setutent): New function implementing setutent().
140 (setutent): Call internal_setutent now.
141 (endutent): Reset utmp_readonly.
142 (getutent): Return immediately if utmp file can't be opened.
143 (getutid): Ditto.
144 (getutline): Ditto.
145 (pututline): Ditto. Use mutex to secure against concurrent access to
146 utmp file.
147
46c8214c
CF
1482003-03-28 Christopher Faylor <cgf@redhat.com>
149
150 * Makefile.in: Remove EXE_LDFLAGS. Fix fhandler_CFLAGS typo. Recognize .s suffix.
151 * configure.in: Remove EXE_LDFLAGS.
152 * configure: Regenerate.
153
a7ab35c1
CF
1542003-03-28 Christopher Faylor <cgf@redhat.com>
155
156 * include/sys/cygwin.h: Declare cygwin_internal as unsigned long.
157 * external.cc (cygwin_internal): Define as unsigned long.
158
1592003-03-27 Christopher Faylor <cgf@redhat.com>
160
161 * include/sys/cygwin.h: Move cygwin_internal outside of WINVER
162 conditional.
163
eff6c00e
TP
1642003-03-27 Thomas Pfaff <tpfaff@gmx.net>
165
166 * thread.cc: Change 1==foo equations to foo==1 throughout.
167
15648790
TP
1682003-03-27 Thomas Pfaff <tpfaff@gmx.net>
169
170 * thread.h: Change class names, methods, members and local vars
171 according to the GNU coding style.
172 * thread.cc: Ditto.
173 * dcrt0.cc (dll_crt0_1): Rename pthread::initMainThread call to
174 pthread::init_mainthread.
175 * pthread.cc (pthead_getsequence_np): Rename pthread::isGoodObject
176 call to pthread::is_good_object.
177
98b36ec8
CV
1782003-03-27 Joe Buehler <jhpb@draco.hekimian.com>
179
1ce82d24
CF
180 * autoload.cc: Add RegGetKeySecurity().
181 * security.cc (get_nt_object_attribute): Use RegGetKeySecurity() for
98b36ec8
CV
182 performance.
183
85738bf7
CF
1842003-03-25 Christopher Faylor <cgf@redhat.com>
185 Joe Buehler <jhpb@draco.hekimian.com>
186
187 * fork.cc (fork_parent): Don't copy signals from parent to child here.
188 * sigproc.cc (proc_subproc): Copy signals from parent to child pinfo
189 here.
190
9306ba2e
TP
1912003-03-23 Thomas Pfaff <tpfaff@gmx.net>
192
85738bf7
CF
193 * thread.h (class List): Move inline code inside class declaration.
194 (List::forEach): Change callback parameter to template class member
195 function pointer.
196 (pthread_keys::fixup_before_fork): Change to inline. Use List::forEach
197 to fixup keys.
9306ba2e
TP
198 (pthread_keys::fixup_after_fork): Ditto.
199 (pthread_keys::runAllDestructors): Ditto.
200 (pthread_key::saveAKey): Remove.
201 (pthread_key::restoreAKey): Ditto.
202 (pthread_key::destroyAKey): Ditto.
203 (pthread_key::run_destructor): Rename to runDestructor.
85738bf7
CF
204 (pthread_mutex::fixup_after_fork): Change to inline. Use List::forEach
205 to fixup mutexes after a fork.
9306ba2e
TP
206 (pthread_mutex::FixupAfterFork): New method.
207 (pthread_mutex::mutexes): New member.
85738bf7
CF
208 (pthread_cond::fixup_after_fork): Change to inline. Use List::forEach
209 to fixup conds after a fork.
9306ba2e
TP
210 (pthread_cond::FixupAfterFork): New method.
211 (pthread_cond::conds): New member.
85738bf7 212 (pthread_rwlock::fixup_after_fork): Change to inline. Use
9306ba2e
TP
213 List::forEach to fixup rwlocks after a fork.
214 (pthread_rwlock::FixupAfterFork): New method.
215 (pthread_rwlock::rwlocks): New member.
85738bf7
CF
216 (semaphore::fixup_after_fork): Change to inline. Use List::forEach to
217 fixup mutexes after a fork.
9306ba2e
TP
218 (semaphore::FixupAfterFork): New method.
219 (semaphore::semaphores): New member.
220 (MTinterface::mutexs): Remove.
221 (MTinterface::conds): Ditto.
222 (MTinterface::rwlocks): Ditto.
223 (MTinterface::semaphores): Ditto.
224 (pthread_equal): Add extern "C".
225 (pthread_mutex_lock): Ditto.
85738bf7
CF
226
227 * thread.cc (MTinterface::fixup_after_fork): Change fixup_after_fork
228 calls for pthread objects.
9306ba2e 229 (semaphore::conds): Instantiate.
85738bf7
CF
230 (pthread_cond::pthread_cond): Use List::Insert rather than custom list
231 code.
232 (pthread_cond::~pthread_cond): Use List::Remove rather than custom list
233 code.
9306ba2e
TP
234 (pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
235 (pthread_rwlock::rwlocks): Instantiate.
85738bf7
CF
236 (pthread_rwlock::pthread_crwlock): Use List::Insert rather than custom
237 list code.
238 (pthread_rwlock::~pthread_rwlock): Use List::Remove rather than custom
239 list code.
9306ba2e
TP
240 (pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
241 (pthread_key::saveAKey): Remove.
242 (pthread_key::fixup_before_fork): Ditto.
243 (pthread_key::restoreAKey): Ditto.
244 (pthread_key::fixup_after_fork): Ditto.
245 (pthread_key::destroyAKey): Ditto.
246 (pthread_key::runAllDestructors): Ditto.
247 (pthread_key::run_destructor): Rename to runDestructor.
248 (pthread_mutex::mutexes): Instantiate.
85738bf7
CF
249 (pthread_mutex::pthread_mutex): Use List::Insert rather than custom
250 list code.
251 (pthread_mutex::~pthread_mutex): Use List::Remove rather than custom
252 list code.
9306ba2e
TP
253 (pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
254 (semaphore::conds): Instantiate.
85738bf7
CF
255 (semaphore::semaphore): Use List::Insert rather than custom list code.
256 (semaphores::~semaphore): Use List::Remove rather than custom list
9306ba2e 257 code.
9306ba2e
TP
258 (semaphore::fixup_after_fork): Rename to FixupAfterFork.
259
ff3ef36d
CF
2602003-03-22 Christopher Faylor <cgf@redhat.com>
261
262 * pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't
263 exist.
264
ca04f61f
CF
2652003-03-22 Christopher Faylor <cgf@redhat.com>
266
267 * syscalls.cc (unlink): Be more defensive when SetFileAttributes is
268 called. Fix typo in debugging output.
269
89e7a1ce
CF
2702003-03-21 Christopher Faylor <cgf@redhat.com>
271
272 * fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not
273 necessary for newer versions of bash.
274
fa85038b
CV
2752003-03-20 Corinna Vinschen <corinna@vinschen.de>
276
277 * fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
278 SIGPIPE handling to connection oriented sockets. Add comment.
279
4da34970
CF
2802003-03-19 Christopher Faylor <cgf@redhat.com>
281
282 * sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
283 * exceptions.cc (signal_fixup_after_exec): Eliminate argument in
284 definition. Don't reset signal handlers after spawm. Just treat like
285 fork/exec.
286 * dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
287 signal_fixup_after_exec.
288 * syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
289 Ditto for resetting of arguments.
290
036ac6b3
CV
2912003-03-19 Corinna Vinschen <corinna@vinschen.de>
292
293 * glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
294 throughout.
295
b1897d27
CV
2962003-03-19 Corinna Vinschen <corinna@vinschen.de>
297
298 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
299 wrong usage of S_IFDIR.
300 * security.cc (get_attribute_from_acl): Ditto.
301 (get_file_attribute): Fix wrong usage of S_IFLNK.
302 (get_object_attribute): Ditto.
303 (alloc_sd): Fix wrong usage of S_IFDIR.
304 * syscalls.cc (chmod): Allow chmod'ing of socket files.
305
c16d0946
CV
3062003-03-19 Corinna Vinschen <corinna@vinschen.de>
307
308 * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
309 Define.
310 * glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
311 instead of numerical constants.
312 (g_stat): Ditto.
313
6a80a133
TP
3142003-03-18 Thomas Pfaff <tpfaff@gmx.net>
315
316 * pthread.cc (pthread_attr_init): Remove
317 (pthread_attr_destroy): Ditto.
318 (pthread_attr_setdetachstate): Ditto.
319 (pthread_attr_getdetachstate): Ditto.
320 (pthread_attr_setstacksize): Ditto.
321 (pthread_attr_getstacksize): Ditto.
322 (pthread_attr_setinheritsched): Ditto.
323 (pthread_attr_getinheritsched): Ditto.
324 (pthread_attr_setschedparam): Ditto.
325 (pthread_attr_getschedparam): Ditto.
326 (pthread_attr_setschedpolicy): Ditto.
327 (pthread_attr_getschedpolicy): Ditto.
328 (pthread_attr_setscope): Ditto.
329 (pthread_attr_getscope): Ditto.
330 (pthread_attr_setstackaddr): Ditto.
331 (pthread_attr_getstackaddr): Ditto.
332 (pthread_key_create): Ditto.
333 (pthread_key_delete): Ditto.
334 (pthread_setspecific): Ditto.
335 (pthread_getspecific): Ditto.
336 (pthread_kill): Ditto.
337 (pthread_sigmask): Ditto.
338 (pthread_equal): Ditto.
339 (pthread_mutex_lock): Ditto.
340 (pthread_mutex_trylock): Ditto.
341 (pthread_mutex_unlock): Ditto.
342 (pthread_mutex_destroy): Ditto.
343 (pthread_mutex_setprioceiling): Ditto.
344 (pthread_mutex_getprioceiling): Ditto.
345 (pthread_mutexattr_destroy): Ditto.
346 (pthread_mutexattr_getprioceiling): Ditto.
347 (pthread_mutexattr_getprotocol): Ditto.
348 (pthread_mutexattr_getpshared): Ditto.
349 (pthread_mutexattr_gettype): Ditto.
350 (pthread_mutexattr_init): Ditto.
351 (pthread_mutexattr_setprioceiling): Ditto.
352 (pthread_mutexattr_setprotocol): Ditto.
353 (pthread_mutexattr_setpshared): Ditto.
354 (pthread_mutexattr_settype): Ditto.
355 (pthread_cond_destroy): Ditto.
356 (pthread_cond_signal): Ditto.
357 (pthread_cond_broadcast): Ditto.
358 (pthread_condattr_init): Ditto.
359 (pthread_condattr_destroy): Ditto.
360 (pthread_condattr_getpshared): Ditto.
361 (pthread_condattr_setpshared): Ditto.
362 (pthread_rwlock_destroy): Ditto.
363 (pthread_rwlock_rdlock): Ditto.
364 (pthread_rwlock_tryrdlock): Ditto.
365 (pthread_rwlock_wrlock): Ditto.
366 (pthread_rwlock_trywrlock): Ditto.
367 (pthread_rwlock_unlock): Ditto.
368 (pthread_rwlockattr_init): Ditto.
369 (pthread_rwlockattr_getpshared): Ditto.
370 (pthread_rwlockattr_setpshared): Ditto.
371 (pthread_rwlockattr_destroy): Ditto.
372 (pthread_getconcurrency): Ditto.
373 (pthread_setconcurrency): Ditto.
374 (pthread_getschedparam): Ditto.
375 (pthread_setschedparam): Ditto.
376
377 * thread.h (__pthread_attr_init): Remove prototype.
378 (__pthread_attr_destroy): Ditto.
379 (__pthread_attr_setdetachstate): Ditto.
380 (__pthread_attr_getdetachstate): Ditto.
381 (__pthread_attr_setstacksize): Ditto.
382 (__pthread_attr_getstacksize): Ditto.
383 (__pthread_attr_setinheritsched): Ditto.
384 (__pthread_attr_getinheritsched): Ditto.
385 (__pthread_attr_setschedparam): Ditto.
386 (__pthread_attr_getschedparam): Ditto.
387 (__pthread_attr_setschedpolicy): Ditto.
388 (__pthread_attr_getschedpolicy): Ditto.
389 (__pthread_attr_setscope): Ditto.
390 (__pthread_attr_getscope): Ditto.
391 (__pthread_attr_setstackaddr): Ditto.
392 (__pthread_attr_getstackaddr): Ditto.
393 (__pthread_key_create): Ditto.
394 (__pthread_key_delete): Ditto.
395 (__pthread_setspecific): Ditto.
396 (__pthread_getspecific): Ditto.
397 (__pthread_kill): Ditto.
398 (__pthread_sigmask): Ditto.
399 (__pthread_equal): Ditto.
400 (__pthread_mutex_lock): Ditto.
401 (__pthread_mutex_trylock): Ditto.
402 (__pthread_mutex_unlock): Ditto.
403 (__pthread_mutex_destroy): Ditto.
404 (__pthread_mutex_setprioceiling): Ditto.
405 (__pthread_mutex_getprioceiling): Ditto.
406 (__pthread_mutexattr_destroy): Ditto.
407 (__pthread_mutexattr_getprioceiling): Ditto.
408 (__pthread_mutexattr_getprotocol): Ditto.
409 (__pthread_mutexattr_getpshared): Ditto.
410 (__pthread_mutexattr_gettype): Ditto.
411 (__pthread_mutexattr_init): Ditto.
412 (__pthread_mutexattr_setprioceiling): Ditto.
413 (__pthread_mutexattr_setprotocol): Ditto.
414 (__pthread_mutexattr_setpshared): Ditto.
415 (__pthread_mutexattr_settype): Ditto.
416 (__pthread_cond_destroy): Ditto.
417 (__pthread_cond_signal): Ditto.
418 (__pthread_cond_broadcast): Ditto.
419 (__pthread_condattr_init): Ditto.
420 (__pthread_condattr_destroy): Ditto.
421 (__pthread_condattr_getpshared): Ditto.
422 (__pthread_condattr_setpshared): Ditto.
423 (__pthread_rwlock_destroy): Ditto.
424 (__pthread_rwlock_rdlock): Ditto.
425 (__pthread_rwlock_tryrdlock): Ditto.
426 (__pthread_rwlock_wrlock): Ditto.
427 (__pthread_rwlock_trywrlock): Ditto.
428 (__pthread_rwlock_unlock): Ditto.
429 (__pthread_rwlockattr_init): Ditto.
430 (__pthread_rwlockattr_getpshared): Ditto.
431 (__pthread_rwlockattr_setpshared): Ditto.
432 (__pthread_rwlockattr_destroy): Ditto.
433 (__pthread_getconcurrency): Ditto.
434 (__pthread_setconcurrency): Ditto.
435 (__pthread_getschedparam): Ditto.
436 (__pthread_setschedparam): Ditto.
437
438 * thread.cc: Rename __pthread_equal to pthread_equal throughout.
439 Change pthread_self parameter appropriate.
440 (__pthread_attr_init): Remove __ prefix. Change to extern "C".
441 (__pthread_attr_destroy): Ditto.
442 (__pthread_attr_setdetachstate): Ditto.
443 (__pthread_attr_getdetachstate): Ditto.
444 (__pthread_attr_setstacksize): Ditto.
445 (__pthread_attr_getstacksize): Ditto.
446 (__pthread_attr_setinheritsched): Ditto.
447 (__pthread_attr_getinheritsched): Ditto.
448 (__pthread_attr_setschedparam): Ditto.
449 (__pthread_attr_getschedparam): Ditto.
450 (__pthread_attr_setschedpolicy): Ditto.
451 (__pthread_attr_getschedpolicy): Ditto.
452 (__pthread_attr_setscope): Ditto.
453 (__pthread_attr_getscope): Ditto.
454 (__pthread_attr_setstackaddr): Ditto.
455 (__pthread_attr_getstackaddr): Ditto.
456 (__pthread_key_create): Ditto.
457 (__pthread_key_delete): Ditto.
458 (__pthread_setspecific): Ditto.
459 (__pthread_getspecific): Ditto.
460 (__pthread_kill): Ditto.
461 (__pthread_sigmask): Ditto.
462 (__pthread_equal): Ditto.
463 (__pthread_mutex_lock): Ditto.
464 (__pthread_mutex_trylock): Ditto.
465 (__pthread_mutex_unlock): Ditto.
466 (__pthread_mutex_destroy): Ditto.
467 (__pthread_mutex_setprioceiling): Ditto.
468 (__pthread_mutex_getprioceiling): Ditto.
469 (__pthread_mutexattr_destroy): Ditto.
470 (__pthread_mutexattr_getprioceiling): Ditto.
471 (__pthread_mutexattr_getprotocol): Ditto.
472 (__pthread_mutexattr_getpshared): Ditto.
473 (__pthread_mutexattr_gettype): Ditto.
474 (__pthread_mutexattr_init): Ditto.
475 (__pthread_mutexattr_setprioceiling): Ditto.
476 (__pthread_mutexattr_setprotocol): Ditto.
477 (__pthread_mutexattr_setpshared): Ditto.
478 (__pthread_mutexattr_settype): Ditto.
479 (__pthread_cond_destroy): Ditto.
480 (__pthread_cond_signal): Ditto.
481 (__pthread_cond_broadcast): Ditto.
482 (__pthread_condattr_init): Ditto.
483 (__pthread_condattr_destroy): Ditto.
484 (__pthread_condattr_getpshared): Ditto.
485 (__pthread_condattr_setpshared): Ditto.
486 (__pthread_rwlock_destroy): Ditto.
487 (__pthread_rwlock_rdlock): Ditto.
488 (__pthread_rwlock_tryrdlock): Ditto.
489 (__pthread_rwlock_wrlock): Ditto.
490 (__pthread_rwlock_trywrlock): Ditto.
491 (__pthread_rwlock_unlock): Ditto.
492 (__pthread_rwlockattr_init): Ditto.
493 (__pthread_rwlockattr_getpshared): Ditto.
494 (__pthread_rwlockattr_setpshared): Ditto.
495 (__pthread_rwlockattr_destroy): Ditto.
496 (__pthread_getconcurrency): Ditto.
497 (__pthread_setconcurrency): Ditto.
498 (__pthread_getschedparam): Ditto.
499 (__pthread_setschedparam): Ditto.
500
00d296a3
TP
5012003-03-18 Thomas Pfaff <tpfaff@gmx.net>
502
503 * cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
504 pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
505 pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
506 pthread_rwlock_unlock, pthread_rwlockattr_init,
507 pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
508 and pthread_rwlockattr_destroy.
509 * include/cygwin/version.h: Bump API minor number.
510 * include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a
511 reasonable value.
512 Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init,
513 pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
514 pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
515 pthread_rwlock_unlock, pthread_rwlockattr_init,
516 pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
517 and pthread_rwlockattr_destroy.
518 * thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon.
519 (PTHREAD_RWLOCK_MAGIC): New define.
520 (PTHREAD_RWLOCKATTR_MAGIC): Ditto.
521 (pthread_rwlockattr): New class.
522 (pthread_rwlock): Ditto.
523 (MTinterface::rwlocks): New member.
524 (MTinterface::MTinterface): Initialize rwlocks.
525 Add prototypes for __pthread_rwlock_destroy,
526 __pthread_rwlock_wrlock, __pthread_rwlock_trywrlock,
527 __pthread_rwlock_unlock, __pthread_rwlockattr_init,
528 __pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared,
529 and __pthread_rwlockattr_destroy.
530 * thread.cc (MTinterface::Init): Initialize rwlock internal mutex.
531 (MTinterface::fixup_after_fork): Fixup rwlocks after fork.
532 (pthread_rwlockattr::isGoodObject): Implement.
533 (pthread_rwlockattr::pthread_rwlockattr): Ditto.
534 (pthread_rwlockattr::~pthread_rwlockattr): Ditto.
535 (pthread_rwlock::initMutex): Ditto.
536 (pthread_rwlock::pthread_rwlock): Ditto.
537 (pthread_rwlock::~pthread_rwlock): Ditto.
538 (pthread_rwlock::RdLock): Ditto.
539 (pthread_rwlock::TryRdLock): Ditto.
540 (pthread_rwlock::WrLock): Ditto.
541 (pthread_rwlock::TryWrLock): Ditto.
542 (pthread_rwlock::UnLock): Ditto.
543 (pthread_rwlock::addReader): Ditto.
544 (pthread_rwlock::removeReader): Ditto.
545 (pthread_rwlock::lookupReader): Ditto.
546 (pthread_rwlock::RdLockCleanup): Ditto.
547 (pthread_rwlock::WrLockCleanup): Ditto.
548 (pthread_rwlock::fixup_after_fork): Ditto.
549 (pthread_rwlock::isGoodObject): Ditto.
550 (pthread_rwlock::isGoodInitializer): Ditto.
551 (pthread_rwlock::isGoodInitializerOrObject): Ditto.
552 (pthread_rwlock::isGoodInitializerOrBadObject): Ditto.
553 (__pthread_rwlock_destroy): Ditto.
554 (pthread_rwlock::init): Ditto.
555 (__pthread_rwlock_rdlock): Ditto.
556 (__pthread_rwlock_tryrdlock): Ditto.
557 (__pthread_rwlock_wrlock): Ditto.
558 (__pthread_rwlock_trywrlock): Ditto.
559
f592b05d
TP
5602003-03-18 Thomas Pfaff <tpfaff@gmx.net>
561
562 * thread.h (pthread_cond::ExitingWait): Remove.
563 (pthread_cond::mutex): Ditto.
564 (pthread_cond::cond_access): Ditto.
565 (pthread_cond::win32_obj_id): Ditto.
566 (pthread_cond::TimedWait): Ditto.
567 (pthread_cond::BroadCast): Ditto.
568 (pthread_cond::Signal): Ditto.
569 (pthread_cond::waiting): Change type to unsigned long.
570 (pthread_cond::pending): New member.
571 (pthread_cond::semWait): Ditto.
572 (pthread_cond::mtxIn): Ditto.
573 (pthread_cond::mtxOut): Ditto.
574 (pthread_cond::mtxCond): Ditto.
575 (pthread_cond::UnBlock): New method.
576 (pthread_cond::Wait): Ditto.
577 * thread.cc: Update list of cancellation points.
578 (pthread_cond::pthread_cond): Rewrite.
579 (pthread_cond::~pthread_cond): Ditto.
580 (pthread_cond::TimedWait): Remove.
581 (pthread_cond::BroadCast): Ditto.
582 (pthread_cond::Signal): Ditto.
583 (pthread_cond::UnBlock): Implement.
584 (pthread_cond::Wait): Ditto.
585 (pthread_cond::fixup_after_fork): Rewrite.
586 (pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP
587 conditional.
588 (__pthread_cond_broadcast): Just return 0 if the condition is
589 not initialized. Call pthread_cond::UnBlock to release blocked
590 threads.
591 (__pthread_cond_signal): Ditto.
592 (__pthread_cond__dowait): Rewrite.
593 (pthread_cond_timedwait): Add pthread_testcancel call. Fix
594 waitlength calculation.
595 (pthread_cond_wait): Add pthread_testcancel call.
596
2ff03dc2
TP
5972003-03-18 Thomas Pfaff <tpfaff@gmx.net>
598
599 * include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
600 * thread.cc: Remove errno.h include.
601 (pthread::precreate): Change internal mutex type to normal.
602 (pthread_mutex::canBeUnlocked): Implement.
603 (pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
604 (pthread_mutex::Lock): Rename to _Lock. Add self parameter.
605 Change lock_counter logic. Update SetOwner call.
606 (pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
607 Change lock_counter logic. Update SetOwner call.
608 (pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
609 Change lock_counter logic.
610 (pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
611 (pthread_mutex::SetOwner): Move to thread.h as inline.
612 (pthread_mutex::LockRecursive): Ditto.
613 (pthread_mutex::fixup_after_fork): Change lock_counter logic.
614 (__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
615 types check.
616 * thread.h: Include errno.h and limits.h.
617 (MUTEX_LOCK_COUNTER_INITIAL): Remove.
618 (MUTEX_OWNER_ANONYMOUS): New define.
619 (pthread_mutex::canBeUnlocked): New static method.
620 (pthread_mutex::lock_counter): Change type to unsigned long.
621 (pthread_mutex::GetPthreadSelf): New method.
622 (pthread_mutex::Lock): Call _Lock with pthread_self pointer.
623 (pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
624 (pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
625 (pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
626 (pthread_mutex::SetOwner): Moved from thread.cc as inline.
627 (pthread_mutex::LockRecursive): Ditto.
628 (pthread_mutex::_Lock): New method.
629 (pthread_mutex::_TryLock): New method.
630 (pthread_mutex::_UnLock): New method.
631 (pthread_mutex::_Destroy): New method.
632
dcd350f0
CV
6332003-03-18 Christopher January <chris@atomice.net>
634
635 * fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
636 only on Windows NT. Read CPU Mhz value only on NT. Revert previous
637 change so cpuid instruction is called even on non-NT systems.
638
c51dc9c2
CV
6392003-03-17 Corinna Vinschen <corinna@vinschen.de>
640
a2105d93 641 * glob.c (g_lstat): Change API minor test to match API minor number
c51dc9c2
CV
642 change in previous patch.
643 (g_stat): Ditto.
644
f194ba1f
CF
6452003-03-17 Christopher Faylor <cgf@redhat.com>
646
647 * include/cygwin/version.h: Reorganize last two api versions so that
648 btowc and trunc exports show up before previous bump since there has
649 been no exported version of the DLL with the 64 bit changes yet but
650 1.3.22 will have the btowc and trunc.
651
3543669f
CF
6522003-03-17 Christopher Faylor <cgf@redhat.com>
653
654 * cygwin.din: Export btowc, trunc.
655 * include/cygwin/version.h: Reflect new exports.
656 * syscalls.cc (_stat): Rename to stat to avoid newlib wrapper.
657 * syscalls.cc (_fstat): Ditto.
658
6592003-03-16 Christopher Faylor <cgf@redhat.com>
660
661 * fhandler_console.cc (fhandler_console::close): Correct check for
662 current tty. Add debugging output when console is freed.
663 (set_console_state_for_spawn): Add debugging output.
664 * fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console
665 open flag when vforking.
666 * sigproc.cc (sigproc_terminate): Fix debugging output.
667 * spawn.cc (handle): Eliminate second argument.
668 (spawn_guts): Reflect elimination of argument change to handle.
669 * syscalls.cc (setsid): Add debugging output when console is freed.
670
6712003-03-14 Christopher Faylor <cgf@redhat.com>
672
673 * syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on
674 Win9x.
675
41ffdfa5
CF
6762003-03-13 Christopher Faylor <cgf@redhat.com>
677
678 * include/cygwin/version.h: Bump DLL minor number to 23.
679
5b186cd9
CV
6802003-03-13 Corinna Vinschen <corinna@vinschen.de>
681
682 * autoload.cc (IsProcessorFeaturePresent): Add.
683 * fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
684
c58555c7
CV
6852003-03-13 Corinna Vinschen <corinna@vinschen.de>
686
687 * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
688
49a0d53c
CV
6892003-03-13 Corinna Vinschen <corinna@vinschen.de>
690
691 * net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
692 (cygwin_rexec): Ditto.
693
6fcd5661
CF
6942003-03-13 Christopher Faylor <cgf@redhat.com>
695
696 * fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug
697 output.
698
699 * syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
700
aa39b7f7
CV
7012003-03-11 Corinna Vinschen <corinna@vinschen.de>
702
703 * fhandler_socket.cc (fhandler_socket::dup): Don't call
704 fhandler_base::dup() but call DuplicateHandle directly instead to have
705 control over socket inheritence.
706
2afa7f58
CV
7072003-03-11 Corinna Vinschen <corinna@vinschen.de>
708
709 * fhandler_socket.cc (fhandler_socket::dup): On NT systems avoid
710 using WinSock2 socket duplication methods. Add comment.
711
7122003-03-11 Pierre Humblet <pierre.humblet@ieee.org>
713
714 * fhandler_socket.cc (fhandler_socket::fixup_after_fork):
715 Set io_handle to INVALID_SOCKET in case of failure.
716 (fhandler_socket::dup): Return 0 if the io_handle is valid.
717
556ceaeb
CV
7182003-03-10 Corinna Vinschen <corinna@vinschen.de>
719
720 * sec_acl.cc (setacl): Don't handle DELETE flag specially.
721 * security.cc (alloc_sd): Ditto.
722
a201401c
CV
7232003-03-09 Corinna Vinschen <corinna@vinschen.de>
724
6bbf711e 725 * winver.rc: Change Copyright hint to include 2003.
a201401c 726
b1aae492
CV
7272003-03-09 Corinna Vinschen <corinna@vinschen.de>
728
729 Switch to 32/64 datatypes:
730 * Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
731 aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
732 facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
733 ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
734 getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
735 seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
736 telldir truncate.
737 (NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
738 aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
739 acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
740 fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
741 getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
742 getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
743 mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
744 setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
745 above.
746 * cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
747 members to __uid32_t and __gid32_t.
748 * cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
749 aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
750 acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
751 _fstat64 ftello64 _lseek64 mknod32 _open64.
752 * glob.c: Include perprocess.h.
753 (globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
754 getuid.
755 (g_lstat): Check for applications API version to call the appropriate
756 typed gl_lstat function.
757 (g_stat): Ditto for gl_stat.
758 * shm.cc (client_request_shm::client_request_shm): Call geteuid32
759 and getegid32 instead of geteuid and getegid throughout.
760 * syscalls.cc (_open64): New alias for open.
761 (_lseek64): New alias for lseek64.
762 (_fstat64): New alias for fseek64.
763 (mknod32): New function.
764 (mknod): Calls mknod32 now.
765 * winsup.h: Make function declarations for getuid32, geteuid32,
766 and getpwuid32 accessible for plain C sources. Add declarations
767 for getegid32 and getpwnam.
768 * include/cygwin/version.h: Bum API minor number to 78.
769 * include/sys/cygwin.h: Guard C++ specific members of struct
770 per_process against inclusion in plain C sources.
771 * include/sys/mman.h (mman): Add guard to avoid type clash when
772 compiling Cygwin.
773
659fb3ff
CF
7742003-03-09 Christopher Faylor <cgf@redhat.com>
775
d580d86c 776 * include/cygwin/version.h: Bump DLL minor number to 22.
659fb3ff 777
c367dfd0
CF
7782003-03-09 Christopher Faylor <cgf@redhat.com>
779
780 Do some minor reformatting of 'extern "C"' use throughout.
781
7822003-03-06 Christopher January <chris@atomice.net>
783
784 * autoload.cc (GetSystemTimes): Define new autoload function.
785 * fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
786 (fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS
787 cases.
788 (format_proc_uptime): Use GetSystemTimes if available.
789 (read_value): New macro.
790 (print): New macro.
791 (cpuid): New function.
792 (can_set_flag): New function.
793 (format_proc_cpuinfo): New function.
794 (format_proc_partitions): New function.
795
36c4a441
CF
7962003-03-09 Christopher Faylor <cgf@redhat.com>
797
798 * syscalls.cc (unlink): Attempt to be more clever about setting
799 attributes of file. Only open file in query mode to avoid having to
800 mess with security stuff for reading.
801
639ebe29
CV
8022003-03-09 Corinna Vinschen <corinna@vinschen.de>
803
804 * rmsym: Fix regular expression.
805
3a1d827f
CF
8062003-03-09 Christopher Faylor <cgf@redhat.com>
807
808 * Makefile.in: Change from using new-* to cygwin0 for temporary
809 targets.
810
ca0e9071
CV
8112003-03-09 Corinna Vinschen <corinna@vinschen.de>
812
813 * include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
814
ed269cea
CF
8152003-03-08 Christopher Faylor <cgf@redhat.com>
816
817 * syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE
818 to delete files since this allows us to preserve the protection of hard
819 linked files.
820 (link): Generate full path for potentially recalculated .lnk target.
821
1114c3d0
CF
8222003-03-08 Christopher Faylor <cgf@redhat.com>
823
824 Revert below changes regarding _pinfo::cmdline.
825
d66ac2bc
CV
8262003-03-08 Corinna Vinschen <corinna@vinschen.de>
827
828 * external.cc (cygwin_internal): Change n to __off64_t to match change
829 of _pinfo::cmdline.
830 * fhandler.h (class fhandler_virtual): Change filesize member to
831 __off64_t.
832 * fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
833 (format_proc_stat): Ditto.
834 (format_proc_uptime): Ditto.
835 * fhandler_process.cc (format_process_stat): Ditto.
836 (format_process_status): Ditto.
837 (format_process_statm): Ditto.
838 * pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
839 * pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
840
762520f3
CF
8412003-03-07 Christopher Faylor <cgf@redhat.com>
842
843 * path.h (PATH_LNK): New enum val.
844 (path_conv::is_lnk_symlink): New function. True if path represents
845 .lnk style symlink.
846 * path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
847 (symlink_info::check): Ditto. Remove PATH_LNK from pflags initially.
848 * syscalls.cc (unlink): Always remove readonly attribute from a symlink
849 regardless of type.
850 (link): (from Corinna Vinschen) Allow links to symlinks. Reset
851 attributes on a symlink after successful link creation.
852 (chmod): Use is_lnk_symlink where appropriate.
853 (rename): Ditto.
854
8552003-03-07 Pierre Humblet <pierre.humblet@ieee.org>
856
857 * tty.cc (create_tty_master): Call GetComputerName instead of
858 cygwin_gethostname. Set ut_id.
859 * syscalls.cc (login): Call endutent.
860 (setutent): Do not seek after a fresh open.
861
6f8102cb
CV
8622003-03-07 Corinna Vinschen <corinna@vinschen.de>
863
864 * syscalls.cc (seteuid32): Fix formatting.
865
88243328
TP
8662003-03-04 Thomas Pfaff <tpfaff@gmx.net>
867
868 * thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
869 prior to pthread objects.
762520f3 870
12390bc4
CV
8712003-03-04 Jason Tishler <jason@tishler.net>
872
873 * fhandler_socket.cc (fhandler_socket::dup): Initialize type.
874
c418817e
CF
8752003-03-03 Christopher Faylor <cgf@redhat.com>
876
877 * fhandler.h (fhandler_tty_slave::close): Declare new function.
878 (fhandler_tty_slave::dup): Declare new function.
879 (fhandler_tty_slave::fixup_after_function): Declare new function.
880 * fhandler_tty.cc (fhandler_tty_slave_open): Only increment
881 fhandler_console::open_fhs when associated with a pty.
882 (fhandler_tty_slave::close): Define new function. Decrement
883 fhandler_console::open_fhs when associated with a pty.
884 (fhandler_tty_slave::dup): Define new function. Increment
885 fhandler_console::open_fhs when associated with a pty.
886 (fhandler_tty_slave::fixup_after_fork): Define new function. Increment
887 fhandler_console::open_fhs when associated with a pty.
888
e11fe31b
CF
8892003-03-03 Christopher Faylor <cgf@redhat.com>
890
891 * fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
892 fhandler_console::open_fhs here.
893 (fhandler_pty_slave::close): Ditto for close.
894
cffdb4b1
CF
8952003-03-02 Christopher Faylor <cgf@redhat.com>
896
897 * lib/getopt.c: Refresh from NetBSD sources.
898
d5d2ffee
CF
8992003-03-02 Christopher Faylor <cgf@redhat.com>
900
901 * fhandler_console.cc (fhandler_console::close): Don't decrement
902 in use counter if in vfork fixup stage.
903
c2c6b170
CF
9042003-03-02 Christopher Faylor <cgf@redhat.com>
905
906 * lib/getopt.c: Nuke use of unneeded BSDisms.
907
8b19b43d
CF
9082003-03-02 Christopher Faylor <cgf@redhat.com>
909
910 * dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary
911 if LoadLibraryEx fails.
912 * dtable.cc (dtable::dec_console_fds): Eliminate.
913 (dtable::release): Don't treat console specially.
914 (dtable::build_fhandler): Ditto.
915 * dtable.h (console_fds): Eliminate.
916 (dtable::dec_console_fds): Eliminate.
917 (dtable::inc_console_fds): Eliminate.
918 * fhandler.h (fhandler_console::open_fhs): New static element.
919 * fhandler_console.cc (fhandler_console::open): Increment open_fs.
920 (fhandler_console::close): Call FreeConsole if no more open consoles
921 and ctty is not associated with the console.
922 * syscalls.cc (setsid): Simplify check for when to call FreeConsole.
923 (check_pty_fds): Eliminate definition.
924 * winsup.h (check_pty_fds): Eliminate declaration.
925
3efc65f7
CF
9262003-03-02 Christopher Faylor <cgf@redhat.com>
927
928 * dll_init.cc (dll_list::load_after_fork): Fix typo where result of
929 LoadLibrary was ignored.
930
5a082e9e
CV
9312003-03-01 Corinna Vinschen <corinna@vinschen.de>
932
933 * fhandler_socket.cc (fhandler_socket::bind): Open and write socket
934 file using Win32 calls.
935
9d913f07
CV
9362003-03-01 Corinna Vinschen <corinna@vinschen.de>
937
938 * fhandler_socket.cc (get_inet_addr): Open and read socket file using
939 Win32 calls.
940
005c3065
CF
9412003-02-28 Christopher Faylor <cgf@redhat.com>
942
943 * cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions.
944 * dcrt0.cc (cygwin_atexit): New function.
945 (cygwin_exit): Ditto.
946
27b4082a
PH
9472003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
948
949 * syscalls.cc (fstat64): Pass get_name () to pc.
005c3065 950 (access): Pass fn to stat_worker.
27b4082a
PH
951
9522003-03-27 Corinna Vinschen <corinna@vinschen.de>
5777b970
CV
953
954 * fhandler_socket.cc (class sock_event): New class managing Winsock
955 events for interruptible socket calls.
956 (fhandler_socket::connect): Move support for interruptible call to
957 class sock_event. Use class object instead.
958 (fhandler_socket::accept): Ditto. Remove useless casts.
959
005c3065 9602003-03-27 Thomas Pfaff <tpfaff@gmx.net>
5777b970
CV
961
962 * fhandler_socket.cc (fhandler_socket::connect): Add support for
963 an interruptable connect.
964
7b2ce663
CV
9652003-02-27 Pierre Humblet <pierre.humblet@ieee.org>
966
967 * uinfo.cc (internal_getlogin): Only update user.groups.pgsid
968 if the call to set the primary group succeeds.
969
0e7a60fe
CF
9702003-02-27 Christopher Faylor <cgf@redhat.com>
971
972 * cygthread::detach: Improve error message.
973
61a52599
CV
9742003-02-26 Pierre Humblet <pierre.humblet@ieee.org>
975
976 * sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid.
977
6b9a9ce6
CV
9782003-02-25 Corinna Vinschen <corinna@vinschen.de>
979
980 * mmap.cc (mmap64): Fix returned address by taking the granularity
981 into account.
982
1ffc44aa
PH
9832003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
984
985 * syslog.cc (syslog): Do not unlock the file before closing it
986 and remove debug_printf about stream errors.
987
a066f364
CF
9882003-02-22 Christopher Faylor <cgf@redhat.com>
989
990 * cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true.
991 # cygwin.din: Export mallinfo.
992 # malloc_wrapper.cc (mallinfo): New function.
993
878e60c5
CF
9942003-02-22 Pierre Humblet <pierre.humblet@ieee.org>
995
996 * syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin
997 pid as an unsigned decimal. On Win95 print a timestamp and attempt to
998 lock the file up to four times in 3 ms.
999
b1d1e50d
CV
10002003-02-21 Corinna Vinschen <corinna@vinschen.de>
1001
1002 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler
1003 warning.
1004 (fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective
1005 uid/gid of current process in case of open sockets.
1006
cf762b08
CV
10072003-02-21 Corinna Vinschen <corinna@vinschen.de>
1008
1009 * dtable.cc (dtable::build_fhandler_from_name): Set some fhandler
1010 data on sockets to evaluate AF_LOCAL sockets correctly.
1011 (dtable::build_fhandler): Set unit number on sockets.
1012 * fhandler.h (fhandler_socket): Add unit number.
1013 (fhandler_socket::get_unit): New method.
1014 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit
1015 number.
1016 (fhandler_socket::fstat): Reorganize to return more Linux-like
1017 values.
1018 * net.cc: include ctype.h.
1019 (fdsock): Set unit number when building fhandler.
1020 * path.cc (path_conv::check): Set device type to FH_SOCKET if file
1021 is a AF_UNIX socket.
1022 (get_devn): Evaluate unit for virtual socket devices.
1023 (win32_device_name): Set windows path for sockets to unix_path with
1024 just backslashes to keep the different names.
1025 * syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev
1026 for sockets.
1027 (stat_worker): Ditto.
1028
10292003-02-21 Pierre Humblet <pierre.humblet@ieee.org>
1030
1031 * autoload.cc (AccessCheck): Add.
1032 (DuplicateToken): Add.
1033 * security.h (check_file_access): Declare.
1034 * syscalls.cc (access): Convert path to Windows, check existence
1035 and readonly attribute. Call check_file_access instead of acl_access.
1036 * security.cc (check_file_access): Create.
1037 * sec_acl (acl_access): Delete.
1038
5cd82412
CF
10392003-02-19 Christopher Faylor <cgf@redhat.com>
1040
1041 * fhandler.cc (fhandler_base::open): Move some filesystem specific
1042 stuff.
1043 (fhandler_disk_file::open): Accept some filesystem specific stuff.
1044 * sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
1045 (sig_send): Don't assume that signal thread is ready.
1046
892d8962
CV
10472003-02-20 Corinna Vinschen <corinna@vinschen.de>
1048
1049 * wincap.h (wincap): Remove unnecessary definition of
1050 supports_sparse_files.
1051 * wincap.cc: Ditto.
1052
518f5d49
CV
10532003-02-20 Corinna Vinschen <corinna@vinschen.de>
1054
1055 * fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
1056 created by cygheap_fdnew constructor.
1057 * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
1058 * fhandler_socket.cc (fhandler_socket::accept): Ditto and move
1059 creation of file descriptor behind blocking OS call.
1060 * net.cc (cygwin_socket): Ditto.
1061 (cygwin_rcmd): Ditto.
1062 (cygwin_rresvport): Ditto.
1063 (cygwin_rexec): Ditto.
1064 (socketpair): Ditto.
1065
3a88cf1b
CV
10662003-02-20 Corinna Vinschen <corinna@vinschen.de>
1067
1068 * autoload.cc (GetCompressedFileSize): Add.
1069 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
1070 st_blocks value from GetCompressedFileSize() if available.
1071
79207923
CV
10722003-02-18 Vaclav Haisman <V.Haisman@sh.cvut.cz>
1073
1074 * wincap.h (wincaps::supports_sparse_files): New flag.
1075 (wincapc::supports_sparse_files): New method.
1076 * wincap.cc (wincap_unknown): Define value for the new flag.
1077 (wincap_95): Ditto.
1078 (wincap_95osr2): Ditto.
1079 (wincap_98): Ditto.
1080 (wincap_98se): Ditto.
1081 (wincap_me): Ditto.
1082 (wincap_nt3): Ditto.
1083 (wincap_nt4): Ditto.
1084 (wincap_nt4sp4): Ditto.
1085 (wincap_2000): Ditto.
1086 (wincap_xp): Ditto.
1087 * path.h (path_conv::fs_flags): New method.
005c3065
CF
1088 * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
1089 (fhandler_disk_file::open): Set newly created and truncated files as
79207923
CV
1090 sparse on platforms that support it.
1091
afe13e84
CV
10922003-02-17 Pierre Humblet <pierre.humblet@ieee.org>
1093
1094 * grp.cc (internal_getgroups): Handle properly tokens with
1095 no groups. Fix bug introduced on 2003-02-04.
1096
8fc16812
CF
10972003-02-16 Christopher Faylor <cgf@redhat.com>
1098
408e9b2f 1099 * cygwin.din: Export all appropriate newlib libm functions. Sort.
8fc16812
CF
1100 * include/cygwin/version.h: Bump API minor number.
1101
f655eadf
CF
11022003-02-15 Christopher Faylor <cgf@redhat.com>
1103
8fc16812 1104 * cygwin.din: Export all appropriate newlib libc functions.
f655eadf
CF
1105 * include/cygwin/version.h: Bump API minor number.
1106
4d9ba012
CV
11072003-02-14 Jason Tishler <jason@tishler.net>
1108
1109 * mmap.cc (mprotect): Add missing break.
1110
dff01e3a
CF
11112003-02-13 Christopher Faylor <cgf@redhat.com>
1112
1113 * exceptions.cc (try_to_debug): Don't reset priority when returning
1114 from non-waitloop call.
d1d1797e
CF
1115
11162003-02-13 Vaclav Haisman <V.Haisman@sh.cvut.cz>
005c3065 1117 Christopher Faylor <cgf@redhat.com>
d1d1797e
CF
1118
1119 * fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep
1120 for bell sound.
1121 * autoload.cc (MessageBeep): Add.
1122
97c61aeb
CF
11232003-02-13 Christopher Faylor <cgf@redhat.com>
1124
1125 * include/cygwin/types.h: Use correct ifdef guard for u_ definitions.
1126
a200c081
CF
11272003-02-13 Christopher Faylor <cgf@redhat.com>
1128
1129 * environ.cc (environ_init): Use strechr.
1130
2858de3a
CF
11312003-02-13 Christopher Faylor <cgf@redhat.com>
1132
1133 * include/cygwin/in.h (sockaddr_in): Fix typo.
1134
75c8a70c
CF
11352003-02-12 Christopher Faylor <cgf@redhat.com>
1136
1137 * path.h (path_conv): Reorganize slightly.
1138
939d19b0
CF
11392003-02-12 Christopher Faylor <cgf@redhat.com>
1140
1141 * fhandler_tty.cc (process_input): Add sanity check to ensure that
1142 console typeahead is cleared on signal.
1143
7a44ba05
CF
11442003-02-12 Christopher Faylor <cgf@redhat.com>
1145
1146 * spawn.cc (linebuf::~linebuf): Resurrect commented out (for
1147 debugging?) code.
1148
407b8df6
CF
11492003-02-10 Ralf Habacker <ralf.habacker@freenet.de>
1150
1151 * include/cygwin/in.h (in_attr_t): Define new type.
1152 * include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
1153 (inet_lnaof): Ditto.
1154 (inet_netof): Ditto.
1155 (inet_network): Ditto.
1156
11572003-02-10 Christopher Faylor <cgf@redhat.com>
1158
1159 * include/cygwin/types.h: Move many *_t typedefs here. Protect them
1160 with ifdefs.
1161 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to mode_t.
1162 * security.cc (get_attribute_from_acl): Accept mode_t attribute.
1163 (get_nt_attribute): Ditto.
1164 (get_file_attribute): Ditto.
1165 (get_nt_object_attribute): Ditto.
1166 (get_object_attribute): Ditto.
1167 * security.h: Reflect above changes.
1168 * syscalls.cc (chown_worker): Change attrib to mode_t.
1169
ad80bc42
CF
11702003-02-08 Christopher Faylor <cgf@redhat.com>
1171
67c64e3b 1172 * include/cygwin/version.h: Bump DLL minor number to 21.
ad80bc42
CF
1173
11742003-02-07 Christopher Faylor <cgf@redhat.com>
1175
1176 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
1177 changes.
1178
4136fdb1
CV
11792003-02-07 Corinna Vinschen <corinna@vinschen.de>
1180
1181 * mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
1182 parameter. Only protect pages actually unused currently. Do job
1183 of map_map() when initializing a map.
1184 (mmap_record::map_map): Reduce functionality for the reuse case
1185 of private anonymous mapping.
1186 (mmap_record::fixup_map): Format change.
1187 (list::add_record): Add offset and length parameter to call
1188 mmap_record::alloc_map() correctly.
1189 (mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
1190 (munmap): Rename `l' variable to `map_list'.
1191 (msync): Ditto.
1192 (fhandler_disk_file::mmap): Streamline code.
1193 (mprotect): Ditto.
1194 (fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
1195
49b84ce4
CF
11962003-02-07 Vaclav Haisman <V.Haisman@sh.cvut.cz>
1197 Christopher Faylor <cgf@redhat.com>
1198
1199 * exceptions.cc (try_to_debug): Set priority of current thread rather
1200 than the main thread. Make busy waiting loop less busy. Restore
1201 priority when function returns.
1202
bc5b63ed
CF
12032003-02-07 Christopher Faylor <cgf@redhat.com>
1204
1205 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
1206
12072003-02-07 Christopher Faylor <cgf@redhat.com>
1208
1209 * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
1210
1de8d164
CF
12112003-02-06 Christopher Faylor <cgf@redhat.com>
1212
1213 * heap.cc (heap_init): Remove debugging code.
1214
565e8015
CV
12152003-02-06 Pierre Humblet <pierre.humblet@ieee.org>
1216
1217 * security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
1de8d164 1218 declaration of is_grp_member.
565e8015
CV
1219 * uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
1220 * passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
1221 * grp.cc (pwdgrp::read_group): Change group name to provide better
1222 feedback.
1223 (getgrgid): Use gid16togid32.
1224 * sec_helper.cc (is_grp_member): Delete.
1225
d238c1b4
CF
12262003-02-05 Christopher Faylor <cgf@redhat.com>
1227
1228 * path.cc: Change 'to_posix_p' to 'to_posix' throughout.
1229 (conv_path_list_buf_size): Accommodate relative paths.
1230
b7f52fe8
CF
12312003-02-05 Christopher Faylor <cgf@redhat.com>
1232
1233 * path.cc (etc::dir_changed): Fix debug printf.
1234
62cd433e
CV
12352003-02-05 Corinna Vinschen <corinna@vinschen.de>
1236
1237 * sec_acl.cc (setacl): Move all permission settings to beginning of
1238 loop. Set default rights to same values as in alloc_sd(). Set DELETE
1239 for owner and default owner only if S_IWOTH is given.
1240
12412003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
1242
1243 * sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
1244 wrapper function definitions. Replace call to the aclXYZ functions by
1245 calls aclXYZ32.
1246 (searchace): Change type of third argument to __uid32_t and use
1247 ILLEGAL_UID instead of -1;
1248 (setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
1249 for S_IWOTH. Replace -1 by ILLEGAL_UID.
1250 (getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
1251 In last else clause, suppress second call to ace_sid.get_id and use
1252 TRUE in first call. Replace EqualSid by ==.
1253 (acl_access): Call internal_getgroups in USER and GROUP cases.
1254 (acecmp: Define static.
1255 (acl32): Create from 16 bit type.
1256 (facl32): Ditto.
1257 (lacl32): Ditto.
1258 (aclcheck32): Ditto.
1259 (aclsort32): Ditto.
1260 (acltomode32): Ditto.
1261 (aclfrommode32): Ditto.
1262 (acltopbits32): Ditto.
1263 (aclfrompbits32): Ditto.
1264 (acltotext32): Ditto.
1265 (aclfromtext32): Ditto, and use strechr.
1266 (acl16to32): Create.
1267 (acl): Make it a wrapper function.
1268 (facl): Ditto.
1269 (lacl): Ditto.
1270 (aclcheck): Ditto.
1271 (aclsort): Ditto.
1272 (acltomode): Ditto.
1273 (aclfrommode): Ditto.
1274 (acltopbits): Ditto.
1275 (aclfrompbits): Ditto.
1276 (acltotext): Ditto.
1277 (aclfromtext): Ditto.
1278 * security.cc (write_sd): Call set_process_privilege and check
1279 ownership.
1280 (alloc_sd): Remove call to set_process_privilege and the owner check.
1281
cadd065b
CF
12822003-02-05 Christopher Faylor <cgf@redhat.com>
1283
1284 * include/sys/cygwin.h: Use C-style comments.
1285
0c8455c3
CV
12862003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
1287
1288 * sec_helper.cc (get_sids_info): New function.
1289 * security.cc (extract_nt_dom_user): Simplify with strechr.
1290 (get_user_groups): Initialize glen to MAX_SID_LEN.
1291 (get_user_local_groups): Ditto.
1292 (get_attribute_from_acl): Define ace_sid as cygpsid.
1293 (get_nt_attribute): Define owner_sid and group_sid as cygpsid.
1294 Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
1295 (get_nt_object_attribute): Ditto.
1296 (alloc_sd): Define ace_sid as cygpsid.
1297
5ae9331a
TP
12982003-02-04 Thomas Pfaff <tpfaff@gmx.net>
1299
1300 * syscalls.cc (struct system_cleanup_args): New struct.
1301 (system_cleanup): New function.
1302 (system): Use pthread_cleanup_push and _pop to save and restore
1303 signal handlers and sigprocmask.
1304
3dbafd87
CV
13052003-02-04 Corinna Vinschen <corinna@vinschen.de>
1306
1307 * path.cc (symlink): Create security attributes so that only the
1308 user can modify the symlink.
1309 * security.cc (set_security_attribute): Remove symlink special
1310 handling.
1311
0daf2561
CV
13122003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
1313
1314 * grp.cc (internal_getgroups): Do not return without closing
1315 the process handle.
1316
4a21c2d5
CV
13172003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
1318
1319 * security.h (class cygpsid): New class.
1320 (class cygsid): Use cygpsid as base. Remove members psid, get_id,
1321 get_uid, get_gid, string, debug_printf and the == and != operators.
1322 (cygsidlist::clear_supp): Only do work if setgroups has been called.
1323 * sec_helper.cc: Define sid_auth NO_COPY.
1324 (cygpsid::operator==): New operator.
1325 (cygpsid::get_id): New function.
1326 (cygpsid::string): New function.
1327 (cygsid::string): Delete.
1328 (cygsid::get_id): Delete.
1329 * pwdgrp.h: Change arguments of internal_getpwsid,
1330 internal_getgrsid and internal_getgroups to cygpsid.
1331 * passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
d238c1b4 1332 * grp.cc (internal_getgrsid): Ditto.
4a21c2d5
CV
1333 (internal_getgroups): Ditto.
1334
335556d5
CF
13352003-02-03 Christopher Faylor <cgf@redhat.com>
1336
1337 Eliminate most unneeded this-> pointers throughout.
1338
153e83c6
CV
13392003-02-03 Pierre Humblet <pierre.humblet@ieee.org>
1340
1341 * security.h: Add third argument to set_process_privilege.
1342 * autoload.cc: Add OpenThreadToken.
1343 * sec_helper.cc (set_process_privilege): Add and use use_thread
1344 argument.
1345 * security.cc (alloc_sd): Modify call to set_process_privilege.
1346 Remember the result in each process. If failed and file owner is not
1347 the user, fail.
1348
f0f3ea68
CV
13492003-02-03 Corinna Vinschen <corinna@vinschen.de>
1350
1351 * fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
1352 length and don't set errno in case of WSAEMSGSIZE error.
1353 (fhandler_socket::recvmsg): Ditto.
1354
6688a061
CF
13552003-02-01 Christopher Faylor <cgf@redhat.com>
1356
1357 * grp.cc (getgrent32): Only refresh group entries when at beginning.
1358 (internal_getgrsid): Only refresh if uninitialized.
1359 (internal_getgrent): Ditto.
1360 * passwd.cc (getpwent): Only refresh passwd entries when at beginning.
1361 (pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
1362 (internal_getpwsid): Only refresh if uninitialized.
1363 (getpass): No need to refresh passwd data here.
1364 * pwdgrp.h (refresh): Eliminate default.
1365
a5a93a62
CF
13662003-01-31 Christopher Faylor <cgf@redhat.com>
1367
1368 * dlfcn.cc (dlerror): Only report load errors once per error.
1369
b0a82a85
CF
13702003-01-31 Christopher Faylor <cgf@redhat.com>
1371
1372 * fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
1373 of res.
1374
1375 * termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
1376
13772003-01-31 Troy Curtiss <troyc@usa.net>
1378
1379 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking
1380 so that if any Win32 SetComm*() calls fail, errno gets set to EINVAL
1381 and tcsetattr() returns -1. Catch invalid bitrates, mostly. If baud
1382 rate setting is B0, just drop DTR and leave Win32 DCB bitrate as-is
1383 since 0 is not a valid Win32 setting.
1384 (fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as
1385 B0, otherwise get it from the DCB.
1386
949c3da1
CF
13872003-01-31 Christopher Faylor <cgf@redhat.com>
1388
1389 * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from
1390 Pierre Humblet).
1391 * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already
1392 have lock since that means we are in the process of reading the file.
1393
485d85bf
CF
13942003-01-31 Jason Tishler <jason@tishler.net>
1395
1396 * shared.cc (shared_info::heap_chunk_size): Use correct variable when
1397 reading HKLM.
1398
704ce461
CF
13992003-01-30 Christopher Faylor <cgf@redhat.com>
1400
1401 * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one
1402 error when inspecting path.
1403
ba6e1083
CF
14042003-01-29 Christopher Faylor <cgf@redhat.com>
1405
1406 * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT
1407 behavior.
1408
14092003-01-28 Corinna Vinschen <corinna@vinschen.de>
01e3c897
CV
1410
1411 * fhandler_socket.cc (fhandler_socket::accept): On successful execution
1412 set connection state of returned socket to CONNECTED.
1413
dfb366da
CF
14142003-01-27 Christopher Faylor <cgf@redhat.com>
1415
1416 * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about
1417 non-numeric fields.
1418
03dba1de
CF
14192003-01-26 Christopher Faylor <cgf@redhat.com>
1420
1421 * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no
1422 longer a valid return from next_str.
1423 (pwdgrp::add_line): Duh. Revert to use strchr.
1424
fea48988
CF
14252003-01-26 Christopher Faylor <cgf@redhat.com>
1426
ca6018a0 1427 * string.h (strechr): New function.
fea48988
CF
1428 * uinfo.cc (pwdgrp::next_str): Search only for input char in string.
1429 Return EOS on failure. Don't check for NULL since it shouldn't be
1430 possible.
1431 (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
1432 (pwdgrp::next_num): Pass explicit separator character to next_str.
1433 * grp.cc (pwdgrp::parse_group): Ditto.
1434 * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage
1435 input.
1436 * pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
1437
9a751621
CF
14382003-01-26 Christopher Faylor <cgf@redhat.com>
1439
1440 * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
1441 CreateFile failure.
1442
c9133395
CF
14432003-01-26 Christopher Faylor <cgf@redhat.com>
1444
bdbd7fb6
CF
1445 * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The
1446 structure should always be completely filled out.
1447 * grp.cc (pwdgrp::parse_group): Ditto.
1448
14492003-01-26 Christopher Faylor <cgf@redhat.com>
1450
1451 * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
c9133395 1452 gr_mem.
65037056
CF
1453
14542003-01-26 Christopher Faylor <cgf@redhat.com>
1455
1456 * include/sys/strace.h (paranoid_printf): Define as not being part of
1457 "all" output.
1458
14592003-01-25 Christopher Faylor <cgf@redhat.com>
1460
1461 * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns
1462 true/false if parse operation succeeded.
1463 (pwdgrp::reparse): Remove.
1464 (pwdgrp::raw_ptr): New function. Returns pointer in line.
1465 (pwdgrp::next_num): New functions for parsing other than unsigned long.
1466 * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior.
1467 Don't fill in fields with NULL and assign empty gr_mem to known pointer
1468 rather than doing a pointless calloc. Streamline gr_mem parsing.
1469 Don't increment curr_lines here.
1470 * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num.
1471 Don't increment curr_lines here.
1472 * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
1473 (pwdgrp::reparse): Remove.
1474 (pwdgrp::next_num): Rename from next_int. Return bool indicating
1475 success of parse, argument returns value parsed.
1476 (pwdgrp::add_line): Increment curr_lines here on successful parse.
1477 (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report
1478 it here.
1479
a53ddfe6
CF
14802003-01-25 Christopher Faylor <cgf@redhat.com>
1481
1482 * pwdgrp.cc (pwdgrp::reparse): Declare.
1483 * uinfo.cc (pwdgrp::reparse): Define.
c9b99d0d 1484 * grp.cc (pwdgrp::parse_group): Use reparse.
a53ddfe6 1485
4f7e12dd
CV
14862003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
1487
1488 * syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
1489 update the euid and call cygheap->user.set_name. Remove special
1490 handling of ILLEGAL_UID.
ba6e1083 1491 (setgid32): Add a debug_printf. On Win95, always set the egid.
4f7e12dd
CV
1492 Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
1493 * child_info.h (class cygheap_exec_info): Remove uid.
1494 * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
1495 * dcrto.cc (dll_crt0_1): Always call uinfo_init.
1496 * uinfo.cc (uinfo_init): Reorganize and close handle if needed.
1497 (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
1498
45dbfc26
CF
14992003-01-24 Christopher Faylor <cgf@redhat.com>
1500
1501 * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset
1502 scroll region if size changes.
1503
7d33eefa
CV
15042003-01-24 Pierre Humblet <pierre.humblet@ieee.org>
1505 Jason Tishler <jason@tishler.net>
1506
1507 * cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
1508 * syscalls.cc (setreuid32): New function.
1509 (setreuid): Ditto.
1510 (setregid32): Ditto.
1511 (setregid): Ditto.
1512 * include/cygwin/version.h: Bump API minor number.
1513
ac413374 15142003-01-23 Christopher Faylor <cgf@redhat.com>
69fae986 1515
ac413374 1516 * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
2037688a 1517
ac413374 15182003-01-23 Christopher Faylor <cgf@redhat.com>
09a88426
CF
1519
1520 * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member
1521 instead. Use next_str and next_int to parse arguments.
1522 * passwd.cc (pwdgrp::parse_passwd): Ditto.
1523 (grab_string): Eliminate.
1524 (grab_int): Ditto.
1525 * pwdgrp.h (pwdgrp::parse): Eliminate input arg.
1526 (pwdgrp::parse_passwd): Reflect above change.
1527 (pwdgrp::parse_group): Reflect above change.
1528 (pwdgrp::next_str): New function.
1529 (pwdgrp::next_int): Ditto.
1530 (pwdgrp::gets): Eliminate.
1531 * uinfo.cc (pwdgrp::next_str): New function.
1532 (pwdgrp::next_int): Ditto.
1533 (pwdgrp::add_line): Subsume gets.
1534 (pwdgrp::gets): Eliminate.
1535 (pwdgrp::load): Just call add_line to parse input buffer.
1536
ac413374
CF
15372003-01-22 Thomas Pfaff <tpfaff@gmx.net>
1538
1539 * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from
1540 2003-01-09 mutex patch.
1541 (PTHREAD_MUTEX_ERRORCHECK): Ditto.
1542
15432003-01-22 Corinna Vinschen <corinna@vinschen.de>
1544
1545 * cygrun.c: Move from here to ../testsuite.
1546 * Makefile.in: Remove cygrun.exe dependencies.
1547
15482003-01-21 Jason Tishler <jason@tishler.net>
1549
1550 * cygwin.din: Export nanosleep().
1551 * signal.cc (nanosleep): New function.
1552 (sleep): Move old functionality to nanosleep(). Call nanosleep().
1553 (usleep): Remove old functionality. Call nanosleep().
1554 * include/cygwin/version.h: Bump API minor number.
1555
57394495
CF
15562003-01-21 Christopher Faylor <cgf@redhat.com>
1557
1558 * grp.cc: Call gr.refresh() rather than doing isunitialized tests
1559 throughout.
1560 (gr): Use constructor (sigh).
1561 (pwdgrp::parse_group): Rename from parse_grp.
1562 (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load
1563 with a single argument.
1564 * passwd.cc: Call pr.refresh() rather than doing isunitialized tests
1565 throughout.
1566 (pr): Use constructor (sigh).
1567 (pwdgrp::parse_passwd): Rename from "parse_pwd".
1568 (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load
1569 with a single argument.
1570 * pwdgrp.h (pwdgrp_state): Eliminate.
1571 (pwdgrp): Reflect above renamings.
1572 (pwdgrp::etc_ix): Rename from pwd_ix.
1573 (pwdgrp::read): New element.
1574 (pwdgrp::lock): New element.
1575 (pwdgrp::refresh): New function.
1576 (pwdgrp::load): Eliminate variations which take buffer arguments.
1577 (pwdgrp::pwdgrp): New constructors. Initialize mutex here.
1578 * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
1579 (pwdgrp::load): Set initialized state to true rather than setting state
1580 to loaded.
1581
984864e9
CF
15822003-01-21 Christopher Faylor <cgf@redhat.com>
1583
89f7e8d1 1584 * include/cygwin/version.h: Bump DLL minor number.
984864e9 1585
d8cde3a3
CF
15862003-01-21 Pierre Humblet <pierre.humblet@ieee.org>
1587
1588 * path.h (etc::change_possible): Revert the type to bool.
1589 (etc::set_last_modified): Remove obsolete function.
1590 * path.cc (etc::change_possible): Revert type to bool.
1591 (etc::test_file_change): Do not test for negative values of
1592 change_possible and do not set it to -res.
1593 (etc::dir_changed): When the handle is NULL, call memset instead of
09a88426
CF
1594 test_file_changed. When the handle is invalid, return true. Detect
1595 filename change in /etc.
d8cde3a3 1596 (etc::file_changed): Remove unneeded check for !fn[n].
33de631b 1597 * uinfo.cc (pwdgrp::load): Eliminate spurious setting of fh to NULL.
b99b804b 1598 * pwdgrp.h (pwdgrp::operator =): Eliminate.
d8cde3a3 1599
7905c4f1
CF
16002003-01-19 Christopher Faylor <cgf@redhat.com>
1601
1602 * pwdgrp.h (etc): Move to path.h.
1603 (pwdgrp::max_lines): New field.
1604 (pwdgrp::curr_lines): New field.
1605 (pwdgrp::pwdgrp_buf): Ditto.
1606 (pwdgrp_buf_elem_size): Ditto.
1607 (pwdgrp_parse): Ditto.
1608 (pwdgrp::gets): Just declare here.
1609 (pwdgrp::load): Ditto. Just take one argument.
1610 (pwdgrp::load): Define overloaded function accepting passwd buf.
1611 (pwdgrp::load): Define overloaded function accepting group buf.
1612 * grp.cc: Use pwdgrp elements rather than standalone static variables
1613 throughout.
1614 (curr_lines): Eliminate.
1615 (max_lines): Ditto.
1616 (add_grp_line): Ditto.
1617 (parse_grp): Define as returning boolean. Accept void * arg and line
1618 count. Coerce first argument into __group32 buf reference. Increment
1619 curr_line as appropriate.
1620 (read_etc_group): Pass pwdgrp buffer to gr.load.
1621 * passwd.cc: Use pwdgrp elements rather than standalone static variables
1622 throughout.
1623 (curr_lines): Eliminate.
1624 (max_lines): Ditto.
1625 (add_grp_line): Ditto.
1626 (parse_passwd): Define as returning boolean. Accept void * arg and line
1627 count. Coerce first argument into passwd buf reference. Increment
1628 curr_line as appropriate.
1629 (read_etc_group): Pass pwdgrp buffer to pr.load.
1630 * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than
1631 zero.
1632 (etc::last_modified): Ditto.
1633 (etc::change_possible): Ditto. Renamed from sawchange. Change to
1634 signed char since elements are now tri-state.
1635 (etc::init): Assume "handle" is 1 based rather than 0.
1636 (etc::test_file_change): New function. Sets change_possible based on
1637 file date comparison.
1638 (etc::dir_changed): Check file states immediately after changed_h is
1639 initialized to avoid a race.
1640 (etc::file_changed): Use test_file_change to detect if file needs to be
1641 updated.
1642 * path.h (etc): Move class here from pwdgrp.h.
7905c4f1
CF
1643 * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions
1644 here.
1645 (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
1646 (pwdgrp::add_line): New function.
1647 (pwdgrp::load): Call generic add_line function which will call correct
1648 parser.
1649
4c6a3e50
CF
16502003-01-17 Christopher Faylor <cgf@redhat.com>
1651
1652 * cygheap.cc: Change most 'int's to 'unsigned's.
1653 (_cmalloc): Only check for size of malloced region when calculating
97d2bc79 1654 bucket. Add overhead when performing the sbrk. Previous change broke
4c6a3e50
CF
1655 _crealloc.
1656
e9152439
CF
16572003-01-17 Christopher Faylor <cgf@redhat.com>
1658
1659 * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
1660 * grp.cc: Change most statics to NO_COPY throughout.
1661 * passwd.cc: Ditto.
1662
16632003-01-17 Christopher Faylor <cgf@redhat.com>
1664
1665 * pwdgrp.h: Change some BOOLs to bools.
1666 (pwdgrp::pwdgrp): Remove unneeded constructor.
1667 * passwd.cc: Change BOOL to bool throughout.
1668
afa378e7
CV
16692003-01-17 Corinna Vinschen <corinna@vinschen.de>
1670
1671 * cygwin.din: Add strerror_r.
1672 * include/cygwin/version.h: Bump API minor number.
1673
1de6f431
CF
16742003-01-17 Christopher Faylor <cgf@redhat.com>
1675
1676 * uinfo.cc (etc::dir_changed): Don't print a warning if can't open
1677 /etc, unless debugging.
1678
d8cde3a3 16792003-01-17 Pierre Humblet <pierre.humblet@ieee.org>
14ea5029
CF
1680
1681 * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
1682 "unknown" to "mkgroup".
1683 (internal_getgrgid): Do not return default in nontsec case.
1684 (internal_getgroups): Add argument srchsid and look for it in groups if
1685 not NULL.
1686 * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use
1687 same default uid for Win95 and NT. Call cygheap_user::ontherange to
1688 initialize HOME.
1689
14ea5029
CF
16902003-01-16 Christopher Faylor <cgf@redhat.com>
1691
1692 * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
1693 * cygheap.h (init_cygheap::etc_changed_h): Remove.
1694 (init_cygheap::etc_changed): Ditto.
1695 * grp.cc (group_state): Remove. Use gr instead throughout.
1696 (gr): Define as class pwdgrp.
1697 (read_etc_group): Remove gr definition. Remove calls to
1698 set_last_modified and close. Pass add_grp to gr.load to load file.
1699 * passwd.cc (passwd_state): Remove. Use pr instead, throughout.
1700 (pr): Define as class pwdgrp.
1701 (read_etc_passwd): Remove pr definition. Remove calls to
1702 set_last_modified and close. Pass add_pwd_line to pr.load to load
1703 file.
1704 * pwdgrp.h (etc): New helper class for pwdgrp.
1705 (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove
1706 file_w32 and last_modified fields.
1707 (pwdgrp::set_last_modified): Remove.
1708 (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
1709 etc::file_changed.
1710 (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc
1711 scanning. Close file handle after reading buffer into memory. Parse
1712 buffer by calling second argument.
1713 (pwdgrp::gets): Reorganize slightly to rely on eptr starting at
5304bcdf 1714 beginning of buffer.
14ea5029
CF
1715 (pwdgrp::close): Remove.
1716 * uinfo.cc (etc::dir_changed): New function.
1717 (etc::init): Ditto.
1718 (etc::file_changed): Ditto.
1719 (etc::set_last_modified): Ditto.
1720
41429bc9
CV
17212003-01-16 Jason Tishler <jason@tishler.net>
1722
1723 * mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
1724 ReadProcessMemory() error codes that trigger a retry with temporary
1725 PAGE_READONLY access. Note that this can occur on NT 4.0.
1726
18813254
CF
17272003-01-15 Christopher Faylor <cgf@redhat.com>
1728
1729 * path.cc (normalize_posix_path): Convert win32 path separators to
1730 slashes when full path is specified.
1731
77cb0c56
CF
17322003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
1733
1734 * cmalloc.cc (_cmalloc): Fix memory leak.
1735
ce542f78
CV
17362003-01-15 Corinna Vinschen <corinna@vinschen.de>
1737
1738 * autoload.cc: Fix copyright date.
1739 * fhandler_dsp.cc: Ditto.
1740 * mmap.cc: Ditto.
1741 * net.cc: Ditto.
1742 * ntdll.h: Ditto.
1743 * signal.cc: Ditto.
1744 * syscalls.cc: Ditto.
1745 * uname.cc: Ditto.
1746 * wait.cc: Ditto.
1747
15996b6f
CV
17482003-01-14 Corinna Vinschen <corinna@vinschen.de>
1749
1750 * mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
1751 Change ambiguous debug output.
1752
857b65dd
CV
17532003-01-14 Corinna Vinschen <corinna@vinschen.de>
1754
1755 * mmap.cc (mmap_record::access): Change argument type to caddr_t
1756 for strictness.
1757 (mprotect): Protect against calling VirtualProtect() for shared
1758 pages on 9x/Me.
1759 (fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
1760 change protection of parent page to PAGE_READONLY, then try again.
1761 Revert protection afterwards.
1762
e14328f4
TP
17632003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1764
1765 * syscalls.cc (system): Add pthread_testcancel call.
1766 * thread.cc: Update list of cancellation points.
1767
4a3584c8
TP
17682003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1769
1770 * wait.cc: Include thread.h
1771 (wait4): Add pthread_testcancel call.
1772 Wait for child process and cancellation event.
1773 * thread.cc: Update list of cancellation points.
1774
7ec66a2c
TP
17752003-01-14 Thomas Pfaff <tpfaff@gmx.net>
1776
1777 * signal.cc (sleep): Add pthread_testcancel call.
1778 Wait for signal and cancellation event.
1779 (usleep): Ditto.
1780
17812003-01-14 Thomas Pfaff <tpfaff@gmx.net>
3457ce4d
TP
1782
1783 * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call.
1784 Wait for signal and cancellation event.
1785 * thread.cc: Update list of cancellation points.
1786
2673d5f2
CF
17872003-01-14 David Huang <davehzhr@hotmail.com>
1788
1789 * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
1790 SNDCTL_DSP_GETFMTS.
1791
9f0d3f37
CF
17922003-01-12 Christopher Faylor <cgf@redhat.com>
1793
1794 * ntdll.h: Fix typo.
1795
7f129d87
CV
17962003-01-12 Corinna Vinschen <corinna@vinschen.de>
1797
1798 * uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
1799
ab2dbccc
CV
18002003-01-12 Pierre Humblet <pierre.humblet@ieee.org>
1801
1802 * sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
1803 (setacl): Start the search for a matching default at the next entry.
1804 Invalidate the type of merged entries instead of clearing it.
1805 Use well_known_creator for default owner and owning group and do
1806 not try to merge non-default and default entries in these cases.
1807 (getacl): Recognize well_known_creator for default owner and group.
1808 (acl_worker): Improve errno settings and streamline the nontsec case.
1809 * security.cc (write_sd): Remove the call to set_process_privilege.
1810 (alloc_sd): If the owner changes, call set_process_privilege and return
1811 immediately on failure. Change inheritance rules: on new directories add
1812 inherit only allow ACEs for creator_owner, creator_group and everyone.
1813 Preserve all inheritances through chmod and chown calls. Introduce
1814 isownergroup to implement the uid == gid case, to keep the inheritance
1815 code simple. Do not initialize owner_sid and group_sid and stop using
1816 the variable psd.
1817
68115c74
CF
18182003-01-10 Christopher Faylor <cgf@redhat.com>
1819
1820 * net.cc: Use gethostname define from winsock2.h.
1821
e3abf986
CF
18222003-01-10 Christopher Faylor <cgf@redhat.com>
1823
1824 * path.cc: Unrevert below reversion except for
1825 mount_info::conv_to_posix_path part.
1826
df2caa88
CV
18272003-01-10 Corinna Vinschen <corinna@vinschen.de>
1828
1829 * path.cc: Revert patch from 2003-01-09 to normalize a windows path
1830 rather than converting to posix.
1831
dc8d11f5
CV
18322003-01-10 Corinna Vinschen <corinna@vinschen.de>
1833
1834 * autoload.cc (gethostname): Make call optional, return 1 if function
1835 can't get loaded.
1836 * net.cc (cygwin_gethostname): Call GetComputerName if return value
1837 of gethostname is non-zero.
1838
70d61f30
CV
18392003-01-10 Charles Wilson <cwilson@ece.gatech.edu>
1840
8735f49f 1841 * cygwin.din: Add asprintf and vasprintf, as well as the reentrant
70d61f30 1842 versions and underscore variants.
8735f49f 1843 * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
70d61f30 1844
a7711767
CV
18452003-01-10 Corinna Vinschen <corinna@vinschen.de>
1846
1847 * net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
1848
d5223b2b
CF
18492003-01-09 Christopher Faylor <cgf@redhat.com>
1850
1851 * cygthread.cc (cygthread::cygthread): Be more noisy about odd
1852 condition.
1853 * miscfuncs.cc (low_priority_sleep): Sleep in regular priority if
1854 that's what we're currently running at.
1855
65f207e8
TP
18562003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1857
1858 * include/semaphore.h: Modify typedef for sem_t.
1859 * include/cygwin/types.h: Modify typedefs for pthread_t,
1860 pthread_mutex_t, pthread_key_t, pthread_attr_t,
1861 pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t,
1862 pthread_rwlock_t and pthread_rwlockattr_t.
1863
09cbb9d6
TP
18642003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1865
1866 * thread.h (WAIT_CANCELED): New define.
1867 (pthread::cancelable_wait): New static method.
1868 * thread.cc (pthread::cancelable_wait): Implement.
1869 (semaphore::Wait): Wait on semaphore and thread cancellation.
1870 (pthread::join): Wait on joined thread and thread cancellation.
1871 (semaphore::wait): Add testcancel to check for thread
1872 cancellation even if the semaphore is available.
1873
5d68d1de
TP
18742003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1875
1876 * include/pthread.h: Add define for errorchecking mutexes.
1877 Change default mutex type.
1878 * thread.cc (pthread_cond::TimedWait): Update mutex unlock
1879 calls.
1880 (pthread_mutex::pthread_mutex): New implement.
1881 (pthread_mutex::~pthread_mutex): Ditto.
1882 (pthread_mutex::Lock): Ditto.
1883 (pthread_mutex::TryLock): Ditto.
1884 (pthread_mutex::UnLock): Ditto.
1885 (pthread_mutex::Destroy): Implement new method.
1886 (pthread_mutex::SetOwner): Ditto.
1887 (pthread_mutex::LockRecursive): Ditto.
1888 (pthread_mutex::fixup_after_fork): Restore locking state after
1889 fork.
1890 (__pthread_mutex_lock): Return pthread_mutex::Lock errorcode.
1891 (__pthread_mutex_trylock): Return pthread_mutex::TryLock
1892 errorcode.
1893 (__pthread_mutex_unlock): Return pthread_mutex::UnLock
1894 errorcode.
1895 (__pthread_mutex_destroy): Call pthread_mutex::Destroy to
3457ce4d 1896 destroy mutex.
5d68d1de
TP
1897 (__pthread_mutexattr_settype): Allow errorchecking and recursive
1898 types.
1899 * thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define.
1900 (pthread_mutex::criticalsection): Remove.
1901 (pthread_mutex::lock_counter): New member.
1902 (pthread_mutex::recursion_counter): Ditto.
1903 (pthread_mutex::owner): Ditto.
1904 (pthread_mutex::type): Ditto.
1905 (pthread_mutex::Destroy): New method.
1906 (pthread_mutex::SetOwner): Ditto.
1907 (pthread_mutex::LockRecursive): Ditto.
1908
ed9fe455
TP
19092003-01-09 Thomas Pfaff <tpfaff@gmx.net>
1910
1911 * pthread.cc (pthread_cond_init): Use new pthread_cond::init.
1912 * thread.cc: Some white spaces cleanups.
1913 Change __pthread_cond_init to pthread_cond::init throughout.
1914 (nativeMutex): Move class methods outside pthread_mutex.
1915 (MTinterface::Init): Initialize pthread_cond init lock.
1916 (pthread_cond::condInitializationLock): Instantiate.
1917 (pthread_cond::initMutex): New Method.
1918 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
1919 * thread.h: Some white spaces cleanups.
1920 (nativeMutex): Move class declaration outside pthread_mutex.
1921 (pthread_cond::condInitializationLock): New static member.
1922 (pthread_cond::initMutex): New Method.
1923 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
1924 (__pthread_cond_init): Remove prototype.
1925
93353aee
CV
19262003-01-09 Corinna Vinschen <corinna@vinschen.de>
1927
1928 * fhandler_disk_file.cc (num_entries): Return 2 as link count if
1929 directory unreadable.
1930
3eb27a4e
CV
19312003-01-09 Corinna Vinschen <corinna@vinschen.de>
1932
1933 * security.cc (get_nt_attribute): Always return -1 when read_sd()
1934 fails.
1935 (get_file_attribute): Set permissions to 0 and owner/group to -1
1936 if security descriptor is unreadable.
1937
85ba109d
CF
19382003-01-09 Christopher Faylor <cgf@redhat.com>
1939
1940 Use isdirsep rather than SLASH_P throughout.
1941 * path.cc (iscygdrive): Disallow /cygdrive\x.
1942 (normalize_posix_path): "Normalize" a windows path, if detected, rather
1943 than converting to posix.
1944
19452003-01-06 Troy Curtiss <troyc@usa.net>
1946
1947 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and
1948 capability checking for B230400 bitrate.
1949 (fhandler_serial::tcgetattr): Add support for B230400 bitrate.
1950 * include/sys/termios.h: Add B230400 definition for Posix support of
1951 230.4Kbps.
1952
cbdbe9d7
CF
19532003-01-05 Christopher Faylor <cgf@redhat.com>
1954
1955 * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just
1956 lock when leaving.
1957
f3afe99b
CF
19582003-01-03 Christopher Faylor <cgf@redhat.com>
1959
1960 * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork
1961 cleanup needed.
1962 * dtable.cc (dtable::vfork_parent_restore): Remove assertion.
1963 * pipe.cc (fhandler_pipe::close): Don't close read_state during
1964 fork_fixup since it wasn't inherited.
1965
2665fb15
CF
19662003-01-01 Christopher Faylor <cgf@redhat.com>
1967
1968 * passwd.cc (getpwuid_r32): Revert previous change.
1969
8619b42b
CF
19702003-01-01 Christopher Faylor <cgf@redhat.com>
1971
1972 * sysconf.cc (sysconf): Return arbitrary values for
1973 _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
1974
1975 * passwd.cc (getpwuid_r32): Add uid/gid fields to size check
1976 calculation.
1977
This page took 0.289844 seconds and 5 git commands to generate.