summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from ↵Thomas Pfaff2003-01-221-1/+1
| | | | | | 2003-01-09 mutex patch. (PTHREAD_MUTEX_ERRORCHECK): Ditto.
* * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from ↵Thomas Pfaff2003-01-222-2/+8
| | | | | | 2003-01-09 mutex patch. (PTHREAD_MUTEX_ERRORCHECK): Ditto.
* * Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.Corinna Vinschen2003-01-222-3/+6
| | | | (MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
* * Makefile.common (MINGW_LDFLAGS): Add mingw/mingwex builddir.Corinna Vinschen2003-01-222-1/+5
|
* * cygrun.c: Move from here to ../testsuite.Corinna Vinschen2003-01-223-75/+6
| | | | * Makefile.in: Remove cygrun.exe dependencies.
* * cygrun.c: Move here from ../cygwin.Corinna Vinschen2003-01-224-2/+82
| | | | | * Makefile.in: Build cygrun.exe. * winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
* * cygwin.din: Export nanosleep().Corinna Vinschen2003-01-224-26/+54
| | | | | | | * signal.cc (nanosleep): New function. (sleep): Move old functionality to nanosleep(). Call nanosleep(). (usleep): Remove old functionality. Call nanosleep(). * include/cygwin/version.h: Bump API minor number.
* * Makefile.in: Find tcl library in the right place.Christopher Faylor2003-01-222-1/+5
|
* * winsup.api/pthread/cancel9.c: Make child pid static global.Thomas Pfaff2003-01-211-2/+1
| | | | (main): Wait in mainthread until child process has terminated.
* * winsup.api/pthread/cancel9.c: Make child pid static global.Thomas Pfaff2003-01-211-2/+3
| | | | (main): Wait in mainthread until child process has terminated.
* * winsup.api/pthread/cancel9.c: Wait in mainthread until child process has ↵Thomas Pfaff2003-01-212-1/+11
| | | | terminated.
* 2003-01-21 Anita Kulkarni <anitak@kpit.com>Jeff Johnston2003-01-212-1/+5
| | | | * libc/time/difftime.c : Typecast the result to double.
* * grp.cc: Call gr.refresh() rather than doing isunitialized tests throughout.Christopher Faylor2003-01-215-179/+143
| | | | | | | | | | | | | | | | | | | | | | | | (gr): Use constructor (sigh). (pwdgrp::parse_group): Rename from parse_grp. (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load with a single argument. * passwd.cc: Call pr.refresh() rather than doing isunitialized tests throughout. (pr): Use constructor (sigh). (pwdgrp::parse_passwd): Rename from "parse_pwd". (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load with a single argument. * pwdgrp.h (pwdgrp_state): Eliminate. (pwdgrp): Reflect above renamings. (pwdgrp::etc_ix): Rename from pwd_ix. (pwdgrp::read): New element. (pwdgrp::lock): New element. (pwdgrp::refresh): New function. (pwdgrp::load): Eliminate variations which take buffer arguments. (pwdgrp::pwdgrp): New constructors. Initialize mutex here. * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming. (pwdgrp::load): Set initialized state to true rather than setting state to loaded.
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2003-01-212-1/+5
|
* Fix ChangeLog entry.Christopher Faylor2003-01-211-1/+1
|
* add missing ChangeLog entry.Christopher Faylor2003-01-211-0/+1
|
* add missing ChangeLog entry.Christopher Faylor2003-01-211-0/+1
|
* * path.h (etc::change_possible): Revert the type to bool.Christopher Faylor2003-01-215-22/+20
| | | | | | | | | | (etc::set_last_modified): Remove obsolete function. * path.cc (etc::change_possible): Revert type to bool. (etc::test_file_change): Do not test for negative values of change_possible and do not set it to -res. (etc::dir_changed): When the handle is NULL, call memset instead of test_file_changed. When the handle is invalid, return true. (etc::file_changed): Remove unneeded check for !fn[n].
* Updates for fixing tic4x arch tagging of its object files.Svein Seldal2003-01-203-3/+16
| | | | | | | | | | | | | | * bfd/coffcode.h (coff_set_flags): Added get/set arch hooks. * include/coff/tic4x.h (TICOFF_TARGET_MACHINE_GET): Fixed define bug * include/coff/ti.h (TICOFF_TARGET_MACHINE_GET): Added macros * ld/Makefile.am: Added etic3xcoff.o and etic4xcoff_onchip.o * ld/Makefile.in: Regenerate * ld/configure.tgt: Added extra target emulations * ld/emulparams/tic3xcoff.sh: Remove old settings * ld/emulparams/tic4xcoff.sh: Ditto * ld/emulparams/tic3xcoff-onchip.sh: Added new * ld/scripttempl/tic4xcoff.sc: Revise and combine both c3x and c4x * ld/scripttempl/tic3xcoff.sc: Remove
* * libc/include/sys/unistd.h: Add rresvport declaration for cygwin.Christopher Faylor2003-01-202-1/+6
|
* * s390.h: Rename R_390_GOTOFF to R_390_GOTOFF32. Add new gotoff,Martin Schwidefsky2003-01-202-1/+16
| | | | gotplt and pltoff relocations.
* * pwdgrp.h (etc): Move to path.h.Christopher Faylor2003-01-207-224/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pwdgrp::max_lines): New field. (pwdgrp::curr_lines): New field. (pwdgrp::pwdgrp_buf): Ditto. (pwdgrp_buf_elem_size): Ditto. (pwdgrp_parse): Ditto. (pwdgrp::gets): Just declare here. (pwdgrp::load): Ditto. Just take one argument. (pwdgrp::load): Define overloaded function accepting passwd buf. (pwdgrp::load): Define overloaded function accepting group buf. * grp.cc: Use pwdgrp elements rather than standalone static variables throughout. (curr_lines): Eliminate. (max_lines): Ditto. (add_grp_line): Ditto. (parse_grp): Define as returning boolean. Accept void * arg and line count. Coerce first argument into __group32 buf reference. Increment curr_line as appropriate. (read_etc_group): Pass pwdgrp buffer to gr.load. * passwd.cc: Use pwdgrp elements rather than standalone static variables throughout. (curr_lines): Eliminate. (max_lines): Ditto. (add_grp_line): Ditto. (parse_passwd): Define as returning boolean. Accept void * arg and line count. Coerce first argument into passwd buf reference. Increment curr_line as appropriate. (read_etc_group): Pass pwdgrp buffer to pr.load. * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than zero. (etc::last_modified): Ditto. (etc::change_possible): Ditto. Renamed from sawchange. Change to signed char since elements are now tri-state. (etc::init): Assume "handle" is 1 based rather than 0. (etc::test_file_change): New function. Sets change_possible based on file date comparison. (etc::dir_changed): Check file states immediately after changed_h is initialized to avoid a race. (etc::file_changed): Use test_file_change to detect if file needs to be updated. * path.h (etc): Move class here from pwdgrp.h. * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions here. (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr. (pwdgrp::add_line): New function. (pwdgrp::load): Call generic add_line function which will call correct parser.
* * configure.in: Add missing \.Nathanael Nerode2003-01-193-30/+16
| | | | * configure: Rebuilt.
* Define __IEEE_BIG_ENDIAN, __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.Nick Clifton2003-01-182-0/+11
|
* fix typoChristopher Faylor2003-01-181-1/+1
|
* * cygheap.cc: Change most 'int's to 'unsigned's.Christopher Faylor2003-01-182-11/+16
| | | | | (_cmalloc): Only check for size of malloced region when calculating budget. Add overhead when performing the sbrk. Previous change broke _crealloc.
* * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.Christopher Faylor2003-01-175-43/+40
| | | | | | | | * grp.cc: Change most statics to NO_COPY throughout. * passwd.cc: Ditto. * pwdgrp.h: Change some BOOLs to bools. (pwdgrp::pwdgrp): Remove unneeded constructor. * passwd.cc: Change BOOL to bool throughout.
* * cygwin.din: Add strerror_r.Corinna Vinschen2003-01-173-1/+9
| | | | * include/cygwin/version.h: Bump API minor number.
* * configure.in (baseargs): Avoid using \| in sed regularJakub Jelinek2003-01-173-42/+58
| | | | | expressions. * configure: Rebuilt.
* update copyrightChristopher Faylor2003-01-174-4/+4
|
* whitespaceChristopher Faylor2003-01-171-1/+1
|
* correct pwdgroup::load entryChristopher Faylor2003-01-171-1/+1
|
* * uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unlessChristopher Faylor2003-01-172-1/+7
| | | | debugging.
* * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change nameChristopher Faylor2003-01-177-188/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "unknown" to "mkgroup". (internal_getgrgid): Do not return default in nontsec case. (internal_getgroups): Add argument srchsid and look for it in groups if not NULL. * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use same default uid for Win95 and NT. Call cygheap_user::ontherange to initialize HOME. * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc. * cygheap.h (init_cygheap::etc_changed_h): Remove. (init_cygheap::etc_changed): Ditto. * grp.cc (group_state): Remove. Use gr instead throughout. (gr): Define as class pwdgrp. (read_etc_group): Remove gr definition. Remove calls to set_last_modified and close. Pass add_grp to gr.load to load file. * passwd.cc (passwd_state): Remove. Use pr instead, throughout. (pr): Define as class pwdgrp. (read_etc_passwd): Remove pr definition. Remove calls to set_last_modified and close. Pass add_pwd_line to pr.load to load file. * pwdgrp.h (etc): New helper class for pwdgrp. (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove file_w32 and last_modified fields. (pwdgrp::set_last_modified): Remove. (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to etc::file_changed. (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc scanning. Close file handle after reading buffer into memory. Parse buffer by calling second argument. (pwdgrp::gets): Reorganize slightly to rely on eptr starting at beginning of buffer. Free buffer when memory exhausted. (pwdgrp::close): Remove. * uinfo.cc (etc::dir_changed): New function. (etc::init): Ditto. (etc::file_changed): Ditto. (etc::set_last_modified): Ditto.