Christopher Faylor
f3c7a5c457
Add initial FreeBSD version of random.c
2007-07-08 14:59:47 +00:00
Christopher Faylor
e19e357043
update copyright
2007-07-07 17:29:20 +00:00
Christopher Faylor
92eab16eed
* fhandler.h (fhandler_base::write): Remove __stdcall decoration.
...
(fhandler_pipe::write): Ditto.
(fhandler_fifo::write): Ditto.
2007-07-07 17:28:22 +00:00
Christopher Faylor
d9c0e3ec35
Preliminary change to make fifos/pipes interruptible and fifos reliable.
...
* dtable.cc (dtable::find_fifo): Eliminate definition.
* dtable.h (dtable::find_fifo): Ditto for declaration.
* fhandler.cc (fhandler_base::raw_read): Remove pipe-specific stuff.
(fhandler_base::fhandler_base): Ditto.
(fhandler_base::close): Handle overlapped I/O structure if appropriate.
(fhandler_base::dup): Ditto.
(fhandler_base::fork_fixup): Ditto.
(fhandler_base::setup_overlapped): Define new function.
(fhandler_base::destroy_overlapped): Ditto.
(fhandler_base::wait_overlapped): Ditto.
(fhandler_base::read_overlapped): Ditto.
(fhandler_base::write_overlapped): Ditto.
* fhandler.h (fhandler_base::get_overlapped): Declare new function.
(fhandler_base::setup_overlapped): Ditto.
(fhandler_base::destroy_overlapped): Ditto.
(fhandler_base::wait_overlapped): Ditto.
(fhandler_base::read_overlapped): Ditto.
(fhandler_base::write_overlapped): Ditto.
(fhandler_base::get_guard): Eliminate.
(fhandler_pipe::*): Rework to eliminate most Win9x related cruft, removing many
variables and defining a new overlapped capability.
(fhandler_fifo::*): Ditto.
(fifo_state): Declare new enum.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Remove old Win9x stuff.
Initialize overlapped handle to NULL.
(fhandler_fifo::set_use): Eliminate.
(fhandler_fifo::open_nonserver): Define.
(fhandler_fifo::open): Rework to use named pipes and overlapped I/O.
(fhandler_fifo::wait): Define new function to wait for named pipe connection.
(fhandler_fifo::read): Rework to use wait() and new overlapped I/O
functionality.
(fhandler_fifo::write): Ditto.
(fhandler_fifo::dup): Eliminate.
* pinfo.cc (commune_process): Remove fifo handling.
(_pinfo::commune_request): Ditto.
* pinfo.h (picom): Ditto.
* pipe.cc (fhandler_pipe::fhandler_pipe): Remove Win9x stuff. Initialize
overlapped handle to NULL.
(fhandler_pipe::open): Eliminate Win9x stuff.
(fhandler_pipe::set_close_on_exec): Eliminate.
(read_pipe): Eliminate.
(fhandler_pipe::close): Ditto.
(fhandler_pipe::fixup_after_exec): Ditto.
(fhandler_pipe::fixup_in_child): Ditto.
(fhandler_pipe::read): Rework to use overlapped I/O.
(fhandler_pipe::write): New function using overlapped I/O.
(fhandler_pipe::dup): Rework to eliminate Win9x stuff.
(fhandler_pipe::create_selectable): Rework to eliminate Win9x and use
overlapped I/O.
* select.cc (peek_pipe): Rework to eliminate Win9x stuff and use overlapped
I/O.
(fhandler_base::ready_for_read): Ditto.
2007-07-07 17:00:33 +00:00
Christopher Faylor
dee5588839
* path.cc (symlink_info::check_shortcut): Handle device "symlinks" specially -
...
don't posixify them.
2007-07-07 16:48:26 +00:00
Christopher Faylor
8581e92c51
* fhandler_disk_file.cc: White space.
...
* fhandler_proc.cc: Ditto.
* fhandler_virtual.cc: Ditto.
2007-07-07 16:46:35 +00:00
Christopher Faylor
7b44665a7b
* fork.cc: White space.
...
* net.cc: Ditto.
* posix_ipc.cc: Ditto.
2007-07-07 16:43:03 +00:00
Corinna Vinschen
a5a0080d9c
* times.cc (gettimeofday): Align definition to POSIX.
2007-07-06 20:09:23 +00:00
Corinna Vinschen
d2d9ce09b5
* cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.
...
* include/cygwin/version.h: Bump API minor number.
2007-07-06 20:05:44 +00:00
Corinna Vinschen
dec27025b2
* libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
...
wcstoull, _wcstol_r, _wcstoll_r, _wcstoul_r and _wcstoull_r.
* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add wcstol.c and wcstoul.c.
(EXTENDED_SOURCES): Add wcstoll.c, wcstoll_r.c, wcstoull.c and
wcstoull_r.c.
(CHEWOUT_FILES): Add .def files accordingly.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/stdlib.tex: Add documentation links for above functions.
* libc/stdlib/strtoll.c: Fix portability note.
* libc/stdlib/strtoull.c: Ditto.
* libc/stdlib/wcstol.c: New file.
* libc/stdlib/wcstoll.c: New file.
* libc/stdlib/wcstoll_r.c: New file.
* libc/stdlib/wcstoul.c: New file.
* libc/stdlib/wcstoull.c: New file.
* libc/stdlib/wcstoull_r.c: New file.
2007-07-06 20:03:28 +00:00
Corinna Vinschen
4cd2304ab6
* CYGWIN_LICENSE: Fix URL to world-wide offices.
2007-07-06 19:55:43 +00:00
Corinna Vinschen
de3f4565aa
* CYGWIN_LICENSE: Fix URL to open source definition.
2007-07-06 19:51:44 +00:00
Jeff Johnston
de229adb1a
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* arm/syscalls.c (gettimeofday): Change to POSIX signature
where second argument is passed as void *.
* bfin/syscalls.c (gettimeofday): Ditto.
* cris/gensyscalls (gettimeofday): Ditto.
* cris/linunistd.h (gettimeofday): Ditto.
* crx/time.c (gettimeofday): Ditto.
* frv/sim-time.c (gettimeofday): Ditto.
* i386/cygmon-salib.c (gettimeofday): Ditto.
* libnosys/gettod.c (gettimeofday): Ditto.
* m68k/io-gettimeofday.c (gettimeofday): Ditto.
* sparc/cygmon-salib.c (gettimeofday): Ditto.
* spu/gettimeofday.c (gettimeofday): Ditto.
2007-07-06 17:00:13 +00:00
Jeff Johnston
0be2bc94e7
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/include/sys/time.h (gettimeofday): Change to proper
prototype where second parameter is void *.
* libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype
accordingly.
* libc/include/reent.h: Fix prototype for _gettimeofday_r.
* libc/sys/arm/syscalls.c: Fix gettimeofday function signature.
* libc/sys/rdos/gettod.c: Ditto.
* libc/sys/sh/syscalls.c: Ditto.
* libc/time/time.c (time): Change call to _gettimeofday_r
to pass NULL as 2nd argument.
2007-07-06 16:56:30 +00:00
Jeff Johnston
ba9af2d7ec
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
...
* libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
* libc/sys/linux/intl/l10nflist.c: Ditto.
2007-07-06 16:42:48 +00:00
Nick Clifton
f5e9e255fd
Update tp GPLv3
2007-07-06 11:13:56 +00:00
H.J. Lu
bb04d5a999
2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
...
* lt~obsolete.m4: New. Import from 20070318 libtool.
2007-07-05 17:57:04 +00:00
Corinna Vinschen
64f50c2b3c
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing
...
OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES.
(fhandler_disk_file::rewinddir): Ditto.
2007-07-05 09:35:36 +00:00
Corinna Vinschen
3854c5c0d5
Check in missing cygwin.din change from 2007-06-29.
2007-07-05 07:36:11 +00:00
Corinna Vinschen
a37215120b
* libc/include/wchar.h: Add prototype for wcsxfrm.
...
* libc/string/Makefile.am (GENERAL_SOURCES): Add wcsxfrm.c.
(CHEWOUT_FILES): Add wcsxfrm.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/wcsxfrm.c: New file.
* libc/string/wcstrings.tex: Add wcsxfrm.
2007-07-04 16:18:34 +00:00
Corinna Vinschen
c467d17e7c
* times.cc: Define __timezonefunc__ before including time.h to protect
...
definition of timezone function.
2007-07-04 10:43:29 +00:00
Corinna Vinschen
0d9cddc377
* include/cygwin/time.h: Switch to timezone variable by default. Add
...
comment.
2007-07-04 09:56:15 +00:00
Nathan Sidwell
ee5dec125d
gas/testsuite/
...
* gas/m68k/mcf-coproc.d: New.
* gas/m68k/mcf-coproc.s: New.
* gas/m68k/all.exp: Add it.
gas/
* config/tc-m68k.c (m68k_ip): Add j & K operand types.
(install_operand): Add E encoding.
(md_begin): Check and skip initial '.' arg character.
(get_num): Add 0..511 case.
include/
* opcode/m68k.h: Document j K & E.
opcodes/
* m68k-dis.c (fetch_arg): Add E. Replace length switch with
direct masking.
(print_ins_arg): Add j & K operand types.
(match_insn_m68k): Check and skip initial '.' arg character.
(m68k_scan_mask): Likewise.
* m68k-opc.c (m68k_opcodes): Add coprocessor instructions.
2007-07-03 07:54:19 +00:00
Mike Stump
d058b81b19
* acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fixup logic for cross
...
builds.
* acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Fix incremental builds.
(ACX_HAVE_GCC_FOR_TARGET): Likewise.
2007-07-02 18:06:53 +00:00
Corinna Vinschen
5ee15d270d
* include/shlobj.h: Add CSIDL_MYMUSIC and CSIDL_MYVIDEO.
2007-07-02 09:47:36 +00:00
Danny Smith
9cb64a070d
* include/oaidl.h: Include windows.h and ole2.h,
...
unless COM_NO_WINDOWS_H.
[ mingw-Bugs-1742130 ]
* include/oaidl.h (struct tagVARIANT): Add union members
LONGLONG * pllVal and ULONGLONG * pullVal.
2007-07-02 02:52:56 +00:00
Danny Smith
2d28574cc2
* include/ws2tcpip.h (s6_addr32): Correct definition,
...
Thanks to Alfred E. Heggestad <aeh at db dot org>
2007-07-01 10:09:12 +00:00
Joseph Myers
a0f886b059
bfd:
...
* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
(ppc_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_power_gnu_attribute, process_power_specific):
New.
(process_arch_specific): Call process_power_specific.
include/elf:
* ppc.h (Tag_GNU_Power_ABI_FP): Define.
ld/testsuite:
* ld-powerpc/attr-gnu-4-0.s, ld-powerpc/attr-gnu-4-00.d,
ld-powerpc/attr-gnu-4-01.d, ld-powerpc/attr-gnu-4-02.d,
ld-powerpc/attr-gnu-4-1.s, ld-powerpc/attr-gnu-4-10.d,
ld-powerpc/attr-gnu-4-11.d, ld-powerpc/attr-gnu-4-12.d,
ld-powerpc/attr-gnu-4-13.d, ld-powerpc/attr-gnu-4-2.s,
ld-powerpc/attr-gnu-4-20.d, ld-powerpc/attr-gnu-4-21.d,
ld-powerpc/attr-gnu-4-22.d, ld-powerpc/attr-gnu-4-3.s,
ld-powerpc/attr-gnu-4-31.d: New.
* ld-powerpc/powerpc.exp: Run these new tests.
2007-06-30 00:03:40 +00:00
Joseph Myers
a66448fc8d
bfd:
...
* elfxx-mips.c (mips_elf_merge_obj_attributes): New.
(_bfd_mips_elf_merge_private_bfd_data): Call it.
binutils:
* readelf.c (display_mips_gnu_attribute): New.
(process_mips_specific): Call process_attributes.
include/elf:
* mips.h (Tag_GNU_MIPS_ABI_FP): Define.
ld/testsuite:
* ld-mips-elf/attr-gnu-4-0.s, ld-mips-elf/attr-gnu-4-00.d,
ld-mips-elf/attr-gnu-4-01.d, ld-mips-elf/attr-gnu-4-02.d,
ld-mips-elf/attr-gnu-4-03.d, ld-mips-elf/attr-gnu-4-1.s,
ld-mips-elf/attr-gnu-4-10.d, ld-mips-elf/attr-gnu-4-11.d,
ld-mips-elf/attr-gnu-4-12.d, ld-mips-elf/attr-gnu-4-13.d,
ld-mips-elf/attr-gnu-4-14.d, ld-mips-elf/attr-gnu-4-2.s,
ld-mips-elf/attr-gnu-4-20.d, ld-mips-elf/attr-gnu-4-21.d,
ld-mips-elf/attr-gnu-4-22.d, ld-mips-elf/attr-gnu-4-23.d,
ld-mips-elf/attr-gnu-4-3.s, ld-mips-elf/attr-gnu-4-30.d,
ld-mips-elf/attr-gnu-4-31.d, ld-mips-elf/attr-gnu-4-32.d,
ld-mips-elf/attr-gnu-4-33.d, ld-mips-elf/attr-gnu-4-4.s,
ld-mips-elf/attr-gnu-4-41.d: New.
* ld-mips-elf/mips-elf.exp: Run these new tests.
2007-06-29 16:41:32 +00:00
Joseph Myers
c26222edd5
bfd:
...
* elf-attrs.c: New.
* Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
(BFD32_BACKENDS_CFILES): Add elf-attrs.c.
(elf-attrs.lo): Generate dependencies.
* Makefile.in: Regenerate.
* configure.in (elf): Add elf-attrs.lo.
* configure: Regenerate.
* elf-bfd.h (struct elf_backend_data): Add entries for object
attributes.
(NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
New.
(struct elf_obj_tdata): Add entries for object attributes.
(elf_known_obj_attributes, elf_other_obj_attributes,
elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
New.
(bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
_bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
_bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
* elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
(bfd_section_from_shdr): Handle attributes sections.
* elflink.c (bfd_elf_final_link): Handle attributes sections.
* elfxx-target.h (elf_backend_obj_attrs_vendor,
elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
(elfNN_bed): Update.
* elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
aeabi_attribute_list): Remove.
(struct elf32_arm_obj_tdata): Remove object attributes fields.
(check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
Update for new object attributes interfaces.
(uleb128_size, is_default_attr, eabi_attr_size,
elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
elf32_arm_add_eabi_attr_int, attr_strdup,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
to generic code in elf-attrs.c.
(elf32_arm_obj_attrs_arg_type): New.
(elf32_arm_fake_sections): Do not handle .ARM.attributes.
(elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
(bfd_elf32_bfd_final_link): Remove.
(elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
elf_backend_obj_attrs_arg_type,
elf_backend_obj_attrs_section_type): New.
* elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
attributes.
* elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
* elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
* elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
* elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
* elf32-sh.c (sh_elf_copy_private_data): Likewise.
* elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
binutils:
* readelf.c (display_gnu_attribute): New.
(process_arm_specific): Rearrange as process_attributes.
(process_arm_specific): Replace by wrapper of process_attributes.
gas:
* as.c (create_obj_attrs_section): New.
(main): Call create_obj_attrs_section for ELF.
* read.c (s_gnu_attribute, skip_whitespace, skip_past_char,
skip_past_comma, s_vendor_attribute): New.
(potable): Add gnu_attribute for ELF.
* read.h (s_vendor_attribute): Declare.
* config/tc-arm.c (s_arm_eabi_attribute): Replace by wrapper
round s_vendor_attribute.
(aeabi_set_public_attributes): Update for new attributes
interfaces.
(arm_md_end): Remove attributes contents setting now done
generically.
include/elf:
* arm.h (elf32_arm_add_eabi_attr_int,
elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
elf32_arm_get_eabi_attr_int, elf32_arm_set_eabi_attr_contents,
elf32_arm_eabi_attr_size, Tag_NULL, Tag_File, Tag_Section,
Tag_Symbol, Tag_compatibility): Remove.
* common.h (SHT_GNU_ATTRIBUTES): Define.
ld:
* emulparams/armelf.sh (OTHER_SECTIONS): Remove .ARM.attributes.
(ATTRS_SECTIONS): Define.
* scripttempl/elf.sc, scripttempl/elf32sh-symbian.sc,
scripttempl/elf_chaos.sc, scripttempl/elfi370.sc,
scripttempl/elfxtensa.sc: Handle ATTRS_SECTIONS.
2007-06-29 16:29:16 +00:00
Corinna Vinschen
40570a828e
* cygwin.din: Export fdopendir.
...
* dir.cc (opendir): Call fhandler's opendir with fd set to -1.
(fdopendir): New function.
(seekdir64): Use dirent_info_mask.
(rewinddir): Ditto.
(closedir): Only release underlying file descriptor if it has been
reserved by opendir itself.
* fhandler.cc (fhandler_base::opendir): Accommodate new parameter.
* fhandler.h (dirent_states): Add dirent_valid_fd and dirent_info_mask.
(fhander_XXX::opendir): Add file descriptor parameter. Use regparms.
(fhandler_procnet::opendir): Drop declaration.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.
If called from fdopendir, use existing handle to re-open directory
with valid flags. Rename fd to cfd. Use only if no valid incoming fd.
(fhandler_cygdrive::opendir): Accommodate new parameter.
* fhandler_process.cc (fhandler_process::opendir): Ditto.
* fhandler_procnet.cc (fhandler_procnet::opendir): Drop definition.
* fhandler_virtual.cc (fhandler_virtual::opendir): Accommodate new
parameter. Only create new file descriptor entry if called from
opendir. Remove duplicated setting of dir->__flags.
* posix.sgml: Add fdopendir to list of implemented Solaris functions.
* include/cygwin/version.h: Bump API minor number.
* include/sys/dirent.h: Declare fdopendir.
2007-06-29 15:13:01 +00:00
Nick Clifton
8931495a14
New port: National Semiconductor's CR16
2007-06-29 14:09:34 +00:00
Bernd Schmidt
a25361ff0f
* configure.ac: Don't add target-libmudflap to noconfigdirs for
...
uclinux and linux-uclibc targets.
* configure: Regenerate.
2007-06-29 11:33:56 +00:00
Danny Smith
b363c819dd
* mingwex/gdtoa/mingw_snprintf.c: New file.
...
* mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
(GDTOA_OBJS): Add mingw_snprintf.O.
2007-06-29 10:11:57 +00:00
Corinna Vinschen
d802576ca1
* cygwin-api.in.sgml: Remove authorgroup and revhistory.
...
* cygwin-ug.in.sgml: Add Joshua Daniel Franklin to authorgroup.
Remove revhistory.
* legal.sgml: Update dates.
2007-06-29 07:36:54 +00:00
Brian Dessent
64fdc12ed5
* include/cygwin/version.h: Fix comment typo.
2007-06-28 22:45:49 +00:00
DJ Delorie
2ece921728
* configure.ac (arm*-*-linux-gnueabi): Don't build libgloss if we're
...
not building newlib.
* configure: Regenerated.
2007-06-28 19:31:44 +00:00
Corinna Vinschen
3e96da0b53
* cygwin.din: Export stpcpy, stpncpy.
...
* posix.sgml: Add stpcpy and stpncpy to list of implemented
GNU extensions.
* include/cygwin/version.h: Bump API minor number.
2007-06-28 17:55:01 +00:00
Corinna Vinschen
5d8b97a694
* libc/include/string.h: Add prototypes for stpcpy and stpncpy.
...
* libc/string/Makefile.am (ELIX_SOURCES): Add stpcpy.c and
stpncpy.c.
(CHEWOUT_FILES): Add stpcpy.def and stpncpy.def.
* libc/string/Makefile.in: Regenerate.
* libc/string/stpcpy.c: New file.
* libc/string/stpncpy.c: New file.
* libc/string/strings.tex: Add stpcpy and stpncpy.
2007-06-28 17:07:23 +00:00
Danny Smith
a4b5a24055
* msvcrt.def.in: Update comment.
...
Exclude _ctype stub if using msvcr71.dll or newer.
* include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer.
* include/wctype.h: Likewise.
2007-06-28 07:13:04 +00:00
Corinna Vinschen
41391cb2bb
* shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
...
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Add heap_slop_inited member.
* shared.cc (shared_info::heap_slop_size): Use heap_slop_inited to
track initializing heap_slop since 0 is a valid value for heap_slop.
Drop useless < 0 consideration.
2007-06-27 17:08:19 +00:00
Eric Blake
048e00e01d
* assert.cc (__assert_func): New function, to match newlib header
...
change.
* cygwin.din: Export __assert_func.
* include/cygwin/version.h: Bump API minor number.
2007-06-27 12:46:35 +00:00
Eric Blake
3473e6bd7b
Support __func__ in assert, as required by C99.
...
* libc/stdlib/assert.c (__assert_func): New function.
(__assert): Use __assert_func.
* libc/include/assert.h (assert) [!NDEBUG]: Use __assert_func when
possible.
2007-06-27 12:44:41 +00:00
Danny Smith
26e8e4beff
*include/wctpe.h: Likewise.
...
*include/wdirent.h: Likewise.
Changelog: Whitespace
Further: http://www.lib.virginia.edu/cgi-bin/imgload.cgi/53
2007-06-23 07:54:58 +00:00
Danny Smith
25b4cace74
*include/assert.h: Qualify all functions with __MINGW_NOTHROW.
...
*include/conio.h: Likewise.
*include/ctype.h: Likewise.
*include/direct.h: Likewise.
*include/dos.h: Likewise.
*include/errno.h: Likewise.
*include/fenv.h: Likewise.
*include/float.h: Likewise.
*include/inttypes.h: Likewise.
*include/io.h: Likewise.
*include/libgen.h: Likewise.
*include/locale.h: Likewise.
*include/malloc.h: Likewise.
*include/mbctype.h: Likewise.
*include/mbstring.h: Likewise.
*include/process.h: Likewise.
*include/search.h: Likewise.
*include/setjmp.h: Likewise.
*include/signal.h: Likewise.
*include/stdio.h: Likewise.
*include/stdlib.h: Likewise.
*include/string.h: Likewise.
*include/time.h: Likewise.
*include/wchar.h: Likewise.
*include/sys/stat.h: Likewise.
*include/sys/time.h: Likewise.
*include/sys/timeb.h: Likewise.
*include/sys/utime.h: Likewise.
2007-06-23 07:34:16 +00:00
Daniel Jacobowitz
155911241c
* src-release (DEVO_SUPPORT): Correct typos.
2007-06-22 15:48:08 +00:00
Danny Smith
8820b5ec12
* mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.
...
Good night all.
2007-06-22 10:22:49 +00:00
Danny Smith
e54e4d47f1
Add POSIX binary tree search API.
...
* mingwex/tfind.c: New file.
* mingwex/tdelete.c: New file.
* mingwex/tsearch.c: New file.
* mingwex/twalk.c: New file.
* mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c.
* mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o.
* include/search.h (tfind): Declare.
(tdelete): Declare.
(tsearch): Declare.
(twalk): Declare.
(ENTRY): Define.
(ACTION): Define.
(VISIT): Define.
(node_t): Define, on condition of _SEARCH_PRIVATE.
2007-06-22 10:09:20 +00:00
Danny Smith
3d7e738f72
* include/_mingw.h (__MINGW_NOTHROW): Define.
2007-06-22 09:19:25 +00:00
Corinna Vinschen
a71ecb55de
* autoload.cc (WSAIoctl): Remove.
...
* cygwin.din: Export freeifaddrs, getifaddrs.
* fhandler_socket.cc (fhandler_socket::ioctl): Drop SOCKET parameter
from get_ifconf.
* net.cc: Include ifaddrs.h.
(in_are_prefix_equal): Match addresses in network byte order.
(ip_addr_prefix): Convert address into host byte order before
testing with IN_LOOPBACK.
(struct ifall): Define.
(get_xp_ifs): Replace get_xp_ifconf. Return struct ifall array.
(get_2k_ifs): Ditto, replace get_2k_ifconf.
(get_nt_ifs): Ditto, replace get_nt_ifconf.
(getifaddrs): New function.
(freeifaddrs): New function.
(get_ifconf): Call matching get_XX_ifs function and create
ifc content from here. Drop lo fake since it's now in get_nt_ifs.
* posix.sgml: Add freeifaddrs and getifaddrs to list of implemented
BSD functions.
* wincap.h (wincapc::has_broken_if_oper_status): New element.
* wincap.cc: Implement above element throughout.
* include/ifaddrs.h: New file.
* include/cygwin/version.h: Bump API minor number.
2007-06-21 15:57:54 +00:00