]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
16 years ago * fhandler.h (enum query_state): Drop redundant query_stat_control.
Corinna Vinschen [Fri, 27 Jul 2007 08:38:00 +0000 (08:38 +0000)]
* fhandler.h (enum query_state): Drop redundant query_stat_control.
* fhandler.cc (fhandler_base::open): Ditto.  Add READ_CONTROL to
access and FILE_OPEN_FOR_BACKUP_INTENT to create_options when opening
for writing.  Always set security attributes to avoid calling
has_acls.
* fhandler_disk_file.cc (fhandler_base::fstat_fs): Don't try to
open file twice.

16 years ago * dir.cc (readdir_worker): Drop dir parameter from call to
Corinna Vinschen [Thu, 26 Jul 2007 17:30:54 +0000 (17:30 +0000)]
* dir.cc (readdir_worker): Drop dir parameter from call to
readdir_get_ino.
* fhandler.h (fhandler_disk_file::readdir_helper): Switch file name
parameter to PUNICODE_STRING.
* fhandler_disk_file.cc: Drop including ntdef.h.
(class __DIR_mounts): Store mount points in UNICODE.  Additionally
store cygdrive prefix in unicode here.  Change methods accordingly.
(__DIR_mounts::eval_ino): Call new stat_worker instead of lstat64.
(__DIR_mounts::~__DIR_mounts): New destructor to free UNICODE buffers.
(path_conv::ndisk_links): Rewrite using native NT functions.
(fhandler_base::fstat_by_handle): Use NAME_MAX instead of CYG_MAX_PATH.
Always set pfvi->VolumeSerialNumber to non-0.  Remove last resort
code.
(fhandler_base::fstat_by_name): Rewrite using native NT functions.
(fhandler_base::fstat_fs): Always call fstat_by_name if fstat_by_handle
fails.
(fhandler_base::fstat_helper): Rely on dwVolumeSerialNumber.
(fhandler_disk_file::facl): Call fstat_by_name if fstat_by_handle fails.
(DIR_BUF_SIZE): Define using NAME_MAX instead of CYG_MAX_PATH.
(__DIR_cache): Remove __name.
(d_dirname): Remove.
(fhandler_disk_file::opendir): Drop pathname length check.
Remove outdated comment.  Use get_name method instead of accessing
pc.normalized_path directly.
(readdir_get_ino): Drop unused dir parameter.  Accomodate throughout.
Allocate fname dynamically.  Call new stat_worker instead of lstat64.
Call NtOpenFile instead of CreateFile.  Call NtClose instead of
CloseHandle.
(fhandler_disk_file::readdir_helper): Use native NT functions.
Check for volume mount points and use correct inode number.
(fhandler_disk_file::readdir): Simplify slightly.
Use get_name instead of pc.normalized_path.
(fhandler_disk_file::rewinddir): Use RtlInitUnicodeString.
(fhandler_cygdrive::fstat): Ignore floppy drives.  Set st_nlink
correctly.
(fhandler_cygdrive::readdir): Ignore floppy drives.
* fhandler_netdrive.cc (fhandler_netdrive::readdir): Accommodate
change to readdir_get_ino.
* fhandler_proc.cc (PROC_DIR_COUNT): Define.
(fhandler_proc::fstat): Evaluate correct link count for /proc.
* ntdll.h (struct _FILE_DIRECTORY_INFORMATION): Define.
(NtFsControlFile): Declare.
(RtlAppendUnicodeToString): Declare.
(RtlAppendUnicodeStringToString): Declare.
(RtlCompareUnicodeString): Declare.
(RtlCopyUnicodeString): Declare.
(RtlCreateUnicodeStringFromAsciiz): Declare.
(RtlEqualUnicodeString): Declare.
(RtlFreeUnicodeString): Declare.
(RtlInitEmptyUnicodeString): Declare.
(RtlSecondsSince1970ToTime): Declare.
(RtlInitEmptyUnicodeString): Define as inline function.
(RtlInitCountedUnicodeString): Define as inline function.
* path.cc (path_conv::check): New method with PUNICODE_STRING as path,
preliminary implementation.
(mount_info::get_mounts_here): Change to create UNICODE_STRINGs.
Also copy cygpath prefix into UNICODE_STRING.
(is_floppy): Drop 9x consideration.
* path.h: Drop including ntdef.h.
(path_conv::check): Add declaration.
(path_conv::path_conv): Add constructor for UNICODE_STRING paths.
* shared_info.h (mount_info::get_mounts_here): Change declaration.
* syscalls.cc: Drop forward declaration of stat_worker.
(stat_worke): Take path_conv as parameter.  Drop nofollow flag.
(stat64): Create matching path_conv and call stat_worker with it.
(lstat64): Ditto.
* winsup.h: Include ntdef.h.
(stat_worker): Declare.
(readdir_get_ino): Change declaration.

