summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missingCorinna Vinschen2007-07-052-2/+10
| | | | | OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES. (fhandler_disk_file::rewinddir): Ditto.
* Check in missing cygwin.din change from 2007-06-29.Corinna Vinschen2007-07-051-0/+1
|
* * times.cc: Define __timezonefunc__ before including time.h to protectCorinna Vinschen2007-07-042-0/+6
| | | | definition of timezone function.
* * include/cygwin/time.h: Switch to timezone variable by default. AddCorinna Vinschen2007-07-042-1/+8
| | | | comment.
* * include/shlobj.h: Add CSIDL_MYMUSIC and CSIDL_MYVIDEO.Corinna Vinschen2007-07-022-0/+6
|
* * include/oaidl.h: Include windows.h and ole2.h,Danny Smith2007-07-022-1/+17
| | | | | | | | unless COM_NO_WINDOWS_H. [ mingw-Bugs-1742130 ] * include/oaidl.h (struct tagVARIANT): Add union members LONGLONG * pllVal and ULONGLONG * pullVal.
* * include/ws2tcpip.h (s6_addr32): Correct definition,Danny Smith2007-07-012-1/+6
| | | | Thanks to Alfred E. Heggestad <aeh at db dot org>
* * cygwin.din: Export fdopendir.Corinna Vinschen2007-06-2911-61/+127
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * mingwex/gdtoa/mingw_snprintf.c: New file.Danny Smith2007-06-293-3/+1251
| | | | | * mingwex/Makefile.in (GDTOA_DISTFILES): Add mingw_snprintf.c. (GDTOA_OBJS): Add mingw_snprintf.O.
* * cygwin-api.in.sgml: Remove authorgroup and revhistory.Corinna Vinschen2007-06-294-41/+12
| | | | | | * cygwin-ug.in.sgml: Add Joshua Daniel Franklin to authorgroup. Remove revhistory. * legal.sgml: Update dates.
* * include/cygwin/version.h: Fix comment typo.Brian Dessent2007-06-282-1/+5
|
* * cygwin.din: Export stpcpy, stpncpy.Corinna Vinschen2007-06-284-1/+13
| | | | | | * posix.sgml: Add stpcpy and stpncpy to list of implemented GNU extensions. * include/cygwin/version.h: Bump API minor number.
* * msvcrt.def.in: Update comment.Danny Smith2007-06-284-7/+24
| | | | | | Exclude _ctype stub if using msvcr71.dll or newer. * include/ctype.h: Don't declare _ctype if using msvcr71.dll or newer. * include/wctype.h: Likewise.
* * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.Corinna Vinschen2007-06-273-8/+15
| | | | | | | | (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.
* * assert.cc (__assert_func): New function, to match newlib headerEric Blake2007-06-274-7/+25
| | | | | | change. * cygwin.din: Export __assert_func. * include/cygwin/version.h: Bump API minor number.
* *include/wctpe.h: Likewise.Danny Smith2007-06-233-592/+628
| | | | | | *include/wdirent.h: Likewise. Changelog: Whitespace Further: http://www.lib.virginia.edu/cgi-bin/imgload.cgi/53
* *include/assert.h: Qualify all functions with __MINGW_NOTHROW.Danny Smith2007-06-2327-899/+901
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *include/conio.h: Likewise. *include/ctype.h: Likewise. *include/direct.h: Likewise. *include/dos.h: Likewise. *include/errno.h: Likewise. *include/fenv.h: Likewise. *include/float.h: Likewise. *include/inttypes.h: Likewise. *include/io.h: Likewise. *include/libgen.h: Likewise. *include/locale.h: Likewise. *include/malloc.h: Likewise. *include/mbctype.h: Likewise. *include/mbstring.h: Likewise. *include/process.h: Likewise. *include/search.h: Likewise. *include/setjmp.h: Likewise. *include/signal.h: Likewise. *include/stdio.h: Likewise. *include/stdlib.h: Likewise. *include/string.h: Likewise. *include/time.h: Likewise. *include/wchar.h: Likewise. *include/sys/stat.h: Likewise. *include/sys/time.h: Likewise. *include/sys/timeb.h: Likewise. *include/sys/utime.h: Likewise.
* * mingwex/Makefile.in (LIB_OBJS): Revert accidental removal.Danny Smith2007-06-222-0/+6
| | | | Good night all.
* Add POSIX binary tree search API.Danny Smith2007-06-227-4/+269
| | | | | | | | | | | | | | | | | * mingwex/tfind.c: New file. * mingwex/tdelete.c: New file. * mingwex/tsearch.c: New file. * mingwex/twalk.c: New file. * mingwex/Makefile.in (DISTFILES): Add tsearch.c twalk.c tdelete.c tfind.c. * mingwex/Makefile.in (POSIX_OBJS): Add tsearch.o twalk.o tdelete.o tfind.o. * include/search.h (tfind): Declare. (tdelete): Declare. (tsearch): Declare. (twalk): Declare. (ENTRY): Define. (ACTION): Define. (VISIT): Define. (node_t): Define, on condition of _SEARCH_PRIVATE.
* * include/_mingw.h (__MINGW_NOTHROW): Define.Danny Smith2007-06-222-2/+25
|
* * autoload.cc (WSAIoctl): Remove.Corinna Vinschen2007-06-2110-452/+644
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * cygwin.din: Export exp10, exp10f, pow10, pow10f, strcasestr,Corinna Vinschen2007-06-214-13/+45
| | | | | | funopen, fopencookie. * include/cygwin/version.h: Bump API minor number. * posix.sgml: Minor improvements.
* * include/cygwin/if.h (IFF_POINTOPOINT): Fix typo.Corinna Vinschen2007-06-202-1/+5
|
* * include/stdio.h (vsnprintf): Remove inline definition.Danny Smith2007-06-182-6/+10
| | | | Add prototype.
* * CRTfmode.c: Nit-pick comment fix.Danny Smith2007-06-172-1/+5
|
* * CRTfmode.c: Fix nested comment.Christopher Faylor2007-06-172-1/+5
|
* * include/string.h (strcasecmp): Fix typo in declaration prototype.Christopher Faylor2007-06-172-1/+5
|
* * include/search.h: Reinstate node_t definition.Christopher Faylor2007-06-173-23/+16
| | | | * include/sys/cdefs.h: Remove in favor of newlib version.
* * autoload.cc (GetIpForwardTable): Define.Corinna Vinschen2007-06-147-9/+75
| | | | | | | | | | | | | | | * 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.
* * include/io.h (lseek64) : Add prototype.Danny Smith2007-06-142-0/+5
|
* * include/string.h (strcasecmp): Add prototype.Danny Smith2007-06-142-0/+7
| | | | (strncasecmp): Add prototype.
* * Makefile.in (CRT0S): Revert last change.Danny Smith2007-06-133-4/+12
| | | | * CRTfmode.c. Correct comment.
* * Makefile.in (CRT0S): Add back CRTfmode.o.Danny Smith2007-06-132-1/+5
|
* * include/stdlib.h: Don't include stdint.h. Conditionally define intptr_t.Danny Smith2007-06-133-3/+22
| | | | * include/io.h: Likewise.
* * signal.cc (usleep): Use useconds_t for the type as per POSIX.Christopher Faylor2007-06-122-1/+5
|
* * Makefile.in (DLL_OFILES): Add xsique.o.Corinna Vinschen2007-06-129-65/+80
| | | | | | | | | | | | | | | * 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.
* * fhandler.cc (fhandler_base::fstat): Set pipe permission bits moreCorinna Vinschen2007-06-122-3/+8
| | | | correctly.
* * cygwin.din (confstr): Export.Corinna Vinschen2007-06-115-2/+59
| | | | | | * posix.sgml (confstr): Move to list of implemented SUSv3 functions. * sysconf.cc (confstr): Implement. * include/cygwin/version.h: Bump API minor number.
* * crt1.c (__mingw_CRTStartup): Add explicit call to libgcc's __main.Danny Smith2007-06-112-0/+13
|
* * cygwin-api.in.sgml: Accommodate new "Compatibility" section layout.Corinna Vinschen2007-06-052-3/+11
|
* * ansi.sgml: Delete.Corinna Vinschen2007-06-054-201/+1271
| | | | | * misc-std.sgml: Delete. * posix.sgml: Rework entirely.
* * cygcheck.cc (pathlike): New class.Christopher Faylor2007-06-043-183/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (paths): Redefine as type pathlike. (display_error): Declare a few different ways to allow more flexible usage throughout. (display_error_fmt): New function for those cases where C++ just isn't enough. (add_path): Rewrite to allocate pathlike paths. Always tack on a trailing slash since that's what everyone who uses it wants. NULL terminate the path list. Register "it's a system path" field. (init_path): Call add_path with info regarding whether path is a system path or not. (pathlike::check_existence): Move into pathlike class. Accept file and extension arguments to build up path on the fly. Modify other arguments. (find_on_path): Constify return value and appropriate arguments. Eliminate short-circuit for fully-qualified paths. Simplify loop which iterates over path. (already_did): Constify argument. (track_down): Ditto. Regularize some error messages. (find_app_on_path): Ditto. (cygcheck): Constify argument. Use 20th century string handling functions. (dump_sysinfo): Remove odd inclusion of '\\bin' "Just in case". Accommodate change of paths to pathlike. * path.cc (isslash): Rename from SLASH_P and use throughout. (rel_vconcat): Front-end to vconcat which prepends cwd to path before passing along for conversion to native windows. (cygpath): Remove "./" test. Call rel_vconcat if filename appears to be relative.
* * dtable.cc (dtable::set_file_pointers_for_exec): Call SetFilePointerCorinna Vinschen2007-05-295-13/+34
| | | | | | | | | | | 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.
* * dumper.cc (dumper::prepare_core_dump): Record a phdr for each section.Corinna Vinschen2007-05-292-3/+62
|
* * cygpath.cc (do_options): Allow outputflag combined with otherCorinna Vinschen2007-05-292-9/+15
| | | | | | | basic flags. Only check options_from_file_flag if reading options from command line. (main): Check for NULL argz vector. Don't free argz vector prematurely. Don't force flag combination in !options_from_file_flag case.
* 2007-05-23 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-05-242-0/+9
| | | | | | | * lib/secur32.def (InitSecurityInterfaceA, InitSecurityInterfaceW): Define. Thanks to Jim Marshall (jim dot marshall at wbemsolutions dot com) for supplying the information.
* * cygpath.cc: Include argz.h.Corinna Vinschen2007-05-232-127/+130
| | | | | | | | | | | | | | (options_from_file_flag): Move from main to global static variable. (mode_flag): Ditto. (do_sysfolders): Rename from dowin and accommodate throughout. Don't exit from here. (do_pathconv): Rename from doit and accommodate throughout. (print_version): Change copyright. (do_options): New function, centralizing option processing. Rework checking options for correctness. (action): New function, centralizing calling worker functions. (main): Simplify. Move option processing to do_options. Move calling worker functions to action. Rework getting arguments from files.
* * path.cc (cwdstuff::set): Revert useless acquire check.Corinna Vinschen2007-05-222-2/+5
|
* * path.cc (cwdstuff::set): Avoid double aquiring of cwd_lock.Corinna Vinschen2007-05-222-2/+8
| | | | Open directory with inheriting enabled.
* * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Don't invalidateCorinna Vinschen2007-05-222-1/+20
| | | | devbuf if new position is within buffered range.