Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2000-09-08Break out more header info into separate files. Use appropriate header filesChristopher Faylor
throughout. * shared.h: Remove. * cygwin_version.h: New file. * delqueue.h: New file. * environ.h: New file. * host_dependent.h: New file. * perprocess.h: New file. * registry.h: New file. * security.h: New file.
2000-09-07Split out tty and shared_info stuff into their own headers and use throughout.Christopher Faylor
Include sys/termios.h for files which need it. * tty.h: New file. * shared_info.h: New file. * fhandler.h: Move inline methods that rely on tty stuff to fhandler_console.cc. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Set output_done_event immediately after reading data to speed up tty output processing. (process_output): Set write_error to errno or zero. (fhandler_tty_slave::write): Check previous write error prior to writing to slave end of pipe. This allows tty output to be slightly less synchronous. * fhandler_console.cc (fhandler_console::tcsetpgrp): Moved here from fhandler.h. (fhandler_console::set_input_state): Ditto.
2000-09-07* exceptions.cc (signal_exit): Reset all mutos owned by the main thread.Christopher Faylor
* fhandler.h: Define *_output_mutex macros for serializing tty output. (fhandler_termios): Remove restart_output_event. Define dummy output mutex methods. (fhandler_pty_master): Remove unneeded fixup_after_fork method. * fhandler_termios.cc (fhandler_termios::line_edit): Acquire output_mutex when CTRL-S is hit. Release it on CTRL-Q. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Remove inappropriate OutputStopped test here. Just use the output mutex. (fhandler_pty_master::fhandler_pty_master): Remove obsolete reference to restart_output_event. (fhandler_tty_common::close): Ditto. (fhandler_pty_master::set_close_on_exec): Ditto. (fhandler_pty_master::fixup_after_fork): Delete. * tty.cc (tty::common_init): Ditto. * sync.cc (muto::reset): New method. * sync.h: Declare above method.
2000-09-07* sigproc.cc: Add include file for proper definitions.Christopher Faylor
* spawn.cc: Ditto. * winsup.h: Define cfree to avoid newlib pollution.
2000-09-06* Makefile.in (CFLAGS): Ensure that -MD is always added even when CFLAGS isChristopher Faylor
overwritten.
2000-09-06Add 'const' qualifiers where needed to avoid compiler warnings. Egor Duda
* libltp/lib/tst_sig.c (tst_sig): Don't attempt to cleanup on fatal errors. * libltp/lib/parse_opts.c (parse_opts): Initialize allocated string to prevent heap corruption.
2000-09-06* path.cc (cwdstuff::get_initial): Keep caching alive.Christopher Faylor
(mount_info::conv_to_win32_path): Fill out relative path in failing case.
2000-09-06Dummy file to accomodate programs which includeChristopher Faylor
it unconditionally.
2000-09-06* path.cc (normalize_posix_path): Deal with error return from cygcwd.get.Christopher Faylor
(normalize_win32_path): Ditto. (mount_info::conv_to_win32_path): Ditto. (cwdstuff::get): Set buf to NULL on error.
2000-09-06* path.cc (readlink): 'max' should be a 'min' or we'll suffer buffer overflow.Christopher Faylor
2000-09-05* path.cc (cwd_win32): Eliminate.Christopher Faylor
(cwd_posix): Eliminate. (cwd_hash): Eliminate. (cwdstuff::init): Rename from cwd_init. (cwdstuff::fixup_after_exec): Rename from cwd_fixup_after_exec. (cwdstuff::get): Rename from get_cwd_inner. (normalize_posix_path): Eliminate cwd argument. Just calculate when necessary. (normalize_win32_path): Ditto. (mount_info::conv_to_win32_path): Eliminate cwd retrieval here. (mount_info::conv_to_posix_path): Ditto. (hash_path_name): Accomodate additional methods in cwdstuff. (get_cwd_win32): Eliminate. (getcwd): Use cwdstuff methods. Properly handle case where buf == NULL and len < 0. (cwdstuff::get_hash): New method. (cwdstuff::get_initial): New method. (cwdstuff::set): New method. (cwdstuff::get): New method. (cwdstuff::copy): New method. * path.h: Move cwdstuff struct here. Add a bunch of stuff to cwdstuff. Make cygcwd an extern. * spawn.cc (spawn_guts): Use copy method to get copies of cwd info to pass to execed process. * dcrt0.cc (dll_crt0_1): Use cygcwd methods for cwd initialization.
2000-09-04Patch by Egor Duda <deo@logos-m.ru>:Corinna Vinschen
* Makefile.in: Always add libltp headers directory to headers search path.
2000-09-04* path.cc (readlink): Check if buffer length is positive. Truncate output toChristopher Faylor
buffer length. Don't terminate buffer with '\0'.
2000-09-03* environ.cc (environ_init): Don't free the new environment table after we'veChristopher Faylor
just copied stuff to it.
2000-09-03* Makefile.in: Add cygheap.o.Christopher Faylor
* child_info.h: Add specific exec class. * cygheap.h: New file. Contains declarations for cygwin heap. * cygheap.cc: New file. Implements cygwin heap functions. * dcrt0.cc (quoted): Simplify due to new method for passing arguments between cygwin programs. (alloc_stack_hard_way): Attempt to handle overlapped stack. (dll_crt0_1): Move child_info processing here. Accomodate new method for passing arguments between cygwin programs. Initialize cygwin heap. Establish __argc and __argv variables. (_dll_crt0): Move most of child_info processing to dll_crt0_1. (cygwin_dll_init): Remove duplication. * dtable.cc (dtable::extend): Allocate dtable using cygwin heap. (dtable::build_fhandler): Ditto for fhandler type being constructed. (dtable::dup_worker): Free new fhandler from cygwin heap on error. (dtable::select_*): Don't assume that this == fdtab. (dtable::linearize_fd_array): Delete. (dtable::delinearize_fd_array): Delete. (dtable::fixup_after_exec): New file. (dtable::vfork_child_dup): Use cygwin heap. (dtable::vfork_parent_restore): Ditto. * dtable.h: Remove obsolete methods. Add new method. * environ.cc (posify): Eliminate already_posix parameter and logic. (envsize): New function. (_addenv): Use envsize. (environ_init): Accept an argument pointing to an existing environment list. If supplied, allocate space for this in the the program's heap. * fhandler.cc (fhandler_base::operator =): Move here from fhandler.h. Use cygwin heap to allocate filenames. (fhandler_base::set_name): Allocate/free names from cygwin heap. (fhandler_base::linearize): Delete. (fhandler_base::de_linearize): Delete. (fhandler_base::operator delete): Free from cygwin heap. (fhandler_base::~fhandler_base): Ditto. * fhandler.h: Accomodate elimination of *linearize and other changes above. * fhandler_console.cc (fhandler_console::fixup_after_exec): Rename from de_linearize. * heap.h: New file. * fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Use cygwin heap for name. fhandler_tty::fixup_after_exec): Rename from de_linearize. * fork.cc (fork): Call cygheap_fixup_in_child. * heap.cc: Use declarations in heap.h. * malloc.cc: Sprinkle assertions throughout to catch attempts to free/realloc something from the cygwin heap. * path.cc: Throughout, eliminate use of per-thread cache for cwd. Use cwd_* functions rather than cwd_* variables to access cwd_win32 and cwd_posix. (cwd_win32): New function. (cwd_posix): New function. (cwd_hash): New function. (cwd_fixup_after_exec): New function. * path.h: Accomodate path.cc changes. * pinfo.cc (pinfo_init): Accept a pointer to an environment table. Pass this to environ_init. Eliminate old 'title' tests. * pinfo.h: Accomodate above change in argument. * spawn.cc (struct av): New method for building argv list. (av::unshift): New method. (spawn_guts): Allocate everything that the child process needs in the cygwin heap and pass a pointer to this to the child. Build argv list using new method. Eliminate delinearize stuff. * thread.h: Eliminate _cwd_win32 and _cwd_posix buffers. * winsup.h: Eliminate obsolete functions. Add envsize() declaration.
2000-09-03* Makefile.in: Add new goal "check"Christopher Faylor
* configure.in: When doing native build do configure in testsuite subdirectory * configure: Regenerate.
2000-09-03* Makefile.in: Remove "make check" support. It is now in winsup/Makefile.in.Christopher Faylor
2000-09-03Importing Egor's testsuite.Christopher Faylor
2000-09-03Importing Egor's testsuite.Christopher Faylor
2000-09-03Remove everythingChristopher Faylor
2000-09-03Remove READMEChristopher Faylor
2000-09-03remove everything and move it up a level.Christopher Faylor
2000-09-02* sigproc.cc (mychild): New function.Christopher Faylor
(proc_subproc): Use mychild() to determine if a specific pid is valid for wait()ing.
2000-09-02* sigproc.cc (sigproc_init): Create wait_sig_inited without auto-reset to avoidChristopher Faylor
potential races. (init_child_info): Avoid unneeded test.
2000-09-02* sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists".Christopher Faylor
* shared.h: Split out "child_info" stuff into a new header file and use where necessary. Declare pid_exists. * child_info.h: New file.
2000-09-01* Makefile.in: More normalization.Christopher Faylor
2000-09-01* Makefile.in: Normalize 'pwd' based on location of winsup.Christopher Faylor
2000-09-01* errno.cc (set_errno_from_win_error): Actually use arguments to strace_printf.Christopher Faylor
2000-08-31* times.cc (gettimeofday): use GetSystemTimeAsFileTime to avoid aDJ Delorie
conversion (FACTOR): correct value (genf): set milliseconds to zero, DOW to 4.
2000-08-29* grp.cc (getgroups): fail with EINVAL if array is not largeDJ Delorie
enough to hold all supplementary group IDs.
2000-08-29* signal.cc (_raise): New function.Christopher Faylor
* exceptions.cc (unused_sig_wrapper): Remove _raise. * sigproc.h (class sigframe): Default frames to skip to zero or suffer from exuberant optimization. * fhandler_tty.cc (fhandler_tty::write): Set appropriate errno when WriteFile to pipe fails.
2000-08-29* kill.c (main): Avoid skipping next argument when a signal number isChristopher Faylor
specified. * Makefile.in: Always clean dumper.exe.
2000-08-26* pinfo.h (pinfo): Un-inline release.Christopher Faylor
* pinfo.cc (pinfo::release): Move here from pinfo.h. * sigproc.cc (proc_terminate): Remove bogus 'pinfo child' which caused strange destruction of random regions of memory when destructor was invoked.
2000-08-26* dcrt0.cc (dll_crt0_1): Move set_os_type.Christopher Faylor
(_dll_crt0): To here. (cygwin_dll_init): And here. * external.cc (fillout_pinfo): Use more foolproof method for scanning for pids. * pinfo.cc (set_myself): Eliminate myself_identity.init. * sigproc.cc (wait_sig): Do it here instead to reduce the amount of time where there could potentially be two processes with the same pid. * spawn.cc (spawn_guts): Eliminate duplicate initialization. * include/sys/cygwin.h: Mark unused PID_* elements.
2000-08-25 * exec.cc (_execve): Change definition according to declaration inCorinna Vinschen
newlib/libc/include/sys/unistd.h.
2000-08-25* Makefile.in: Only build dumper.exe when all of its library and includeChristopher Faylor
dependencies are available.
2000-08-25Add entry "How do I uninstall Cygwin?"David Starks-Browning
2000-08-25* Makefile.in: Make failure to build dumper.exe a non-error.Christopher Faylor
2000-08-25minor formatting fixesDavid Starks-Browning
2000-08-25Major re-write of "Installation using the setup.exe program".David Starks-Browning
2000-08-25Minor changes.David Starks-Browning
2000-08-25* external.cc (cygwin_internal): Add CW_INIT_EXCEPTIONS to allow cygwinChristopher Faylor
exception handling on threads not created by cygwin. * sigproc.cc (proc_terminate): Don't release pinfo structs since we are exiting. * include/sys/cygwin.h: Add CW_INIT_EXCEPTIONS.
2000-08-25* ps.cc (main): Always print a cygwin process using cygwin paths.Christopher Faylor
2000-08-25* ps.cc (main): Always print a cygwin process using cygwin paths.Christopher Faylor
2000-08-25* select.cc (cygwin_select): Correct logic for "always_ready" fds or when thereChristopher Faylor
is no wait specified. * syslog.cc (pass_handler::set_message): Zero the buffer prior to setting it.
2000-08-24Change attribution.Christopher Faylor
2000-08-24* Makefile.common: Add bupdir2 to reference above the i686-pc-cygwin directory.Christopher Faylor
2000-08-24* Makefile.in: Add dumper.exe target and associated mechanisms for building it.Christopher Faylor
* dumper.cc: New file. * dumper.h: New file. * module_info.cc: New file. * parse_pe.cc: New file.
2000-08-24* include/cygwin/core_dump.h: New file, contains structures used in cygwin coreChristopher Faylor
core files. * include/sys/procfs.h: New file, needed to autoconfigure cygwin core dumps support in bfd.
2000-08-24* environ.cc (parse_thing): nobinmode should force O_TEXT.Christopher Faylor
(regopt): Use correct path to find LOCAL_MACHINE registry options. * fhandler.cc (fhandler_base::open): Set binary mode only when binmode == O_BINARY. * pipe.cc (pipe): Pipe handling should rely on binmode not _fmode now that the two are different.