libc/winsup/cygwin
Christopher Faylor 5bf785a017 * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads
may not end up in the pool.
(cygthread::new): Avoid race when checking for initialized.  Add debugging
code.
* fhandler.cc (fhandler_base::raw_read): Add case for ERROR_INVALID_HANDLE due
to Win95 directories.
(fhandler_base::open): Handle errors due to Win95 directories.
(fhandler_base::close): Add get_nohandle () test.
(fhandler_base::set_close_on_exec): Ditto.
(fhandler_base::fork_fixup): Ditto.
(fhandler_base::lock): Change error code to Posix EINVAL.
(fhandler_base::dup): If get_nohandle (), set new value to INVALID_HANDLE_VALUE
instead of NULL.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Call fstat_by_name if
get_nohandle ().  Remove extraneous element from strpbrk.
(fhandler_disk_file::open): Remove test for Win95 directory.
* fhandler_random.cc (fhandler_dev_random::open): Add set_nohandle ().
* fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
(fhandler_dev_zero::close): Delete.
* fhandler.h (class fhandler_dev_zero): Ditto.
2002-09-19 03:30:20 +00:00
..
config/i386 Update copyrights. 2001-09-11 20:01:02 +00:00
include * cygwin.din: Revert exporting new wchar functions. 2002-09-03 12:26:51 +00:00
lib * lib/_cygwin_S_IEXEC.cc: Remove obsolete file. 2002-06-24 02:08:41 +00:00
libc * Makefile.in: Add fnmatch.o to DLL_OFILES. 2002-01-17 10:39:37 +00:00
regex * hires.h (hires::usecs): Rename from utime. Accept an argument. 2002-02-15 17:06:40 +00:00
regexp Remove obsolete include. 2001-12-20 03:03:59 +00:00
CYGWIN_LICENSE Red Hatize 2001-10-12 01:51:21 +00:00
ChangeLog * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
ChangeLog-1995 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1996 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1997 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1998 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-1999 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-2000 fix spelling errors 2001-10-28 23:05:49 +00:00
ChangeLog-2001 restore missing entry 2002-01-01 16:49:52 +00:00
Makefile.in * Makefile.in (DLL_OFILES): Drop shortcut.o. 2002-09-04 13:11:29 +00:00
ROADMAP hinfo -> dtable 2000-08-18 19:51:02 +00:00
acconfig.h * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
ansi.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
assert.cc * assert.cc (__assert): Call debugger on assertion failure if debugging. 2002-08-11 19:19:29 +00:00
autoload.cc (inspired by a patch from Egor Duda) 2002-08-31 03:35:50 +00:00
automode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
binmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
child_info.h * child_info.h: Add _PROC_WHOOPS enum value. 2002-08-27 04:10:54 +00:00
config.h.in * dlmalloc.c: New file. Port of Doug Lea's malloc 2001-04-24 15:25:31 +00:00
configure * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
configure.in * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
cygerrno.h * debug.cc (set_errno): Return value of errno that was set, just like the 2001-10-22 21:09:41 +00:00
cygheap.cc * child_info.h: Add _PROC_WHOOPS enum value. 2002-08-27 04:10:54 +00:00
cygheap.h * child_info.h: Add _PROC_WHOOPS enum value. 2002-08-27 04:10:54 +00:00
cygmagic * child_info.h: Add _PROC_WHOOPS enum value. 2002-08-27 04:10:54 +00:00
cygmalloc.h * cygmalloc.h (MORECORE_CANNOT_TRIM): Define. 2002-08-18 04:14:59 +00:00
cygrun.c * Makefile.in (cygcheck.exe): Make a -mno-cygwin program. 2002-08-26 04:30:11 +00:00
cygserver.cc * cygserver.cc: Include stdlib.h for exit declaration. 2002-03-15 21:52:05 +00:00
cygserver_client.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_process.cc * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro. 2002-05-28 01:55:40 +00:00
cygserver_shm.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygserver_shm.h whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_transport.cc 2002-06-10 Robert Collins <rbtcollins@hotmail.com> 2002-06-09 23:02:00 +00:00
cygserver_transport_pipes.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygserver_transport_sockets.cc whitespace cleanup, update copyright 2002-03-13 02:34:05 +00:00
cygthread.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
cygthread.h * cygthread.cc (hthreads): Remove unneeded global. 2002-08-29 03:33:50 +00:00
cygwin.din * cygwin.din: Revert exporting new wchar functions. 2002-09-03 12:26:51 +00:00
cygwin.sc * cygwin.sc: Add recent changes from ld sources. 2002-06-23 18:55:23 +00:00
cygwin_ipc.h Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygwin_shm.h Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
cygwin_version.h Update copyrights. 2001-09-11 20:01:02 +00:00
dcrt0.cc * dcrt0.cc (dll_crt0_1): Remove getpagesize() call. 2002-09-02 06:00:59 +00:00
debug.cc * debug.h (handle_list::allocated): Remove field. 2002-08-06 03:40:40 +00:00
debug.h * debug.h (handle_list::allocated): Remove field. 2002-08-06 03:40:40 +00:00
delqueue.cc * Makefile.in: Build wincap.o. 2001-09-12 17:46:37 +00:00
dir.cc * dir.cc (rmdir): Streamline. Detect attempts to remove directories from 2002-06-05 16:01:55 +00:00
dlfcn.cc * cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh. 2001-10-31 00:55:32 +00:00
dll_init.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
dll_init.h revert patch 2002-04-19 14:42:20 +00:00
dll_init.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
dlmalloc.c * cygheap.cc (cfree): Remove malloc debugging probe. 2001-10-03 03:49:26 +00:00
dlmalloc.h * dlmalloc.c: New file. Port of Doug Lea's malloc 2001-04-24 15:25:31 +00:00
dtable.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
dtable.h * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along to 2002-05-24 05:44:10 +00:00
dtable.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
environ.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
environ.h * cygheap.h (cygheap_user): Reorg to accommodate environment caching. 2002-06-29 02:36:08 +00:00
errno.cc * syscalls.c (seteuid32): Do not return an error when the token cannot be 2002-07-01 23:42:05 +00:00
exceptions.cc * sigproc.cc (sigCONT): Define. 2002-08-18 04:13:57 +00:00
exec.cc * Makefile.in: Ensure that -MD gets added to CFLAGS regardless of CFLAGS 2002-06-11 02:08:00 +00:00
external.cc * Makefile.in (DLL_OFILES): Add cygthread.o. 2002-08-01 16:20:31 +00:00
external.sgml *** empty log message *** 2000-11-19 04:58:18 +00:00
fcntl.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
fhandler.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler.h * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_clipboard.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_console.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_disk_file.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_dsp.cc * cygheap.cc (init_cheap): Rearrange error message. 2002-07-03 03:20:50 +00:00
fhandler_floppy.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_mem.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_proc.cc * fhandler_proc.cc: Add <sys/param.h> include. 2002-08-31 16:37:51 +00:00
fhandler_process.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_random.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_raw.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_registry.cc * fhandler_registry.cc (fhandler_registry::close): Return any error result to 2002-07-26 19:58:00 +00:00
fhandler_serial.cc * fhandler_serial.cc: Change 'must_init_serial_line capability' 2002-07-24 11:01:37 +00:00
fhandler_socket.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_tape.cc Remove fcntl.h includes throughout. 2002-06-05 01:42:28 +00:00
fhandler_termios.cc * fhandler_console.cc (fhandler_console::read): Use appropriate kill_pgrp 2002-07-29 03:18:41 +00:00
fhandler_tty.cc * fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/output 2002-09-08 19:35:41 +00:00
fhandler_virtual.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fhandler_windows.cc * fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode. 2002-07-01 19:03:26 +00:00
fhandler_zero.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
fork.cc 2002-09-17 Robert Collins <rbtcollins@hotmail.com> 2002-09-17 09:12:36 +00:00
gcrt0.c Update copyrights. 2001-09-11 20:01:02 +00:00
glob.c * fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of 2002-06-06 15:35:09 +00:00
gmon.c 2002-05-25 Robert Collins <rbtcollins@hotmail.com> 2002-05-24 14:24:33 +00:00
gmon.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
grp.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
heap.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
heap.h * heap.h (inheap): Check for NULL. 2001-10-05 04:36:14 +00:00
hires.h * autoload.cc (timeGetDevCaps): Define new autoload function. 2002-06-07 03:44:33 +00:00
how-autoload-works.txt some edits 2002-09-04 15:17:24 +00:00
how-cygheap-works.txt fix spelling errors 2001-10-28 23:05:49 +00:00
how-fhandlers-work.txt . 2002-05-04 04:30:57 +00:00
how-signals-work.txt update 2002-08-03 23:34:01 +00:00
how-spawn-works.txt new how-to. 2002-02-11 02:25:42 +00:00
how-to-debug-cygwin.txt add initial information 2002-07-13 21:15:10 +00:00
how-vfork-works.txt * fhandler.h (fhandler_pipe::hit_eof): New method. 2001-09-24 21:50:44 +00:00
init.cc * init.cc: Cleanup slightly and remove obsolete code. 2002-09-16 16:09:54 +00:00
ioctl.cc * fhandler_socket.cc (fhandler_socket::check_peer_secret_event): 2002-08-27 09:24:50 +00:00
ipc.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
localtime.cc * localtime.cc (tzsetwall): Use wildabbr if generated timezone name 2002-05-07 13:18:44 +00:00
malloc.cc * malloc.cc: Protect some definitions to avoid a compile time warning. 2002-08-28 16:08:09 +00:00
malloc_wrapper.cc * malloc.cc: Update to 2.7.2. 2002-08-18 03:28:52 +00:00
mcount.c * sigproc.cc (sig_send): Eliminate sync_sig_send synchronization since it 2000-03-07 18:32:40 +00:00
misc-std.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
miscfuncs.cc * miscfuncs.cc (check_iovec_for_read): Don't check buffer when zero length 2002-08-30 15:47:10 +00:00
mkvers.sh Add copyright stuff 2002-01-13 20:03:03 +00:00
mmap.cc * mmap.cc (list::match): Check using pagesize aligned size. 2002-06-27 13:01:35 +00:00
net.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
newsym * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
ntdll.h * ntdll.h (_SYSTEM_PROCESSOR_TIMES): Force eight byte alignment. 2002-07-05 21:58:49 +00:00
ntea.cc Update copyrights. 2001-09-11 20:01:02 +00:00
passwd.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
path.cc whitespace 2002-09-06 04:39:49 +00:00
path.h * Makefile.in (DLL_OFILES): Drop shortcut.o. 2002-09-04 13:11:29 +00:00
path.sgml revert. 2001-06-01 01:45:53 +00:00
perprocess.h * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
perthread.h * perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields. 2002-08-18 05:49:26 +00:00
pinfo.cc Use hMainProc where appropriate, throughout. 2002-06-19 15:27:27 +00:00
pinfo.h * pinfo.h (pinfo::remember): Arrange for destructor call if proc_subproc 2002-08-19 14:59:27 +00:00
pipe.cc * dcrt0.cc (dll_crt0_1): Move debug_fixup_after_fork_exec. 2002-07-30 01:31:51 +00:00
poll.cc * poll.cc (poll): Peek sockets ready for read to see if there's 2002-08-29 09:41:00 +00:00
posix.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
profil.c Update copyrights. 2001-09-11 20:01:02 +00:00
profil.h Update copyrights. 2001-09-11 20:01:02 +00:00
pthread.cc * init.cc: Cleanup slightly and remove obsolete code. 2002-09-16 16:09:54 +00:00
pwdgrp.h * pwdgrp.h (pwdgrp_read::pwdgrp_read): Remove. 2002-08-19 11:27:18 +00:00
registry.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
registry.h Update copyrights. 2001-09-11 20:01:02 +00:00
resource.cc * winsup.h (__check_null_invalid_struct): Make ptr argument non-const. 2002-08-08 17:03:20 +00:00
rmsym * Makefile.in (VPATH): Add regex directory. 2001-12-20 02:55:11 +00:00
scandir.cc * lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin. 2001-09-19 15:54:12 +00:00
sched.cc Remove unneeded sigproc.h includes throughout. 2002-06-02 06:07:01 +00:00
sec_acl.cc * sec_acl.cc (getacl): Check ace_sid == well_known_world_sid 2002-08-26 09:56:06 +00:00
sec_helper.cc Patch by Joe Buehler <jbuehler@hekimian.com>: 2002-08-08 14:16:14 +00:00
security.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
security.h * grp.cc (initgroups): Call groups::clear_supp to free the 2002-09-11 10:37:11 +00:00
select.cc (inspired by a patch from Egor Duda) 2002-08-31 03:35:50 +00:00
select.h Update copyrights. 2001-09-11 20:01:02 +00:00
shared.cc * dcrt0.cc (dll_crt0_1): Remove getpagesize() call. 2002-09-02 06:00:59 +00:00
shared.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
shared_info.h * child_info.h: Add _PROC_WHOOPS enum value. 2002-08-27 04:10:54 +00:00
shm.cc Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. 2002-06-23 22:56:58 +00:00
signal.cc Remove unneeded sync.h, where appropriate, throughout. Remove unneeded heap.h, 2002-05-25 02:22:50 +00:00
sigproc.cc * pinfo.h (pinfo::remember): Arrange for destructor call if proc_subproc 2002-08-19 14:59:27 +00:00
sigproc.h * sigproc.cc (sigCONT): Define. 2002-08-18 04:13:57 +00:00
smallprint.c * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
spawn.cc * perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields. 2002-08-18 05:49:26 +00:00
speclib * speclib: Ensure that temporary def file is removed. 2002-01-24 21:39:09 +00:00
stackdump.sgml new description for old api. 2002-04-04 05:28:49 +00:00
strace.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
string.h * string.h (cygwin_strchr): Make 'static inline' so that things will still work 2001-05-06 16:00:23 +00:00
strsep.cc import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
sync.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
sync.h * Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. Use 2002-08-16 19:41:39 +00:00
syscalls.cc * syscalls.cc (seteuid32): Treat ILLEGAL_UID invalid. 2002-09-13 09:00:28 +00:00
sysconf.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
syslog.cc * fhandler.cc (fhandler_base::fork_fixup): Don't protect handle. 2001-10-15 23:39:33 +00:00
termios.cc * fhandler_console.cc (fhandler_console::read): Use appropriate kill_pgrp 2002-07-29 03:18:41 +00:00
textmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
thread.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
thread.h 2002-09-17 Robert Collins <rbtcollins@hotmail.com> 2002-09-17 09:12:36 +00:00
threaded_queue.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
threaded_queue.h * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
times.cc * times.cc (to_time_t): Always round time_t down to nearest second. 2002-07-25 15:59:49 +00:00
tty.cc * fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/output 2002-09-08 19:35:41 +00:00
tty.h Update copyright. 2002-03-05 18:03:32 +00:00
tz_posixrules.h Move appropriate variables to NO_COPY segment, throughout. 2001-09-06 05:17:22 +00:00
uinfo.cc * cygthread.cc (cygthread::initialized): Avoid copying on fork or some threads 2002-09-19 03:30:20 +00:00
uname.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
wait.cc * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares. 2002-06-05 04:01:43 +00:00
winbase.h * cygwin.sc: Add recent changes from ld sources. 2002-06-23 18:55:23 +00:00
wincap.cc * fhandler_serial.cc: Change 'must_init_serial_line capability' 2002-07-24 11:01:37 +00:00
wincap.h * fhandler_serial.cc: Change 'must_init_serial_line capability' 2002-07-24 11:01:37 +00:00
window.cc * Makefile.in (DLL_OFILES): Add cygthread.o. 2002-08-01 16:20:31 +00:00
winsup.h * winsup.h (_WIN32_WINNT): Protect. 2002-09-06 04:30:46 +00:00
winver.rc * winver.rc: Add more words to copyright. 2002-06-13 17:28:11 +00:00
wsock_event.h * dtable.cc (dtable::dup2): Revert previous patch. 2002-02-09 10:40:48 +00:00