17 years ago * autoload.cc (CreateToolhelp32Snapshot): Remove.
Corinna Vinschen [Wed, 25 Jul 2007 16:11:03 +0000 (16:11 +0000)]
* autoload.cc (CreateToolhelp32Snapshot): Remove.

17 years ago * autoload.cc (Process32First): Remove.
Corinna Vinschen [Wed, 25 Jul 2007 16:07:41 +0000 (16:07 +0000)]
* autoload.cc (Process32First): Remove.
(Process32Next): Remove.

17 years ago * include/wtypes.h (LPDECIMAL): Define.
Danny Smith [Wed, 25 Jul 2007 10:21:53 +0000 (10:21 +0000)]
* include/wtypes.h (LPDECIMAL): Define.
(DECIMAL_NEG, DECIMAL_SETZERO): Move definitions.

17 years ago * autoload.cc (NetWkstaUserGetInfo): Remove.
Corinna Vinschen [Wed, 25 Jul 2007 10:04:57 +0000 (10:04 +0000)]
* autoload.cc (NetWkstaUserGetInfo): Remove.
(CharToOemBuffA): Remove.
(KillTimer): Remove.
(OemToCharBuffA): Remove.
(SetTimer): Remove.

17 years ago * ternary.h: Remove.
Ben Elliston [Wed, 25 Jul 2007 06:34:29 +0000 (06:34 +0000)]
* ternary.h: Remove.

17 years ago Add missing ChangeLog entry.
Corinna Vinschen [Tue, 24 Jul 2007 19:17:05 +0000 (19:17 +0000)]
Add missing ChangeLog entry.

17 years ago * dumper.cc: Change license to plain GPLv2 + later.
Corinna Vinschen [Tue, 24 Jul 2007 19:08:23 +0000 (19:08 +0000)]
* dumper.cc: Change license to plain GPLv2 + later.
* dumper.h: Ditto.
* parse_pe.cc: Ditto.

