Corinna Vinschen
dc3d6d9093
* libc/stdio/fflush.c (_fflush_r): Store old errno to check for
...
low-level seek error condition. Restore old errno in case of
success. Don't use new position after seek as error condition,
rather check for return value of -1 and errno. Handle EINVAL
just like ESPIPE. Only set fp->_offset if errno is 0.
2009-10-30 08:26:41 +00:00
Charles Wilson
c16cd85665
Honor DESTDIR for winsup/mingw and winsup/w32api
2009-10-29 21:53:47 +00:00
Corinna Vinschen
d952e44c44
* cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWIN
...
environment variable.
(dump_sysinfo): Don't tweak CYGWIN environment variable, just call
pretty_id once.
2009-10-28 11:41:27 +00:00
Corinna Vinschen
757ee9af8b
* pathnames.sgml: Add limitation of case sensitivity with CreateProcess.
2009-10-28 10:11:22 +00:00
Corinna Vinschen
641ba32982
* new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" default
...
and the default locale "C.UTF-8".
* setup2.sgml (setup-locale-ov): Ditto.
2009-10-28 10:09:54 +00:00
Nick Clifton
a861373585
* MAINTAINERS (ARM): Add myself as an ARM maintainer.
2009-10-27 10:31:06 +00:00
Charles Wilson
73ddc92062
Correct pseudo-reloc size bug wrt error messages
2009-10-26 14:50:09 +00:00
Charles Wilson
654d34dda5
Sync pseudo-reloc.c with mingw64
2009-10-26 13:47:13 +00:00
Christopher Faylor
bfead37df4
* faq-setup.xml: Fix clean_setup.pl reference.
2009-10-26 11:57:33 +00:00
Christopher Faylor
b8263d5874
* faq-setup.xml: Change clean_setup.pl reference.
2009-10-26 11:25:16 +00:00
Nick Clifton
fd6942ab42
newlib:
...
* configure.host: Add support for RX architecture.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/machine/configure.in: Likewise.
* libc/include/machine/configure: Regenerate.
* libc/machine/rx: New directory.
* libc/machine/rx/*: New files to support RX architecture.
libgloss:
* configure.in: Add support for RX sub-directory.
* configure: Regenerate.
* rx: New directory.
* rx/*: New files to support RX architecture.
2009-10-26 10:05:23 +00:00
Nick Clifton
f7e0cae24b
* arm/linux-syscalls0.S (SYSCALL0, SYSCALL3, SYSCALL6, SYSCALL4):
...
Delete Thumb definitions - the ARM versions work correctly in
Thumb mode.
2009-10-26 10:00:41 +00:00
Charles Wilson
15c59df67f
Sync pseudo-reloc.c with mingw64
2009-10-25 23:37:48 +00:00
Eric Blake
9b2b7c4a6b
Fix isalpha(0x100000001LL) and friends on 64-bit machines.
...
* libc/include/ctype.h (__ctype_lookup): New macro.
(isalpha, isupper, islower, isdigit, isxdigit, isspace, ispunct)
(isalnum, isprint, isgraph, iscntrl, isblank): Use it to fix bug
on 64-bit machines.
2009-10-24 13:24:29 +00:00
Corinna Vinschen
e83fef9d35
* fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.
2009-10-24 08:40:15 +00:00
Corinna Vinschen
1647bf67c1
* fhandler.cc (fhandler_base::open): Always create file with default
...
security descriptor and fix descriptor afterwards. Change comment to
explain why.
* security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag.
* wincap.cc: Remove has_dacl_protect throughout.
* wincap.h: Ditto.
2009-10-24 08:26:01 +00:00
Doug Evans
4c038a6101
cpu/
...
* m32c.opc (opc.h): cgen-types.h -> cgen/basic-modes.h.
cgen-ops.h -> cgen/basic-ops.h.
include/opcode/
* cgen-bitset.h: Delete, moved to ../cgen/bitset.h.
* cgen.h: Update. Improve multi-inclusion macro name.
include/cgen/
* basic-modes.h: New file. Moved here from opcodes/cgen-types.h.
* basic-ops.h: New file. Moved here from opcodes/cgen-ops.h.
* bitset.h: New file. Moved here from ../opcode/cgen-bitset.h.
Update license to GPL v3.
opcodes/
* cgen-ops.h: Delete, moved to ../include/cgen/basic-ops.h.
* cgen-types.h: Delete, moved to ../include/cgen/basic-modes.h.
* cgen-bitset.c: Update.
* fr30-desc.h: Regenerate.
* frv-desc.h: Regenerate.
* ip2k-desc.h: Regenerate.
* iq2000-desc.h: Regenerate.
* lm32-desc.h: Regenerate.
* m32c-desc.h: Regenerate.
* m32c-opc.h: Regenerate.
* m32r-desc.h: Regenerate.
* mep-desc.h: Regenerate.
* mt-desc.h: Regenerate.
* openrisc-desc.h: Regenerate.
* xc16x-desc.h: Regenerate.
* xstormy16-desc.h: Regenerate.
2009-10-24 00:17:08 +00:00
Charles Wilson
060a658fe1
Sync pseudo-reloc.c with cygwin/lib/
2009-10-23 22:19:42 +00:00
Kai Tietz
5d74ab42d5
2009-10-23 Kai Tietz <kai.tietz@onevision.com>
...
* splay-tree.h (libi_uhostptr_t): Add gcc specific
__extension__ for long long type case to silent cX9.
(libi_shostptr_t): Likewise.
2009-10-23 15:06:33 +00:00
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