summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2003-01-31 Frank Ch. Eigler <fche@redhat.com>Frank Ch. Eigler2003-01-313-2/+7
| | | | | * Makefile.tpl (all-sid): Add libiberty/bfd/opcodes dependencies. * Makefile.in: Regenerated.
* * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from PierreChristopher Faylor2003-01-313-4/+12
| | | | | | Humblet). * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already have lock since that means we are in the process of reading the file.
* * shared.cc (shared_info::heap_chunk_size): Use correct variable when readingChristopher Faylor2003-01-312-1/+6
| | | | HKLM.
* 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2003-01-312-5/+33
| | | | | | | | | | | | | | | * include/winbase.h (CreateFiber): Change first parameter to SIZE_T. (CreateJobObject[AW], CreateHardLink[AW]): Guard with (_WIN32_WINNT >= 0x0500). 2003-01-31 Bang Jun-Young <junyoung@netbsd.org> * include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW): Add missing typedefs. (CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing prototypes. (CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE.
* * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one error whenChristopher Faylor2003-01-302-2/+9
| | | | inspecting path.
* * config.if: Copy from GCC.Alexandre Oliva2003-01-302-23/+22
|
* * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT ↵Christopher Faylor2003-01-302-7/+9
| | | | behavior.
* 2003-01-29 Jason Tishler <jason@tishler.net>Jeff Johnston2003-01-292-0/+14
| | | | * libc/include/time.h: Declare nanosleep() under Cygwin.
* * fhandler_socket.cc (fhandler_socket::accept): On successful executionCorinna Vinschen2003-01-282-16/+20
| | | | set connection state of returned socket to CONNECTED.
* * mips.h (EF_MIPS_XGOT): Define.Alexandre Oliva2003-01-282-0/+7
|
* 2003-01-27 Krzysztof Nikiel <kni@poczta.onet.pl>Danny Smith2003-01-273-2/+8
| | | | | | * include/mmsystem.h (MIXERCONTROL_CONTROLF_MULTIPLE): Correct define. * lib/largeint.c (LargeIntegerAdd): Add, don't multiply.
* * configure.in: Revert 24Jan change.Alexandre Oliva2003-01-273-45/+71
| | | | * configure: Regenerate.
* * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about non-numericChristopher Faylor2003-01-272-5/+9
| | | | fields.
* fix typoChristopher Faylor2003-01-271-1/+1
|
* 2003-01-27 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2003-01-276-47/+1109
| | | | | | | | | | | | | | | | | | | | | | | | * include/rpcnterr.h (RPC_X_INVALID_PIPE_OPERATION): Add define. * include/winbase.h (WAIT_TIMEOUT): Guard against prior definition. (WAIT_FAILED): Cast to DWORD. * include/winerror.h (WAIT_TIMEOUT): Guard against prior definition. 2003-01-27 Bang Jun-Young <junyoung@netbsd.org> * include/winerror.h: Protect against multiple definition of WSA* error codes. * include/winsock.h: Likewise. * include/winsock2.h: Likewise. 2003-01-27 Bang Dong-Heui Bang Jun-Young <junyoung@netbsd.org> * include/winerror.h (ERROR_*, SEC_E_*,RPC_S_*, FRS_ERR_*, DNS_*, WSA*, WAIT_TIMEOUT): Add missing error codes. (RPC_X_INVALID_PIPE_OPERATION): Remove define.
* * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no longer aChristopher Faylor2003-01-272-4/+8
| | | | | valid return from next_str. (pwdgrp::add_line): Duh. Revert to use strchr.
* * strings.h (strechr): New function.Christopher Faylor2003-01-276-26/+54
| | | | | | | | | | * uinfo.cc (pwdgrp::next_str): Search only for input char in string. Return EOS on failure. Don't check for NULL since it shouldn't be possible. (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'. (pwdgrp::next_num): Pass explicit separator character to next_str. * grp.cc (pwdgrp::parse_group): Ditto. * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage input. * pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
* include/Daniel Jacobowitz2003-01-262-2/+30
| | | | | | | | | | | * hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types. (struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f. (htab_create_alloc_ex): New prototype. (htab_set_functions_ex): New prototype. libiberty/ * hashtab.c (htab_create_alloc_ex): New function. (hatab_set_functions_ex): New function. (htab_delete, htab_expand): Support alternate allocation functions.
* * include/math.h (tgamma): Correct typo in comment.Danny Smith2003-01-262-3/+5
|
* * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning forChristopher Faylor2003-01-2610-118/+126
| | | | CreateFile failure.
* * mingwex/mingw-fseek.c (INLINE): Remove define.Danny Smith2003-01-262-33/+8
| | | | | (__mingw_is_win9x): Remove static inline function. (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
* Fix typo.Christopher Faylor2003-01-261-1/+17
|
* * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The structureChristopher Faylor2003-01-263-10/+8
| | | | | | should always be completely filled out. * grp.cc (pwdgrp::parse_group): Ditto. * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
* * pwdgrp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating gr_mem.Christopher Faylor2003-01-262-1/+5
|
* * include/sys/strace.h (paranoid_printf): Define as not being part of "all"Christopher Faylor2003-01-266-69/+99
| | | | | | | | | | | | | | | | | | | | | | output. * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns true/false if parse operation succeeded. (pwdgrp::reparse): Remove. (pwdgrp::raw_ptr): New function. Returns pointer in line. (pwdgrp::next_num): New functions for parsing other than unsigned long. * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior. Don't fill in fields with NULL and assign empty gr_mem to known pointer rather than doing a pointless calloc. Streamline gr_mem parsing. Don't increment curr_lines here. * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num. Don't increment curr_lines here. * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data. (pwdgrp::reparse): Remove. (pwdgrp::next_num): Rename from next_int. Return bool indicating success of parse, argument returns value parsed. (pwdgrp::add_line): Increment curr_lines here on successful parse. (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report it here.
* clarifyChristopher Faylor2003-01-251-1/+1
|
* * pwdgrp.cc (pwdgrp::reparse): Declare.Christopher Faylor2003-01-254-2/+16
| | | | | * uinfo.cc (pwdgrp::reparse): Define. * grp.cc (pwdgrp::parse_group): Use.
* * syscalls.cc (seteuid32): On Win95 get the pw entry. If it existsCorinna Vinschen2003-01-256-31/+35
| | | | | | | | | | | | update the euid and call cygheap->user.set_name. Remove special handling of ILLEGAL_UID. (setgid32): Add a debug_printf. On Win95, always set the egid. Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid. * child_info.h (class cygheap_exec_info): Remove uid. * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid. * dcrto.cc (dll_crt0_1): Always call uinfo_init. * uinfo.cc (uinfo_init): Reorganize and close handle if needed. (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
* * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll regionChristopher Faylor2003-01-252-0/+7
| | | | if size changes.
* * include/ras.h (RASCONN[AW]): Add dwSessionId forDanny Smith2003-01-252-0/+7
| | | | (WINVER >= 0x501).
* * include/ras.h (RASCONN[AW]): Guard szDeviceType,Danny Smith2003-01-252-0/+18
| | | | | szDeviceName fields with WINVER >= 0x400. Add dwFlags, luid fields for WINVER >= 0x501.
* bfd/Jakub Jelinek2003-01-242-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * elf32-sparc.c (_bfd_sparc_elf_howto_table): Add TLS relocs. (elf32_sparc_rev32_howto): New variable. (sparc_reloc_map): Add TLS relocs. (elf32_sparc_reloc_type_lookup, elf32_sparc_info_to_howto): Handle REV32. (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc, elf32_sparc_mkobject): New functions. (struct elf32_sparc_dyn_relocs, struct elf32_sparc_link_hash_entry, struct elf32_sparc_link_hash_table): New structures. (elf32_sparc_tdata, elf32_sparc_local_got_tls_type, elf32_sparc_hash_table): Define. (link_hash_newfunc, elf32_sparc_link_hash_table_create, create_got_section, elf32_sparc_create_dynamic_sections, elf32_sparc_copy_indirect_symbol, elf32_sparc_tls_transition): New functions. (elf32_sparc_check_relocs): Handle TLS relocs. Add dynamic reloc reference counting. (elf32_sparc_gc_sweep_hook): Likewise. (elf32_sparc_adjust_dynamic_symbol): Likewise. (elf32_sparc_size_dynamic_sections): Likewise. (elf32_sparc_relocate_section): Likewise. (allocate_dynrelocs, readonly_dynrelocs, dtpoff_base, tpoff): New functions. (elf32_sparc_object_p): Allocate backend private object data. (bfd_elf32_bfd_link_hash_table_create, elf_backend_copy_indirect_symbol, bfd_elf32_mkobject, elf_backend_can_refcount): Define. (elf_backend_create_dynamic_sections): Define to elf32_sparc_create_dynamic_sections. * reloc.c: Add SPARC TLS relocs. * bfd-in2.h, libbfd.h: Rebuilt. * elf64-sparc.c (sparc64_elf_howto_table): Add TLS relocs. (sparc_reloc_map): Likewise. gas/ * config/tc-sparc.c (sparc_ip): Handle TLS % operators. (tc_gen_reloc): Handle TLS relocs. (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff. * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS relocs. * config/obj-elf.c (obj_elf_section_word): Handle tls. (obj_elf_type): Handle tls_object. include/ * elf/sparc.h: Add TLS relocs. Move R_SPARC_REV32 to 252. ld/testsuite/ * ld-sparc/sparc.exp: New. * ld-sparc/tlsg32.s: New test. * ld-sparc/tlsg32.sd: Likewise. * ld-sparc/tlsg64.s: Likewise. * ld-sparc/tlsg64.sd: Likewise. * ld-sparc/tlslib.s: Likewise. * ld-sparc/tlsnopic.s: Likewise. * ld-sparc/tlspic.s: Likewise. * ld-sparc/tlssunbin32.dd: Likewise. * ld-sparc/tlssunbin32.rd: Likewise. * ld-sparc/tlssunbin32.s: Likewise. * ld-sparc/tlssunbin32.sd: Likewise. * ld-sparc/tlssunbin32.td: Likewise. * ld-sparc/tlssunbin64.dd: Likewise. * ld-sparc/tlssunbin64.rd: Likewise. * ld-sparc/tlssunbin64.s: Likewise. * ld-sparc/tlssunbin64.sd: Likewise. * ld-sparc/tlssunbin64.td: Likewise. * ld-sparc/tlssunbinpic32.s: Likewise. * ld-sparc/tlssunbinpic64.s: Likewise. * ld-sparc/tlssunnopic32.dd: Likewise. * ld-sparc/tlssunnopic32.rd: Likewise. * ld-sparc/tlssunnopic32.s: Likewise. * ld-sparc/tlssunnopic32.sd: Likewise. * ld-sparc/tlssunnopic64.dd: Likewise. * ld-sparc/tlssunnopic64.rd: Likewise. * ld-sparc/tlssunnopic64.s: Likewise. * ld-sparc/tlssunnopic64.sd: Likewise. * ld-sparc/tlssunpic32.dd: Likewise. * ld-sparc/tlssunpic32.rd: Likewise. * ld-sparc/tlssunpic32.s: Likewise. * ld-sparc/tlssunpic32.sd: Likewise. * ld-sparc/tlssunpic32.td: Likewise. * ld-sparc/tlssunpic64.dd: Likewise. * ld-sparc/tlssunpic64.rd: Likewise. * ld-sparc/tlssunpic64.s: Likewise. * ld-sparc/tlssunpic64.sd: Likewise. * ld-sparc/tlssunpic64.td: Likewise.
* * s390.h: Add s390 TLS relocations.Martin Schwidefsky2003-01-242-0/+41
|
* Add sh2e supportNick Clifton2003-01-244-5/+15
|
* * libc/include/sys/unistd.h: Add setregid and setreuid declarationsCorinna Vinschen2003-01-242-0/+9
| | | | for Cygwin.
* * cygwin.din: Export setreuid32, setreuid, setregid32, setregid.Corinna Vinschen2003-01-244-1/+68
| | | | | | | | * syscalls.cc (setreuid32): New function. (setreuid): Ditto. (setregid32): Ditto. (setregid): Ditto. * include/cygwin/version.h: Bump API minor number.
* * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.Christopher Faylor2003-01-248-140/+133
| | | | | | | | | | | | | | | | | | | * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member instead. Use next_str and next_int to parse arguments. * passwd.cc (pwdgrp::parse_passwd): Ditto. (grab_string): Eliminate. (grab_int): Ditto. * pwdgrp.h (pwdgrp::parse): Eliminate input arg. (pwdgrp::parse_passwd): Reflect above change. (pwdgrp::parse_group): Reflect above change. (pwdgrp::next_str): New function. (pwdgrp::next_int): Ditto. (pwdgrp::gets): Eliminate. * uinfo.cc (pwdgrp::next_str): New function. (pwdgrp::next_int): Ditto. (pwdgrp::add_line): Subsume gets. (pwdgrp::gets): Eliminate. (pwdgrp::load): Just call add_line to parse input buffer.
* Add missing entry.Christopher Faylor2003-01-241-1/+21
|
* * libltp/include/usctest.h: Add externs to some variables that need it.Christopher Faylor2003-01-243-5/+11
| | | | | * winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid optimization glitch.
* * winsup.api/mmaptest03.c (main): Mark variables as volatile to avoidChristopher Faylor2003-01-242-3/+8
| | | | optimization induced problems.
* * Makefile (check): Add cygrun.exe dependency.Christopher Faylor2003-01-242-1/+5
|
* Perform more C warning fixup on all C source files and headers.Christopher Faylor2003-01-24203-612/+514
|
* No, really this time.Nathanael Nerode2003-01-242-42/+40
|
* 2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode2003-01-233-2/+7
| | | | | * configure.in: Revert previous change. * configure: Regenerate.
* * libltp/include/test.h: Fix C warnings.Christopher Faylor2003-01-2319-89/+128
| | | | | | | | | | | | | | | | | | | | * winsup.api/checksignal.c: Ditto. * winsup.api/crlf.c: Ditto. * winsup.api/devzero.c: Ditto. * winsup.api/iospeed.c: Ditto. * winsup.api/mmaptest01.c: Ditto. * winsup.api/mmaptest02.c: Ditto. * winsup.api/mmaptest03.c: Ditto. * winsup.api/mmaptest04.c: Ditto. * winsup.api/nullgetcwd.c: Ditto. * winsup.api/sigchld.c: Ditto. * winsup.api/signal-into-win32-api.c: Ditto. * winsup.api/systemcall.c: Ditto. * winsup.api/waitpid.c: Ditto. * winsup.api/pthread/mainthreadexits.c: Ditto. * winsup.api/pthread/test.h: Ditto. * winsup.api/pthread/threadidafterfork.c: Ditto. * Makefile.in: Remove cygrun.exe from RUNTIME since it is built here now.
* * Makeifle.in: Use ALL_CFLAGS to build test programs so that correct librariesChristopher Faylor2003-01-232-1/+7
| | | | and other options are used.
* * lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo):Danny Smith2003-01-233-0/+24
| | | | | | Add stubs. * include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket options.
* 2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode2003-01-233-2/+7
| | | | | * configure.in: Make rda native-only. * configure: Regenerate.
* Add SH2E supportNick Clifton2003-01-232-0/+20
|
* include/elf/ChangeLogAlan Modra2003-01-234-58/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sh.h: Split out various bits to bfd/elf32-sh64.h. include/opcode/ChangeLog * m68hc11.h (cpu6812s): Define. bfd/ChangeLog * elf-bfd.h (struct bfd_elf_section_data): Remove tdata. Change dynindx to an int. Rearrange for better packing. * elf.c (_bfd_elf_new_section_hook): Don't alloc if already done. * elf32-mips.c (bfd_elf32_new_section_hook): Define. * elf32-sh64.h: New. Split out from include/elf/sh.h. (struct _sh64_elf_section_data): New struct. (sh64_elf_section_data): Don't dereference sh64_info (was tdata). * elf32-sh64-com.c: Include elf32-sh64.h. * elf32-sh64.c: Likewise. (sh64_elf_new_section_hook): New function. (bfd_elf32_new_section_hook): Define. (sh64_elf_fake_sections): Adjust for sh64_elf_section_data change. (sh64_bfd_elf_copy_private_section_data): Likewise. (sh64_elf_final_write_processing): Likewise. * elf32-sparc.c (struct elf32_sparc_section_data): New. (elf32_sparc_new_section_hook): New function. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete. (sec_do_relax): Define. (elf32_sparc_relax_section): Adjust to use sec_do_relax. (elf32_sparc_relocate_section): Likewise. * elf64-mips.c (bfd_elf64_new_section_hook): Define. * elf64-mmix.c (struct _mmix_elf_section_data): New. (mmix_elf_section_data): Define. Use throughout file. (mmix_elf_new_section_hook): New function. (bfd_elf64_new_section_hook): Define. * elf64-ppc.c (struct _ppc64_elf_section_data): New. (ppc64_elf_section_data): Define. Use throughout. (ppc64_elf_new_section_hook): New function. (bfd_elf64_new_section_hook): Define. * elf64-sparc.c (struct sparc64_elf_section_data): New. (sparc64_elf_new_section_hook): New function. (SET_SEC_DO_RELAX, SEC_DO_RELAX): Delete. (sec_do_relax): Define. (sparc64_elf_relax_section): Adjust to use sec_do_relax. (sparc64_elf_relocate_section): Likewise. (bfd_elf64_new_section_hook): Define. * elfn32-mips.c (bfd_elf32_new_section_hook): Define. * elfxx-mips.c (struct _mips_elf_section_data): New. (mips_elf_section_data): Define. Use throughout. (_bfd_mips_elf_new_section_hook): New function. (mips_elf_create_got_section): Don't alloc used_by_bfd. * elfxx-mips.h (_bfd_mips_elf_new_section_hook): Declare. * elfxx-target.h (bfd_elfNN_new_section_hook): Add #ifndef. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ChangeLog * sh64-dis.c: Include elf32-sh64.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ChangeLog * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed sh64_elf_section_data. * config/tc-sh64.h: Include elf32-sh64.h. * config/tc-m68hc11.c: Don't include stdio.h. (md_show_usage): Fix missing continuation. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ChangeLog * emultempl/sh64elf.em: Include elf32-sh64.h. (sh64_elf_${EMULATION_NAME}_before_allocation): Adjust for changed sh64_elf_section_data. (sh64_elf_${EMULATION_NAME}_after_allocation): Likewise.