17 years ago* Makefile.in (SUBDIRS): Delete stray line continuation artifact,
Keith Marshall [Mon, 23 Jul 2007 21:32:35 +0000 (21:32 +0000)]
* Makefile.in (SUBDIRS): Delete stray line continuation artifact,
resulting from incomplete removal of enclosing `for ...; do ...; done'
loop from compound command; (reported by Greg Chicares).

17 years ago* strace.cc (create_child): Don't convert a path from cygwin format unless it
Christopher Faylor [Mon, 23 Jul 2007 21:03:59 +0000 (21:03 +0000)]
* strace.cc (create_child): Don't convert a path from cygwin format unless it
has a slash.

17 years ago * bsd_helper.cc: Drop unnecessary security.h include.
Corinna Vinschen [Sat, 21 Jul 2007 07:43:24 +0000 (07:43 +0000)]
* bsd_helper.cc: Drop unnecessary security.h include.

17 years ago Fix ChangeLog
Corinna Vinschen [Fri, 20 Jul 2007 15:42:09 +0000 (15:42 +0000)]
Fix ChangeLog

17 years ago * fhandler.cc (fhandler_base::fhaccess): Accommodate interface changes
Corinna Vinschen [Fri, 20 Jul 2007 14:29:43 +0000 (14:29 +0000)]
* fhandler.cc (fhandler_base::fhaccess): Accommodate interface changes
of access control functions throughout.
* fhandler_disk_file.cc: Ditto.
* fhandler_registry.cc: Ditto.
* sec_acl.cc: Drop unnecessary includes.
(setacl): Take path_conv instead of file name as parameter.
Accommodate interface changes of access control functions.
(getacl): Ditto.
* sec_auth.cc: New file, taking over all authentication related
functions from security.cc.
* sec_helper.cc: Drop unnecessary includes.
* security.cc: Ditto.  Move all authentication related functions to
sec_auth.cc.
(ALL_SECURITY_INFORMATION): New define.  Use throughout.
(set_file_sd): New function, replacing read_sd and the file related
part of get_nt_object_security.
(get_reg_sd): Rename from get_reg_security.  Drop type parameter.
(get_reg_attribute): New function, replacing the registry related part
of get_nt_object_security.
(get_file_attribute): Take path_conv instead of file name as parameter.
Use new get_file_sd call.
(set_file_attribute): Ditto plus new set_file_sd.  Drop unnecessary
implementation without uid/gid parameters.
(check_file_access): Take path_conv instead of file name as parameter.
Use new get_file_sd call.
(check_registry_access): Use new get_reg_sd call.
* security.h: Accommodate above interface changes.

17 years ago * security.cc (set_nt_attribute): Remove.
Corinna Vinschen [Thu, 19 Jul 2007 17:42:11 +0000 (17:42 +0000)]
* security.cc (set_nt_attribute): Remove.
(set_file_attribute): Do it yourself instead of calling
set_nt_attribute.

17 years ago * fhandler_disk_file.cc (fhandler_base::fstat_by_name): Use
Corinna Vinschen [Thu, 19 Jul 2007 17:22:34 +0000 (17:22 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_by_name): Use
NtQueryFullAttributesFile instead of FindFirstFile.
(fhandler_base::fstat_fs): Drop check for exec_state.  Drop check for
invalid characters.
* ntdll.h (struct _FILE_NETWORK_OPEN_INFORMATION): Define.
(NtQueryFullAttributesFile): Declare.

17 years ago * fhandler.cc (fhandler_base::open): Drop local wpath and upath
Corinna Vinschen [Thu, 19 Jul 2007 11:41:17 +0000 (11:41 +0000)]
* fhandler.cc (fhandler_base::open): Drop local wpath and upath
variables.  Call pc.get_object_attr to create object attributes.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Ditto.
* syscalls.cc (unlink_nt): Ditto.
* path.cc (path_conv::set_normalized_path): Set wide_path to NULL.
(path_conv::get_nt_native_path): Drop parameter.  Create path in
wide_path/uni_path members.
(path_conv::get_object_attr): New method to create object attributes.
(path_conv::get_wide_win32_path): New method to create Win32 wide path.
(path_conv::check): Initialize wide_path to NULL.
(path_conv::~path_conv): cfree wide_path.
* path.h (class path_conv): New members wide_path and uni_path.
Add declarations of get_object_attr and get_wide_win32_path.
(path_conv::path_conv): Initialize wide_path to NULL.
(path_conv::get_nt_native_path): Drop parameter.

17 years ago * include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
Danny Smith [Thu, 19 Jul 2007 09:25:32 +0000 (09:25 +0000)]
* include/fcntl.h (_O_WTEXT, _O_U16TEXT, _O_U8TEXT) Define for
Vista.

17 years ago * sec_helper.cc: Remove unused code.
Corinna Vinschen [Thu, 19 Jul 2007 09:12:09 +0000 (09:12 +0000)]
* sec_helper.cc: Remove unused code.

17 years ago * autoload.cc (SetSecurityDescriptorControl): Drop.
Corinna Vinschen [Thu, 19 Jul 2007 09:06:54 +0000 (09:06 +0000)]
* autoload.cc (SetSecurityDescriptorControl): Drop.
* security.cc (alloc_sd): Set security descriptor control flag without
calling SetSecurityDescriptorControl function.
* wincap.h (wincapc::has_dacl_protect): Rename from
has_security_descriptor_control.
* wincap.cc: Ditto throughout.

17 years ago * autoload.cc (SetUserObjectSecurity): Drop.
Corinna Vinschen [Thu, 19 Jul 2007 08:36:32 +0000 (08:36 +0000)]
* autoload.cc (SetUserObjectSecurity): Drop.
* pinfo.cc (pinfo::set_acl): Use NtSetSecurityObject instead of
SetKernelObjectSecurity.
* spawn.cc (spawn_guts): Use NtSetSecurityObject instead of
SetUserObjectSecurity.
* uinfo.cc (cygheap_user::init): Ditto.

17 years ago * cygheap.h (init_cygheap::luid): Remove.
Corinna Vinschen [Thu, 19 Jul 2007 08:33:22 +0000 (08:33 +0000)]
* cygheap.h (init_cygheap::luid): Remove.
* mmap.cc (mlock): Accommodate parameter change in call to
push_thread_privilege.
(munlock): Ditto.
* ntdll.h (STATUS_NOT_ALL_ASSIGNED): Define.
(NtAdjustPrivilegesToken): Declare.
* sec_helper.cc (cygpriv): Reorder to match numerical privilege order.
(privilege_luid): Take job of privilege_luid_by_name, using new
cygpriv.
(privilege_luid_by_name): Remove.
(privilege_name): Accommodate new cygpriv array.
(set_privilege): Call NtAdjustPrivilegesToken to avoid using advapi32.
Accommodate changes to privilege_name.
(set_cygwin_privileges): Simplify.  Don't try to set
SE_CREATE_GLOBAL_PRIVILEGE on systems not supporting it.
* security.cc (sys_privs): Reorder to match numerical privilege order.
Use real privilege values as defined in security.h.
(get_system_priv_list): Drop unused grp_list argument.  Create
list of privileges according to new wincapc::max_sys_priv value.
(get_priv_list): Call privilege_luid instead of privilege_luid_by_name.
Make priv a local value instead of a pointer.
(create_token): Accommodate parameter change in call to
push_self_privilege.
(lsaauth): Ditto.
(check_access): Use privilege values directly instead of calling
privilege_luid.
* security.h: Define real privilege values.
(cygpriv_idx): Remove.
(privilege_luid): Change declaration.
(privilege_luid_by_name): Drop declaration.
(set_privilege): Change declaration.
(set_process_privilege): Drop definition.
(_push_thread_privilege): Accomodate new set_privilege parameters.
* wincap.h (wincapc::max_sys_priv): New element.
* wincap.cc: Implement above element throughout.
(wincap_2000sp4): New wincaps structure.
(wincap_xpsp1): Ditto.
(wincap_xpsp2): Ditto.
(wincapc::init): Use new wincaps.
(wincapc::max_sys_priv): New element.

17 years ago * dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after
Corinna Vinschen [Thu, 19 Jul 2007 07:24:17 +0000 (07:24 +0000)]
* dcrt0.cc (dll_crt0_0): Call set_cygwin_privileges here, after
initializing hProcToken.
* sec_helper.cc (init_global_security): Don't call set_cygwin_privileges        here.

17 years agoFix 'make info'.
Eric Blake [Thu, 19 Jul 2007 03:42:21 +0000 (03:42 +0000)]
Fix 'make info'.
* libc/stdio/stdio.tex: Add missing include.
* libc/stdio/vfprintf.c: Use expected node name.
* libc/stdio/vfscanf.c: Likewise.
* libc/stdio/sscanf.c: Likewise.
* libc/stdio/sprintf.c: Likewise.
* libc/stdio/siscanf.c: Likewise.
* libc/stdio/siprintf.c: Likewise.
* libc/stdio/fopencookie.c: Quote raw {}.
Reported by DJ Delorie.

17 years ago * xtensa-config.h (XCHAL_HAVE_THREADPTR): New.
Bob Wilson [Wed, 18 Jul 2007 18:52:30 +0000 (18:52 +0000)]
* xtensa-config.h (XCHAL_HAVE_THREADPTR): New.
(XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): New.

17 years agoFix date type for 1.15 release.
Jeff Johnston [Wed, 18 Jul 2007 18:27:04 +0000 (18:27 +0000)]
Fix date type for 1.15 release.

17 years ago * faq-using.xml (faq.using.console-window): Mention FHS location of
Brian Dessent [Wed, 18 Jul 2007 15:43:37 +0000 (15:43 +0000)]
* faq-using.xml (faq.using.console-window): Mention FHS location of
docs and remove outdated reference to ash.

17 years ago * include/winnt.h (SE_TRUSTED_CREDMAN_ACCESS_NAME): Define.
Corinna Vinschen [Wed, 18 Jul 2007 12:52:45 +0000 (12:52 +0000)]
* include/winnt.h (SE_TRUSTED_CREDMAN_ACCESS_NAME): Define.

17 years ago * cygheap.h (shared_prefix): De-const.
Corinna Vinschen [Wed, 18 Jul 2007 11:15:51 +0000 (11:15 +0000)]
* cygheap.h (shared_prefix): De-const.
(shared_prefix_buf): Add static buffer for shared prefix to avoid
additional allocation.
* cygheap.cc (cygheap_init): Set cygheap->shared_prefix to
cygheap->shared_prefix_buf and strcpy.

17 years ago * fhandler.cc (fhandler_base::fhaccess): Add check for R/O file system.
Corinna Vinschen [Tue, 17 Jul 2007 14:39:02 +0000 (14:39 +0000)]
* fhandler.cc (fhandler_base::fhaccess): Add check for R/O file system.
* security.cc (check_registry_access): Set errno to EROFS when checking
for W_OK.

17 years ago * include/winnt.h (FILE_READ_ONLY_VOLUME): Define.
Corinna Vinschen [Tue, 17 Jul 2007 14:30:38 +0000 (14:30 +0000)]
* include/winnt.h (FILE_READ_ONLY_VOLUME): Define.
* include/ddk/ntifs.h (FILE_READ_ONLY_VOLUME): Define.

17 years ago* COPYING3: New file. Contains version 3 of the GNU General Public License.
Nick Clifton [Tue, 17 Jul 2007 13:50:23 +0000 (13:50 +0000)]
* COPYING3: New file.  Contains version 3 of the GNU General Public License.
* COPYING3.LIB: New file.  Contains version 3 of the GNU Lesser General Public License.

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::opendir): Move setting
Corinna Vinschen [Tue, 17 Jul 2007 13:22:21 +0000 (13:22 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Move setting
cfd->nohandle where it won't crash.

17 years ago * cygheap.h (cygheap_user::curr_imp_token): Rename from current_token.
Corinna Vinschen [Mon, 16 Jul 2007 20:01:15 +0000 (20:01 +0000)]
* cygheap.h (cygheap_user::curr_imp_token): Rename from current_token.
Accommodate changge throughout Cygwin.
(cygheap_user::imp_token): Rename from token.  Accommodate changge
throughout Cygwin.
(rcygheap_user::eimpersonate): Use primary token for impersonation.
* grp.cc (internal_getgroups): Use primary impersonation token when
impersonated.
* security.h (_push_thread_privilege): Use primary impersonation token
when impersonated.

17 years ago* init.cc (in_dllentry): Delete.
Christopher Faylor [Sat, 14 Jul 2007 15:58:32 +0000 (15:58 +0000)]
* init.cc (in_dllentry): Delete.
(dll_entry): Remove assignment to deleted variable.
* winsup.h (in_dllentry): Delete declaration.
* exceptions.cc (inside_kernel): Use another method to see if we are in
dll_entry phase.

17 years ago* init.cc (in_dllentry): Make NO_COPY to avoid spurious false positives.
Christopher Faylor [Sat, 14 Jul 2007 02:27:11 +0000 (02:27 +0000)]
* init.cc (in_dllentry): Make NO_COPY to avoid spurious false positives.

17 years agoFix fflush issues.
Eric Blake [Fri, 13 Jul 2007 20:37:53 +0000 (20:37 +0000)]
Fix fflush issues.
* libc/stdio/fflush.c (_fflush_r): New function.
(fflush): Fix reentrancy and large offset behavior.
* libc/include/stdio.h (_fflush_r): Add prototype.
* libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fseek.c (_fseek_r): Likewise.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/setvbuf.c (setvbuf): Likewise.
* libc/stdio/ungetc.c (_ungetc_r): Likewise.
* libc/stdio/vfprintf.c (__sbprintf): Likewise.
* libc/stdio/wbuf.c (__swbuf_r): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise.  Defer to
32-bit version if not large file.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.

17 years agomerge from gcc
DJ Delorie [Fri, 13 Jul 2007 18:23:23 +0000 (18:23 +0000)]
merge from gcc

17 years ago * mep/fmax.ld, mep/gmap_default.ld, mep/min.ld, mep/simple.ld
Kevin Buettner [Fri, 13 Jul 2007 17:32:21 +0000 (17:32 +0000)]
* mep/fmax.ld, mep/gmap_default.ld, mep/min.ld, mep/simple.ld
(.gcc_except_table): Add pattern for .gcc_except_table.*.

17 years agoDocumentation updates.
Eric Blake [Fri, 13 Jul 2007 17:07:28 +0000 (17:07 +0000)]
Documentation updates.
* libc/stdio/ungetc.c: Document ungetc.
* libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
of files with documentation.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/stdio.tex: Sort and update stdio documentation index.

17 years ago * splay-tree.h (libi_uhostptr_t, libi_shostptr_t): Adjust types
Hans-Peter Nilsson [Thu, 12 Jul 2007 13:30:24 +0000 (13:30 +0000)]
* splay-tree.h (libi_uhostptr_t, libi_shostptr_t): Adjust types
work-a-round whitespace problem in gcc gengtype.

17 years ago * configure.ac: Fix my previous change to really match GCC.
Bernd Schmidt [Thu, 12 Jul 2007 11:51:39 +0000 (11:51 +0000)]
* configure.ac: Fix my previous change to really match GCC.
* configure: Regenerate.

17 years ago2007-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe [Thu, 12 Jul 2007 11:22:31 +0000 (11:22 +0000)]
2007-07-12  Chris Sutcliffe  <ir0nh34d@users.sourceforge.net>

        * include/winuser.h (FE_FONTSMOOTHINGSTANDARD, FE_FONTSMOOTHINGCLEARTYPE):
        Define.

17 years agoChangelog typo
Danny Smith [Thu, 12 Jul 2007 09:42:31 +0000 (09:42 +0000)]
Changelog typo

17 years ago * incude/wchar.h (_wsystem) Declare.
Danny Smith [Thu, 12 Jul 2007 09:38:17 +0000 (09:38 +0000)]
* incude/wchar.h (_wsystem) Declare.
(_wputenv) Declare.
(_wgetenv): Declare.
(_wsearchenv): Declare.
(_wmakepath): Declare.
(_wsplitpath): Declare.
(_wfullpath): Declare.
* incude/stdlib.h (_wsystem) Declare.
(_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, _wfullpath):
Move into _WSTDLIB_DEFINED guard.
* include/tchar.h (_tsystem): New UNICODE mapping define.

17 years ago * include/winuser.h: (PBT_APMQUERYSUSPEND, PBT_APMQUERYSTANDBY,
Danny Smith [Thu, 12 Jul 2007 07:54:51 +0000 (07:54 +0000)]
* include/winuser.h: (PBT_APMQUERYSUSPEND, PBT_APMQUERYSTANDBY,
PBT_APMQUERYSUSPENDFAILED, PBT_APMQUERYSTANDBYFAILED,
PBT_APMSUSPEND, PBT_APMSTANDBY, PBT_APMRESUMECRITICAL,
PBT_APMRESUMESUSPEND, PBT_APMRESUMESTANDBY, PBT_APMBATTERYLOW,
PBT_APMPOWERSTATUSCHANGE, PBT_APMOEMEVENT, PBT_APMRESUMEAUTOMATIC):
Sync with include/pbt.h.

17 years agoAdd support for building on a 64-bit Windows host.
Nick Clifton [Thu, 12 Jul 2007 07:16:41 +0000 (07:16 +0000)]
Add support for building on a 64-bit Windows host.

17 years ago [mingw-Bugs-1751518]
Danny Smith [Thu, 12 Jul 2007 05:49:18 +0000 (05:49 +0000)]
[mingw-Bugs-1751518]
* include/mshtml.h (IHTMLDocument2): Correct spelling of put_URL, get_URL.

[mingw-Bugs-1751565]
* include/basetyps.h (IID); Guard with __IID_DEFINED__

[mingw-Bugs-1751595]
* include/exdisp.h (DWebBrowserEvents2): Remove undocumented STDDISP
methods.

17 years agoMerge from gcc:
DJ Delorie [Wed, 11 Jul 2007 19:12:27 +0000 (19:12 +0000)]
Merge from gcc:
2007-07-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
* configure.ac: Rewrite 'configure --help' strings to look nicer.
* configure: Regenerate.

2007-07-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
* configure.ac: Add some missing m4 quotation.
* configure: Regenerate.

17 years ago2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Wed, 11 Jul 2007 19:09:22 +0000 (19:09 +0000)]
2007-07-06  H.J. Lu  <hongjiu.lu@intel.com>

* tls.m4 (GCC_CHECK_CC_TLS): New.

2007-07-05  Sebastian Pop  <sebpop@gmail.com>

PR bootstrap/32622
* mh-x86omitfp (BOOT_CFLAGS): Add -fomit-frame-pointer,
don't reset its value.

17 years ago2007-07-11 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 11 Jul 2007 18:09:08 +0000 (18:09 +0000)]
2007-07-11  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/math.h: Fix so C99 functions/macros are accessible
        when -std=c99 is used when compiling and not when using C89.

17 years ago [mingw-Bugs-1750898]
Danny Smith [Tue, 10 Jul 2007 08:06:00 +0000 (08:06 +0000)]
[mingw-Bugs-1750898]
* include/mmsystem.h (MIXERCONTROL): Correct UNICODE mapping.
Thanks to Yuji Kuwabara  <yujikuwabara at sf dot net>

17 years ago* debug.cc (close_handle): Change debug output format slightly.
Christopher Faylor [Tue, 10 Jul 2007 01:21:03 +0000 (01:21 +0000)]
* debug.cc (close_handle): Change debug output format slightly.
* dlfcn.cc (dlclose): Don't close handle returned from GetModuleHandle(NULL).
* fhandler.h (fhandler_pipe::create): Remove obsolete argument.
(fhandler_pipe::create): Ditto.
* fhandler.cc (fhandler_pipe::create): Ditto.
(fhandler_pipe::create): Ditto.

17 years ago* strace.cc (usage): Add missing description for -q.
Christopher Faylor [Tue, 10 Jul 2007 00:57:30 +0000 (00:57 +0000)]
* strace.cc (usage): Add missing description for -q.

17 years ago* cygwin/strsig.cc (__signals): New macro.
Christopher Faylor [Tue, 10 Jul 2007 00:12:54 +0000 (00:12 +0000)]
* cygwin/strsig.cc (__signals): New macro.
(sys_sigabbrev): New array of signal strings, patterned after linux.
(siglist): Use __signals.
* cygwin/include/cygwin/signal.h (sys_sigabbrev): Define.
* cygwin/include/cygwin/version.h: Bump API minor version to 177.

* utils/Makefile.in (kill.exe): Remove reliance on libiberty.
* utils/kill.cc (strsigno): New function patterned after libiberty but using
newly exported cygwin array.

17 years ago.
Roland McGrath [Mon, 9 Jul 2007 21:21:50 +0000 (21:21 +0000)]
.

17 years ago2007-07-09 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 9 Jul 2007 21:21:42 +0000 (21:21 +0000)]
2007-07-09  Roland McGrath  <roland@redhat.com>

* bfdlink.h (struct bfd_link_info): Add member emit_note_gnu_build_id.

17 years ago2007-07-09 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 9 Jul 2007 21:17:42 +0000 (21:17 +0000)]
2007-07-09  Roland McGrath  <roland@redhat.com>

* common.h (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.

17 years ago * dir.cc (closedir): Revert change from 2007-06-29.
Corinna Vinschen [Mon, 9 Jul 2007 17:02:37 +0000 (17:02 +0000)]
* dir.cc (closedir): Revert change from 2007-06-29.
* fhandler.h (dirent_valid_fd): Drop.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): If opening a
real dir, use the underlying fhandler to keep track of the directory
handle.  In fdopendir case use original io_handle from fhandler.  Use
fhandler's io_handle in subsequent directory functions throughout.
Create handle non-inheritable and set close-on-exec flag.
(readdir_get_ino): Drop dirent_isroot case.
(fhandler_disk_file::readdir): Handle dirent_isroot case here.
(fhandler_disk_file::rewinddir): Revert change from 2007-07-05.  Use
NtClose instead of CloseHandle.
* fhandler_virtual.cc (fhandler_virtual::opendir): Drop adding
dirent_valid_fd flag.  Set close-on-exec flag.

17 years agoImport patch from FSF gcc sources to add support for building windmc tool.
Nick Clifton [Mon, 9 Jul 2007 09:16:05 +0000 (09:16 +0000)]
Import patch from FSF gcc sources to add support for building windmc tool.

17 years ago [mingw-Bugs-1749305]
Danny Smith [Mon, 9 Jul 2007 08:56:22 +0000 (08:56 +0000)]
[mingw-Bugs-1749305]
* lib/kernel32.def (GetConsoleProcessList@8):  Add export.

17 years ago* Makefile.in (DLL_OFILES): Add newly-imported random.o. Eliminate reliance on
Christopher Faylor [Sun, 8 Jul 2007 15:04:34 +0000 (15:04 +0000)]
* Makefile.in (DLL_OFILES): Add newly-imported random.o.  Eliminate reliance on
libiberty.
* random.cc: Import from FreeBSD.  Modify for Cygwin environment.
* include/cygwin/stdlib.h (random): Reflect change in return value to be more
linux/freebsd-like.
(srandom): Ditto.

17 years agoAdd initial FreeBSD version of random.c
Christopher Faylor [Sun, 8 Jul 2007 14:59:47 +0000 (14:59 +0000)]
Add initial FreeBSD version of random.c

17 years agoupdate copyright
Christopher Faylor [Sat, 7 Jul 2007 17:29:20 +0000 (17:29 +0000)]
update copyright

17 years ago* fhandler.h (fhandler_base::write): Remove __stdcall decoration.
Christopher Faylor [Sat, 7 Jul 2007 17:28:22 +0000 (17:28 +0000)]
* fhandler.h (fhandler_base::write): Remove __stdcall decoration.
(fhandler_pipe::write): Ditto.
(fhandler_fifo::write): Ditto.

17 years agoPreliminary change to make fifos/pipes interruptible and fifos reliable.
Christopher Faylor [Sat, 7 Jul 2007 17:00:33 +0000 (17:00 +0000)]
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.

17 years ago* path.cc (symlink_info::check_shortcut): Handle device "symlinks" specially -
Christopher Faylor [Sat, 7 Jul 2007 16:48:26 +0000 (16:48 +0000)]
* path.cc (symlink_info::check_shortcut): Handle device "symlinks" specially -
don't posixify them.

17 years ago* fhandler_disk_file.cc: White space.
Christopher Faylor [Sat, 7 Jul 2007 16:46:35 +0000 (16:46 +0000)]
* fhandler_disk_file.cc: White space.
* fhandler_proc.cc: Ditto.
* fhandler_virtual.cc: Ditto.

17 years ago* fork.cc: White space.
Christopher Faylor [Sat, 7 Jul 2007 16:43:03 +0000 (16:43 +0000)]
* fork.cc: White space.
* net.cc: Ditto.
* posix_ipc.cc: Ditto.

17 years ago * times.cc (gettimeofday): Align definition to POSIX.
Corinna Vinschen [Fri, 6 Jul 2007 20:09:23 +0000 (20:09 +0000)]
* times.cc (gettimeofday): Align definition to POSIX.

17 years ago * cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.
Corinna Vinschen [Fri, 6 Jul 2007 20:05:44 +0000 (20:05 +0000)]
* cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.
* include/cygwin/version.h: Bump API minor number.

17 years ago * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
Corinna Vinschen [Fri, 6 Jul 2007 20:03:28 +0000 (20:03 +0000)]
* 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.

17 years ago * CYGWIN_LICENSE: Fix URL to world-wide offices.
Corinna Vinschen [Fri, 6 Jul 2007 19:55:43 +0000 (19:55 +0000)]
* CYGWIN_LICENSE: Fix URL to world-wide offices.

17 years ago * CYGWIN_LICENSE: Fix URL to open source definition.
Corinna Vinschen [Fri, 6 Jul 2007 19:51:44 +0000 (19:51 +0000)]
* CYGWIN_LICENSE: Fix URL to open source definition.

17 years ago2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 6 Jul 2007 17:00:13 +0000 (17:00 +0000)]
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.

17 years ago2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 6 Jul 2007 16:56:30 +0000 (16:56 +0000)]
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.

17 years ago2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 6 Jul 2007 16:42:48 +0000 (16:42 +0000)]
2007-07-06  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/intl/dcigettext.c: Define HAVE_STPCPY.
        * libc/sys/linux/intl/l10nflist.c: Ditto.

17 years agoUpdate tp GPLv3
Nick Clifton [Fri, 6 Jul 2007 11:13:56 +0000 (11:13 +0000)]
Update tp GPLv3

17 years ago2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
H.J. Lu [Thu, 5 Jul 2007 17:57:04 +0000 (17:57 +0000)]
2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>

* lt~obsolete.m4: New. Import from 20070318 libtool.

17 years ago * fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing
Corinna Vinschen [Thu, 5 Jul 2007 09:35:36 +0000 (09:35 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing
OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES.
(fhandler_disk_file::rewinddir): Ditto.

17 years ago Check in missing cygwin.din change from 2007-06-29.
Corinna Vinschen [Thu, 5 Jul 2007 07:36:11 +0000 (07:36 +0000)]
Check in missing cygwin.din change from 2007-06-29.

17 years ago * libc/include/wchar.h: Add prototype for wcsxfrm.
Corinna Vinschen [Wed, 4 Jul 2007 16:18:34 +0000 (16:18 +0000)]
* 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.

17 years ago * times.cc: Define __timezonefunc__ before including time.h to protect
Corinna Vinschen [Wed, 4 Jul 2007 10:43:29 +0000 (10:43 +0000)]
* times.cc: Define __timezonefunc__ before including time.h to protect
definition of timezone function.

17 years ago * include/cygwin/time.h: Switch to timezone variable by default. Add
Corinna Vinschen [Wed, 4 Jul 2007 09:56:15 +0000 (09:56 +0000)]
* include/cygwin/time.h: Switch to timezone variable by default.  Add
comment.

17 years ago gas/testsuite/
Nathan Sidwell [Tue, 3 Jul 2007 07:54:19 +0000 (07:54 +0000)]
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.

17 years ago * acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fixup logic for cross
Mike Stump [Mon, 2 Jul 2007 18:06:53 +0000 (18:06 +0000)]
    * 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.

17 years ago * include/shlobj.h: Add CSIDL_MYMUSIC and CSIDL_MYVIDEO.
Corinna Vinschen [Mon, 2 Jul 2007 09:47:36 +0000 (09:47 +0000)]
* include/shlobj.h: Add CSIDL_MYMUSIC and CSIDL_MYVIDEO.

17 years ago * include/oaidl.h: Include windows.h and ole2.h,
Danny Smith [Mon, 2 Jul 2007 02:52:56 +0000 (02:52 +0000)]
* 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.

17 years ago * include/ws2tcpip.h (s6_addr32): Correct definition,
Danny Smith [Sun, 1 Jul 2007 10:09:12 +0000 (10:09 +0000)]
* include/ws2tcpip.h (s6_addr32): Correct definition,
Thanks to Alfred E. Heggestad <aeh at db dot org>

17 years agobfd:
Joseph Myers [Sat, 30 Jun 2007 00:03:40 +0000 (00:03 +0000)]
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.

17 years agobfd:
Joseph Myers [Fri, 29 Jun 2007 16:41:32 +0000 (16:41 +0000)]
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.

17 years agobfd:
Joseph Myers [Fri, 29 Jun 2007 16:29:16 +0000 (16:29 +0000)]
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.

17 years ago * cygwin.din: Export fdopendir.
Corinna Vinschen [Fri, 29 Jun 2007 15:13:01 +0000 (15:13 +0000)]
* 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.

17 years agoNew port: National Semiconductor's CR16
Nick Clifton [Fri, 29 Jun 2007 14:09:34 +0000 (14:09 +0000)]
New port: National Semiconductor's CR16

17 years ago * configure.ac: Don't add target-libmudflap to noconfigdirs for
Bernd Schmidt [Fri, 29 Jun 2007 11:33:56 +0000 (11:33 +0000)]
* configure.ac: Don't add target-libmudflap to noconfigdirs for
uclinux and linux-uclibc targets.
* configure: Regenerate.

17 years ago * mingwex/gdtoa/mingw_snprintf.c: New file.
Danny Smith [Fri, 29 Jun 2007 10:11:57 +0000 (10:11 +0000)]
* mingwex/gdtoa/mingw_snprintf.c: New file.
* mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c.
(GDTOA_OBJS): Add mingw_snprintf.O.

17 years ago * cygwin-api.in.sgml: Remove authorgroup and revhistory.
Corinna Vinschen [Fri, 29 Jun 2007 07:36:54 +0000 (07:36 +0000)]
* cygwin-api.in.sgml: Remove authorgroup and revhistory.
* cygwin-ug.in.sgml: Add Joshua Daniel Franklin to authorgroup.
Remove revhistory.
* legal.sgml: Update dates.

17 years ago * include/cygwin/version.h: Fix comment typo.
Brian Dessent [Thu, 28 Jun 2007 22:45:49 +0000 (22:45 +0000)]
* include/cygwin/version.h: Fix comment typo.

17 years ago* configure.ac (arm*-*-linux-gnueabi): Don't build libgloss if we're
DJ Delorie [Thu, 28 Jun 2007 19:31:44 +0000 (19:31 +0000)]
* configure.ac (arm*-*-linux-gnueabi): Don't build libgloss if we're
not building newlib.
* configure: Regenerated.

17 years ago * cygwin.din: Export stpcpy, stpncpy.
Corinna Vinschen [Thu, 28 Jun 2007 17:55:01 +0000 (17:55 +0000)]
* 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.

This page took 0.07678 seconds and 5 git commands to generate.