Nick Clifton
0127ae4041
Add sh2e support
2003-01-24 15:46:04 +00:00
Corinna Vinschen
8bbcd9a1a5
* libc/include/sys/unistd.h: Add setregid and setreuid declarations
...
for Cygwin.
2003-01-24 15:25:24 +00:00
Corinna Vinschen
7d33eefa7b
* cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
...
* syscalls.cc (setreuid32): New function.
(setreuid): Ditto.
(setregid32): Ditto.
(setregid): Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-01-24 15:23:15 +00:00
Christopher Faylor
ac4133746e
* pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
...
* 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.
2003-01-24 03:53:46 +00:00
Christopher Faylor
09a8842674
Add missing entry.
2003-01-24 02:41:28 +00:00
Christopher Faylor
b831fc4446
* libltp/include/usctest.h: Add externs to some variables that need it.
...
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid
optimization glitch.
2003-01-24 01:51:39 +00:00
Christopher Faylor
8e61c0495e
* winsup.api/mmaptest03.c (main): Mark variables as volatile to avoid
...
optimization induced problems.
2003-01-24 01:41:30 +00:00
Christopher Faylor
23a30ba8d9
* Makefile (check): Add cygrun.exe dependency.
2003-01-24 01:30:43 +00:00
Christopher Faylor
31d7abadfe
Perform more C warning fixup on all C source files and headers.
2003-01-24 01:09:40 +00:00
Nathanael Nerode
1905b7393c
No, really this time.
2003-01-24 00:39:51 +00:00
Nathanael Nerode
e8743e1912
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
...
* configure.in: Revert previous change.
* configure: Regenerate.
2003-01-23 22:33:55 +00:00
Christopher Faylor
9b978ffe8b
* libltp/include/test.h: Fix C warnings.
...
* 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.
2003-01-23 21:21:28 +00:00
Christopher Faylor
d8f0f146b8
* Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries
...
and other options are used.
2003-01-23 21:14:56 +00:00
Danny Smith
2d771b3dd9
* lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo):
...
Add stubs.
* include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket
options.
2003-01-23 20:43:47 +00:00
Nathanael Nerode
e6bd792c07
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
...
* configure.in: Make rda native-only.
* configure: Regenerate.
2003-01-23 19:55:19 +00:00
Nick Clifton
87f4f0ab32
Add SH2E support
2003-01-23 18:50:57 +00:00
Alan Modra
ba6064d7f8
include/elf/ChangeLog
...
* 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.
2003-01-23 11:51:31 +00:00
Thomas Pfaff
ea35a5e4ae
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:51:31 +00:00
Thomas Pfaff
69fae98649
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:49:28 +00:00
Corinna Vinschen
92005b4cec
* Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
...
(MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2003-01-22 17:15:53 +00:00
Corinna Vinschen
2c6fdb56f5
* Makefile.common (MINGW_LDFLAGS): Add mingw/mingwex builddir.
2003-01-22 17:10:02 +00:00
Corinna Vinschen
2037688a5d
* cygrun.c: Move from here to ../testsuite.
...
* Makefile.in: Remove cygrun.exe dependencies.
2003-01-22 15:23:23 +00:00
Corinna Vinschen
19876644c7
* cygrun.c: Move here from ../cygwin.
...
* Makefile.in: Build cygrun.exe.
* winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
2003-01-22 15:18:58 +00:00
Corinna Vinschen
89f7e8d1d3
* cygwin.din: Export nanosleep().
...
* 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.
2003-01-22 10:43:39 +00:00
Christopher Faylor
13afd798c3
* Makefile.in: Find tcl library in the right place.
2003-01-22 03:58:28 +00:00
Thomas Pfaff
5cd5638f57
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:36:31 +00:00
Thomas Pfaff
f2137182fb
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:34:24 +00:00
Thomas Pfaff
00d1a4bb20
* winsup.api/pthread/cancel9.c: Wait in mainthread until child process has terminated.
2003-01-21 20:51:14 +00:00
Jeff Johnston
b8838e6f75
2003-01-21 Anita Kulkarni <anitak@kpit.com>
...
* libc/time/difftime.c : Typecast the result to double.
2003-01-21 19:37:04 +00:00
Christopher Faylor
57394495e2
* grp.cc: Call gr.refresh() rather than doing isunitialized tests throughout.
...
(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.
2003-01-21 06:58:11 +00:00
Christopher Faylor
984864e9ce
* include/cygwin/version.h: Bump DLL minor number.
2003-01-21 05:13:42 +00:00
Christopher Faylor
b99b804bb0
Fix ChangeLog entry.
2003-01-21 05:09:48 +00:00
Christopher Faylor
2386c7825f
add missing ChangeLog entry.
2003-01-21 05:09:20 +00:00
Christopher Faylor
33de631bf2
add missing ChangeLog entry.
2003-01-21 05:08:55 +00:00
Christopher Faylor
d8cde3a3ee
* path.h (etc::change_possible): Revert the type to bool.
...
(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].
2003-01-21 05:07:28 +00:00
Svein Seldal
14d304da97
Updates for fixing tic4x arch tagging of its object files.
...
* 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
2003-01-20 22:34:39 +00:00
Christopher Faylor
f9e41155f0
* libc/include/sys/unistd.h: Add rresvport declaration for cygwin.
2003-01-20 15:28:02 +00:00
Martin Schwidefsky
d52cfbfdd8
* s390.h: Rename R_390_GOTOFF to R_390_GOTOFF32. Add new gotoff,
...
gotplt and pltoff relocations.
2003-01-20 11:51:38 +00:00
Christopher Faylor
7905c4f158
* pwdgrp.h (etc): Move to path.h.
...
(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.
2003-01-20 02:57:54 +00:00
Nathanael Nerode
6f2480fbf7
* configure.in: Add missing \.
...
* configure: Rebuilt.
2003-01-19 23:45:39 +00:00
Nick Clifton
6b5a79886d
Define __IEEE_BIG_ENDIAN, __SMALL_BITFIELDS and _DOUBLE_IS_32BITS for IP2K.
2003-01-18 08:55:07 +00:00
Christopher Faylor
97d2bc794d
fix typo
2003-01-18 03:43:48 +00:00
Christopher Faylor
4c6a3e500e
* cygheap.cc: Change most 'int's to 'unsigned's.
...
(_cmalloc): Only check for size of malloced region when calculating budget.
Add overhead when performing the sbrk. Previous change broke _crealloc.
2003-01-18 03:26:07 +00:00
Christopher Faylor
e915243911
* dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
...
* 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.
2003-01-17 18:05:32 +00:00
Corinna Vinschen
afa378e74a
* cygwin.din: Add strerror_r.
...
* include/cygwin/version.h: Bump API minor number.
2003-01-17 13:08:06 +00:00
Jakub Jelinek
c4f94f48e3
* configure.in (baseargs): Avoid using \| in sed regular
...
expressions.
* configure: Rebuilt.
2003-01-17 08:00:16 +00:00
Christopher Faylor
abbaa3a0e6
update copyright
2003-01-17 05:43:43 +00:00
Christopher Faylor
0c0eec3f43
whitespace
2003-01-17 05:33:52 +00:00
Christopher Faylor
5304bcdf6c
correct pwdgroup::load entry
2003-01-17 05:29:23 +00:00
Christopher Faylor
1de6f431aa
* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless
...
debugging.
2003-01-17 05:24:28 +00:00