summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.Corinna Vinschen2009-10-132-1/+6
|
* * include/sys/cygwin.h: Add new cygwin_getinfo_typeCorinna Vinschen2009-10-139-16/+122
| | | | | | | | | | | | | | | | | | CW_SET_EXTERNAL_TOKEN. Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED. * cygheap.h (cyguser): New flags ext_token_is_restricted, curr_token_is_restricted and setuid_to_restricted. * external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN. * sec_auth.cc (set_imp_token): New function. (cygwin_set_impersonation_token): Call set_imp_token (). * security.h (set_imp_token): New prototype. * spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token was enabled by setuid(). Do not create new window station in this case. * syscalls.cc (seteuid32): Add handling of restricted external tokens. Set HANDLE_FLAG_INHERIT for primary token. (setuid32): Set setuid_to_restricted flag. * uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was enabled by setuid (). Initialize user.*_restricted flags.
* Fix toplevel 'config.status --recheck' for --enable-lto.Ralf Wildenhues2009-10-133-2/+14
| | | | | | | /: * configure.ac: Add 'lto' to enable_languages, not new_enable_languages, and only if not already present. * configure: Regenerate.
* Improve clock_gettime and utimensat resolution.Eric Blake2009-10-134-19/+39
| | | | | | | | | | | | | | | * hires.h (hires_ms): Change initime_us to initime_ns, with 10x more resolution. (hires_ms::nsecs): New prototype. (hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust. * times.cc (systime_ns): New helper function. (hires_ms::prime): Use it for more resolution. (hires_ms::usecs): Change to... (hires_ms::nsecs): ...with more resolution. (clock_gettime): Use more resolution. (systime): Rewrite in terms of systime_ns. (timespec_to_filetime): Rewrite math to reflect true operation. * fhandler_disk_file.cc (utimens_fs): Use higher resolution.
* * external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNINGCorinna Vinschen2009-10-122-0/+7
| | | | and CW_SETERRNO cases.
* * kill.cc (main): Skip to PID loop on invalid option to handleCorinna Vinschen2009-10-122-4/+7
| | | | negative pids there.
* * fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnkCorinna Vinschen2009-10-123-1/+16
| | | | | | | if the original device had one, too. Add comment. * fhandler_socket.cc (fhandler_socket::fstat): Always return a size of 0 on sockets.
* 2009-10-09 Dave Korn <dave.korn@artimi.com>Jeff Johnston2009-10-092-0/+6
| | | | | * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when defining struct timeval.
* merge from gccDJ Delorie2009-10-092-1/+6
|
* * pathnames.sgml (pathnames-specialchars): Add control chars to theCorinna Vinschen2009-10-092-1/+13
| | | | list. Explain backslash exception.
* * path.cc (tfx_chars): Convert all ASCII control characters exceptCorinna Vinschen2009-10-092-16/+44
| | | | | ASCII NUL as well. Change layout to make the conversions more clear. Add comment.
* * include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".Corinna Vinschen2009-10-092-0/+6
|
* * libc/locale/locale.c (DEFAULT_LOCALE): New define.Corinna Vinschen2009-10-092-2/+20
| | | | | (__default_locale): New global variable set to the default locale. (__get_locale_env): Return __default_locale rather than fixed "C".
* 2009-10-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2009-10-083-1/+9
| | | | | | * configure.host: For RTEMS, define HAVE_ASSERT_FUNC. * libc/stdlib/assert.c (_assert_func): Do not specify __assert_func if HAVE_ASSERT_FUNC flag is set.
* 2009-10-08 Jie Zhang <jie.zhang@analog.com>Jeff Johnston2009-10-082-0/+13
| | | | | * bfin/Makefile.in (basiccrt.o, basiccrts.o): Use -mcpu=bf532-any for the default multilib.
* 2009-10-08 Eric Blake <ebb9@byu.net>Jeff Johnston2009-10-082-0/+8
| | | | | | * libc/include/getopt.h (__getopt_r, __getopt_long_r) (__getopt_long_only_r): Protect declarations, to avoid compiler warning.
* * exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrivedChristopher Faylor2009-10-082-1/+5
| | | | if we're exiting.
* * fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.Eric Blake2009-10-082-0/+6
|
* * libc/locale/nl_langinfo.c (nl_langinfo): Just return current localeCorinna Vinschen2009-10-072-0/+13
| | | | charset on Cygwin.
* Support pseudo-reloc version 2Charles Wilson2009-10-076-28/+717
|
* * syscalls.cc (seteuid32): Call set_cygwin_privileges on primary tokenCorinna Vinschen2009-10-072-0/+6
| | | | as well.
* * fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.Corinna Vinschen2009-10-073-1/+20
| | | | | | | | * fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return valid pgid if tty is controlling tty. Set errno to ENOTTY and return -1 otherwise. (fhandler_pty_master::tcgetpgrp): New function. Return 0 for master side of pty if it's not the controlling tty of the process.
* Sync with gcc repository.Ian Lance Taylor2009-10-076-18/+2084
|
* merge from gccDJ Delorie2009-10-072-0/+46
|
* Add cygwin wrapper for ExitProcess and TerminateProcess.Charles Wilson2009-10-066-5/+65
|
* Merge from gcc repository.Ian Lance Taylor2009-10-062-2/+47
|
* * exceptions.cc: Move global variable sigExeced...Christopher Faylor2009-10-064-2/+8
| | | | | | * globals.cc: here. * pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded declaration.
* * Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.Dave Korn2009-10-042-1/+6
|
* * include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.Corinna Vinschen2009-10-042-0/+18
| | | | | | | _WIN32_WINNT >= 0x0500. (DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN, WRITE_RESTRICTED): Define. (IsTokenRestricted): Declare for >= Win 2000.
* * syscalls.cc (internal_setlocale): Add comment.Corinna Vinschen2009-10-042-0/+6
|
* * faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.Dave Korn2009-10-032-0/+5
|
* * libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogateCorinna Vinschen2009-10-033-38/+42
| | | | | | value encoding. * libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate value decoding.
* merge from gccDJ Delorie2009-10-022-0/+21
|
* * dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. JustCorinna Vinschen2009-10-023-11/+31
| | | | | | | call initial_setlocale from here. * syscalls.cc (initial_setlocale): Set internal charset and revert application locale to "C". (setlocale): Don't set Cygwin's internal charset here.
* gas/Peter Bergner2009-10-022-0/+7
| | | | | | | | | | | | | | | | | | * config/tc-ppc.c (md_show_usage): Document -m476. * doc/c-ppc.texi (PowerPC-Opts): Document -m476. gas/testsuite/ * gas/ppc/476.s: New test. * gas/ppc/476.d: Likewise. * gas/ppc/ppc.exp: Run the 476 test. include/opcode/ * ppc.h (PPC_OPCODE_476): Define. opcodes/ * ppc-dis.c (ppc_opts): Add "476" entry. * ppc-opc.c (PPC476): Define. (powerpc_opcodes): Update mnemonics where required for 476.
* include/aout/Alan Modra2009-10-024-10/+12
| | | | | | | | | | | | | | | | | | | | * aout64.h (N_SHARED_LIB): Define as zero if not already defined. * sun4.h (N_SHARED_LIB): Define. * hp300hpux.h (N_SHARED_LIB): Don't define. bfd/ * aout-cris.c (N_SHARED_LIB): Don't define. * hp300bsd.c (N_SHARED_LIB): Don't define. * i386bsd.c (N_SHARED_LIB): Don't define. * i386linux.c (N_SHARED_LIB): Don't define. * i386lynx.c (N_SHARED_LIB): Don't define. * m68klinux.c (N_SHARED_LIB): Don't define. * m88kmach3.c (N_SHARED_LIB): Don't define. * mipsbsd.c (N_SHARED_LIB): Don't define. * newsos3.c (N_SHARED_LIB): Don't define. * pc532-mach.c (N_SHARED_LIB): Don't define. * pdp11.c (N_SHARED_LIB): Don't define. * sparclinux.c (N_SHARED_LIB): Don't define. * vaxbsd.c (N_SHARED_LIB): Don't define.
* * mkpasswd.c: Properly define __progname as __declspec(dllimport).Christopher Faylor2009-10-022-2/+2
| | | | * mkgroup.c: Ditto.
* * setup2.sgml (setup-locale-ov): Fix typo in C+charset example.Corinna Vinschen2009-10-022-3/+14
| | | | Rephrase how the locale environment variables are evaluated.
* * dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here.Christopher Faylor2009-10-023-23/+42
| | | | | | (check_sanity_and_sync): to here. * path.cc (has_dot_last_component): Rewrite to detect some corner cases that were previously uncaught.
* gas/Peter Bergner2009-10-012-1/+5
| | | | | | | | | | | | | | | | * config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2". * doc/c-ppc.texi (PowerPC-Opts): Likewise. gas/testsuite/ * gas/ppc/a2.d: Rename "ppca2" to "a2". include/opcode/ * ppc.h (PPC_OPCODE_A2): Rename from PPC_OPCODE_PPCA2. opcodes/ * ppc-opc.c (PPCA2): Use renamed mask PPC_OPCODE_A2. * ppc-dis.c (ppc_opts): Likewise. Rename "ppca2" to "a2".
* * new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N.Corinna Vinschen2009-09-304-74/+86
| | | | | | | | | | * pathnames.sgml (pathnames-unusual): Ditto. * setup2.sgml (setup-locale-ov): Change description according to latest changes. (setup-locale-how): Rewrite. (setup-locale-console): Enable section again. Change to reflect recent changes. (setup-locale-problems): Change to reflect recent changes.
* * fhandler_console.cc (beep): Move up to avoid forward declaration.Corinna Vinschen2009-09-302-18/+35
| | | | | (fhandler_console::read): Just beep on characters invalid in current charset. Add comment.
* * syscalls.cc (rename): Fix regression in rename("dir","d/").Eric Blake2009-09-302-11/+14
|
* 2009-09-29 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2009-09-293-2/+12
| | | | | | | | Sync from gcc: 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.ac: Update minimum MPC version to 0.7. * configure: Regenerate.
* Make MinGW printf() "%p" format compatible with MSVCRT scanf().Keith Marshall2009-09-292-2/+28
|
* * libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as localeCorinna Vinschen2009-09-292-3/+19
| | | | prefix. Add some words to documentation.
* * libc/stdlib/sb_charsets.c: Throughout, translate undefinedCorinna Vinschen2009-09-292-78/+83
| | | | characters to their corresponding Windows Unicode value.
* bfdNick Clifton2009-09-296-0/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (ALL_MACHINES): Add cpu-rx.lo. (ALL_MACHINES_CFILES): Add cpu-rx.c. (BFD32_BACKENDS): Add elf32-rx.lo. (BFD32_BACKENDS_CFILES): Add elf32-rx.c. * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx. Export bfd_rx_arch. (bfd_archures_list): Add bfd_rx_arch. * config.bfd: Add entry for rx-*-elf. * configure.in: Add entries for bfd_elf32_rx_le_vec and bfd_elf32_rx_be_vec. * reloc.c: Add RX relocations. * targets.c: Add RX target vectors. * Makefile.in: Regenerate. * bfd-in2.h: Regenerate. * configure: Regenerate. * libbfd.h: Regenerate. * cpu-rx.c: New file. * elf32-rx.c: New file. binutils * readelf.c: Add support for RX target. * MAINTAINERS: Add DJ and NickC as maintainers for RX. gas * Makefile.am: Add RX target. * configure.in: Likewise. * configure.tgt: Likewise. * read.c (do_repeat_with_expander): New function. * read.h: Provide a prototype for do_repeat_with_expander. * doc/Makefile.am: Add RX target documentation. * doc/all.texi: Likewise. * doc/as.texinfo: Likewise. * Makefile.in: Regenerate. * NEWS: Mention support for RX architecture. * configure: Regenerate. * doc/Makefile.in: Regenerate. * config/rx-defs.h: New file. * config/rx-parse.y: New file. * config/tc-rx.h: New file. * config/tc-rx.c: New file. * doc/c-rx.texi: New file. gas/testsuite * gas/rx: New directory. * gas/rx/*: New set of test cases. * gas/elf/section2.e-rx: New expected output file. * gas/all/gas.exp: Add support for RX target. * gas/elf/elf.exp: Likewise. * gas/lns/lns.exp: Likewise. * gas/macros/macros.exp: Likewise. include * dis-asm.h: Add prototype for print_insn_rx. include/elf * rx.h: New file. include/opcode * rx.h: New file. ld * Makefile.am: Add rules to build RX emulation. * configure.tgt: Likewise. * NEWS: Mention support for RX architecture. * Makefile.in: Regenerate. * emulparams/elf32rx.sh: New file. * emultempl/rxelf.em: New file. opcodes * Makefile.am: Add RX files. * configure.in: Add support for RX target. * disassemble.c: Likewise. * Makefile.in: Regenerate. * configure: Regenerate. * opc2c.c: New file. * rx-decode.c: New file. * rx-decode.opc: New file. * rx-dis.c: New file.
* * fhandler_socket.cc (fhandler_socket::recv_internal): Always callCorinna Vinschen2009-09-292-1/+6
| | | | WSARecv on SOCK_STREAM sockets.
* 2009-09-28 Michael Eager <eager@eagercon.com>Jeff Johnston2009-09-2825-0/+6064
| | | | | | | | | | | | | | | * configure.in: Add microblaze-*-*. * configure: Add microblaze-*-* (not regenerated.) * microblaze: NEW microblaze target directory. * microblaze/configure.in: NEW. * microblaze/configure: Generate. * microblaze/Makefile.in: NEW. * microblaze/{crt0.S, crt1.S, crt2.S, crt3.S, crt4.S, crtinit.S}: NEW. * microblaze/{pgcrtinit.S, _program_clean.S, _program_init.S, sbrk.c, sim-crtinit.S, sim-pgcrtinit.S, timer.c, _exception_handler.S, _hw_exception_handler.S, _interrupt_handler.S, xil_malloc.c, nnxil_printf.c, xil_sbrk.c: NEW. * microblaze/xilinx.ld: NEW.