summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* * Makefile.in: Make failure to build dumper.exe a non-error.Christopher Faylor2000-08-252-2/+6
|
* minor formatting fixesDavid Starks-Browning2000-08-252-3/+2
|
* Major re-write of "Installation using the setup.exe program".David Starks-Browning2000-08-251-210/+112
|
* Minor changes.David Starks-Browning2000-08-252-5/+8
|
* * external.cc (cygwin_internal): Add CW_INIT_EXCEPTIONS to allow cygwinChristopher Faylor2000-08-255-7/+23
| | | | | | | 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.
* * ps.cc (main): Always print a cygwin process using cygwin paths.Christopher Faylor2000-08-252-2/+6
|
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-248-10/+45
| | | | | | | | | | | | | | | | | | | | | | | * 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]).
* * ps.cc (main): Always print a cygwin process using cygwin paths.Christopher Faylor2000-08-241-0/+4
|
* * select.cc (cygwin_select): Correct logic for "always_ready" fds or when thereChristopher Faylor2000-08-243-10/+18
| | | | | is no wait specified. * syslog.cc (pass_handler::set_message): Zero the buffer prior to setting it.
* Change attribution.Christopher Faylor2000-08-242-2/+2
|
* * Makefile.common: Add bupdir2 to reference above the i686-pc-cygwin directory.Christopher Faylor2000-08-242-2/+13
|
* * Makefile.in: Add dumper.exe target and associated mechanisms for building it.Christopher Faylor2000-08-248-3/+1120
| | | | | | | * dumper.cc: New file. * dumper.h: New file. * module_info.cc: New file. * parse_pe.cc: New file.
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-2414-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/stdlib/abort.c: changed description: uses "raise" instead of "getpid" and "kill"; added: uses "write" and "_exit". Also included unistd.h for "_exit" prototype. * libc/stdlib/system.c: included unistd.h for "execve" prototype, reent.h for "_fork_r" and "_wait_r" prototypes. (do_system): changed extern char *environ[] to POSIX-friendly extern char **environ. * libc/stdlib/wctomb_r.c: included string.h for "strlen" and "strcmp" prototypes. * libc/stdlib/remove.c: included reent.h for "_unlink_r" prototype. * libc/reent/execr.c: included sys/wait.h for "wait" prototype. * libc/reent/fstatr.c: included sys/stat.h for "fstat" prototype. * libc/reent/openr.c: included fcntl.h for "open" prototype. * libc/reent/signalr.c: included signal.h for "kill" prototype, unistd.h for "getpid" prototype. * libc/reent/statr.c: included sys/stat.h for "stat" prototype. * libc/reent/timer.c: included sys/time.h for "gettimeofday" prototype. * libc/unix/getut.c (utmpname): removed local, incorrect "strdup" prototype. Also included stdlib.h for "abort", string.h for "strdup" and "strncmp" prototypes. * libc/unix/getlogin.c: included string.h for "strncmp", "memset", and "strncpy", unistd.h for "read" and "close" prototypes. * libc/posix/execvp.c: included string.h for "strchr", "strlen", and "strcat" prototypes.
* * include/cygwin/core_dump.h: New file, contains structures used in cygwin coreChristopher Faylor2000-08-243-0/+91
| | | | | | core files. * include/sys/procfs.h: New file, needed to autoconfigure cygwin core dumps support in bfd.
* * environ.cc (parse_thing): nobinmode should force O_TEXT.Christopher Faylor2000-08-244-5/+18
| | | | | | | | (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.
* * include/sys/cygwin.h (strace_printf_wrap): Force printing whenChristopher Faylor2000-08-242-2/+8
| | | | | _STRACE_SYSTEM. (strace_printf_wrap1): Ditto.
* * debug.h: Allow some debug defines for use in header files.Christopher Faylor2000-08-242-1/+6
|
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-246-7/+23
| | | | | | | | | | | | | * libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's used later (ifdef __SCLE) * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's used later (ifdef MB_CAPABLE) * libc/string/memset.c (memset): removed unused variables "count" and "unaligned_addr" * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE) * libc/unix/getpwent.c (getpwnam): removed unused variables "uid" and "gid"
* 2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>Jeff Johnston2000-08-244-8/+26
| | | | | | | | | | | | * libc/stdlib/envlock.c: changed documented "__env_lock" and "__env_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. Also added include of envlock.h. * libc/stdlib/mlock.c: changed documented "__malloc_lock" and "__malloc_unlock" prototype from "void *" or "char *" to "struct _reent *" to match real function. * libc/stdlib/envlock.h: added "__env_lock" and "__env_unlock" prototypes (for getenv_r.c and setenv_r.c).
* * dcrt0.cc (dll_crt0_1): Move exception list and constructor stuff earlier inChristopher Faylor2000-08-247-24/+81
| | | | | | | | | | | | | | the process. Use new second argument to set_myself. (cygwin_dll_init): Initialize exception list and constructor stuff here. (_dll_crt0): And here. Also, deal with inherited pinfo shared memory region from parent. * pinfo.cc (set_myself): Accept a second argument signifying the a shared memory region, passed from an execing parent. (pinfo_init): Ditto. * pinfo.h: Ditto. * shared.h (child_info): Add a handle field to pass to child. * spawn.cc (spawn_guts): Create a shared handle to pass to an execed child. * winsup.h: Remove extraneous declaration.
* Revert previous erroneous checkin.Christopher Faylor2000-08-236-36/+12
|
* * include/sys/cygwin.h: Protect class definitions.Christopher Faylor2000-08-238-12/+42
|
* * libc/unix/getut.c (utmpname): added _CONST to reflect common useDJ Delorie2000-08-222-1/+7
| | | | and prototype in cygwin's utmp.h
* * path.cc (symlink_info::check): Clear error on each iteration of extensionChristopher Faylor2000-08-222-1/+7
| | | | check.
* * Makefile.in: Don't include '.d' file if there are none generated yet.Christopher Faylor2000-08-222-3/+9
|
* * include/sys/cygwin.h: Declare some thread classes.Christopher Faylor2000-08-223-0/+10
| | | | * include/mntent.h: Avoid declaring functions.
* * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h filesChristopher Faylor2000-08-2263-209/+281
| | | | | only in sources which require them. * Makefile.in: Generate dependencies with -MD option.
* * config-ml.in (CC, CXX): Avoid trailing whitespace.Alexandre Oliva2000-08-222-3/+42
| | | | | (LD_LIBRARY_PATH, SHLIB_PATH): Adjust for multilibs and export to sub-configures.
* * cygerrno.h: New file. Use this throughout whenever errno manipulation isChristopher Faylor2000-08-2245-133/+203
| | | | | | | | | | | | | | | required. * errno.cc: Use DWORD to hold Windows errors. (geterrno_from_win_error): New function. (seterrno_from_win_error): Use geterrno_from_win_error to convert supplied windows error (suggested by Corinna Vinschen). * path.cc (symlink_info): Add error element. * path.cc (path_conv::check): Remove errno setting. Use new symlink_info errno element to set path_conv error, where appropriate. (symlink_info::check): Set error element rather than attempting to manipulate errno. Add more checks for trailing / and /.. even though they are currently useless. Avoid setting EINVAL. * path.cc (normalize_posix_path): Correct check for trailing /.
* Update copyright.Christopher Faylor2000-08-211-3/+3
|
* * include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,DJ Delorie2000-08-212-6/+6
| | | | not handle. (reverse of previous diff)
* * include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): handle,DJ Delorie2000-08-212-1/+6
| | | | not hinstance.
* * Makefile.in (ALL_MODULES): Add all-cgen.Doug Evans2000-08-203-3/+22
| | | | | | | | (CROSS_CHECK_MODULES,INSTALL_MODULES,CLEAN_MODULES): Similarily. (all-cgen): New target. (all-opcodes,all-sim): Depend on all-cgen. * configure.in (host_tools): Add cgen. Only configure cgen if --enable-cgen-maint.
* * include/winnt.h:Add enums for TokenRestrictedSids and TokenSessionIdCorinna Vinschen2000-08-192-1/+17
| | | | | to TOKEN_INFORMATION_CLASS type. Add QUOTA_LIMITS type.
* * Makefile.in: hinfo.o -> dtable.o.Christopher Faylor2000-08-181-11/+10
|
* * fhandler-tut.txt: hinfo -> dtable.Christopher Faylor2000-08-182-2/+6
|
* hinfo -> dtableChristopher Faylor2000-08-182-17/+18
|
* * dtable.cc (dtable::dup2): Extend fdtab if newfd is out of currentCorinna Vinschen2000-08-182-0/+11
| | | | allocated bounds.
* * config-ml.in (CC, CXX): Don't introduce a leading space.Alexandre Oliva2000-08-172-6/+10
|
* Fix 3 DV bugs, and a few minor cleanups.Jim Wilson2000-08-162-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | gas/ * config/tc-ia64.c (specify_resource, case IA64_RS_GR): Handle postincrement modified registers. Handle IA64_OPND_R3_2 addl source registers. (note_register_values): Handle IA64_OPND_R3_2 operands. gas/testsuite/ * gas/ia64/dv-raw-err.s: Add new tests for addl and postinc. * gas/ia64/dv-raw-err.l: Likewise. * gas/ia64/dv-waw-err.l: Update sed pattern. * gas/ia64/opc-f.pl: Delete fpsub, and fpadd comment. * gas/ia64/opc-f.s, gas/ia64/opc-f.d: Regenerate. include/opcode/ * ia64.h (IA64_OPCODE_POSTINC): New. opcodes/ * ia64-ic.tbl (pr-readers-nobr-nomovpr): Add addl, adds. Delete break, mov-immediate, nop. * ia64-opc-f.c: Delete fpsub instructions. * ia64-opc-m.c: Add POSTINC to all instructions with postincrement address operand. Rewrite using macros to avoid long lines. * ia64-opc.h (POSTINC): Define. * ia64-asmtab.c: Regenerate.