Egor Duda
d961def403
* winsup.api/ltp/dup03.c: New test.
...
* winsup.api/ltp/lseek03.c: Ditto.
* winsup.api/ltp/mmap001.c: Ditto.
* winsup.api/ltp/read01.c: Ditto.
* winsup.api/ltp/readdir01.c: Ditto.
* winsup.api/ltp/rmdir05.c: Ditto.
* winsup.api/ltp/sbrk01.c: Ditto.
* winsup.api/ltp/select02.c: Ditto.
* winsup.api/ltp/select03.c: Ditto.
* winsup.api/ltp/signal03.c: Ditto.
* winsup.api/ltp/stat06.c: Ditto.
* winsup.api/ltp/unlink08.c: Ditto.
* winsup.api/known_bugs.tcl: Update to reflect new test's known
failures.
* winsup.api/winsup.exp: Don't delete executable in case of
unexpected pass, as well as in case of unexpected failure.
* README: Update paragraph about expected failures.
2001-09-09 13:38:17 +00:00
Egor Duda
92ef5188af
* dumper.cc (main): Change command-line arguments format to be
...
similar to gdb. Allow adding error_start=x:\path\to\dumper.exe to
CYGWIN environment variable to perform core dumping in case of
program crash.
(usage): Ditto.
2001-09-09 13:18:51 +00:00
Corinna Vinschen
d969111291
* include/cygwin/version.h: Bump API minor version to 45 according
...
to adding the gamm*_r functions.
2001-09-09 12:32:54 +00:00
Christopher Faylor
e2ea684e4e
* fork.cc (fork_parent): Stop malloc activity while fork is in control of the
...
heap.
* sigproc.cc (NZOMBIES): Rename from ZOMBIEMAX for clarity.
(zombies): Revert to original behavior. Allocating zombie array resulted in
performance hit.
* winsup.h: Declare malloc lock routines.
2001-09-09 03:34:36 +00:00
Christopher Faylor
c12a96d12f
* cygwin.din: Add gamm*_r function exports.
2001-09-08 01:35:55 +00:00
Christopher Faylor
1ff9f4b937
* cygheap.h (init_cygheap): Move heap pointers here.
...
* include/sys/cygwin.h (perprocess): Remove heap pointers.
* dcrt0.cc (__cygwin_user_data): Reflect obsolete perprocess stuff.
(_dll_crt0): Don't initialize heap pointers.
(cygwin_dll_init): Ditto.
(release_upto): Use heap pointers from cygheap.
* heap.h: Ditto.
* fork.cc (fork_parent): Ditto. Don't set heap pointers in ch.
(fork_child): Remove obsolete sigproc_fixup_after_fork.
* shared.cc (memory_init): Reorganize so that cygheap initialization is called
prior to regular heap since regular heap uses cygheap now.
* sigproc.cc (proc_subproc): Eliminate zombies allocation.
(sigproc_init): Move zombies alloation here. Don't free up array on fork, just
reuse it.
(sigproc_fixup_after_fork): Eliminate.
* sigproc.h: Ditto.
* include/cygwin/version.h: Reflect change to perprocess structure.
2001-09-07 21:32:07 +00:00
Corinna Vinschen
e3f30e9c24
Fri Sep 7 10:53:34 2001 Jason Tishler <jason@tishler.net>
...
* poll.cc (poll): Change implementation to only call select() when no
invalid file descriptors are specified.
2001-09-07 17:17:54 +00:00
Christopher Faylor
c4857613ca
* how-resources.texinfo: Add some additional words about where to find
...
documentation.
2001-09-07 16:48:23 +00:00
Corinna Vinschen
b0cce7e127
* include/limits.h: Define PIPE_BUF.
...
* syscalls.cc (fpathconf): Use PIPE_BUF instead of numerical constant.
(pathconf): Ditto.
2001-09-07 08:31:16 +00:00
Christopher Faylor
ddeaa23fbb
experiment.
2001-09-07 01:13:47 +00:00
Christopher Faylor
04da0bbe2f
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Ensure that
...
prot_info_ptr is zeroed for later use.
2001-09-07 00:07:49 +00:00
Christopher Faylor
b2bfade325
* cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as a
...
candidate for deletion. It is actually the end of a linked list chain.
* exceptions.cc (open_stackdumpfile): Default to "unknown" program name if
myself->progname hasn't been filled out yet.
2001-09-06 18:06:27 +00:00
Christopher Faylor
128f2650a5
Another in the how-it-works series.
2001-09-06 16:53:48 +00:00
Christopher Faylor
57c89867f5
Move appropriate variables to NO_COPY segment, throughout.
2001-09-06 05:17:22 +00:00
Christopher Faylor
08b78edf5a
Remove initialization of static or global values to zero, throughout. This
...
just needlessly grows the size of the DLL.
* tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for
thread safety.
2001-09-06 04:41:59 +00:00
Christopher Faylor
4ce15a4980
* cygheap.h (init_cygheap): Move bucket array here from cygheap.cc.
...
* cygheap.cc: Throughout use bucket array from cygheap.
* sigproc.cc (proc_subproc): Dynamically allocate zombie buffer to save DLL
space.
(sigproc_fixup_after_fork): Free zombie array after a fork.
* sigproc.h (sigproc_fixup_after_fork): Declare.
* dir.cc (mkdir): Expand buffer for security descriptor to 4K to avoid stack
corruption.
* fhandler.cc (fhandler_base::open): Ditto.
* path.cc (symlink): Ditto.
2001-09-06 03:39:18 +00:00
Christopher Faylor
0fb61528c9
* Makefile.in (dumper): Change logic for libbfd and libintl so that they will
...
be found either in the build tree or the installed directory.
* mkpasswd.c (enum_users): Add a comment as a password for NT.
2001-09-06 02:38:22 +00:00
Christopher Faylor
94ce0c04c1
Revert inadvertently checked in files.
2001-09-06 00:45:51 +00:00
Christopher Faylor
08547e6403
* Makefile.in: Install libstdc++.a if it does not exist.
2001-09-05 23:26:38 +00:00
Christopher Faylor
b6077b89be
minor wording changes
2001-09-05 20:12:38 +00:00
Christopher Faylor
6da0fb340e
top level overview of vfork.
2001-09-05 19:43:52 +00:00
Corinna Vinschen
5bcf2f939e
* winver.rc: Change copyright to include 2001.
2001-09-05 19:36:49 +00:00
Corinna Vinschen
37c23731c7
* fhandler_floppy.cc (fhandler_floppy::lseek): Remove iswinnt check.
2001-09-05 10:14:15 +00:00
Corinna Vinschen
669153e144
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
...
according to MSDN.
2001-09-05 09:35:08 +00:00
Corinna Vinschen
47497e6243
* net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handling
...
for non-blocking sockets.
2001-09-05 08:16:51 +00:00
Christopher Faylor
d72a655937
* exceptions.cc (ctrl_c_handler): Only send SIGINT when we have a controlling
...
terminal and we are the head of the process group.
2001-09-05 02:42:49 +00:00
Earnie Boyd
615a70a882
2001-09-04 Earnie Boyd <earnie@SF.Net>
...
* lib/Makefile.in: Move the setting of variable libdir to after the
setting of exec_prefix since the value of libdir is dependant on it.
2001-09-04 20:56:23 +00:00
Christopher Faylor
c729f22799
* thread.cc (InterlockedExchangePointer): Don't define if it already exists.
2001-09-04 20:48:45 +00:00
Corinna Vinschen
37f75da24d
* uname.cc (uname): Eliminate os specific retrieving of x86
...
processor type.
2001-09-04 20:16:33 +00:00
Christopher Faylor
fb7369b515
* winbase.h: Add missing closing parentheses to InterlockedExchangePointer
...
declaration.
2001-09-04 18:19:33 +00:00
Earnie Boyd
2d54484a72
2001-09-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shlobj.h (CFSTR_* ): Add new defines.
Thanks to: "Ron" <ron@debian.org> .
Unicode them.
2001-09-04 14:57:51 +00:00
Corinna Vinschen
29ebba7050
2001-09-04 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
...
* fhandler_console.cc (fhandler_console::char_command): Save the cursor
position relative to the top of the window.
* fhandler_cc (fhandler_console::write): Ditto.
2001-09-04 10:45:54 +00:00
Christopher Faylor
f90e39b55e
* mount.cc (mount_commands): Don't write /cygdrive/u mount points.
2001-09-04 01:09:39 +00:00
Christopher Faylor
bee722a5e7
* mount.cc (longopts): Add mount-commands to options list.
...
(usage): Add mount-commands option.
(mount_commands): New function. Write commands to recreate current mounts.
2001-09-03 22:02:54 +00:00
Christopher Faylor
7170a41bc8
*** empty log message ***
2001-09-03 20:36:52 +00:00
Corinna Vinschen
2321ebb2aa
* dir.cc (opendir): Write version information to __d_dirent->d_version.
2001-09-03 19:06:58 +00:00
Corinna Vinschen
a71aee46c4
* cygwin.din: Add `dirfd'.
...
* dir.cc (dirfd): New function.
(opendir): Open a directory file descriptor and save it in
__d_dirent->d_fd.
(closedir): Close directory file descriptor.
* include/cygwin/version.h: Bump API minor version to 44.
2001-09-03 16:36:54 +00:00
Christopher Faylor
9867ecfdb3
* child_info.h: Modify magic number.
...
* dcrt0.cc (_cygwin_testing): Define.
(_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists.
Don't issue "conflicting versions" error if _cygwin_testing is true.
* shared.cc (shared_name): Use _cygwin_testing global rather than testing the
environment.
* syscalls.cc (_write): Remove debugging info.
2001-09-03 02:13:05 +00:00
Christopher Faylor
db8b09c306
* mount.cc (main): Eliminate excess arguments in printf.
2001-09-01 19:58:40 +00:00
Christopher Faylor
2bcd6fb89d
* include/winnt.h: Use defined(_ANONYMOUS_STRUCT) to determine if anonymous
...
structs are available rather than just testing preprocessor variable directly.
2001-09-01 14:42:57 +00:00
Christopher Faylor
2496a3637f
* tty.cc (tty::create_inuse): Eliminate unneeded argument.
...
* tty.h: Reflect above change.
* fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout.
Always make inuse inheritable.
2001-09-01 05:38:46 +00:00
Christopher Faylor
e62ac9e869
* debug.cc (mark_closed): Rename from debug_mark_closed and make static.
...
(setclexec_pid): New function for marking saved handle as close-on-exec.
(delete_handle): New function.
(debug_fixup_after_fork): New function.
* debug.h: Declare new functions, remove obsolete ones.
* fork.cc (debug_fixup_after_fork): Call to cleanup close-on-exec handles.
* fhandler.cc (fhandler_disk_file::close): Minor reorg.
(fhandler_base::set_inheritance): Set flag appropriately for debugging when
close-on-exec so forked process can delete closed handles.
* tty.h (open_output_mutex): Eliminate unneeded argument.
(open_input_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): reflect open_*_mutex argument
changes.
* fhandler.h (fhandler_socket): Make saw_shutdown_* functions type bool.
* tty.cc (tty::get_event): Eliminate unneeded argument.
(tty::common_init): Reflect change to get_event. Events should always be
inherited.
2001-09-01 05:17:34 +00:00
Corinna Vinschen
dc8c4c68b7
* security.cc (create_token): Change initialization of `exp' to comply
...
with new LARGE_INTEGER definition in winnt.h.
2001-08-31 19:48:34 +00:00
Corinna Vinschen
75f259bfe3
* include/winnt.h: Change definition of `SYSTEM_LUID' to comply
...
with new `LARGE_INTEGER' definition.
2001-08-31 19:48:04 +00:00
Christopher Faylor
5ac73dfead
* cygwin.sc: Revert to previous NO_COPY behavior.
...
* winsup.h: Ditto.
* sigproc.cc: Ditto.
* autoload.cc: Ditto.
2001-08-31 18:16:16 +00:00
Christopher Faylor
5e2ccd4bc2
minor wording change.
2001-08-31 05:24:36 +00:00
Christopher Faylor
fcc46b19d3
space reduction.
2001-08-31 05:23:04 +00:00
Christopher Faylor
fff42f4172
space reduction.
2001-08-31 05:17:47 +00:00
Christopher Faylor
5835f2cf8d
* cygwin.sc: New file -- linker script for building cygwin DLL.
...
* Makefile.in: Use linker script to control location of cygheap.
* cygheap.cc (buckets): Make static.
(init_cheap): Remove special iswinnt handling. Allocate cygheap at a fixed
location. Display more info when allocation fails.
(cygheap_fixup_in_child): Try harder to move cygheap to correct location.
Display more info when allocation fails.
* fhandler.h (fhandler_socket): Add macros for tracking socket shutdown state.
* net.cc (cygwin_shutdown): Set appropriate shutdown value for future use.
* select.cc (select_stuff::cleanup): New method.
(cygwin_select): Call cleanup explicitly to avoid a race.
(select_stuff:~select_stuff): Call cleanup chain via cleanup method.
(fhandler_socket::select_read): Set *_ready when shutdown has been called on
the socket.
(fhandler_socket::select_write): Ditto.
(fhandler_socket::select_except): Ditto.
* winsup.h: Move NO_COPY to "COMMON" section.
* autoload.cc (wsock_started): Avoid initializing NO_COPY value.
* sigproc.cc: Remove initialization from NO_COPY variables.
(sigproc_init): Initialize sig_loop_wait here, rather than via initialization.
(subproc_init): Initialize proc_loop_wait here, rather than via initialization.
2001-08-31 05:06:14 +00:00
Egor Duda
33bc82476e
* dumper.h: Update copyright notice.
...
* dumper.cc: Ditto.
* dumper.cc: (dumper::print_core_section_list): New function.
* dumper.h: (dumper::print_core_section_list): Declare it.
* dumper.cc (print_section_name): New function.
(dumper::collect_process_information): Augment debugging output.
Stop debugee processing if it posts double exception.
(usage): Fix typo in option name.
2001-08-30 16:47:51 +00:00