Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-04-212001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* acinclude.m4: Added --enable-malloc-debugging configure flag. * configure.host: For Cygwin specify -DMALLOC_PROVIDED if --enable-malloc-debugging selected. * aclocal.m4 configure: Regenerated. libm/aclocal.m4 libm/configure: Ditto. * libc/aclocal.m4 libc/configure: Ditto. * libc/machine/aclocal.m4 libc/machine/configure: Ditto. * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto. * libc/sys/aclocal.m4 libc/sys/configure: Ditto. * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto. * doc/aclocal.m4 doc/configure: Ditto.
2001-04-21* cygwin.din: Add *scanf and *scan_r functions.Christopher Faylor
2001-04-212001-04-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston
* libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together into one list. [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list. (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New function prototypes. (_fscanf_r, _sscanf_r): Ditto. * libc/include/stdlib.h: Added _strtod_r prototype. * libc/stdio/Makefile.am: Add new v*scanf functions. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype and code is shared. Added reentrant _fscanf_r which calls __svfscanf_r. * libc/stdio/scanf.c: Changed to call __svfscanf_r. * libc/stdio/sscanf.c: Changed documentation to add reentrant routines. (sscanf): Changed to call __svfscanf_r with _REENT argument. (_sscanf_r): New routine. * libc/stdio/local.h: Removed __svfscanf prototype and replaced it with __svfscanf_r prototype. * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New routines. (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy structure as argument as calls reentrant versions of helper functions (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof to _strtol_r and _strtod_r respectively. * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r. * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with _REENT argument. * libc/stdio/vscanf.c: New file. * libc/stdio/vsscanf.c: Ditto.
2001-04-21 * security.cc (set_process_privileges): Swap out.Corinna Vinschen
* sec_helper.cc (set_process_privilege): Rename from `set_process_privileges'. Takes the privilege to enable or disable as parameter now. * security.h: Add prototype for `set_process_privileges'.
2001-04-20* path.cc (path_conv::check): Always initialize member variables.Christopher Faylor
2001-04-20* include/sys/file.h: More cleanup for X_OK.Christopher Faylor
2001-04-20* include/sys/file.h: Move X_OK protection earlier.Christopher Faylor
* dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.
2001-04-20 * grp.cc (getgroups): Change so that SIDs get compared insteadCorinna Vinschen
of strings to SIDs.
2001-04-20 * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.Corinna Vinschen
* security.cc: Swap out several functions. * sec_acl.cc: New file. Move Sun compatibel ACL functions from `security.cc' to here. * sec_helper.cc: New file. Move security helper functions from `security.cc' to here. * security.h: Changed to accomodate the above changes. * grp.cc: Replace `group_in_memory_p' by `group_state'. Eliminate group_sem throughout. (enum grp_state): New enumeration type. (read_etc_group): Make race safe. * security.cc: Eliminate group_sem throughout.
2001-04-20* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4aAlexandre Oliva
1.641.2.228.
2001-04-192001-04-19 Robert Collins <rbtcollins@hotmail.com>Jeff Johnston
* include/time.h[__CYGWIN__]: Define tzname to _tzname if not defined. Define daylight to _daylight if it is not defined Prepare a variable export of timezone based on timezonevariable. (Cannot be used with the timezone() function.)
2001-04-19* dumper.cc (dumper::init_core_dump): Set architecture field in dumpEgor Duda
header.
2001-04-19 * winsup.api/mmaptest02.c: New test.Corinna Vinschen
* winsup.api/mmaptest03.c: Ditto. * winsup.api/mmaptest04.c: Ditto.
2001-04-19 * mmap.cc (mmap): Drop usage of the same memory area if the sameCorinna Vinschen
region of the same file is mapped twice.
2001-04-19* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriateChristopher Faylor
Windows-isms.
2001-04-19* configure.in: Add bz2lib.Christopher Faylor
2001-04-19Throughout, change fdtab references to cygheap->fdtab.Christopher Faylor
* child_info.h (cygheap_exec_info): Eliminate special fdtab stuff. * spawn.cc (spawn_guts): Ditto. * cygheap.cc (cygheap_init): Initialize fdtab, if appropriate. * cygheap.h (CYGHEAPSIZE): Include size of init_cygheap. (_cmalloc_entry): Include fdtab here. * dtable.h (dtable): Declare/define new methods. * dtable.cc (dtable::vfork_child_fixup): New method. (dtable::fixup_after_exec): Remove unneeded extra arguments. * dcrt0.cc (dll_crt0_1): Ditto. * environ.cc (getwinenv): Use case sensitive comparison. (winenv): Make a copy of environment cache to avoid realloc problems when duplicate environment variables exist in the environment. (From Egor Duda) * net.cc (cygwin_socket): Revert Apr 14 change. * include/sys/file.h: Protect against previous X_OK definition. * passwd.cc: Eliminate passwd_sem throughout. * security.cc: Ditto. * cygwin.din: Export New functions. * passwd.cc (read_etc_passwd): Make race safe. (getpwuid_r): New function. (getpwnam_r): New function.
2001-04-19*** empty log message ***Christopher Faylor
2001-04-18 * grp.cc (getgroups): Avoid crash if passwd field if /etc/group isCorinna Vinschen
empty.
2001-04-18* path.h (path_conv::add_ext_from_sym): Declare.Christopher Faylor
* path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.
2001-04-172001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>Jeff Johnston
* newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi): Correct the numerical values.
2001-04-17 * path.cc (windows_device_names): Add missing NULL element.Corinna Vinschen
2001-04-17* path.cc (windows_device_names): Move dsp to proper location.Christopher Faylor
2001-04-17 * include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNIONEarnie Boyd
as __extenstion__ when appropriate. * include/mmsystem.h: Mark anonymous structs and unions as __extension__ to prevent compiler warning when invoked with -pedantic * include/oaidl.h: Ditto. * include/objidl.h: Ditto. * include/olectl.h: Ditto. * include/prsht.h: Ditto. * include/shlobj.h: Ditto. * include/winbase.h: Ditto. * include/winnt.h: Ditto. * include/wtypes.h: Ditto.
2001-04-17Forgot the ChangeLog...Corinna Vinschen
2001-04-17 * path.cc (path_conv::check): Set case_clash even if pcheck_caseCorinna Vinschen
is set to PCHECK_ADJUST when a case clash is given for the last component in path. (symlink_info::case_check): Ditto. * syscalls.cc (_rename): Avoid overwriting an already existing file if a case clash is given even if pcheck_case is set to PCHECK_ADJUST.
2001-04-17 Add missing ChangeLog entry.Corinna Vinschen
2001-04-17Turn NEWVFORK off.Christopher Faylor
2001-04-17* path.h (cwdstuff): Move class.Christopher Faylor
* cygheap.h (cwdstuff): To here. (init_cygheap): Add cwd field. * child_info.h (cygheap_exec_info): Eliminate cwd stuff. (child_info_spawn): Ditto. * dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call. Convert cygcwd reference to cygheap->cwd. * path.cc: Ditto, throughout. (cwdstuff::copy): Eliminate. (cwdstuff::fixup_after_exec): Ditto. * spawn.cc (spawn_guts): Eliminate call to cygcwd.copy. * fhandler.h (FH_OSS_DSP): Move into "fast" device category.
2001-04-16 * mmap.cc: Move fh_paging_file from some functions to beCorinna Vinschen
a global static variable. (class mmap_record): Add `devtype_' member to remember the device type of the file. Add declaration for methods `get_device', `alloc_fh' and `free_fh'. (mmap_record::mmap_record): Initialize `devtype_' correctly. (mmap_record::alloc_fh): New method. (mmap_record::free_fh): Ditto. (munmap): Use new mmap_record::alloc_fh and mmap_record::free_fh methods to create a correct fhandler. (msync): Ditto. (fixup_mmaps_after_fork): Ditto.
2001-04-162001-04-15 Daniel Berlin <dan@cgsoftware.com>Daniel Berlin
* ternary.c: New file - Ternary search tree implementation. 2001-04-15 Daniel Berlin <dan@cgsoftware.com> * ternary.h: New file - Ternary search tree header.
2001-04-16 * grp.cc (getgroups): If `allow_ntsec' is set, use the process tokenCorinna Vinschen
information to evaluate the groups list.
2001-04-16 * mkgroup.c: Add function pointers `netlocalgroupgetmembers' andCorinna Vinschen
`netgroupgetusers'. (load_netapi): Load function pointers `netlocalgroupgetmembers' and `netgroupgetusers'. (enum_local_users): New function. (enum_local_groups): Call `enum_local_users' for each group if `print_users' is set. (enum_users): New function. (enum_groups): Call `enum_users' for each group if `print_users' is set. (usage): Add usage text for `-u/--users'. (longopts): Add option `--users'. (opts): Add option character `u'. (main): Set `print_users' according to option `-u/--users'. Call `enum_local_groups' and `enum_groups' with additional parameter `print_users'.
2001-04-16* features.h: Remove this file as it is now being supplied by newlib.Christopher Faylor
2001-04-16* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.Christopher Faylor
* fhandler_dsp.cc: New file. Implements OSS like /dev/dsp. * include/sys/soundcard.h: New file. User land includes for OSS /dev/dsp. * fhandler.h: Add new class fhandler_dev_dsp and a FH_OSS_DSP definition. * dtable.cc (dtable::build_fhandler): Allow creation of the /dev/dsp device. * path.cc (windows_device_names): Add /dev/dsp into list of device names. * Makefile.in (DLL_OFILES): Add fhandler_dsp.o.
2001-04-16* mount.cc (longopts): Add help to options list.Christopher Faylor
(opts): Add 'h' to options string. * umount.cc (longopts): Add help to options list. (opts): Add 'h' to options string and change 'R' to 'A'.
2001-04-16* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.Christopher Faylor
2001-04-15Patch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>:Corinna Vinschen
* mkgroup.c (enum_groups): Use RID + offset specified an additional argument as ID. (usage): Add description of -o option. (longopts, opts): Add specifications of -o/--id-offset option. (main): Add -o option. Invoke enum_groups with specified offset. * mkpasswd.c (enum_users): Just like mkgroup.c. (usage, longopts, opts): Ditto. (main): Add -o option. Invoke enum_users with specified offset only against domain accounts.
2001-04-15 * path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'.Corinna Vinschen
(add_ext_from_sym_): New inline function.
2001-04-15* config.h.in: Turn on VFORK by default.Christopher Faylor
2001-04-15* net.cc (cygwin_socket): Set SO_LINGER to small value so closed UNIX domainChristopher Faylor
sockets will not stay around. * select.cc (socket_cleanup): Set SO_LINGER to small value so closed dummy sockets do not stay around. Use correct value for second argument to shutdown.
2001-04-14Sat Apr 14 17:04:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins
* thread.h (MTinterface): Add threadcount. * thread.cc (MTinterface::Init): Set threadcount to 1. (__pthread_create): Increment threadcount. (__pthread_exit): Decrement threadcount and call exit() from the last thread.
2001-04-13* libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).Christopher Faylor
2001-04-13Fix ChangeLog format.Christopher Faylor
2001-04-13* fork.cc (fork_child): Call the __pthread_atforkchild function.Christopher Faylor
(fork_parent): Call the __pthread_atforkparent function. * cygwin.din: Export pthread_atfork. * thread.h (callback): New class. (MTinterface): Use it. * thread.cc (__pthread_atforkprepare): New function. (__pthread_atforkparent): New function. (__pthread_atforkchild): New function. (__pthread_atfork): New function. * pthread.cc (pthread_atfork): New function.
2001-04-13 * path.cc (add_ext_from_sym): New define evaluating `known'suffix'.Corinna Vinschen
(path_conv::check): Use add_ext_from_sym throughout.
2001-04-13bfd/Jakub Jelinek
* libbfd-in.h (_bfd_merge_section): New. (_bfd_write_merged_section): New. (_bfd_merged_section_offset): New. * libbfd.h: Rebuilt. * linker.c (_bfd_generic_link_output_symbols): Handle discard_sec_merge. * aoutx.h (aout_link_write_symbols): Likewise. * pdp11.c (aout_link_write_symbols): Likewise. * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE sections. (elf_link_sec_merge_syms): New. (elf_link_input_bfd): Call _bfd_merged_section_offset and _bfd_write_merged_section. Handle discard_sec_merge. * elf-bfd.h (struct elf_link_hash_table): Add merge_info field. (struct bfd_elf_section_data): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and SEC_STRINGS section flags and entsize from their ELF counterparts. (_bfd_elf_link_hash_table_init): Initialize merge_info. (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize from their BFD counterparts. * merge.c: New file. * Makefile.am: Add strtab.lo. * Makefile.in: Rebuilt. include/ * bfdlink.h (bfd_link_discard): Add discard_sec_merge. gas/ * config/obj-elf.c (obj_elf_change_section): Add entsize argument, handle SHF_MERGE and SHF_STRINGS. (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS. (obj_elf_section): Allow additional argument specifying entity size. * write.c (adjust_reloc_syms): Keep relocations against local symbols in SEC_MERGE sections. ld/ * ldmain.c (main): Default to discard_sec_merge. * lexsup.c (OPTION_DISCARD_NONE): Define. (ld_options): Add --discard-none. (parse_args): Handle OPTION_DISCARD_NONE. * ldlang.c (wild_doit): SEC_MERGE should be set in the output section only if SEC_MERGE and SEC_STRINGS flags and entsize of all its input sections match.
2001-04-13 * cygwinenv.sgml: Add text for `check_case' option.Corinna Vinschen
2001-04-13 * dir.cc (mkdir): Check for case clash.Corinna Vinschen
* environ.cc: Add extern declaration for `pcheck_case'. (check_case_init): New function. (struct parse_thing): Add "check_case" option. * errno.cc (_sys_nerrlist): Add text for ECASECLASH. (strerror): Add case branch for ECASECLASH. * fhandler.cc (fhandler_disk_file::open): Check for case clash. * path.cc: Add global variable `pcheck_case'. (struct symlink_info): Add member `case_clash' and method `case_check'. (path_prefix_p_): Call `pathnmatch' instead of `strncasematch'. (pathnmatch): New funtion. (pathmatch): Ditto. (path_conv::check): Add handling for case checking. (symlink): Check for case clash. (symlink_info::check): Add parameter for case checking. Handle case checking. (symlink_info::case_check): New method. (chdir): Don't use unconverted path if pcheck_case==PCHECK_STRICT. * path.h: Add extern declarations for `pathmatch' and `pathnmatch'. (enum case_checking): New enumeration type describing the case checking behaviour of path conversion routines. (class path_conv): Add member `case_clash'. * syscalls.cc (_link): Check for case clash.
2001-04-13 * libc/include/sys/errno.h: Add ECASECLASH to indicate case clashCorinna Vinschen
on case insensitve file systems.