summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.Corinna Vinschen2009-10-202-45/+78
|
* * registry.cc (reg_key::get_int): Add alternative implementationCorinna Vinschen2009-10-203-10/+80
| | | | | | | | taking WCHAR strings. (reg_key::set_int): Ditto. (reg_key::get_string): Ditto. (reg_key::set_string): Ditto. * registry.h (struct reg_key): Add prototypes for added methods.
* * smallprint.cc (__small_vsprintf): Simplify UNICODE string handlingCorinna Vinschen2009-10-202-9/+9
| | | | and allow empty strings.
* * fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a statusCorinna Vinschen2009-10-202-3/+11
| | | | code STATUS_NOT_SUPPORTED. Add matching comment.
* * syscalls.cc (internal_setlocale): Only convert $PATH if there is aCorinna Vinschen2009-10-192-7/+19
| | | | $PATH.
* merge from gccDJ Delorie2009-10-192-0/+13
|
* * spawn.cc (av::fixup): Treat non-readable, but executable files asCorinna Vinschen2009-10-192-1/+17
| | | | Cygwin executables.
* * uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, ifCorinna Vinschen2009-10-182-1/+6
| | | | not in a setuid condition.
* * z80.h: Store alignment requirement in section header, to allowArnold Metselaar2009-10-172-0/+14
| | | | ld to preserve alignment. Some code was copied from ti.h.
* merge from gccDJ Delorie2009-10-152-0/+6
|
* * cygpath.cc (get_special_folder): Fetch path as WCHAR and convertCorinna Vinschen2009-10-152-25/+44
| | | | | | | using my_wcstombs. (get_user_folder): Remove. (do_sysfolders): Use get_special_folder instead of get_user_folder. Fetch system paths as WCHAR and convert using my_wcstombs.
* * faq-setup.xml (faq.setup.disk-space): Fix URL pointing toCorinna Vinschen2009-10-152-1/+6
| | | | clean_setup.pl script.
* * libc/include/wchar.h (struct tm0: Declare as incomplete type.Corinna Vinschen2009-10-152-0/+8
|
* * libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporaryCorinna Vinschen2009-10-152-0/+11
| | | | exception for KOI8 charsets.
* include/Alan Modra2009-10-142-3/+9
| | | | | | | | | | * bfdlink.h (enum bfd_link_common_skip_ar_symbols): Rename from bfd_link_common_skip_ar_aymbols. (struct bfd_link_info): Here too. bfd/ * aoutx.h (aout_link_check_ar_symbols): Typo fix. ld/ * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
* Consistently use va_end.Eric Blake2009-10-146-44/+98
| | | | | | | | * external.cc (cygwin_internal): Use va_end. * fork.cc (child_copy): Likewise. * libc/bsdlib.cc (warn, warnx, err, errx): Likewise. * pinfo.cc (commune_request): Likewise. * strace.cc (strace::prntf, strace_printf): Likewise.
* * libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constantsEric Blake2009-10-142-35/+70
| | | | new to POSIX 2008.
* 2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>Jeff Johnston2009-10-132-9/+9
| | | | | | * libc/include/sys/signal.h: Include <sys/types.h> always. [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per standards.
* * 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.