Corinna Vinschen
ec3b136a64
* syscalls.cc (statvfs): Handle the case when GetDiskFreeSpaceEx
...
succeeds but GetDiskFreeSpace fails by faking bytes-per-sector and
sectors-per-cluster values.
2005-06-16 15:46:40 +00:00
Danny Smith
842db59275
* profile/profile.h (_MCOUNT_CALL): Define as regparm(2)
...
(_MCOUNT_DECL): Use it.
(MCOUNT): Save and restore eax, ecx, edx registers.
* profile/mcount.c (_mcount): ANSI-fy.
2005-06-16 12:14:21 +00:00
Danny Smith
dcd6cb4308
* include/_mingw.h (__MINGW_GNUC_PREREQ): Define. Use to
...
guard __MINGW_ATTRIB macro definitions.
* include/math.h (logb[fl]): Don't define inlines for
GCC-4.0+ && __FAST_MATH__.
(rint[fl], lrint[fl], llrint[fl]); Likewise. Clean up
line-continuation backslashes.
2005-06-16 11:41:49 +00:00
Christopher Faylor
7a9b2d82ec
add missing entry
2005-06-15 22:51:05 +00:00
Christopher Faylor
a9c461626e
* cygthread.cc (cygthread::detach): Fix debugging output.
...
* dcrt0.cc (dll_crt0_1): Create signal_arrived early -- before any filename
manipulation.
* sigproc.cc (sigproc_init): Don't create signal_arrived here.
* fork.cc (fork_child): Ditto.
2005-06-15 22:50:31 +00:00
Christopher Faylor
0fc9cf11f8
* path.cc (path_conv::check): Always reset to FH_FS when component != 0 and
...
FH_NETDRIVE to fix problems with strict case checking.
2005-06-14 23:52:53 +00:00
Corinna Vinschen
d1ce2c4a15
* parse_pe.c (exclusion::sort_and_check): Remove crude cast.
2005-06-14 12:42:57 +00:00
Corinna Vinschen
435227352b
* sysv_sem.cc (semu_list): Define static to avoid gcc 4.x compiler
...
warning.
2005-06-14 12:22:14 +00:00
Corinna Vinschen
3925b4afc4
* fhandler_socket.cc (fhandler_socket::recvmsg): Avoid SEGV in OpenSSH
...
when trying to pass file descriptor by setting msg->msg_accrightslen
to 0.
2005-06-12 12:01:09 +00:00
Christopher Faylor
88cbbd450e
* Makefile.in: Avoid initial heap allocation since cygwin has its own heap.
2005-06-11 21:00:23 +00:00
Christopher Faylor
b945228cb6
* fhandler_console.cc (fhandler_console::read): Fix a compiler warning.
2005-06-11 05:09:25 +00:00
Christopher Faylor
452e5c7297
* winsup.api/pthread/cancel2.c: Use explicit initializer for mutex.
...
* winsup.api/pthread/mutex4.c (main): Ditto.
* winsup.api/pthread/mutex5.c: Reflect change in cygwin default mutex type.
* winsup.api/pthread/mutex6d.c: Ditto.
2005-06-11 04:59:53 +00:00
Christopher Faylor
8556456790
* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL.
...
Revert PTHREAD_MUTEX_INITIALIZER to PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
since that is actually closer to what linux does.
* thread.h (cw_cancel_action): New enum.
(cancelable_wait): Use cw_cancel_action as third argument.
* thread.cc (cancelable_wait): Ditto. Don't wait for cancel if cancel_action
== cw_no_cancel.
(pthread::create): Don't wait for cancel event since that is racy.
(pthread_mutex::pthread_mutex): Set default to PTHREAD_MUTEX_ERRORCHECK.
(pthread_mutexattr::pthread_mutexattr): Ditto.
(pthread_mutex::_lock): Tell cancelable_wait not to wait for cancellation
event.
(semaphore::_timedwait): Accommodate change in cancelable_wait args.
(pthread::join): Ditto.
2005-06-11 04:56:36 +00:00
Corinna Vinschen
b4177338e1
* fhandler_socket.cc (fhandler_socket::sendto): Always initialize
...
ret to 0.
(fhandler_socket::sendmsg): Ditto.
2005-06-10 21:47:24 +00:00
Christopher Faylor
6700d99e7e
* winsup.api/winsup.exp: Remove (temporarily?) -nostdinc from build since it
...
causes compile failures with gcc 3.4.4.
2005-06-10 19:32:29 +00:00
Christopher Faylor
eb83d89572
whitespace changes to hopefully force snapshot run.
2005-06-10 18:44:26 +00:00
Corinna Vinschen
5680109cf6
* cygwin.din (imaxabs): Export.
...
(imaxdiv): Export.
(llabs): Export.
(lldiv): Export.
(strtoimax): Export.
(strtoumax): Export.
* include/inttypes.h (imaxabs): Activate declaration.
(imaxdiv): Ditto.
(strtoimax): Ditto.
(strtoumax): Ditto.
* include/cygwin/version.h: Bump API minor.
2005-06-10 12:11:35 +00:00
Christopher Faylor
1b96f7da45
* cygthread.cc (cygthread::detach): Improve diagnostics for what should be an
...
impossible failure condition.
2005-06-09 23:48:08 +00:00
Christopher Faylor
9a91777205
* cygtls.h (_local_storage::setmode_file): New element.
...
(_local_storage::setmode_mode): New element.
* tlsoffsets.h: Regenerate.
* cygwin.din (setmode): Define as cygwin_getmode.
* syscalls.cc (setmode_helper): Use setmode_* variables from tls rather than
using unthreadsafe static.
(setmode): Break out fwalk stuff.
(cygwin_setmode): New function. Put fwalk stdio stuff here.
2005-06-09 22:33:57 +00:00
Christopher Faylor
fa0dcd0d65
* thread.cc (pthread_mutex::_lock): Use cancelable_wait rather than
...
WaitForSingleObject.
2005-06-09 20:59:59 +00:00
Christopher Faylor
85cd5c3d57
* cygwin.sc: Place .cygwin_dll_common in a more sensible spot.
2005-06-09 20:46:00 +00:00
Christopher Faylor
0acb042081
* cygwin.sc: Place .cygwin_dll_common.
...
* init.cc (threadfunc_ix): Use a more common name for the section name.
2005-06-09 19:29:27 +00:00
Christopher Faylor
8891625cbf
* include/pthread.h (PTHREAD_MUEXT_INITIALIZER): Change to
...
PTHREAD_NORMAL_MUTEX_INITIALIZER_NP to be closer to linux default.
2005-06-09 15:30:44 +00:00
Christopher Faylor
abf60784be
* thread.cc (cancelable_wait): No-op change to make sure that res is always a
...
valid WFMO return.
2005-06-09 05:14:02 +00:00
Christopher Faylor
ed364fa9fb
Change pthread::cancelable_wait to just cancelable_wait, throughout.
...
* thread.h (cw_sig_wait): New enum.
(fast_mutex::lock): Use cancelable_wait with resumable signal.
(cancelable_wait): Change fourth argument to cw_sig_wait enum.
* thread.cc (cancelable_wait): Ditto. Loop on signal detection if fourth
argument == cw_sig_resume.
2005-06-09 05:11:51 +00:00
Christopher Faylor
a63c42932e
* cygwin.sc: Apparently nonloading sections need to go last.
2005-06-08 20:56:34 +00:00
Christopher Faylor
ad96f0997b
* cygwin.sc: Restore resource and reloc sections and use more modern syntax for
...
stabs sections.
2005-06-08 20:18:23 +00:00
Christopher Faylor
7273344558
* environ.cc (spenvs): Remove cut/paste error which associated CYGWIN_DEBUG
...
with HOME.
2005-06-08 15:42:58 +00:00
Corinna Vinschen
ce132d0ffd
* security.cc (cygwin_logon_user): Run LogonUser in the primary
...
process token context. Fix potential handle leak.
2005-06-08 10:06:17 +00:00
Corinna Vinschen
7311cc1f0c
* pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and
...
allocate dynamically.
(pinfo::set_acl): Replace sa_buf by dynamically allocated acl_buf.
* sec_acl.cc (setacl): Allocate acl dynamically.
* sec_helper.cc (sec_acl): Add test for alignment of acl when
DEBUGGING is defined.
(__sec_user): Same for sa_buf.
* security.cc (verify_token): Define sd_buf as PSECURITY_DESCRIPTOR
and allocate dynamically.
(alloc_sd): Allocate acl dynamically.
security.h (sec_user_nih): Change first parameter to
SECURITY_ATTRIBUTES *.
(sec_user): Ditto.
* sigproc.cc (wait_sig): Define sa_buf as PSECURITY_ATTRIBUTES and
allocate dynamically.
* syscalls.cc (seteuid32): Define dacl_buf as PACL and allocate
dynamically.
* uinfo.cc (cygheap_user::init): Define sa_buf as PSECURITY_ATTRIBUTES
and allocate dynamically.
* winbase.h (ilockincr): Mark first argument of inline assembly as
earlyclobber.
(ilockdecr): Ditto.
2005-06-07 19:31:42 +00:00
Christopher Faylor
b739751db9
* cygthread.cc (cygthread::detach): Make error message a little more detailed.
...
* fhandler.cc (fhandler_base::raw_read): Ditto for debug message.
* dcrt0.cc (do_exit): Add some more synchronization tests.
* fhandler_fifo.cc (fhandler_fifo::dup): Don't duplicate a nonexistent handle.
Use derived return value rather than always retuning 0.
* fhandler_netdrive.cc (fhandler_netdrive::exists): Wnet -> WNet.
* winsup.h (exit_states): Add a couple of new exit states.
2005-06-07 18:41:31 +00:00
Christopher Faylor
2af5aa67e2
* cygload/cygload.exp: .cpp -> .cc.
2005-06-06 21:28:22 +00:00
Christopher Faylor
bd3b6ab4ee
* Makefile.in: Test cygload.
...
* cygload: New directory.
* cygload/README: New file.
* cygload/Makefile: Ditto.
* cygload/cygload.h: Ditto.
* cygload/cygload.cc: Ditto.
* cygload/cygload.exp: Ditto.
2005-06-06 21:13:31 +00:00
Christopher Faylor
405e757cf9
reformat ChangeLog entry slightly.
2005-06-06 21:12:00 +00:00
Corinna Vinschen
7a70dda0b8
* path.cc (symlink_info::check): If GetFileAttributes returns
...
with ERROR_SHARING_VIOLATION, the file exists.
2005-06-06 16:58:39 +00:00
Corinna Vinschen
34667bbd39
* uname.cc (uname): Change "amd64" to "x86_64" as on Linux.
2005-06-06 16:17:10 +00:00
Corinna Vinschen
15a95a8ca6
* uname.cc (uname): Add missing break.
2005-06-06 15:58:08 +00:00
Danny Smith
c94aabb8c6
* include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typo
...
in GNUC version guard.
2005-06-06 08:21:53 +00:00
Christopher Faylor
6eb501439a
* Makefile.in: Build sync.o with -fomit-frame-pointer and -O3.
2005-06-05 04:15:16 +00:00
Christopher Faylor
61496ed680
* sync.cc (muto::acquire): Remove unneeded brackets and fix whitespace.
2005-06-05 04:07:46 +00:00
Christopher Faylor
c1e1d36141
* malloc.cc: Update to Doug Lea's malloc v2.8.0.
2005-06-05 03:47:36 +00:00
Joshua Daniel Franklin
bbe982c5cc
Slight rearragement
2005-06-05 02:16:07 +00:00
Christopher Faylor
909df7cbb4
* how-programming.texinfo: Add "How do I load cygwin1.dll dynamically from a
...
Visual Studio or MinGW application?"
2005-06-04 02:14:13 +00:00
Christopher Faylor
6e780c8bf5
* dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. Comment
...
to explain the caveats of this method.
* how-cygtls-works.txt: New file.
2005-06-04 02:11:50 +00:00
Christopher Faylor
d8a68f645a
* dlfcn.cc (get_full_path_of_dll): Use a relative path when converting so that
...
the standard Windows rules for finding a library will be used if no path is
given. Stop explicitly searching /usr/bin since that is now in effect.
2005-06-03 01:07:40 +00:00
Christopher Faylor
f9fb1149d5
Revert 2005-05-30 close_all_files changes.
...
* spawn.cc (spawn_guts): When execing, close all files after the child has
synced with us.
2005-06-02 02:36:50 +00:00
Christopher Faylor
5ac6edefaf
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that disk open
...
is called in case we're passed in a non-existent device.
2005-06-02 01:50:23 +00:00
Christopher Faylor
31d0f220ad
* include/machine/stdlib.h: New file.
2005-06-01 18:24:31 +00:00
Christopher Faylor
19adafdc21
* thread.h (List_remove): Revert most of 2005-05-30 change.
2005-06-01 14:55:45 +00:00
Christopher Faylor
8d05cca34b
* cygwin.sc: Don't output .reloc or .rsrc sections. Clean up stuff around
...
.cygheap and use a workaround to get things working with newer
(broken?) binutils.
2005-06-01 04:42:44 +00:00