summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * path.cc (normalize_posix_path): Deal with error return from cygcwd.get.Christopher Faylor2000-09-062-4/+17
| | | | | | (normalize_win32_path): Ditto. (mount_info::conv_to_win32_path): Ditto. (cwdstuff::get): Set buf to NULL on error.
* * path.cc (readlink): 'max' should be a 'min' or we'll suffer buffer overflow.Christopher Faylor2000-09-052-1/+6
|
* 2000-08-31 Manfred Hollstein <manfredh@redhat.com>Jeff Johnston2000-09-053-20/+25
| | | | | | * Makefile.am (install-data-local): Use optional $(DESTDIR) where required, as documented in the gnu coding standards. * Makefile.in: Regenerate.
* 2000-09-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2000-09-052-1/+6
| | | | | * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to make O_NDELAY and O_NONBLOCK have the same value.
* * rs6000/simulator.S: Use conditional returns for documentationGeoffrey Keating2000-09-052-13/+20
| | | | | purposes. (access): Add new syscall.
* * Makefile.in (all-bootstrap): Added all-texinfo and all-zlib.Alexandre Oliva2000-09-052-2/+7
| | | | (bootstrap*): Depend on all-bootstrap.
* doco addition.Alan Modra2000-09-052-1/+7
|
* * path.cc (cwd_win32): Eliminate.Christopher Faylor2000-09-056-316/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* Add some reloc types.Alan Modra2000-09-052-1/+14
|
* Patch by Egor Duda <deo@logos-m.ru>:Corinna Vinschen2000-09-042-1/+11
| | | | | * Makefile.in: Always add libltp headers directory to headers search path.
* * path.cc (readlink): Check if buffer length is positive. Truncate output toChristopher Faylor2000-09-0414-27/+33
| | | | buffer length. Don't terminate buffer with '\0'.
* Add ARRAY_SIZE macro from egcs versionNick Clifton2000-09-032-0/+6
|
* Fix formatting, add copyright noticeNick Clifton2000-09-032-46/+66
|
* * environ.cc (environ_init): Don't free the new environment table after we'veChristopher Faylor2000-09-032-1/+8
| | | | just copied stuff to it.
* * Makefile.in: Add cygheap.o.Christopher Faylor2000-09-0344-1880/+2211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * Makefile.in: Add new goal "check"Christopher Faylor2000-09-034-6/+15
| | | | | * configure.in: When doing native build do configure in testsuite subdirectory * configure: Regenerate.
* * Makefile.in: Remove "make check" support. It is now in winsup/Makefile.in.Christopher Faylor2000-09-032-56/+6
|
* Importing Egor's testsuite.Christopher Faylor2000-09-0399-5/+26942
|
* Importing Egor's testsuite.Christopher Faylor2000-09-0331-0/+6749
|
* Remove everythingChristopher Faylor2000-09-033-9/+0
|
* Remove READMEChristopher Faylor2000-09-031-42/+0
|
* remove everything and move it up a level.Christopher Faylor2000-09-035-804/+0
|
* * configure.in (FLAGS_FOR_TARGET): Use -nostdinc even for CanadianAlexandre Oliva2000-09-022-4/+25
| | | | crosses, but add gcc/include to the header search path for them.
* * sh.h (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,Alexandre Oliva2000-09-022-1/+15
| | | | | R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New relocs. (R_SH_FIRST_INVALID_RELOC): Adjust.
* * sigproc.cc (mychild): New function.Christopher Faylor2000-09-022-7/+25
| | | | | (proc_subproc): Use mychild() to determine if a specific pid is valid for wait()ing.
* * sigproc.cc (sigproc_init): Create wait_sig_inited without auto-reset to avoidChristopher Faylor2000-09-012-2/+8
| | | | | potential races. (init_child_info): Avoid unneeded test.
* * sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists".Christopher Faylor2000-09-019-56/+81
| | | | | | * shared.h: Split out "child_info" stuff into a new header file and use where necessary. Declare pid_exists. * child_info.h: New file.
* * Makefile.in: More normalization.Christopher Faylor2000-09-012-4/+7
|
* * Makefile.in: Normalize 'pwd' based on location of winsup.Christopher Faylor2000-08-312-2/+7
|
* * errno.cc (set_errno_from_win_error): Actually use arguments to strace_printf.Christopher Faylor2000-08-312-6/+11
|
* * ltconfig, ltmain.sh: Updated from libtool multi-language branch.Alexandre Oliva2000-08-316-2205/+4547
| | | | | * libtool.m4, ltcf-c.sh: Copied from libtool multi-language branch. * gettext.m4: New file, extracted from aclocal.m4.
* * times.cc (gettimeofday): use GetSystemTimeAsFileTime to avoid aDJ Delorie2000-08-302-7/+11
| | | | | | conversion (FACTOR): correct value (genf): set milliseconds to zero, DOW to 4.
* 2000-08-30 Kazu Hirata <kazu@hxi.com>Jeff Johnston2000-08-302-3/+7
| | | | * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size.
* 2000-08-30 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-304-4/+15
| | | | | | | * libc/posix/execve.c: included unistd.h for "_execve" prototype. * libc/misc/unctrl.c libc/sys/sysvi386/crt0.c (sccsid): changed "#ifndef lint" to "#if defined(LIBC_SCCS) && !defined(lint)" like everywhere else.
* Correct for missing patchGeoffrey Keating2000-08-301-1/+1
|
* * libc/string/swab.c: Specify that it's defined in <unistd.h>.Geoffrey Keating2000-08-303-3/+8
| | | | | | * libc/include/string.h: Don't include <sys/types.h>, as it causes really bad namespace pollution. Don't declare swab(), it is properly declared in unistd.h.
* * grp.cc (getgroups): fail with EINVAL if array is not largeDJ Delorie2000-08-292-5/+15
| | | | enough to hold all supplementary group IDs.
* 2000-08-29 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-292-7/+11
| | | | | * libc/unix/getpwent.c (getpwnam, getpwuid, getpwent): removed (broken) support for non-existent /etc/passwd field "comment".
* * signal.cc (_raise): New function.Christopher Faylor2000-08-295-14/+25
| | | | | | | | * 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.
* * kill.c (main): Avoid skipping next argument when a signal number isChristopher Faylor2000-08-293-2/+10
| | | | | specified. * Makefile.in: Always clean dumper.exe.
* 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-283-5/+22
| | | | | | | | | * libc/posix/scandir.c (DIRSIZ, scandir): use struct dirent.d_namlen only if _DIRENT_HAVE_D_NAMLEN is defined. (alphasort): aligned prototype with libc/sys/cygwin/sys/dirent.h and simplified function body. * libc/posix/telldir.c (telldir): changed "telldir" prototype to long telldir (DIR *) as mentioned in annex B of POSIX.1
* 2000-08-27 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-2822-54/+61
| | | | | | | | | | | | | | | | | | | | | | * libc/machine/i386/i386mach.h: added SOTYPE_FUNCTION to set type of global entry points if _I386MACH_NEED_SOTYPE_FUNCTION is defined; Added __CLI and __STI macros (controlled via _I386MACH_ALLOW_HW_INTERRUPTS macro). * libc/machine/i386/f_atan2.S libc/machine/i386/f_atan2f.S libc/machine/i386/f_frexp.S libc/machine/i386/f_frexpf.S libc/machine/i386/f_ldexp.S libc/machine/i386/f_ldexpf.S libc/machine/i386/f_log.S libc/machine/i386/f_log10.S libc/machine/i386/f_log10f.S libc/machine/i386/f_logf.S libc/machine/i386/f_tan.S libc/machine/i386/f_tanf.S libc/machine/i386/memchr.S libc/machine/i386/memcmp.S libc/machine/i386/memcpy.S libc/machine/i386/memmove.S libc/machine/i386/memset.S libc/machine/i386/setjmp.S libc/machine/i386/strchr.S libc/machine/i386/strlen.S: (that's libc/machine/i386/*.S) added SOTYPE_FUNCTION(symbol) for all global entry points. * libc/machine/i386/setjmp.S: removed code replicated in libc/machine/i386/i386mach.h and included i386mach.h instead; Use __CLI and __STI instead of cli and sti.
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-283-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions like x << y-z to the equivalent x << (y-z). (d2b): changed if statements with assignment to perform the assignment prior to the if check. * libc/reent/reent.c: included stdlib.h for "_free_r" prototype. * libc/unix/getpass.c (getpass): moved "echo" assignment out of if. * libc/unix/ttyname.c: included string.h for "strcpy" prototype. * libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and || precedence. * libc/include/sys/unistd.h: added "vfork" prototype (for popen.c). Added "_execve" prototype (for execl.c, execle.c, execv.c, and execve.c). * libc/posix/popen.c (popen): added parentheses to clarify && and || precedence. * libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to clarify && and || precendence (and to remove pascalism). * libm/math/e_sinh.c (__ieee754_sinh): Ditto. * libm/math/s_infconst.c: added another pair of braces to all initializers for __infinity (need three: for __infinity[1] array, for union __dmath, and for i[2]).
* * pinfo.h (pinfo): Un-inline release.Christopher Faylor2000-08-264-32/+44
| | | | | | * 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.
* * dcrt0.cc (dll_crt0_1): Move set_os_type.Christopher Faylor2000-08-267-68/+74
| | | | | | | | | | | (_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.
* * libc/include/sys/unistd.h (environ): this one isn't from theDJ Delorie2000-08-252-1/+6
| | | | DLL, no __IMPORT
* * exec.cc (_execve): Change definition according to declaration inCorinna Vinschen2000-08-252-2/+7
| | | | newlib/libc/include/sys/unistd.h.
* * libc/stdlib/system.c (do_system): Eliminate explicit declaration of environChristopher Faylor2000-08-252-4/+9
| | | | when compiling under cygwin since it is already declared in unistd.h.
* * Makefile.in: Only build dumper.exe when all of its library and includeChristopher Faylor2000-08-252-8/+29
| | | | dependencies are available.
* Add entry "How do I uninstall Cygwin?"David Starks-Browning2000-08-251-0/+22
|