Thomas Fitzsimmons
8d9112f2f3
* libc/include/langinfo.h: New file.
...
* libc/include/wchar.h: Likewise.
* libc/include/sys/syslimits.h: Likewise.
* libc/locale/fix_grouping.c: Likewise.
* libc/locale/ldpart.c: Likewise.
* libc/locale/ldpart.h: Likewise.
* libc/locale/lmessages.c: Likewise.
* libc/locale/lmessages.h: Likewise.
* libc/locale/lmonetary.c: Likewise.
* libc/locale/lmonetary.h: Likewise.
* libc/locale/lnumeric.c: Likewise.
* libc/locale/lnumeric.h: Likewise.
* libc/locale/nl_langinfo.3: Likewise.
* libc/locale/nl_langinfo.c: Likewise.
* libc/locale/timelocal.c: Likewise.
* libc/locale/timelocal.h: Likewise.
* libc/stdlib/btowc.c: Likewise.
* libc/stdlib/mbrlen.c: Likewise.
* libc/stdlib/mbrtowc.c: Likewise.
* libc/stdlib/mbsinit.c: Likewise.
* libc/stdlib/mbsrtowcs.c: Likewise.
* libc/stdlib/wcrtomb.c: Likewise.
* libc/stdlib/wcsrtombs.c: Likewise.
* libc/stdlib/wctob.c: Likewise.
* libc/sys/linux/prof-freq.c: Likewise.
* libc/sys/linux/profile.c: Likewise.
* libc/sys/linux/machine/i386/dl-procinfo.c: Likewise.
* libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
* libc/include/stdlib.h: Change re-entrant functions to take
mbstate_t pointers.
* libc/include/sys/_types.h: Define _mbstate_t.
* libc/include/sys/config.h (MB_LEN_MAX): New macro.
* libc/include/sys/errno.h (EILSEQ): New error code.
* libc/include/sys/reent.h: Include wchar.h. Change reentrant
structure to use mbstate_t.
* libc/locale/Makefile.am (LIB_SOURCES): Add new files.
* libc/machine/powerpc/vfprintf.c: Use mbstate_t.
* libc/machine/powerpc/vfscanf.c: Likewise.
* libc/stdio/getdelim.c: Reallocate buffer only when necessary.
* libc/stdio/vfprintf.c: Likewise.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdlib/Makefile.am (LIB_SOURCES): Add new files.
* libc/stdlib/mblen.c: Use mbstate_t.
* libc/stdlib/mblen_r.c: Likewise.
* libc/stdlib/mbstowcs.c: Likewise.
* libc/stdlib/mbstowcs_r.c: Likewise.
* libc/stdlib/mbtowc.c: Likewise.
* libc/stdlib/mbtowc_r.c: Likewise.
* libc/stdlib/wcstombs.c: Likewise.
* libc/stdlib/wcstombs_r.c: Likewise.
* libc/stdlib/wctomb_r.c: Likewise.
* libc/sys/linux/Makefile.am (LIB_SOURCES): Add prof-freq.c and
profile.c.
* libc/sys/linux/machine/i386/Makefile.am (LIB_SOURCES): Add
dl-procinfo.c.
* libc/sys/linux/sys/errno.h (EILSEQ): New error code.
* libc/sys/linux/sys/types.h (off_t): Define type.
* testsuite/newlib.locale/UTF-8.c: Change locale name from UTF-8
to C-UTF-8.
* testsuite/newlib.locale/UTF-8.exp: Likewise.
2002-08-23 01:56:05 +00:00
Christopher Faylor
1c5dcf3b0a
* dll.sgml: Remove indirect reference to older gccs.
2002-08-21 16:02:17 +00:00
Christopher Faylor
d3106bef0a
* dll.sgml: Refine dll build instructions.
...
* ntsec.html: Correct some typos.
2002-08-21 15:45:04 +00:00
Christopher Faylor
62012a3f31
fix some glitches
2002-08-21 15:42:18 +00:00
Earnie Boyd
69f710846f
* include/sys/param.h: New File.
2002-08-21 12:49:56 +00:00
Earnie Boyd
811b5b0ae4
* include/_mingw.h: Increment version to 2.2.
...
Makefile.in: Ditto.
2002-08-21 12:18:28 +00:00
Earnie Boyd
39d3651cad
* include/commctrl.h (NMCUSTOMDRAW): Fix lItemlParam.
...
Thanks to: "Phil Dempster" <p_dempster@yahoo.co.uk>.
2002-08-21 12:07:51 +00:00
Danny Smith
cfb5d4db12
* include/math.h (asm): Change to __asm__ throughout.
...
Expose ISO C99 functions if __GLIBCPP__.
(hypotf): Use hypot, not _hypot in stub..
2002-08-20 23:26:11 +00:00
Danny Smith
aabc7d585a
* include/tchar.h: Ansi-fy another comment.
2002-08-20 23:08:14 +00:00
Danny Smith
b9b4e3ca9d
* include/tchar.h: Ansi-fy comment.
2002-08-20 23:01:42 +00:00
Danny Smith
02d46a6f8a
* test_headers.c : New file.
...
* Makefile.in (test_headers): New target, using it,
(SRCDIST_FILES): Distribute it.
2002-08-20 22:56:59 +00:00
Jeff Johnston
fe47ea33a9
2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* libc/stdlib/mallocr.c: #include windows.h on Win32.
(AlignPage): Continue macro on next line.
2002-08-20 15:29:30 +00:00
Alexandre Oliva
48a289565c
* Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
...
* configure.in (CC_FOR_TARGET, GCJ_FOR_TARGET, CXX_FOR_TARGET,
CXX_FOR_TARGET_FOR_RECURSIVE_MAKE): Likewise.
2002-08-20 03:04:03 +00:00
Jeff Johnston
ada73509c0
2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/include/pthread.h: New file.
2002-08-20 02:16:12 +00:00
Jeff Johnston
64b5e8f2bb
2002-08-19 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/types.h: Support __need_inttypes macro
that only sets the __intxx and __uintxx types.
* libc/machine/powerpc/Makefile.am: Add stdlib to include directories
to get mprec.h.
* libc/machine/powerpc/Makefile.in: Regenerated.
* libc/machine/powerpc/vfprintf.c: Fix state variable type.
* libc/machine/powerpc/vfscanf.c: Fix state variable type. Remove
redundant fixed-point conversion prototypes.
* libc/machine/powerpc/machine/stdlib.h[__SPE__]: Include <sys/types.h>
after setting __need_inttypes.
2002-08-20 01:40:39 +00:00
Danny Smith
9a5498d08b
* include/ws2spi.h: Modify comment about being part of
...
mingw32 package.
(winsock2.h): Change "" to <>.
2002-08-20 00:59:23 +00:00
Danny Smith
73078ed64d
2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ws2spi.h: New file.
* lib/test.c: Include ws2spi.h.
2002-08-20 00:48:23 +00:00
Danny Smith
c79f8453b0
* include/winsock2.h (WSAIsBlocking,WSAUnhookBlockingHook,
...
WSASetBlockingHook,WSACancelBlockingCall): Expose deprecated
functions.
2002-08-20 00:36:09 +00:00
Elena Zannoni
8d16a989fb
2002-08-19 Elena Zannoni <ezannoni@redhat.com>
...
From matthew green <mrg@redhat.com>
* ppc.h (PPC_OPCODE_SPE): New opcode flag for Powerpc e500
instructions.
(PPC_OPCODE_ISEL, PPC_OPCODE_BRLOCK, PPC_OPCODE_PMR,
PPC_OPCODE_CACHELCK, PPC_OPCODE_RFMCI): New opcode flags for the
e500x2 Integer select, branch locking, performance monitor,
cache locking and machine check APUs, respectively.
(PPC_OPCODE_EFS): New opcode type for efs* instructions.
(PPC_OPCODE_CLASSIC): New opcode type for Classic PowerPC instructions.
2002-08-19 20:55:48 +00:00
Christopher Faylor
3bacc423cf
* pinfo.h (pinfo::remember): Arrange for destructor call if proc_subproc
...
returns error.
* sigproc.cc (zombies): Store 1 + total zombies since proc_subproc uses
NZOMBIES element.
2002-08-19 14:59:27 +00:00
Corinna Vinschen
34f7289475
* pwdgrp.h (pwdgrp_read::pwdgrp_read): Remove.
...
(pwdgrp_read::~pwdgrp_read): Ditto.
(pwdgrp_read::open): Reset fh to NULL instead of INVALID_HANDLE_VALUE.
(pwdgrp_read::close): Ditto.
2002-08-19 11:27:18 +00:00
Christopher Faylor
c060edba34
* fhandler.h (fhandler_console::send_winch_maybe): New method.
...
* fhandler_console.cc (set_console_state_for_spawn): Remove if 0'ed code.
(fhandler_console::send_winch_maybe): Define new method.
(fhandler_console::read): Use send_winch_maybe where appropriate.
(fhandler_console::init): Just call all tcsetattr rather than output_tcsetattr.
* select.cc (peek_console): Reorganize so that send_winch_maybe is called for
everything but keyboard input.
2002-08-19 04:43:58 +00:00
Christopher Faylor
a94b60cea4
* libc/include/sys/unistd.h: Add getsid declaration for cygwin.
2002-08-18 06:08:39 +00:00
Christopher Faylor
8dca9e2302
* perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.
...
(vfork_save::restore_pid): New method.
(vfork_save::restore_exit): New method.
* fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to
"parent". Use exitval field if exiting but never created a new process.
* syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that
pid will be allocated (UGLY!).
(getsid): New function.
* dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a
vfork.
* spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for
returning from vfork.
* cygwin.din: Export getsid.
* include/cygwin/version.h: Bump api minor number.
* malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
2002-08-18 05:49:26 +00:00
Christopher Faylor
d17ba05c1c
* cygmalloc.h (MORECORE_CANNOT_TRIM): Define.
2002-08-18 04:14:59 +00:00
Christopher Faylor
0428827b0e
* sigproc.cc (sigCONT): Define.
...
* sigproc.h (sigCONT): Declare.
(wait_sig): Create sigCONT event here.
* exceptions.cc (sig_handle_tty_stop): Wait for sigCONT event rather than
stopping thread.
(sig_handle): Set sigCONT event as appropriate on SIGCONT rather than calling
ResumeThread.
2002-08-18 04:13:57 +00:00
Christopher Faylor
a80add95d9
* malloc.cc: Update to 2.7.2.
...
* malloc_wrapper.cc (malloc_init): Call user level mallocs to determine if the
malloc has been wrapped.
2002-08-18 03:28:52 +00:00
Christopher Faylor
aaac1d9e19
* Makefile.in: Change COMPILE_C* definitions.
2002-08-17 17:12:24 +00:00
Danny Smith
894d685ff7
* include/winuser.h (CURSOR_SHOWING) Add define.
2002-08-17 09:41:52 +00:00
Jeff Johnston
29e17a863d
2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/config.h[__PPC__][__SPE__]: Set
_LONG_DOUBLE to double.
2002-08-17 06:10:33 +00:00
Jeff Johnston
936b520f8e
2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
...
* configure.host: Add powerpc*-*-eabispe* configuration.
* libc/machine/powerpc/atosfix16.c: New fixed-point conversion file.
* libc/machine/powerpc/atosfix32.c: Ditto.
* libc/machine/powerpc/atosfix64.c: Ditto.
* libc/machine/powerpc/atoufix16.c: Ditto.
* libc/machine/powerpc/atoufix32.c: Ditto.
* libc/machine/powerpc/atoufix64.c: Ditto.
* libc/machine/powerpc/fix64.h: Ditto.
* libc/machine/powerpc/simdldtoa.c: Ditto.
* libc/machine/powerpc/strtosfix16.c: Ditto.
* libc/machine/powerpc/strtosfix32.c: Ditto.
* libc/machine/powerpc/strtosfix64.c: Ditto.
* libc/machine/powerpc/strtoufix16.c: Ditto.
* libc/machine/powerpc/strtoufix32.c: Ditto.
* libc/machine/powerpc/strtoufix64.c: Ditto.
* libc/machine/powerpc/ufix64toa.c: Ditto.
* libc/machine/powerpc/configure.in: Add check for
powerpc*-eabispe and add fixed-point conversion functions.
* libc/machine/powerpc/configure: Regenerated.
* libc/machine/powerpc/vfprintf.c[__SPE__]: Add support for
%r and %R format specifiers which handle fixed-point data.
* libc/machine/powerpc/vfscanf.c[__SPE__]: Ditto.
* libc/machine/powerpc/machine/stdlib.h[__SPE__]: Add fixed-point
function prototypes.
2002-08-17 05:57:20 +00:00
Jeff Johnston
ad5527663e
2002-08-17 Jeff Johnston <jjohnstn@redhat.com>
...
* Makefile.am: Move cmath stuff into libc/sys/linux.
* Makefile.in: Regenerated.
* configure.host: Default -DMB_CAPABLE for x86-linux.
* libc/include/reent.h: Define _sbrk to take signed int argument.
* libc/include/sys/unistd.h: Ditto for _sbrk_r and sbrk.
* libc/locale/locale.c[MB_CAPABLE]: Add LC_MESSAGES support and
make locale name checking more efficient. Also allow "C-ISO-8859-1"
locale for LC_CTYPE and LC_MESSAGES.
* libc/reent/sbrkr.c: Change prototype to take ptrdiff_t.
* libc/sys/linux/brk.c: Change sbrk prototype.
* libc/sys/linux/include/time.h: Remove Cygwin stuff and
include <sys/features.h>.
(CLOCK_THREAD_CPUTIME): Renamed to CLOCK_THREAD_CPUTIME_ID.
(CLOCK_PROCESS_CPUTIME): Renamed to CLOCK_PROCESS_CPUTIME_ID.
* libc/sys/linux/sys/cdefs.h: Replace with glibc sys/cdefs.h
with a few local additions.
* libc/sys/linux/sys/features.h: New file.
* libc/sys/linux/sys/unistd.h: Change _sbrk_r and sbrk prototypes
to take signed argument.
* libc/syscalls/syssbrk.c: Change sbrk, _sbrk_r, and _sbrk
prototypes to take signed size argument.
2002-08-17 05:19:18 +00:00
Danny Smith
9e0f101fa9
* include/winerror.h: Cast OLE error codes to HRESULT.
2002-08-17 04:42:25 +00:00
Christopher Faylor
0763513767
fix typo
2002-08-17 02:16:25 +00:00
Christopher Faylor
b3c12fb401
* Makefile.in: Change COMPILE_C* definitions.
2002-08-17 02:15:05 +00:00
Thomas Fitzsimmons
d3bd3632ac
* libc/sys/linux/cmath: New directory.
...
* libc/sys/linux/include/cmathcalls.h: New file.
* libc/sys/linux/include/complex.h: New file.
* libc/sys/linux/machine/i386/huge_val.h: New file
* libm/math/w_sincos.c: New file
* libm/math/wf_sincos.c: New file
* libm/mathfp/s_sincos.c: New file
* libm/mathfp/sf_sincos.c: New file
* Makefile.am (LIBC_OBJECTLISTS): Add cmath/objectlist.awk.in.
* libc/include/math.h: Add sincos and sincosf declarations.
* libc/sys/linux/Makefile.am (SUBDIRS): Add cmath.
(SUBLIBS): Likewise.
* libc/sys/linux/configure.in (AC_OUTPUT): Add cmath.
* libm/math/Makefile.am (src): Add w_sincos.c.
(fsrc): Add wf_sincos.c.
* libm/mathfp/Makefile.am (src): Add s_sincos.c
(fsrc): Add sf_sincos.c.
2002-08-16 21:29:45 +00:00
Christopher Faylor
e0f61e607c
Missed this commit in last checkin.
2002-08-16 19:50:22 +00:00
Christopher Faylor
98c9c4569b
* winsup.h: Remove malloc_*lock functions.
2002-08-16 19:49:54 +00:00
Christopher Faylor
c7e2187a60
* Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. Use
...
-fomit-frame-pointer for malloc.o compilation.
* malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more
malloc functions. Eliminate export_* calls. Just use straight malloc names.
Remove unused argument from malloc lock functions.
* cygwin.din: Just export straight malloc names. Add malloc_stats,
malloc_trim, malloc_usable_size, mallopt, memalign, valloc.
* dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries.
* fork.cc (fork_parent): Remove unused argument from malloc_lock argument.
* malloc.cc: New file. Doug Lea's malloc v2.7.1.
* cygmalloc.h: New file.
* include/cygwin/version.h: Bump API_MINOR.
* sync.h (muto::acquire): Use appropriate number for regparm attribute.
(muto::reset): Ditto.
(muto::release): Ditto.
2002-08-16 19:41:39 +00:00
Christopher Faylor
775275aac7
* exceptions.cc (interrupt_setup): Ensure that the previous signal mask is
...
properly saved.
2002-08-16 19:07:28 +00:00
Christopher Faylor
a54ad580fc
* dcrt0.cc: Modify define for CYGWIN_GUARD.
...
(alloc_stack_hard_way): Just use CYGWIN_GUARD in VirtualAlloc call.
2002-08-15 20:34:49 +00:00
Christopher Faylor
bb55ce4cc1
present tense
2002-08-15 20:24:16 +00:00
Christopher Faylor
052e90e9a9
make comment more accurate.
2002-08-15 15:46:27 +00:00
Alan Modra
bc314c9ef1
* i370.h: Define relocs using reloc-macros.h.
2002-08-15 12:19:14 +00:00
Danny Smith
e893abd3c6
* include/wincrypt.h (ALG_*): Add defines.
...
(CALG_*): Ditto.
(CRYPT_*): Ditto.
(PP_*): Ditto.
(PROV_*): Ditto.
(PRIVATEKEYBLOB): Add define.
2002-08-14 23:47:46 +00:00
Earnie Boyd
2c3ef6355b
* include/unistd.h: Add include of process.h.
2002-08-14 21:08:43 +00:00
Earnie Boyd
99a3b239eb
* include/shlobj.h (SHGetFolderPath): Add define.
...
* lib/shell32.def (SHGetSpecialFolderPath): Add export.
(SHGetFolderPath): Ditto.
2002-08-14 16:43:40 +00:00
Stephane Carrez
c182cc28a5
* m68hc11.h (M6812_OP_PAGE): Define to identify call operand.
...
(M68HC12_BANK_VIRT, M68HC12_BANK_MASK, M68HC12_BANK_BASE,
M68HC12_BANK_SHIFT, M68HC12_BANK_PAGE_MASK): Define for 68HC12
memory banks.
(M6811_OC1M5, M6811_OC1M4, M6811_MODF): Fix value.
2002-08-13 19:00:40 +00:00
Christopher Faylor
403985a498
* regtool.cc (find_key): Add support for custom key separator.
...
(usage): Document it.
2002-08-13 15:37:32 +00:00
Stephane Carrez
9b6947db55
* m68hc11.h (E_M68HC12_BANKS, E_M68HC11_I32, E_M68HC11_F64,
...
EF_M68HC11_ABI): Define for ABI specification.
(STO_M68HC12_FAR, STO_M68HC12_INTERRUPT): Symbol flags for
linker and debugger.
(R_M68HC11_24, R_M68HC11_LO16, R_M68HC11_PAGE): New relocs.
(R_M68HC11_RL_JUMP, R_M68HC11_RL_GROUP): New reloc for linker
relaxation.
2002-08-13 13:02:25 +00:00