OSDN Git Service

* cygwin.din: Export stpcpy, stpncpy.
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / ChangeLog
index 9a19438..8a8ab8b 100644 (file)
@@ -1,3 +1,245 @@
+2007-06-28  Corinna Vinschen  <corinna@vinschen.de>
+
+       * 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.
+
+2007-06-27  Corinna Vinschen  <corinna@vinschen.de>
+
+       * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
+       (CURR_SHARED_MAGIC): Ditto.
+       (class shared_info): Add heap_slop_inited member.
+       * shared.cc (shared_info::heap_slop_size): Use heap_slop_inited to
+       track initializing heap_slop since 0 is a valid value for heap_slop.
+       Drop useless < 0 consideration.
+
+2007-06-27  Eric Blake  <ebb9@byu.net>
+
+       * assert.cc (__assert_func): New function, to match newlib header
+       change.
+       * cygwin.din: Export __assert_func.
+       * include/cygwin/version.h: Bump API minor number.
+
+2007-06-21  Corinna Vinschen  <corinna@vinschen.de>
+
+       * autoload.cc (WSAIoctl): Remove.
+       * cygwin.din: Export freeifaddrs, getifaddrs.
+       * fhandler_socket.cc (fhandler_socket::ioctl): Drop SOCKET parameter
+       from get_ifconf.
+       * net.cc: Include ifaddrs.h.
+       (in_are_prefix_equal): Match addresses in network byte order.
+       (ip_addr_prefix): Convert address into host byte order before
+       testing with IN_LOOPBACK.
+       (struct ifall): Define.
+       (get_xp_ifs): Replace get_xp_ifconf.  Return struct ifall array.
+       (get_2k_ifs): Ditto, replace get_2k_ifconf.
+       (get_nt_ifs): Ditto, replace get_nt_ifconf.
+       (getifaddrs): New function.
+       (freeifaddrs): New function.
+       (get_ifconf): Call matching get_XX_ifs function and create
+       ifc content from here.  Drop lo fake since it's now in get_nt_ifs.
+       * posix.sgml: Add freeifaddrs and getifaddrs to list of implemented
+       BSD functions.
+       * wincap.h (wincapc::has_broken_if_oper_status): New element.
+       * wincap.cc: Implement above element throughout.
+       * include/ifaddrs.h: New file.
+       * include/cygwin/version.h: Bump API minor number.
+
+2007-06-20  Eric Blake  <ebb9@byu.net>
+
+       * cygwin.din: Export exp10, exp10f, pow10, pow10f, strcasestr,
+       funopen, fopencookie.
+       * include/cygwin/version.h: Bump API minor number.
+       * posix.sgml: Minor improvements.
+
+2007-06-20  Corinna Vinschen  <corinna@vinschen.de>
+
+       * include/cygwin/if.h (IFF_POINTOPOINT): Fix typo.
+
+2007-06-16  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * include/search.h: Reinstate node_t definition.
+
+2007-06-16  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * include/sys/cdefs.h: Remove in favor of newlib version.
+
+2007-06-14  Corinna Vinschen  <corinna@vinschen.de>
+
+       * autoload.cc (GetIpForwardTable): Define.
+       * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFDSTADDR.
+       * net.cc (get_routedst): New static function to get destination
+       address of point-to-point interfaces.
+       (get_xp_ifconf): Handle SIOCGIFDSTADDR.
+       (get_2k_ifconf): Ditto.
+       (get_nt_ifconf): Ditto.
+       (get_ifconf): Ditto.
+       * include/asm/socket.h (SIOCGIFDSTADDR): Define.
+       * include/cygwin/if.h (struct ifreq): Add ifru_dstaddr member.
+       (ifr_dstaddr): Define.
+       * include/cygwin/in.h: Cast ipv4 addresses correctly to in_addr_t in
+       definitions.
+
+2007-06-12  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * signal.cc (usleep): Use useconds_t for the type as per POSIX.
+
+2007-06-12  Corinna Vinschen  <corinna@vinschen.de>
+
+       * Makefile.in (DLL_OFILES): Add xsique.o.
+       * cygwin.din (confstr): Make NOSIGFE.
+       (insque): Export.
+       (remque): Export.
+       * lsearch.cc: Remove superfluous _SEARCH_PRIVATE define.
+       * posix.sgml: Move insque to defined SUSv3 interfaces.  Remove
+       comment for remque.
+       * include/search.h: Remove _SEARCH_PRIVATE guarded definitions.
+       Add struct qelem definition.  Add insque and remque declarations.
+       * include/cygwin/version.h: Bump API minor number.
+       * include/sys/queue.h: Remove insque/remque definitions so as not
+       to collide with SUSv3 compatible declaration in search.h.
+       * libc/xsique.cc: New file implementing insque and remque.
+
+2007-06-12  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler.cc (fhandler_base::fstat): Set pipe permission bits more
+       correctly.
+
+2007-06-11  Corinna Vinschen  <corinna@vinschen.de>
+
+       * cygwin.din (confstr): Export.
+       * posix.sgml (confstr): Move to list of implemented SUSv3 functions.
+       * sysconf.cc (confstr): Implement.
+       * include/cygwin/version.h: Bump API minor number.
+
+2007-06-05  Corinna Vinschen  <corinna@vinschen.de>
+
+       * ansi.sgml: Delete.
+       * misc-std.sgml: Delete.
+       * posix.sgml: Rework entirely.
+
+2007-05-29  Corinna Vinschen  <corinna@vinschen.de>
+
+       * dtable.cc (dtable::set_file_pointers_for_exec): Call SetFilePointer
+       correctly for 64 bit file access.  Comment out functionality.
+       * fhandler.cc (fhandler_base::open): Don't set append_mode.
+       (fhandler_base::write): Check for O_APPEND instead of append_mode.
+       Call SetFilePointer correctly for 64 bit file access.  Handle
+       errors from SetFilePointer.
+       * fhandler.h (class fhandler_base): Drop append_mode status flag.
+       * fhandler_disk_file.cc (fhandler_base::fstat_helper): Handle
+       seeking correctly for 64 bit file access.
+
+2007-05-22  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (cwdstuff::set): Revert useless acquire check.
+
+2007-05-22  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock.
+       Open directory with inheriting enabled.
+
+2007-05-21  Christian Franke <franke@computer.org>
+
+       * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidate
+       devbuf if new position is within buffered range.
+
+2007-05-21  Eric Blake  <ebb9@byu.net>
+
+       * include/search.h (hsearch_r): Provide declaration.
+
+2007-05-21  Christian Franke <franke@computer.org>
+           Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Set buf size to
+       sector size.  Simplify non-sector aligned case.  Handle errors from
+       raw_read.
+
+2007-05-15  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_socket.cc (adjust_socket_file_mode): New inline function.
+       (fhandler_socket::fchmod): Squeeze mode through adjust_socket_file_mode
+       before using it.
+       (fhandler_socket::bind): Ditto.
+
+2007-03-19  Ryan C. Gordon  <icculus@icculus.org>
+
+       * path.cc (fs_info::update): Set and use is_cdrom.
+       * path.cc (fillout_mntent): Set ret.mnt_type to something more
+       Linux-like, based on data from fs_info.  Move "system" and "user"
+       strings from mnt_type to mnt_opts.
+       * path.h (struct fs_info): Add is_cdrom field.
+       * path.h (fs_info::clear): Initialize is_cdrom.
+       * path.h (struct fs_info): Add IMPLEMENT_STATUS_FLAG(bool,is_cdrom).
+       * path.h (class path_conv): Add fs_is_cdrom method.  Add missing
+       fs_is_netapp method.
+
+2007-05-14  Eric Blake  <ebb9@byu.net>
+
+       * cygwin.din (asnprintf, dprint, _Exit, vasnprintf, vdprintf): Export.
+       * include/cygwin/version.h: Bump API minor number.
+
+2007-04-18  Brian Dessent  <brian@dessent.net>
+
+       * cygwin.sc: Remove duplicated .debug_macinfo section.
+       * dllfixdbg: Also copy DWARF-2 sections into .dbg file.
+
+2007-04-06  Eric Blake  <ebb9@byu.net>
+
+       * include/stdint.h (WINT_MIN): Fix sign.
+
+2007-04-04  Eric Blake  <ebb9@byu.net>
+
+       * include/stdint.h (WINT_MIN, WINT_MAX): Fix definition.
+
+2007-03-30  Christopher Faylor  <me@cgf.cx>
+
+       * external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING.
+       * include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING.
+
+2007-03-29  Corinna Vinschen  <corinna@vinschen.de>
+
+       * cygheap.cc (cygheap_init): Fix formatting.  Remove comment.  Set
+       shared_prefix depending only on terminal service capability.
+       * dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges here.
+       * fhandler_fifo.cc (fhandler_fifo::open): Create the mutex as global
+       object.
+       * posix_ipc.cc (ipc_mutex_init): Use cygheap->shared_prefix.
+       (ipc_cond_init): Ditto.
+       * sec_helper.cc (privilege_name): Make static.  Use LookupPrivilegeName
+       directly to be independent of the state of cygheap.
+       (set_privilege): Take a LUID as parameter instead of an index value.
+       Only print debug output in case of failure.
+       (set_cygwin_privileges): Add comment.  Use LookupPrivilegeValue to
+       get privilege LUIDs.
+       (init_global_security): Call set_cygwin_privileges here.
+       * security.h (privilege_name): Drop declaration.
+       (set_privilege): Declare according to above change.
+       (set_process_privilege): Call privilege_luid to get LUID.
+       (_push_thread_privilege): Ditto.
+       * shared.cc (open_shared): Add comment.  On systems supporting the
+       SeCreateGlobalPrivilege, try to create/open global shared memory first.
+       Fall back to local shared memory if that fails.
+       * thread.cc (semaphore::semaphore): Use cygheap->shared_prefix.
+       * wincap.h (wincapc::has_create_global_privilege): New element.
+       * wincap.cc: Implement above element throughout.
+
+2007-03-28  Christopher Faylor  <me@cgf.cx>
+
+       * spawn.cc (spawn_guts): Start pure-windows processes in a suspended
+       state to avoid potential DuplicateHandle problems.
+
+2007-03-13  Eric Blake  <ebb9@byu.net>
+
+       * include/cygwin/stat.h (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM):
+       Avoid compiler warnings.
+
+2007-03-07  Christopher Faylor  <me@cgf.cx>
+
+       * signal.cc (handle_sigprocmask): Remove extraneous
+       sig_dispatch_pending.
+
 2007-03-07  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler_proc.cc: Fix formatting.  Drop setting errno when creating
        * Makefile.in (DLL_IMPORTS): Add libntdll.a.
        * autoload.cc: Remove all symbols from advapi32.dll, kernel32.dll and
        ntdll.dll available on all platforms since NT4.
-       
+
        Throughout remove all usage of wincap.is_winnt.
        * dcrt0.cc (dll_crt0_0): Remove call to mmap_init.
        * fhandler.h (class fhandler_base): Remove has_changed flag.