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
Corinna Vinschen
960624f47e
* syscalls.cc (internal_setlocale): Add comment.
2009-10-04 11:32:07 +00:00
Dave Korn
26f19ec1ad
* faq-using.xml (faq.using.bloda): Add Lenovo IPS Core Service.
2009-10-03 13:33:18 +00:00
Corinna Vinschen
6ff28fc3b1
* libc/stdlib/mbtowc_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
...
value encoding.
* libc/stdlib/wctomb_r.c (__utf8_mbtowc): Allow CESU-8 surrogate
value decoding.
2009-10-03 08:51:07 +00:00
DJ Delorie
9c47bbb6e9
merge from gcc
2009-10-02 18:22:51 +00:00
Corinna Vinschen
0ca6c6b802
* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just
...
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.
2009-10-02 14:58:10 +00:00
Peter Bergner
0e03c708be
gas/
...
* 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.
2009-10-02 14:42:42 +00:00
Alan Modra
8ddebae795
include/aout/
...
* 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.
2009-10-02 14:40:41 +00:00
Christopher Faylor
a37e07482c
* mkpasswd.c: Properly define __progname as __declspec(dllimport).
...
* mkgroup.c: Ditto.
2009-10-02 13:49:39 +00:00
Corinna Vinschen
45162575d2
* setup2.sgml (setup-locale-ov): Fix typo in C+charset example.
...
Rephrase how the locale environment variables are evaluated.
2009-10-02 12:35:52 +00:00