Corinna Vinschen
959684bf05
* fhandler_random.cc (fhandler_dev_random::lseek): Allow negative
...
dummy file positions as on Linux.
2009-10-23 09:22:14 +00:00
Jeff Johnston
3a2f070f31
2009-10-20 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Don't set -O2 flag in newlib_cflags. Leave
that to CFLAGS.
* acinclude.m4: Don't reset CFLAGS before calling _AC_PROG_CC_G
as it sets the same flags as we are using.
* aclocal.m4: Regenerated.
* configure: Ditto.
* Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* iconvdata/Makefile.in: Ditto.
* doc/aclocal.m4: Ditto.
* doc/configure: Ditto.
* doc/Makefile.in: Ditto.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/Makefile.in: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*configure: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*configure: Ditto.
2009-10-20 22:44:28 +00:00
Jeff Johnston
1e1b6f8003
2009-10-16 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag
if not __STRICT_ANSI__ or stdc version C99 or greater.
* libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check
for fseeko and ftello prototypes.
2009-10-20 16:44:11 +00:00
Corinna Vinschen
aa0937c308
* cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.
2009-10-20 15:26:33 +00:00
Corinna Vinschen
a4f31f1b1b
* registry.cc (reg_key::get_int): Add alternative implementation
...
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.
2009-10-20 14:54:47 +00:00
Corinna Vinschen
c94a1006c6
* smallprint.cc (__small_vsprintf): Simplify UNICODE string handling
...
and allow empty strings.
2009-10-20 14:52:43 +00:00
Corinna Vinschen
cbea3f7d93
* fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a status
...
code STATUS_NOT_SUPPORTED. Add matching comment.
2009-10-20 10:12:05 +00:00
Corinna Vinschen
8d648dc555
* syscalls.cc (internal_setlocale): Only convert $PATH if there is a
...
$PATH.
2009-10-19 19:47:15 +00:00
DJ Delorie
9d52f5c21c
merge from gcc
2009-10-19 18:14:24 +00:00
Corinna Vinschen
b3f5fb3718
* spawn.cc (av::fixup): Treat non-readable, but executable files as
...
Cygwin executables.
2009-10-19 08:33:00 +00:00
Corinna Vinschen
a6f3658d44
* uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, if
...
not in a setuid condition.
2009-10-18 09:07:13 +00:00
Arnold Metselaar
445d5e8159
* z80.h: Store alignment requirement in section header, to allow
...
ld to preserve alignment. Some code was copied from ti.h.
2009-10-17 18:23:12 +00:00
DJ Delorie
1612945c43
merge from gcc
2009-10-15 17:03:34 +00:00
Corinna Vinschen
175e39bb7f
* cygpath.cc (get_special_folder): Fetch path as WCHAR and convert
...
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.
2009-10-15 11:40:02 +00:00
Corinna Vinschen
e710872955
* faq-setup.xml (faq.setup.disk-space): Fix URL pointing to
...
clean_setup.pl script.
2009-10-15 08:46:58 +00:00
Corinna Vinschen
1b13009b2a
* libc/include/wchar.h (struct tm0: Declare as incomplete type.
2009-10-15 08:23:27 +00:00
Corinna Vinschen
597441d79b
* libc/locale/nl_langinfo.c (nl_langinfo): Add Cygwin-specific temporary
...
exception for KOI8 charsets.
2009-10-15 08:08:50 +00:00
Alan Modra
776b157219
include/
...
* 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.
2009-10-14 05:54:28 +00:00
Eric Blake
4cd31fc8f9
Consistently use va_end.
...
* 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.
2009-10-14 04:17:05 +00:00
Eric Blake
e4ba1cf29e
* libc/include/sys/unistd.h: Add _PC*, _CS*, and _SC* constants
...
new to POSIX 2008.
2009-10-14 04:15:25 +00:00
Jeff Johnston
81c59927a9
2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
...
* libc/include/sys/signal.h: Include <sys/types.h> always.
[__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
standards.
2009-10-13 17:31:49 +00:00
Corinna Vinschen
bc3aedd061
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2009-10-13 12:08:22 +00:00
Corinna Vinschen
0191627a26
* include/sys/cygwin.h: Add new cygwin_getinfo_type
...
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.
2009-10-13 10:23:31 +00:00
Ralf Wildenhues
6c41e710c9
Fix toplevel 'config.status --recheck' for --enable-lto.
...
/:
* configure.ac: Add 'lto' to enable_languages, not
new_enable_languages, and only if not already present.
* configure: Regenerate.
2009-10-13 03:32:18 +00:00
Eric Blake
b8a35083c6
Improve clock_gettime and utimensat resolution.
...
* 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.
2009-10-13 02:26:33 +00:00
Corinna Vinschen
2fc007681e
* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING
...
and CW_SETERRNO cases.
2009-10-12 19:26:08 +00:00
Corinna Vinschen
9e278ffd2c
* kill.cc (main): Skip to PID loop on invalid option to handle
...
negative pids there.
2009-10-12 16:01:44 +00:00
Corinna Vinschen
d358c9e9b0
* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk
...
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-12 11:57:29 +00:00
Jeff Johnston
2072888e66
2009-10-09 Dave Korn <dave.korn@artimi.com>
...
* libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when
defining struct timeval.
2009-10-09 18:43:12 +00:00
DJ Delorie
84552b989d
merge from gcc
2009-10-09 16:17:35 +00:00
Corinna Vinschen
220f363d20
* pathnames.sgml (pathnames-specialchars): Add control chars to the
...
list. Explain backslash exception.
2009-10-09 11:19:18 +00:00
Corinna Vinschen
9fa1c6420b
* path.cc (tfx_chars): Convert all ASCII control characters except
...
ASCII NUL as well. Change layout to make the conversions more clear.
Add comment.
2009-10-09 11:17:17 +00:00
Corinna Vinschen
1441f6a3d1
* include/cygwin/config.h (DEFAULT_LOCALE): Define as "C.UTF-8".
2009-10-09 08:36:21 +00:00
Corinna Vinschen
ec4e5025e9
* libc/locale/locale.c (DEFAULT_LOCALE): New define.
...
(__default_locale): New global variable set to the default locale.
(__get_locale_env): Return __default_locale rather than fixed "C".
2009-10-09 08:25:28 +00:00
Jeff Johnston
a3a62ae7a5
2009-10-08 Jeff Johnston <jjohnstn@redhat.com>
...
* 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 16:44:10 +00:00
Jeff Johnston
b1da4d8277
2009-10-08 Jie Zhang <jie.zhang@analog.com>
...
* bfin/Makefile.in (basiccrt.o, basiccrts.o): Use
-mcpu=bf532-any for the default multilib.
2009-10-08 16:35:34 +00:00
Jeff Johnston
85191fc5aa
2009-10-08 Eric Blake <ebb9@byu.net>
...
* libc/include/getopt.h (__getopt_r, __getopt_long_r)
(__getopt_long_only_r): Protect declarations, to avoid compiler
warning.
2009-10-08 16:26:28 +00:00
Christopher Faylor
5391a40c89
* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived
...
if we're exiting.
2009-10-08 15:56:14 +00:00
Eric Blake
80636211bc
* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
2009-10-08 11:13:45 +00:00
Corinna Vinschen
8bd7bd3bc0
* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale
...
charset on Cygwin.
2009-10-07 16:45:23 +00:00
Charles Wilson
dc4e4aabba
Support pseudo-reloc version 2
2009-10-07 15:47:38 +00:00
Corinna Vinschen
dfbf36f8db
* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token
...
as well.
2009-10-07 08:20:49 +00:00
Corinna Vinschen
b4311a9067
* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare.
...
* 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.
2009-10-07 07:52:30 +00:00
Ian Lance Taylor
bd45d6fa76
Sync with gcc repository.
2009-10-07 05:57:49 +00:00
DJ Delorie
84e91636f7
merge from gcc
2009-10-07 02:57:27 +00:00
Charles Wilson
c8ee587a8e
Add cygwin wrapper for ExitProcess and TerminateProcess.
2009-10-06 21:51:17 +00:00
Ian Lance Taylor
960bdc0e74
Merge from gcc repository.
2009-10-06 20:14:06 +00:00
Christopher Faylor
a12518a37c
* exceptions.cc: Move global variable sigExeced...
...
* globals.cc: here.
* pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded
declaration.
2009-10-06 03:39:38 +00:00
Dave Korn
3772467948
* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
2009-10-04 17:48:05 +00:00
Corinna Vinschen
ef35acca22
* include/winbase.h (CreateRestrictedToken): Declare for >= Win 2000.
...
_WIN32_WINNT >= 0x0500.
(DISABLE_MAX_PRIVILEGE, SANDBOX_INERT, LUA_TOKEN,
WRITE_RESTRICTED): Define.
(IsTokenRestricted): Declare for >= Win 2000.
2009-10-04 12:28:08 +00:00