Danny Smith
65fb2e4311
* include/winnt.h (GetCurrentFiber): Support -masm=intel.
...
(GetFiberData): Likewise.
(NtCurrentTeb): Likewise.
2004-11-08 10:08:13 +00:00
Danny Smith
c3ea0cd332
* include/wingdi.h (NIF_INFO): Add define.
...
(NIIF_*) Add defines..
Thanks to: Benoit Blanchon <benoit.blanchon@free.fr>
(NIF_*): Convert constants to hex.
2004-11-04 07:09:52 +00:00
Danny Smith
9dee1466e8
* include/wingdi.h (GetFontUnicodeRanges,GetGlyphIndicesA,
...
GetGlyphIndicesW): Declare.
(GGI_MARK_NONEXISTING_GLYPHS): Define
* lib/gdi32.def (GetFontUnicodeRanges,GetGlyphIndicesA,
GetGlyphIndicesW): Add stubs.
2004-11-02 09:07:33 +00:00
Bas van Gompel
fe5cd1608b
* cygcheck.cc (get_dword): Fix errormessage.
...
(cygwin_info): Ditto.
(track_down): Ditto.
(check_keys): Ditto.
2004-10-31 18:46:31 +00:00
Christopher Faylor
22cf17b31f
* fork.cc (NPIDS_HELD): Reduce to former number now that bash problem has been
...
identified.
2004-10-28 17:34:29 +00:00
Pierre Humblet
531979231d
2004-10-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (mount_info::from_registry): Deimpersonate while
accessing HKLM.
(mount_info::read_cygdrive_info_from_registry): Ditto.
* cygheap.h: Define NO_IMPERSONATION.
(cygheap_user::issetuid): Replace INVALID_HANDLE_VALUE by
NO_IMPERSONATION.
(cygheap_user::has_impersonation_tokens): Ditto.
(cygheap_user::close_impersonation_tokens): Ditto.
* uinfo.cc (uinfo_init): Ditto.
* syscalls.cc (seteuid32): Ditto.
* security.cc (set_impersonation_token): Ditto.
2004-10-28 01:46:01 +00:00
Bas van Gompel
ccf4c1e6cd
* cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
...
dlls.
2004-10-27 01:28:07 +00:00
Christopher Faylor
5957d504f0
* cygtls.cc (_cygtls::fixup_after_fork): Wipe out exitsock local since it
...
should not be used by the child.
* select.cc (start_thread_socket): Turn off inheritance for exitsock. Don't
add exitsock to exception mask since it should never get an exception.
(socket_cleanup): Change some debug messages for consistency.
* fhandler_socket.cc (fhandler_socket::dup): Change comment wording slightly.
2004-10-26 21:13:50 +00:00
Pierre Humblet
fdf4ad73e1
2004-10-26 Pierre Humblet <pierre.humblet@ieee.org>
...
* registry.cc (get_registry_hive_path): Simplify and add a
debug_printf in case of failure.
(load_registry_hive): Revert the 2004-04-19 change.
2004-10-26 01:53:27 +00:00
Christopher Faylor
9a0fdd2315
whitespace
2004-10-25 21:20:09 +00:00
Bas van Gompel
a3a401001a
* cygcheck.cc (dump_sysinfo): Add leading newline before legend for
...
drive-list.
2004-10-25 16:11:41 +00:00
Christopher Faylor
4bfc614b42
fix whitespace, update some copyrights
2004-10-25 15:49:36 +00:00
Christopher Faylor
bc4ab99276
Remove CRs
2004-10-25 15:35:41 +00:00
Danny Smith
244cbd6bda
2004-10-24 Dan Aloni <da-x@colinux.org>
...
* include/ddk/ntapi.h (NtQueryFullAttributesFile,
ZwQueryFullAttributesFile): Declare.
* include/ddk/ntapi.h (RtlDosPathNameToNtPathName_U):
Declare.
lib/ntoskrnl.def (ZwQueryDirectoryFile, ZwQueryFullAttributesFile.
ZwQueryVolumeInformationFile): Add stubs.
2004-10-24 09:03:30 +00:00
Bas van Gompel
be1d479e09
* cygcheck.cc (dump_sysinfo): In legend for drive-list: Add ``ram'' and
...
``unk''. Use single puts. Add leading newline. Line up equal-signs.
2004-10-22 01:29:10 +00:00
Christopher Faylor
be957eb563
* cygcheck.cc (dump_sysinfo): Allow for larger drives in drive-list. Change
...
``Used'' to ``Free'' in helptext-title for drive-list.
2004-10-21 00:06:37 +00:00
Christopher Faylor
4082a9eb4a
* select.cc (start_thread_socket): Remove attempt to delay reading of exitsock
...
or suffer occasional mysterious 60 second hangs.
(socket_cleanup): Empty the exitsock here after the thread has terminated.
2004-10-20 04:49:34 +00:00
Christopher Faylor
d134b48fd6
revert erroneous checkin
2004-10-20 01:03:55 +00:00
Christopher Faylor
f054a20f1a
* fhandler_console.cc (fhandler_console::fixup_after_exec): Fix error message.
2004-10-20 01:02:18 +00:00
Corinna Vinschen
52fa622ab6
* sysv_sem.cc: Redefine offsetof to circumvent build problems with
...
gcc 3.4.
2004-10-18 14:26:18 +00:00
Corinna Vinschen
eedf24742c
* cygcheck.cc (pretty_id): Don't let i become negative. Fix
...
printf-format.
2004-10-18 10:25:38 +00:00
Danny Smith
b64293e62a
= include/wsahelp.h (WINSOCK_MAPPING, WSHGetWinsockMapping,
...
PWSH_GET_WINSOCK_MAPPING): Don't define if __OBJC__.
2004-10-18 04:31:16 +00:00
Christopher Faylor
3f8c5ee627
fix date
2004-10-18 01:47:00 +00:00
Christopher Faylor
0ffa77a9f5
* cygcheck.cc (pretty_id): Allocate space for ')' in uid and guid.
2004-10-18 01:44:55 +00:00
Christopher Faylor
0597641a74
* cygcheck.cc (pretty_id): Allocate space for trailing '\0' on uid and guid.
2004-10-17 23:31:23 +00:00
Christopher Faylor
167f0d8513
* cygcheck.cc (pretty_id): Don't exit on id error. Fix size calculations.
2004-10-15 13:57:56 +00:00
Danny Smith
12a638f990
2004-10-15 Robert Wruck <wruck@tweerlei.de>
...
Danny Smith <dannysmith@users.sourceforge.net>
= include/winbase.h (InitializeSListHead, Interlocked*):
Guard with !__USE_NTOSKRNL__.
* include/ddk/ntddk.h (__USE_NTOSKRNL__): Define.
* include/ddk/winddk.h (InitializeSListHead, Interlocked*):
Guard with __USE_NTOSKRNL__.
(ExInterlockedPopEntrySList, ExInterlockedPushEntrySList):
Add prototypes. Guard macro definition with __USE_NTOSKRNL__
&& _WIN32_WINNT >= 0x0501
(ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList,
ExFreeToNPagedLookasideList, ExFreeToPagedLookasideList):
Replace calts to InterlockedPopEntrySList, InterlockedPushEntrySList
with ExInterlockedPopEntrySList, ExInterlockedPushEntrySList.
* lib/ddk/ntosknl.def (ExInterlockedPopEntrySList,
ExInterlockedPushEntrySList) Add stubs with fastcall decoration.
(ExDesktopObjectType, ExEventObjectType, ExSemaphoreObjectType,
ExWindowStationObjectType, IoAdapterObjectType,
IoDeviceHandlerObjectSize, IoDeviceHandlerObjectType,
IoDeviceObjectType, IoDriverObjectType, IoFileObjectType,
LpcPortObjectType, MmSectionObjectType, SeTokenObjectType):
Uncomment stubs.
2004-10-15 01:18:11 +00:00
Christopher Faylor
902edd4512
* cygcheck.cc (pretty_id): Correct column calculations. Abort if id is acting
...
funny.
2004-10-14 17:35:46 +00:00
Danny Smith
2457f34144
* include/sys/stat.h: Make S_ISLNK comment comply with ISO C90.
2004-10-14 07:44:11 +00:00
Christopher Faylor
96536b50a6
* select.cc (start_thread_socket): Remove unused code.
2004-10-13 03:26:31 +00:00
Christopher Faylor
cbec131f8e
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Revert previous checkin.
2004-10-11 15:36:13 +00:00
Danny Smith
77cbeb0039
2004-10-11 Robert Wruck <wruck@tweerlei.de>
...
* include/ddk/winddk.h (IoReleaseRemoveLockAndWait): Fix
definition
(IoReleaseRemoveLock): Add definition.
2004-10-11 07:20:26 +00:00
Christopher Faylor
a82955fa29
minor change
2004-10-11 02:27:43 +00:00
Christopher Faylor
1cda132258
* cygtls.h (exitsock): New element.
...
(exitsock_sin): Ditto.
* cygtls.cc (_cygtls::init_thread): Initialize exitsock to invalid handle.
(_cygtls::call2): Close exitsock if it is valid.
* select.cc (struct socketinf): Remove sin element.
(start_thread_socket): Initialize one SOCK_DGRAM socket per thread instead of
(apparently) expensive opening and closing of socket with each select call.
(socket_cleanup): Send a byte to the exitsock socket as a way to potentially
signal a waiting-for-socket thread to exit.
* tlsoffsets.h: Regenerate.
2004-10-11 02:21:31 +00:00
Christopher Faylor
8d712c8c3e
Remove unneeded directory.
2004-10-10 18:57:16 +00:00
Christopher Faylor
76ad4d0a6e
* cygcheck.cc (add_path): Don't leak memory when path is already in ``paths''.
2004-10-10 17:07:23 +00:00
Danny Smith
7d032a010a
* include/ddk/winnt4.h (Exi386InterlockedDecrementLong,
...
Exi386InterlockedExchangeUlong, Exi386InterlockedIncrementLong);
Add prototypes.
* include/winddk.h (ExInterlockedAddUlong,
ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
ExInterlockedRemoveHeadList, ExInterlockedPopEntryList,
ExInterlockedPushEntryList): Change calling convention to
DDKAPI.
(ExfInterlockedAddUlong,ExInterlockedInsertHeadList,
ExInterlockedInsertTailList, ExInterlockedRemoveHeadList,
ExInterlockedPopEntryList, ExInterlockedPushEntryList):
Add prototypes for DDKFASTAPI versions.
Thanks to Vadim Yegor0v <zg at bmg dot lv> for report.
* lib/ntoskrnl.def (ExInterlockedAddUlong,
ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
ExInterlockedRemoveHeadList, ExInterlockedPopEntryList,
ExInterlockedPushEntryList): Remove lead '@' from stubs.
(ExfInterlockedAddUlong,ExfInterlockedInsertHeadList,
ExfInterlockedInsertTailList, ExfInterlockedRemoveHeadList,
ExfInterlockedPopEntryList, ExfInterlockedPushEntryList):
Add fastcall stubs.
(Exi386InterlockedDecrementLong, Exi386InterlockedExchangeUlong,
Exi386InterlockedIncrementLong); Add stdcall stubs.
2004-10-10 07:14:04 +00:00
Christopher Faylor
0795a24552
* cygcheck.cc (dump_sysinfo): Warn about trailing (back)slash on mount entries.
2004-10-09 23:19:38 +00:00
Christopher Faylor
82e127caac
* cygcheck.cc (dump_sysinfo): Don't warn about empty path components, just
...
display ``.''.
2004-10-09 23:15:36 +00:00
Corinna Vinschen
60cb120f3e
* cygheap.h (class cygheap_user): Add psystemroot member and
...
env_systemroot method.
* environ.cc (struct spenv): Add add_always member.
(spenvs): Accomodate new add_always member. Add
cygheap_user::env_systemroot method to SYSTEMROOT entry.
(build_env): Check add_always member when adding missing environment
variables from spenvs.
* uinfo.cc (cygheap_user::env_systemroot): New method.
2004-10-07 21:28:57 +00:00
Corinna Vinschen
9286b55306
* dcrt0.cc (dll_crt0_0): Drop duplicated line.
2004-10-07 16:59:02 +00:00
Christopher Faylor
d794d08157
revert erroneously applied change
2004-10-07 16:53:51 +00:00
Christopher Faylor
859d85dee0
* spawn.cc (pthread_cleanup::oldmask): Default to invalid signal mask.
...
(do_cleanup): Test for invalid signal mask to decide whether to restore the
mask rather than assuming zero mask indicates that there is nothing to do.
2004-10-07 16:49:30 +00:00
Corinna Vinschen
b9cd8fb5ff
* fhandler_tty.cc (fhandler_tty_slave::read): Use previously
...
evaluated time_to_wait value.
2004-10-07 08:03:24 +00:00
Danny Smith
72db1c11e9
* include/math.h (ashinh, asinhf, asinhl, acosh, acoshf, acoshl,
...
atanh, atanhf, atanhl): Add prototypes.
* mingwex/Makefile.in (MATH_OBJS): Add objects for above to list.
(MATH_DISTFILES): Add sources for above and fastmath.h to list.
Specify dependency on fastmath.h for new objects.
* mingwex/math/fastmath.h: New file.
* mingwex/math/ashinh.c: New file.
* mingwex/math/asinhf.c: New file.
* mingwex/math/asinhl.c: New file.
* mingwex/math/acosh.c: New file.
* mingwex/math/acoshf.c: New file.
* mingwex/math/acoshl.c: New file.
* mingwex/math/atanh.c: New file.
* mingwex/math/atanhf.c: New file.
* mingwex/math/atanhl.c: New file.
2004-10-06 20:31:32 +00:00
Corinna Vinschen
4f8dc86255
* strace.cc (_impure_ptr): Remove.
2004-10-06 09:51:11 +00:00
Corinna Vinschen
5f175ea697
* cygcheck.cc (dump_sysinfo): Warn about empty path-components.
2004-10-06 09:46:40 +00:00
Pierre Humblet
b0637a5191
2004-10-05 Pierre Humblet <pierre.humblet@ieee.org>
...
* external.cc (check_ntsec): Do not call wincap.has_security.
* path.cc (path_conv::check): Ditto.
* security.cc (get_object_attribute): Ditto.
(get_file_attribute): Ditto.
2004-10-06 01:33:39 +00:00
Christopher Faylor
67eedd2473
revert erroneous checkin
2004-10-05 14:35:56 +00:00
Christopher Faylor
0190304668
* pinfo.cc (_pinfo::commune_send): Correct debugging output.
2004-10-05 02:10:15 +00:00
Corinna Vinschen
1f8b30497d
* bsd_mutex.cc (_msleep): Simplify event creation. Revert change from
...
2004-08-24. It should be unnecessary now.
* msg.cc (client_request_msg::serve): Release process critical
section as early as possible.
* sem.cc (client_request_sem::serve): Ditto.
* shm.cc (client_request_shm::serve): Ditto.
* process.cc: Use hold and release method calls instead of
EnterCriticalSection/LeaveCriticalSection calls throughout.
* process.h (_hold): Rename from hold. Take filename and linenumber
parameter for logging. Define matching hold macro.
(release): Ditto.
2004-10-04 19:44:05 +00:00
Christopher Faylor
298cac75d5
fix erroneous checkin
2004-10-04 14:06:02 +00:00
Christopher Faylor
34421ac3e5
* include/cygwin/signal.h: Add siginterrupt definition.
2004-10-04 14:04:31 +00:00
Corinna Vinschen
a5aa8c3e3a
* cygcheck.cc (pretty_id): Close pipe.
2004-10-04 09:42:08 +00:00
Pierre Humblet
e49bc789b2
2004-10-02 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.h (enum path_types): Delete PATH_ISDISK.
(path_conv::isdisk): Delete method.
(path_conv::set_isdisk): Ditto.
* path.cc (path_conv::check): Do not call set_isdisk.
* uinfo.cc(pwdgrp::load): Do not call pc.isdisk.
2004-10-02 02:20:21 +00:00
Corinna Vinschen
c6ef5fb7ec
* sysv_sem.cc: Update to FreeBSD version 1.69.
...
1.68: Reduce the overhead of semop() by using the kernel stack
instead of malloc'd memory to store the operations array if it
is small enough to fit.
1.69: Adjust the number of processes waiting on a semaphore properly
if we're woken up in the middle of sleeping.
2004-10-01 11:18:10 +00:00
Joshua Daniel Franklin
00ee07cb12
* how-using.texinfo: Fix typo. Add note about "Install For All Users"
2004-09-30 19:58:07 +00:00
Danny Smith
f49a3937c8
* include/winbase.h (WINBASEAPI): Define as DECLSPEC_IMPORT only
...
if __W32API_USE_DLLIMPORT__ is defined.
* include/winuser.h (WINUSERAPI): Likewise.
2004-09-30 09:08:17 +00:00
Joshua Daniel Franklin
747d02f791
* how-using.texinfo: Add FAQ about network shares and authentication.
2004-09-30 05:19:27 +00:00
Joshua Daniel Franklin
5ee7c50819
2004-09-30 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* how-programming.texinfo: Add gcj note to WinMain@16 FAQ.
* how-using.texinfo: Add FAQ about network shares and authentication.
* install.texinfo: Add "Where is make" to FAQ subtitle.
2004-09-30 05:03:52 +00:00
Danny Smith
85153fb164
2004-09-29 Filip Navara <xnavara@volny.cz>
...
* include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h,
d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, mcd.h, miniport.h,
mountdev.h, mountmgr.h, ndis.h, ndistapi.h, ndiswan.h, netpnp.h,
newdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h, ntddcdvd.h,
ntddchgr.h, ntdddisk.h, ntddkbd.h, ntddmou.h, ntddpar.h, ntddpcm.h,
ntddscsi.h, ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h,
ntddvdeo.h, ntddvol.h, ntpoapi.h, parallel.h, pfhook.h, poclass.h,
scsi.h, scsiscan.h, smbus.h, srb.h, storport.h, tdiinfo.h,
tdikrnl.h, tvout.h, upssvc.h, usb.h, usb100.h, usbdi.h, usbioctl.h,
usbiodef.h, usbscan.h, usbuser.h, videoagp.h, winddi.h, winddk.h,
winnt4.h, ws2san.h): Fixed packing.
* include/ddk/atm.h (ATM_TRAFFIC_DESCRIPTOR_IE): Fixed declaration.
* include/ddk/hidclass.h (HID_INTERFACE_HIDPARSE,
HID_INTERFACE_NOTIFY_PNP): Likewise.
* include/ddk/ndis.h (NDIS_DMA_BLOCK, CO_FLOW_PARAMETERS): Likewise.
(NdisQueryPacketLength): Added macro. Thanks to Art Yerkes
<ayerkes@speakeasy.net>.
* include/ddk/usb100.h (USB_CONFIGURATION_DESCRIPTOR): Fixed
declaration.
* include/ddk/winddi.h (PATHDATA, GLYPHPOS): Likewise.
* include/ddk/winddk.h (PDRIVER_CONTROL, PDRIVER_LIST_CONTROL,
PDRIVER_ADD_DEVICE, PIO_COMPLETION_ROUTINE, PDRIVER_CANCEL,
PKDEFERRED_ROUTINE, PDRIVER_DISPATCH, PIO_DPC_ROUTINE,
PMM_DLL_INITIALIZE, PMM_DLL_UNLOAD, PDRIVER_ENTRY,
PDRIVER_INITIALIZE, PKSERVICE_ROUTINE, PIO_TIMER_ROUTINE,
PDRIVER_REINITIALIZE, PDRIVER_STARTIO, PKSYNCHRONIZE_ROUTINE,
PDRIVER_UNLOAD, DRIVER_OBJECT): Fixed callback declarations.
(struct FILE_BASIC_INFORMATION): Renamed to _FILE_BASIC_INFORMATION.
(SYNCH_LEVEL): Added definition.
(KPCR, KPCR_TIB): Fixed declaration.
(Interlocked[Push/Pop]EntrySList): Declare only if winbase.h isn't
included and _WIN32_WINNT >= 0x0501.
(RtlEqualLuid): Fixed macro definition.
(KfLowerIrql, KfRaiseIrql): Declare and use instead of KeLowerIrql and
KeRaiseIrql on i386 architectures.
2004-09-28 08:46:54 +00:00
Christopher Faylor
e3e443e4df
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Disallow attempts to set
...
the process group to a nonexistent process group.
2004-09-28 04:41:42 +00:00
Corinna Vinschen
2b94cfce89
* lib/_cygwin_crt0_common.cc: Revert patch from 2004-09-16. Brakes
...
newly built DLLs.
2004-09-27 16:30:44 +00:00
Christopher Faylor
98fc1a6dfe
Sergey Ivanov <seriv@parkheights.dyndns.org>
...
* path.cc (mount_info::read_cygdrive_info_from_registry): Default /cygdrive to
binary mode.
2004-09-24 19:41:19 +00:00
Corinna Vinschen
a638588d7c
* cygwinenv.sgml: smbntsec is not on by default.
2004-09-24 09:47:10 +00:00
Corinna Vinschen
e55ad3ece0
* sysv_shm.cc (kern_shmat): Avoid compiler warning.
2004-09-23 14:16:54 +00:00
Corinna Vinschen
79de498006
* dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
...
is not set.
2004-09-23 10:32:20 +00:00
Pierre Humblet
20e474d7b8
2004-09-22 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (normalize_win32_path): Only look for : in second position.
Avoid infinite loop with names starting in double dots.
(mount_info::conv_to_win32_path): Do not worry about a trailing dot.
(hash_path_name): Ditto.
2004-09-23 00:32:08 +00:00
Corinna Vinschen
71de401447
* dump_setup.cc (dump_setup): Avoid trailing spaces on package-list.
2004-09-22 11:50:51 +00:00
Corinna Vinschen
04e9ee5f15
* sysv_shm.cc (vm_object_reference): remove Cygwin specific define.
...
(vm_map_find): Ditto.
(vm_map_inherit): Ditto.
(kern_shmat): On Cygwin, take shmaddr just as is. Don't call vm
system calls on Cygwin. Add comment.
2004-09-21 14:40:24 +00:00
Christopher Faylor
0ae97cf7dd
* exceptions.cc (sig_handle_tty_stop): Set flag earlier.
2004-09-20 05:35:46 +00:00
Christopher Faylor
ac652b501a
.
2004-09-20 05:31:17 +00:00
Christopher Faylor
e58412a2a0
* exceptions.cc (sig_handle_tty_stop): Set flag that we are in a cygwin
...
function to avoid a probably erroneous stack walk.
2004-09-20 04:58:36 +00:00
Corinna Vinschen
af444ab7be
* syscalls.cc (unlink): Don't use "delete on close" on remote shares.
2004-09-17 09:10:53 +00:00
Corinna Vinschen
95a12a8594
* cygwin.din (_impure_ptr): And export again. There are libs out there.
2004-09-17 08:34:31 +00:00
Corinna Vinschen
368ffbe3d8
* cygwin.din (_impure_ptr): Don't export.
...
(reent_data): Export.
* lib/_cygwin_crt0_common.cc (_impure_ptr): Drop entirely. Don't
initialize _impure_ptr or u->impure_ptr_ptr.
2004-09-16 09:14:29 +00:00
Christopher Faylor
22a1a24f10
* cygwin.din (_impure_ptr): Export.
...
(reent_data): Don't export.
* dcrt0.cc (reent_data): Drop.
(__cygwin_user_data): Initialize impure_ptr as GLOBAL_REENT.
(_dll_crt0): Initialize _impure_ptr as GLOBAL_REENT.
* lib/_cygwin_crt0_common.cc (_impure_ptr): Drop. Declare extern as dllimport
instead.
2004-09-16 03:49:03 +00:00
Corinna Vinschen
1dcd520bb8
Fix copyright throughout.
...
Eliminate use of _impure_ptr outside Cygwin.
* bsd_helper.cc: Include errno.h instead of cygerrno.h.
* bsd_mutex.cc : Ditto.
* client.cc: Ditto.
* cygserver.cc: Ditto.
* process.cc: Don't build functions inside Cygwin. Don't include
cygerrno.h. Don't set errno.
* transport_pipes.cc (SET_ERRNO): New define. Use througout.
* transport_sockets.cc (SET_ERRNO): Ditto.
(GET_ERRNO): Ditto.
2004-09-15 10:17:53 +00:00
Corinna Vinschen
b103e0d732
* getfacl.c (main): Correct layout when nopt is set.
2004-09-15 07:51:06 +00:00
Christopher Faylor
a9f36d288c
* cygtls.h: Add alignment kludge to fix disparity between compilers.
...
* tlsoffsets.h: Regenerate.
* fork.cc (slow_pid_reuse): Use define to control number of pids held to
prevent pid reuse.
2004-09-14 23:44:50 +00:00
Christopher Faylor
272871abe4
* what.texinfo: Fix two typos reported on cygwin list.
2004-09-14 13:02:54 +00:00
Corinna Vinschen
599b41c4ec
* autoload.cc (EnumProcessModules): Add.
...
* dlfcn.cc (dlsym): Handle RTLD_DEFAULT using EnumProcessModules().
* include/dlfcn.h (RTLD_DEFAULT): Define to NULL.
2004-09-14 08:29:12 +00:00
Christopher Faylor
fc3a42749f
* fork.cc (slow_pid_reuse): Temporarily double the number of pids held to
...
prevent pid reuse.
2004-09-14 02:21:09 +00:00
Christopher Faylor
de4e88a8df
trivia change to force a new snapshot
2004-09-13 15:14:38 +00:00
Christopher Faylor
a5eb75d60c
* sigproc.cc (wait_sig): Ensure that waiting threads are awoken after returning
...
from a hold condition.
2004-09-12 19:34:08 +00:00
Christopher Faylor
3d65bb97e8
* child_info.h (CURR_CHILD_INFO_MAGIC): Update.
2004-09-12 18:10:15 +00:00
Christopher Faylor
013688df40
check in file missing from previous checkin.
2004-09-12 03:55:42 +00:00
Christopher Faylor
d584454c82
* exceptions.cc: (ctrl_c_handler): Do nothing while a Cygwin subprocess is
...
starting.
* child_info.h (init_child_info): Remove pid argument from declaration.
* cygheap.h (init_cygheap::pid): New element.
* dcrt0.cc (dll_crt0_0): Eliminate handling of now-noexistent cygpid parameter
in child_info struct. Set forkee to 'true' rather than cygpid since the pid
value was never used.
(dll_crt0_1): Ditto.
(_dll_crt0): Ditto.
* fork.cc (fork_child): Don't wait for sigthread. This is handled in the fork
call now.
(fork_parent): Remove obsolete pid argument from init_child_info call. Don't
do anything special with cygpid when DEBUGGING.
(fork): Delay all signals during fork.
(fork_init): Don't do anything special when DEBUGGING.
* pinfo.cc (set_myself): Remove pid parameter. Use new pid field in cygheap.
(pinfo_init): Don't pass pid argument to set_myself.
* sigproc.cc (sig_send): Wait for dwProcessId to be non-zero as well as
sendsig.
(init_child_info): Eliminate handling of pid.
(wait_sig): Implement method to temporarily hold off sending signals.
* sigproc.h (__SIGHOLD): New enum.
(__SIGNOHOLD): Ditto.
* spawn.cc (spawn_guts): Remove obsolete pid argument from init_child_info
call.
2004-09-12 03:47:57 +00:00
Corinna Vinschen
d495ee9ff0
* fhandler.cc (fhandler_base::dup): Use debug_printf.
2004-09-10 08:34:37 +00:00
Corinna Vinschen
4875a4b66e
* Makefile.in: Create libutil.a from bsdlib.o exports.
...
* bsdlib.cc (logwtmp): Move from syscalls.cc to here.
(login): Ditto.
(logout): Ditto.
* winsup.h (EXPORT_ALIAS): New macro.
* exec.cc: Define alias symbols using EXPORT_ALIAS macro.
* syscalls.cc: Ditto.
* times.cc: Ditto.
2004-09-10 08:30:51 +00:00
Corinna Vinschen
1f97020ae6
* fhandler_tape.cc (fhandler_dev_tape::open): Fix typo.
2004-09-09 11:35:15 +00:00
Corinna Vinschen
6423296840
* pipe.cc (create_selectable_pipe): Work around bug in Windows 95
...
where CreateNamedPipe returns NULL.
2004-09-09 08:58:44 +00:00
Earnie Boyd
bbb5869af9
* include/sys/stat.h (_S_IFLNK): Add definition.
...
(S_IFLNK) Ditto.
(_lstat) Ditto.
(lstat) Ditto.
(_S_ISLNK) Recode.
(S_ISLNK) Ditto.
2004-09-09 02:05:22 +00:00
Earnie Boyd
57ad1153a6
* include/sys/stat.h (_S_ISLNK): Add definition.
...
(S_ISLNG): Ditto.
2004-09-08 18:24:13 +00:00
Pierre Humblet
a456320915
2004-09-05 Pierre Humblet <pierre.humblet@ieee.org>
...
* cygheap.h (cwdstuff::drive_length): New member.
(cwdstuff::get_drive): New method.
* path.cc (normalize_win32_path): Simplify by using cwdstuff::get_drive.
(mount_info::conv_to_win32_path): Use cwdstuff::get_drive as default for /.
(cwdstuff::set): Initialize drive_length.
2004-09-07 23:26:28 +00:00
Christopher Faylor
6f7a746cee
* cygtls.cc (_cygtls::init_thread): Set __sdidinit to negative value to
...
indicate that it is "special".
* thread.cc (pthread::exit): If __sdidinit is < 0, it was never really
initialized so reset it to 0 before calling _reclaim_reent.
2004-09-07 04:05:14 +00:00
Corinna Vinschen
ab21f18c95
* bsd_mutex.cc (_msleep): Disable resetting event object for now.
2004-09-06 20:32:45 +00:00
Danny Smith
b2e7654908
2004-09-06 Hosaka Yuji <hos@tamanegi.org>
...
* include/mshtml.h (IHTMLDocument2): Correct get_selection
declaration.
(IHTMLSelectionObject): Correct get_type declaration.
(IHTMLFramesCollection2, IHTMLWindow2, IHTMLFrameBase,
IHTMLFrameBase2, IHTMLFrameBase3, IHTMLBodyElement,
IHTMLBodyElement2): Add interfaces.
(LPHTMLIMAGEELEMENTFACTORY, LPHTMLEVENTOBJ, LPHTMLSCREEN,
LPHTMLOPTIONELEMENTFACTORY, LPOMHISTORY, LPOMNAVIGATOR): Add
typedefs.
* lib/mshtml-uuid.c (IID_IHTMLFrameBase2, IID_IHTMLFrameBase3):
Add IIDs.
2004-09-06 09:09:33 +00:00
Christopher Faylor
dda37cd219
* include/cygwin/version.h: Bump DLL minor number to 12.
2004-09-05 16:08:44 +00:00
Earnie Boyd
b73441fc30
* include/w32api.h: Increment version to 3.1.
...
* Makefile.in: Ditto.
2004-09-05 15:27:56 +00:00
Earnie Boyd
71c68d9607
* mingwex/Makefile.in: Correct typo in list of DISTFILES.
2004-09-05 14:15:01 +00:00
Earnie Boyd
665352facd
* include/_mingw.h: Increment minor version for 3.5 release.
...
* Makefile.in: Ditto.
2004-09-05 13:51:33 +00:00
Danny Smith
4f52488e06
2004-09-05 Hosaka Yuji <hos@tamanegi.org>
...
* include/winuser.h (MonitorFromPoint, MonitorFromRect,
MonitorFromWindow): Add prototypes.
* lib/user32.def (MonitorFromPoint, MonitorFromRect,
MonitorFromWindowMonitorFromWindow): Add stubs.
* include/shellapi.h (DuplicateIcon): Add prototype.
2004-09-05 10:35:34 +00:00
Danny Smith
99f91ded6c
* include/winuser.h (WINUSERAPI): New define.
...
Use it to mark user32.dll imports, throughout.
2004-09-05 10:14:26 +00:00
Danny Smith
e636a59f52
22004-09-05 Hosaka Yuji <hos@tamanegi.org>
...
* lib/ddk/hid.def (HidD_FlushQueue, HidD_FreePreparsedData,
HidD_GetAttributes, HidD_GetConfiguration, HidD_GetFeature,
HidD_GetHidGuid, HidD_GetIndexedString, HidD_GetInputReport,
HidD_GetManufacturerString, HidD_GetMsGenreDescriptor,
HidD_GetNumInputBuffers, HidD_GetPhysicalDescriptor,
HidD_GetPreparsedData, HidD_GetProductString,
HidD_GetSerialNumberString, HidD_SetConfiguration,
HidD_SetFeature, HidD_SetNumInputBuffers, HidD_SetOutputReport,
HidP_GetButtonCaps, HidP_GetValueCaps): Add exports.
2004-09-05 10:05:24 +00:00
Corinna Vinschen
eea5dd9707
* security.cc: Fix a few more strace_prints.
2004-09-03 08:18:41 +00:00
Christopher Faylor
0cd9f74fa5
Regularize most strace_prints throughout so that %E is always preceded by a
...
comma and elminate most uses of "foo = %s" to "foo %s".
2004-09-03 01:53:12 +00:00
Christopher Faylor
6644c628f5
Christopher Faylor <cgf@timesys.com>
...
* autoload.cc (NtQueryInformationFile): Return nonzero on error.
* ntdll.h (FILE_PIPE_LOCAL_INFORMATION): Add.
(NtQueryInformationFile): Fix types for last two arguments.
* pipe.cc: Include stdlib.h, limits.h, and ntdll.h.
(create_selectable_pipe): New function to create a pipe that can be used with
NtQueryInformationFile for select.
(fhandler_pipe::create): Call create_selectable_pipe instead of CreatePipe.
(pipe): Use DEFAULT_PIPEBUFSIZE as argument to create_pipe.
* select.cc: Include limits.h and ntdll.h.
(peek_pipe): Add select_printf output. Call NtQueryInformationFile to
implement select for write on pipes.
(fhandler_pipe::select_read): Reorder field assignments to be consistent with
fhandler_pipe::select_write.
(fhandler_pipe::select_write): Initialize startup, verify, cleanup, and
write_ready fields for select_record.
(fhandler_pipe::select_except): Tweak indentation to be consistent with
fhandler_pipe::select_write.
2004-09-03 01:32:02 +00:00
Corinna Vinschen
79eebb79a6
* textbinary.sgml: Change default mode for non-mounted paths to binary.
2004-09-02 08:14:49 +00:00
Corinna Vinschen
f0720ce7cb
* sysv_shm.cc (kern_shmat): Add debug_printf's.
2004-08-31 10:47:27 +00:00
Christopher Faylor
72067ccafa
* fork.cc (fork_parent): Return the cygpid directly derived from the winpid.
2004-08-31 03:34:04 +00:00
Christopher Faylor
1af912ce3c
* fork.cc (fork_parent): Record child's pid when we're sure that it has been
...
filled out by the child.
* pinfo.cc (pinfo::init): Trivial change.
2004-08-30 22:08:50 +00:00
Corinna Vinschen
c01edcda76
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Allow to report
...
success on systems with ntsec and ntea set.
2004-08-29 09:32:49 +00:00
Corinna Vinschen
ddea76a66b
* fhandler.cc (fhandler_base::write): In the lseek_bug case, set EOF
...
before zero filling. Combine similar error handling statements.
2004-08-28 15:46:57 +00:00
Pierre Humblet
2e41976b56
2004-08-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* syscalls.cc (ftruncate64): On 9x, call write with a zero length
to zero fill when the file is extended.
2004-08-28 01:37:27 +00:00
Danny Smith
b8a6a751f4
2004-08-25 Lars Rune N�stdal <daysleper@users.sourceforge.net>
...
* include/wincon.h (CONSOLE_FULLSCREEN_MODE, CONSOLE_WINDOWED_MODE):
Add defines.
(PCOORD): Add typedef.
(GetConsoleDisplayMode, SetConsoleDisplayMode): Add prototypes.
2004-08-25 08:43:25 +00:00
Danny Smith
6f564c4f6e
* include/winldap.h: Don't check value of UNICODE.
...
Thanks to: "Jean-Do" <spab@users.sourceforge.net>
2004-08-25 07:55:59 +00:00
Danny Smith
72fdc157bf
* include/winbase.h (WINBASEAPI): Guard with __INSIDE_CYGWIN__.
2004-08-24 23:20:42 +00:00
Corinna Vinschen
bb647ab68c
* syscalls.cc (link): Avoid compiler warning.
2004-08-24 22:49:16 +00:00
Corinna Vinschen
1532dd53a5
* bsd_mutex.cc (_msleep): Release process object while waiting.
2004-08-24 22:04:18 +00:00
Corinna Vinschen
26657d6052
* winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.
2004-08-24 09:58:16 +00:00
Corinna Vinschen
327284cf3a
* winsup.api/ltp/symlink01.c (do_link): Print inode numbers using %llu
...
format specifier.
2004-08-24 09:34:04 +00:00
Danny Smith
d5afcd86f9
* include/malloc.h (__mingw_aligned_offset_malloc,
...
__mingw_aligned_offset_realloc, __mingw_aligned_malloc,
__mingw_aligned_realloc, __mingw_aligned_free): Add
prototypes.
* mingwex/Makefile.in (DISTFILES): Add mingw-aligned-malloc.c,
tst-aligned-malloc.c.
(REPLACE_OBJS): Add mingw-aligned-malloc.o.
2004-08-24 09:02:45 +00:00
Danny Smith
a6c2ea7e7c
2004-08-24 Steven G. Johnson <stevenj@alum.mit.edu>
...
* mingwex/mingw-aligned-malloc.c: New file.
* mingwex/tst-aligned-malloc.c: New file.
2004-08-24 08:55:42 +00:00
Danny Smith
45b1139e41
* crt1.c: (__mingw_CRTStartup): Change return to void. Add
...
noreturn attribute. Align stack to 16 bytes before passing args
to main.
(mainCRTStartup): Change return to void.
(WinMainCRTStartup): Likewise.
2004-08-24 08:49:33 +00:00
Danny Smith
4cb4a4710a
2004-08-24 Sam Robb <samrobb@users.sourceforge.net>
...
* include/winbase.h (GetFileSizeEx): Add _WIN32_WINNT >= 0x0500
guard.
2004-08-23 22:01:57 +00:00
Danny Smith
ace32bda79
* include/winbase.h: Add WINBASEAPI token to prototypes, throughout.
2004-08-23 21:56:11 +00:00
Corinna Vinschen
12618f5ff5
* environ.cc (set_ntea): New function.
...
(set_ntsec): Ditto.
(set_smbntsec): Ditto.
(parse_thing): Change ntea, ntsec and smbntsec settings to call
appropriate functions.
2004-08-21 15:50:33 +00:00
Corinna Vinschen
7c48171279
* fhandler_tape.cc (fhandler_dev_tape::raw_read): Use ?: instead of
...
if/else.
(fhandler_dev_tape::raw_write): Return -1 in case of error.
2004-08-20 13:40:35 +00:00
Corinna Vinschen
b9188d6c1e
* errno.cc (_sys_errlist): Change various text to their english Linux
...
counterparts. Unify layout.
(strerror): Remove switch statement.
2004-08-19 18:26:58 +00:00
Corinna Vinschen
8cb783ba56
* fhandler.cc (fhandler_base::open): Set shared flags to 0 when
...
opening a tape device.
2004-08-19 15:47:51 +00:00
Corinna Vinschen
f0eeb667b8
* ChangeLog: Fix typo.
2004-08-19 15:31:53 +00:00
Corinna Vinschen
82b3018088
* fhandler_socket.cc (fhandler_socket::dup): Decrement dtable's
...
need_fixup_before counter on successful dup.
* net.cc (cygwin_getpeername): Add file descriptor to debug output.
2004-08-19 10:58:37 +00:00
Corinna Vinschen
8f663bd642
* fhandler.h (fhandler_dev_dsp:~fhandler_dev_dsp): Delete.
...
(fhandler_dev_dsp::open_count): Delete.
(fhandler_dev_dsp::close_audio_in): New method declaration.
(fhandler_dev_dsp::close_audio_in): Ditto.
* fhandler_dsp.cc: Add and edit debug_printf throughout.
(fhandler_dev_dsp::Audio::denyAccess): Delete.
(fhandler_dev_dsp::Audio::fork_fixup): Ditto.
(fhandler_dev_dsp::Audio::getOwner): Ditto.
(fhandler_dev_dsp::Audio::clearOwner): Ditto.
(fhandler_dev_dsp::Audio::owner_): Ditto.
(fhandler_dev_dsp::Audio::setformat): Ditto, rename to setconvert.
(fhandler_dev_dsp::Audio::lock): Ditto, move to queue.
(fhandler_dev_dsp::Audio::unlock): Ditto.
(fhandler_dev_dsp::Audio::lock_): Ditto.
(fhandler_dev_dsp::Audio::bufferIndex_): New member, from Audio_out
and Audio_in.
(fhandler_dev_dsp::Audio::pHdr_): Ditto.
(fhandler_dev_dsp::Audio::wavehdr_): Ditto.
(fhandler_dev_dsp::Audio::bigwavebuffer_): ditto.
(fhandler_dev_dsp::Audio::Qisr2app_): Ditto.
(fhandler_dev_dsp::Audio::setconvert): New method, from old setformat.
(fhandler_dev_dsp::Audio::queue::lock): New method.
(fhandler_dev_dsp::Audio::queue::unlock): Ditto.
(fhandler_dev_dsp::Audio::queue::dellock): Ditto.
(fhandler_dev_dsp::Audio::queue::isvalid): Ditto.
(fhandler_dev_dsp::Audio::queue::lock_): New member.
(fhandler_dev_dsp::Audio::queue::depth1_): Delete.
(fhandler_dev_dsp::Audio_out::fork_fixup): New method.
(fhandler_dev_dsp::Audio_out::isvalid): New method.
(fhandler_dev_dsp::Audio_out::start): Remove arguments.
(fhandler_dev_dsp::Audio_out::parsewav): Change arguments and set
internal state.
(fhandler_dev_dsp::Audio_out::emptyblocks): Delete.
(fhandler_dev_dsp::Audio_out::Qapp2app_): Ditto.
(fhandler_dev_dsp::Audio_out::Qisr2app_): Ditto, move to Audio.
(fhandler_dev_dsp::Audio_out::bufferIndex_): Ditto.
(fhandler_dev_dsp::Audio_out::pHdr_): Ditto.
(fhandler_dev_dsp::Audio_out::wavehdr_): Ditto.
(fhandler_dev_dsp::Audio_out::bigwavefuffer_): Ditto.
(fhandler_dev_dsp::Audio_out::freq_): New member.
(fhandler_dev_dsp::Audio_out::bits_): New member.
(fhandler_dev_dsp::Audio_out::channels_): New member.
(fhandler_dev_dsp::Audio_in::fork_fixup): New method.
(fhandler_dev_dsp::Audio_in::isvalid): New method.
(fhandler_dev_dsp::Audio_in::Qapp2app_): Delete.
(fhandler_dev_dsp::Audio_in::Qisr2app_): Ditto, move to Audio.
(fhandler_dev_dsp::Audio_in::bufferIndex_): Ditto.
(fhandler_dev_dsp::Audio_in::pHdr_): Ditto.
(fhandler_dev_dsp::Audio_in::wavehdr_): Ditto.
(fhandler_dev_dsp::Audio_in::bigwavefuffer_): Ditto.
(fhandler_dev_dsp::Audio::queue::queue): Simplify.
(fhandler_dev_dsp::Audio::queue::send): Use lock.
(fhandler_dev_dsp::Audio::queue::query): Do not use depth1_.
(fhandler_dev_dsp::Audio::queue::recv): Ditto.
(fhandler_dev_dsp::Audio::Audio): Adapt to new class members.
(fhandler_dev_dsp::Audio::~Audio): Ditto
(fhandler_dev_dsp::Audio_out::start): Reorganize.
(fhandler_dev_dsp::Audio_out::stop): Simplify.
(fhandler_dev_dsp::Audio_out::init): Reset the queue and clear flag.
(fhandler_dev_dsp::Audio_out::write): Reorganize to allocate audio_out.
(fhandler_dev_dsp::Audio_out::buf_info): Use appropriate block size.
(fhandler_dev_dsp::Audio_out::callback_sampledone): Do not use lock.
(fhandler_dev_dsp::Audio_out::waitforspace): Simplify.
(fhandler_dev_dsp::Audio_out::waitforallsent):Ditto.
(fhandler_dev_dsp::Audio_out::sendcurrent): Reorganize.
Clear flag before requeuing.
(fhandler_dev_dsp::Audio_out::parsewav):
(fhandler_dev_dsp::Audio_in::start): Reorganize.
(fhandler_dev_dsp::Audio_in::stop): Simplify.
(fhandler_dev_dsp::Audio_in::queueblock): Ditto.
Requeue header in case of error.
(fhandler_dev_dsp::Audio_in::init): Reset the queue and clear flag.
(fhandler_dev_dsp::Audio_in::waitfordata): Simplify.
Do not UnprepareHeader if the flag is zero.
(fhandler_dev_dsp::Audio_in::buf_info): Ditto.
(fhandler_dev_dsp::Audio_in::callback_blockfull): Do not use lock.
(fhandler_dev_dsp::open_count): Delete.
(fhandler_dev_dsp::open): Only check existence, do not allocate
anything. Set flags appropriately. Create archetype.
(fhandler_dev_dsp::write): Call archetype as needed. Create audio_out.
(fhandler_dev_dsp::read): Call archetype as needed. Create audio_in.
(fhandler_dev_dsp::close): Call archetype as needed.
Call close_audio_in and close_audio_out.
(fhandler_dev_dsp::close_audio_in): New function.
(fhandler_dev_dsp::close_audio_out): New function.
(fhandler_dev_dsp::dup): Use archetypes.
(fhandler_dev_dsp::ioctl): Call archetype as needed. Reorganize for
new structures.
(fhandler_dev_dsp::fixup_after_fork): Call archetype as needed.
(fhandler_dev_dsp::fixup_after_exec): Call archetype as needed.
Clear audio_in and audio_out.
2004-08-17 09:52:50 +00:00
Corinna Vinschen
86b652f9c8
* devdsp.c: Outputs the names of the main test functions.
...
(forkrectest): Expect child success.
(forkplaytest): Ditto.
(syncwithchild): Output the child status and the desired value.
(sinegenw): Reduce volume of the beep.
(sinegenb): Ditto.
(dup_test): New test.
2004-08-17 09:51:31 +00:00
Danny Smith
6e8285f48b
* profile/COPYING: New file.
...
* profile/CYGWIN_LICENSE: New file.
* profile/Makefile.in (DISTFILES): Add COPYING, CYGWIN_LICENSE.
2004-08-15 11:35:07 +00:00
Danny Smith
48a27980be
* mingwex/fopen64.c: Move.
...
* mingwex/fseeko64.c: Move.
* mingwex/ftello64.c: Move.
* mingwex/lseek64.c: Move.
* mingwex/stdio/fopen64.c: To here.
* mingwex/stdio/fseeko64.c: To here.
* mingwex/stdio/ftello64.c: To here.
* mingwex/stdio/lseek64.c: To here.
White space cleanup in ChangeLog
2004-08-15 11:28:09 +00:00
Danny Smith
40929746ba
* profile/gmon.c [__MINGW32__]: Include string.h for
...
memset prototype.
2004-08-15 10:45:43 +00:00
Danny Smith
18cff5fa2b
2004-08-15 Ken Fitlike <kenfitlike@users.sourceforge.net>
...
* include/commctrl.h (WC_TREEVIEWA): Remove parenthenses.
2004-08-15 08:51:20 +00:00
Pierre Humblet
252dd88138
2004-08-14 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler.cc (fhandler_base::open_9x): Set file attributes
for new files.
2004-08-14 03:01:21 +00:00
Christopher Faylor
cb3f750c79
* net.cc (cygwin_gethostbyname): Show failing host name on error.
2004-08-11 18:34:32 +00:00
Danny Smith
d1a40176a4
2004-08-10 Sebastian Nowak <snowak1@users.sourceforge.net>
...
* include/ws2spi.h (LPWSPSELECT): Correct typedef.
2004-08-11 08:10:22 +00:00
Danny Smith
c31c2194f3
* include/wincrypt.h: Correct _WIN32_WINNT typo.
2004-08-11 07:51:56 +00:00
Danny Smith
dbe6474a4a
2004-08-10 Ed Schaller <schallee@darkmist.net>
...
* include/wincrypt.h (MS_ENH_RSA_AES_PROV_A, MS_ENH_RSA_AES_PROV_W)
(ALG_SID_AES_128, ALG_SID_AES_192, ALG_SID_AES_256, ALG_SID_AES 17)
(CALG_AES_128, CALG_AES_192, CALG_AES_256, CALG_AES,PROV_RSA_AES):
Add defines.
(CALG_SHA1): Add define.
(HP_HMAC_INFO): Add define.
(HMAC_INFO): Add struct.
(BLOBHEADER): Add typedef.
2004-08-11 07:42:57 +00:00
Christopher Faylor
34b14e0b26
white space
2004-08-10 15:18:36 +00:00
Christopher Faylor
fe3db6cc89
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.
2004-08-10 15:05:37 +00:00
Christopher Faylor
3f604cbca4
* mingwex/stdio/vwscanf.c: Add stdio.h needed after 2004-08-07 change.
2004-08-09 01:17:28 +00:00
Danny Smith
ac8cbf3d2d
* include/complex.h: Remove __attribute__ ((const)) from
...
transcendantal and trig functions. Replace __attribute__ ((const))
with __MINGW_ATTRIB_CONST on other declarations.
2004-08-07 07:58:01 +00:00
Danny Smith
889a573ad8
* include/wchar.h: Reorganize, avoid including other headers.
2004-08-07 07:51:14 +00:00
Danny Smith
a794235489
* include/string.h (memchr, memcmp, strchr, strcmp, strcspn)
...
(strlen, strncmp, strpbrk, strrchr, strspn, strstr): Add pure
attribute.
2004-08-06 21:49:54 +00:00
Corinna Vinschen
3410b5be3e
* errno.cc (errmap): Add ERROR_TOO_MANY_LINKS -> EMLINK mapping.
...
* syscalls.cc (link): Only copy files if FS doesn't support hard links.
2004-08-03 14:37:26 +00:00
Corinna Vinschen
8c97671600
* transport.cc (transport_layer_base::~transport_layer_base): Resurrect.
...
* transport.h (transport_layer_base::~transport_layer_base): Ditto.
2004-08-03 12:35:35 +00:00
Corinna Vinschen
a918549275
* bsd_mutex.cc (_msleep): Reset event object and close it before
...
entering mutex. Turn order of conditional for better readability.
2004-07-30 14:48:19 +00:00
Danny Smith
8b7083824a
* include/dirent.h (struct _wdirent): Remove obsolete comment.
2004-07-30 08:27:29 +00:00
Danny Smith
57cb31d40c
* include/string.h: Revert 2004-07-26 additions of
...
__ATTRIBUTE_PURE.
2004-07-30 08:19:58 +00:00
Danny Smith
ab8cc34bb7
* mingwex/math/powl.c (powl): Revert change of 2004-02-01.
...
(__convert_inf_to_maxnum): New.static inline.
(reducl): Use it to protect against Inf - Inf.
(__fast_ldexpl): New function. Use in lieu of ldexpl.
2004-07-28 11:25:27 +00:00
Danny Smith
5ea3a6e152
* mingwex/math/expl.c (expl): Move body of code to new static
...
function __expl, removing tests for +/-Inf. Extern function
expl calls __expl after testing for max, min log thresholds.
2004-07-27 08:03:36 +00:00
Danny Smith
1856fdbe03
* mingwex/stdio/vsscanf.c: Add "edi" to registers-modified field
...
* mingwex/stdio/vfscanf.c: Likewise.
* mingwex/stdio/vswscanf.c: Likewise.
* mingwex/stdio/vfwscanf.c: Likewise.
2004-07-27 00:06:07 +00:00
Danny Smith
756301b7de
* include/_mingw.h: Use only two underscores to uglify
...
__MINGW_ATTRIB_* macros.
* include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
* includ/setjmp.h: Likewise.
* include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
string functions.
(_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2004-07-26 23:45:03 +00:00
Corinna Vinschen
2646298531
* fhandler_proc.cc (format_proc_cpuinfo): Remove Intel-specific flags
...
from /proc/cpuinfo on non-Intel processors. Added new AMD-specific
flags. Changed Intel flag names to match Linux.
2004-07-26 13:19:03 +00:00
Corinna Vinschen
3bf0227220
* cygserver.conf: Describe relation between shmmaxpgs and SHMMAX.
2004-07-26 09:31:07 +00:00
Danny Smith
dcbe26ba3c
* include/_mingw.h: Use only two underscores to uglify
...
__MINGW_ATTRIB_* macros.
* include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens.
* includ/setjmp.h: Likewise.
* include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent
string functions.
(_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
2004-07-26 09:13:42 +00:00
Danny Smith
174e6ff064
* include/string.h: Group wide string functions together,
...
and protect with _WSTRING_DEFINED.
2004-07-26 04:12:11 +00:00
Danny Smith
69e26fe33c
2004-07-26 Hartmut Honisch <hhonisch@users.sourceforge.net>
...
* include/commctrl.h (TreeView_SetItemState): Define macro.
2004-07-25 21:23:27 +00:00
Danny Smith
751ba44030
* include/_mingw.h (_MINGW_ATTR_*): Replace with
...
__MINGW_ATTRIB_*.
* include/stdlib.h (_ATTRIB_NORETURN): Replace with
__MINGW_ATTRIB_NOREURN, throughout.
(malloc): Declare with __MINGW_ATTRIB_MALLOC.
(calloc): Likewise.
(abs): Declare with __MINGW_ATTRIB_CONST.
(labs): Likewise.
(div): Likewise.
(ldiv): Likewise.
(lldiv): Likewise.
(_rotl): Likewise.
(_rotr): Likewise.
(_lrotl): Likewise.
(_lrotr): Likewise.
* include/setjmp.h (longjmp): Add __MINGW_ATTRIB_NORETURN.
2004-07-25 11:23:43 +00:00
Christopher Faylor
634d51d94e
* dcrt0.cc (dll_crt0_0): Use proper boolean arguments.
...
* pinfo.cc (pinfo::init): Don't consider MapViewOfFileEx error to be fatal if
exiting.
* pinfo.h (pinfo::init): Eliminate default argument and supply the argument in
the one case that needed it.
2004-07-24 19:18:58 +00:00
Danny Smith
b92b36bd8a
* include/wingdi.h (CMYK): Its fun to play with the C-M-Y-K.
...
(young man, young man,...)
2004-07-24 12:47:44 +00:00
Corinna Vinschen
65c5aa77fb
* autoload.cc (GetNativeSystemInfo): Add.
...
(IsWow64Process): Add.
* init.cc (respawn_wow64_process): New function.
(dll_entry): If process has been started from a 64 bit
process, call respawn_wow64_process.
* uname.cc (uname): On 64 bit systems, use GetNativeSystemInfo.
Show actual CPU type.
2004-07-24 09:41:34 +00:00
Danny Smith
61e6420f32
2004-07-24 Brodie Thiesfield <brofield@users.sourceforge.net>
...
* include/shlobj.h (FILEDESCRIPTOR): Unicode it.
(FILEGROUPDESCRIPTOR): LIkewise.
2004-07-24 09:00:52 +00:00
Corinna Vinschen
061095b5a3
* dtable.cc (dtable::get_debugger_info): Make stderr r/w according
...
to SUSv3.
2004-07-23 09:04:59 +00:00
Corinna Vinschen
0544d11637
* fhandler_tty.cc (fhandler_tty_slave::open): Use requested flag
...
values also when copying fhandler from archetype.
2004-07-22 20:39:08 +00:00
Christopher Faylor
5b7534fec3
* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
2004-07-22 18:25:52 +00:00
Danny Smith
cc054d9d26
* include/_mingw.h: Undefine __attribute__.
...
(__MINGW_ATTR_NORETURN): New define.
(__MINGW_ATTR_CONST): New define.
(__MINGW_ATTR_MALLOC): New define.
(__MINGW_ATTR_PURE): New define.
(_CRTIMP, __cdecl, __stdcall, __UNUSED_PARAM): Ansi-fy
expansions.
2004-07-21 10:59:54 +00:00
Corinna Vinschen
7d9c458d8f
* shm.cc: Whitespace fixes.
2004-07-20 16:08:49 +00:00
Corinna Vinschen
96e949deaa
* bsd_helper.cc: Whitespace fixes.
...
* bsd_mutex.cc: Ditto.
2004-07-20 16:06:14 +00:00
Christopher Faylor
325965583f
revert erroneous checkin
2004-07-20 16:01:39 +00:00
Christopher Faylor
894c677711
* Makefile.in (clean): Remove cygwin.def since it is autogenerated.
2004-07-20 15:52:33 +00:00
Danny Smith
f451556720
* include/time.h (__time64_t): Add missing ';'.
2004-07-19 22:51:38 +00:00
Corinna Vinschen
bb3be323ba
* transport.cc (transport_layer_base::~transport_layer_base): Remove.
...
* transport.h (transport_layer_base::~transport_layer_base): Ditto.
2004-07-19 14:04:51 +00:00
Corinna Vinschen
bc2c51140c
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::init): Fix non-ISO
...
expression.
* fhandler_floppy.cc (fhandler_dev_floppy::open): Remove unused
variable.
* fhandler_proc.cc (format_proc_meminfo): Fix compiler warning.
2004-07-19 13:13:48 +00:00
Corinna Vinschen
f8e58afb11
* bsd_mutex.cc (win_priority): Actually calculate p from priority.
2004-07-19 13:12:00 +00:00
Danny Smith
cd341e5613
* include/math.h: Guard ISO C99 additions with __cplusplus
...
not __GLIBCPP__.
2004-07-17 05:15:26 +00:00
Christopher Faylor
241422d046
* Makefile.in (CC): Strip inappropriate include file settings from any
...
passed-in CC.
2004-07-17 04:31:14 +00:00
Christopher Faylor
1d2fd38847
* pinfo.cc (pinfo::init): Guard against MapViewOfFileEx failure.
2004-07-16 15:49:22 +00:00
Corinna Vinschen
e348b39a71
* mmap.cc (mmap_record::alloc_page_map): Mark pages as allocated even
...
on Windows 9x, FWIW.
2004-07-16 14:32:03 +00:00
Joshua Daniel Franklin
99d86313f4
* how-resources.texinfo: Update documentation to /usr/share/doc.
...
* how-using.texinfo: Add paragraph about find -noleaf.
2004-07-16 14:17:15 +00:00
Danny Smith
75ccca2f65
2004-07-15 "dgun" <dgun@umpire.com>
...
* include/complex.h (conj): Correct typo in prototype.
2004-07-15 20:20:22 +00:00
Corinna Vinschen
0c0ad23a2c
* mmap.cc (mprotect): When MAP_WRITE protection is requested, use
...
READWRITE or WRITECOPY protection, whatever has been used when the
page has been allocated initially.
2004-07-15 17:00:44 +00:00
Corinna Vinschen
4243412aa5
* fhandler.h (class fhandler_dev_raw): Remove is_writing flag.
...
Remove declaration of writebuf.
(class fhandler_dev_floppy): Remove declaration of close.
* fhandler_floppy.cc (fhandler_dev_floppy::close): Delete.
(fhandler_dev_floppy::lseek): Remove calls to writebuf. Set
eom_detected to false after successful seek.
* fhandler_raw.cc (fhandler_dev_raw::writebuf): Delete.
(fhandler_dev_raw::raw_read): Remove calls to writebuf.
(fhandler_dev_raw::raw_write): Always invalidate buffer.
2004-07-15 14:56:05 +00:00
Danny Smith
fcedcf9488
Whitespace change to ChangeLog
2004-07-15 11:56:01 +00:00
Danny Smith
4bf283e0e2
* include/math.h: Add pragma GCC system_header.
2004-07-15 11:39:15 +00:00
Danny Smith
e651690002
* mingwex/complex/cargs.c: New file.
...
* mingwex/Makefile.in: Really add carg.o to libmingwex.a.
2004-07-15 11:35:13 +00:00
Corinna Vinschen
a062ed9840
* Makefile.in (INCLUDES): Temporarily revert previous change.
...
* mingwex/Makefile,in (INCLUDES): Ditto.
* profile/Makefile,in (INCLUDES): Ditto.
* mingwex/Makefile,in: Drop carg.o dependency.
2004-07-15 10:40:37 +00:00
Corinna Vinschen
5ba42c7f4c
* mmap.cc (class mmap_record): Fix return type of get_offset.
...
(mmap_record::fixup_page_map): Fix off by one error.
(list::search_record): Use long as type of "start" argument in both,
declaration and definition. Use long as type for local variable "i".
2004-07-15 09:21:16 +00:00
Christopher Faylor
a671e18c42
* mingwex/fwide.c: Include <stdio.h> to resolve FILE usage.
2004-07-15 02:43:19 +00:00
Christopher Faylor
839677149f
* fhandler_registry.cc (registry_listing): Correct typo.
...
(fhandler_registry::fill_filebuf): Set size of newly expanded buffer prior to
calling RegQueryValueEx.
2004-07-15 02:07:14 +00:00
Danny Smith
8e47f4464b
* Makefile.in (INCLUDES): Designate $(srcdir)/../include as a
...
system dir.
* mingwex/Makefile,in (INCLUDES): Ditto.
* profile/Makefile,in (INCLUDES): Ditto.
* mingwex/Makefile,in: Add carg.o to libmingwex.a.
2004-07-14 23:44:50 +00:00
Corinna Vinschen
dd3a7a2042
* fhandler_raw.cc (fhandler_dev_raw::raw_write): Remove buffered
...
write entirely.
2004-07-14 13:51:17 +00:00
Earnie Boyd
650bcf9d74
* Makefile.in: Move use of --nostdinc++ as GCC3.4 warns to use it
...
for C modules.
* mingwex/Makefile.in: Ditto.
* profile/Makefile.in: Ditto.
2004-07-13 13:01:28 +00:00
Earnie Boyd
bb8c8bd47a
* Makefile.in: Move use of --nostdinc++ as GCC3.4 refuses to use it
...
for C modules.
2004-07-13 11:23:08 +00:00
Earnie Boyd
ef72590eb1
* include/limits.h: Change to new file header preamble.
2004-07-13 11:11:36 +00:00
Earnie Boyd
aa726b09ae
* include/_mingw.h: Increment minor version for 3.4 release.
...
* Makefile.in: Ditto.
2004-07-13 11:04:25 +00:00
Corinna Vinschen
e3118d880b
* mkgroup.cc (netapibufferallocate,netgroupgetinfo): New function
...
pointers.
(load_netapi): Load NetApiBufferAllocate and NetGroupGetInfo.
(enum_local_groups,enum_groups): Add disp_groupname parameter.
Load info for disp_groupname if specified.
(usage): Add description of "-g/--group" option.
(longopts,opts): Add "-g/--group" option.
(main): Process "-g/--group" option.
* utils.sgml (mkgroup): Add description of "-g/--group" option
2004-07-12 16:52:16 +00:00
Danny Smith
e4cb4efab3
* mingwex/math/cephes_emath.h (__etens): Remove declaration.
2004-07-12 07:33:17 +00:00
Danny Smith
1b0314715b
* include/unistd.h (ftruncate): Add inline definition.
...
* mingwex/ftruncate.c: New file.
* mingwex/Makefile.in: Add ftruncate.o to libmingwex.a.
2004-07-11 10:01:41 +00:00
Danny Smith
8261a23149
* include/time.h: Do not include sys/types.h.
2004-07-10 04:06:09 +00:00
Corinna Vinschen
1d4707111a
* spawn.cc (spawn_guts): Check if script is executable.
2004-07-08 09:18:29 +00:00
Corinna Vinschen
95db28a454
* winbase.h (IsWow64Process): Add missing WINAPI qualifier.
2004-07-06 15:33:46 +00:00
Danny Smith
64b9893f0d
2 * mingwex/Makefile.in (MATH_DISTFILES): Remove pow.c,
...
(MATH_OBJS): Remove pow,o.
* include/math.h (pow): Declare with _CRTIMP.
Add comment on how to avoid excess precision problems.
2004-07-02 10:01:51 +00:00
Corinna Vinschen
78c6a5b53a
* times.cc (hires_ms::usecs): Don't overreact.
2004-06-30 16:00:32 +00:00
Corinna Vinschen
fbd5a0b8da
* times.cc (hires_ms::usecs): Reinit timer when system time overflows.
2004-06-30 15:50:08 +00:00
Danny Smith
81223d017f
2004-06-30 Kees Zeelenberg <kzlg@users.sourceforge.net>
...
Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (fopen64): Add inline function.
(fseeko64): Add prototype.
(ftello64): Add inline function.
* include/io.h (lseek64): Add inline function.
* include/sys/types (off64_t): Add typedef.
(fpos64_t): Add typedef.
* mingwex/fopen64.c: New file.
* mingwex/fseeko64.c: New file.
* mingwex/ftello64.c: New file.
* mingwex/lseek64.c: New file.
* mingwex/Makefile.in (STDIO_DISTFILES): Add fopen64.c,
fseeko.64.c, ftello64.c, lseek64.c.
(STDIO_OBJS): Add fopen64.o, fseeko.64.o, ftello64.o, lseek64.o.
2004-06-30 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (__mingw_fseeko64): Add prototype.
* mingwex/mingw-fseek.c (__mingw_fseeko64): Add definition.
(__mingw_fwrite): Handle huge files.
2004-06-30 04:51:18 +00:00
Christopher Faylor
76a3f968a5
* thread.cc (__cygwin_lock_lock): Don't bother locking when there is only one
...
known thread.
(__cygwin_lock_unlock): Ditto for unlocking.
2004-06-27 19:16:48 +00:00
Corinna Vinschen
c624912e3e
* fhandler_proc.cc (format_proc_cpuinfo): Test CPU vendor and print
...
AMD specific 3dnow capabilities.
2004-06-23 16:09:32 +00:00
Corinna Vinschen
f0d14ca96d
* fhandler_socket.cc (fhandler_socket::release): Call
...
WSASetLastError last.
2004-06-23 07:36:21 +00:00
Christopher Faylor
c0508da25a
* autoload.cc (wsock_init): Keep lock while modifying return address.
2004-06-22 04:00:16 +00:00
Corinna Vinschen
456afc5dd5
* fhandler.cc (fhandler_base::open): Remove 9x specific code.
2004-06-17 15:25:09 +00:00
Pierre Humblet
bd0e9c7aa6
2004-06-17 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler.cc (fhandler_base::open_9x): Do not check for null name.
Move debug_printf to common code line.
(fhandler_base::open): Ditto. Initialize upath. Remove second argument
of pc.get_nt_native_path.
* path.h (path_conv::get_nt_native_path): Remove second argument.
* path.cc (path_conv::get_nt_native_path): Ditto. Call str2uni_cat.
* security.h (str2buf2uni_cat): Delete declaration.
(str2uni_cat): New declaration.
* security.cc (str2buf2uni): Get length from sys_mbstowcs call.
(str2buf2uni_cat): Delete function.
(str2uni_cat): New function.
* miscfuncs.cc (sys_mbstowcs): Add debug_printf.
2004-06-17 13:34:26 +00:00
Corinna Vinschen
f6d9664b63
* fhandler.cc (fhandler_base::open): Substitute FILE_SUPERSEDE with
...
FILE_OVERWRITE_IF.
2004-06-17 07:03:09 +00:00
Danny Smith
3adfd50973
2004-06-16 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winnt.h (IMAGE_ORDINAL_FLAG): Map to ...
(IMAGE_ORDINAL_FLAG{32,64}: New defines.
(IMAGE_SNAP_BY_ORDINAL): Map to ...
(IMAGE_SNAP_BY_ORDINAL{32,64}: New defines.
(IMAGE_ORDINAL): Map to ...
(IMAGE_ORDINAL{32,64}: New defines.
(IMAGE_THUNK_DATA): Map to ...
(IMAGE_THUNK_DATA{32,64}: New structures.
(IMAGE_THUNK_DATA): Map to ...
(IMAGE_THUNK_DATA{32,64}: New structures.
(IMAGE_IMPORT_DESCRIPTOR): Map to ...
(IMAGE_IMPORT_DESCRIPTOR{32,64}: New structures.
(IMAGE_IMAGE_TLS_DIRECTORY) Map to ...
(IMAGE_IMAGE_TLS_DIRECTORY{32,64}: New structures.
2004-06-16 Bang Jun-Young <junyoung@NetBSD.org>
* w32api/include/winnt.h (WAITORTIMERCALLBACKFUNC): Protect with
_WIN32_WINNT >= 0x0500.
2004-06-16 08:27:04 +00:00
Joshua Daniel Franklin
8caaf6cd6f
Fix faq-faq0 snafu.
2004-06-15 03:23:23 +00:00
Joshua Daniel Franklin
e52db4e16d
* how-programming.texinfo: Add section about Visual Studio linking.
2004-06-15 03:19:23 +00:00
Alan Modra
64b49cceb5
* dumper.cc (dumper::prepare_core_dump): Use bfd_get_section_size
...
instead of _raw_size.
(dumper::write_core_dump): Likewise.
* parse_pe.cc (select_data_section): Likewise.
2004-06-15 02:18:51 +00:00
Joshua Daniel Franklin
bad8e625b8
2004-06-13 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
...
* faq.texinfo: Move outdated calls.texinfo to readme.texinfo.
* how-api.texinfo: Fix typos.
* how-programming.texinfo: Fix typos.
* how-resources.texinfo: Fix typos.
* how-using.texinfo: Fix typos.
* install.texinfo: Fix typos.
* readme.texinfo: Move outdated calls.texinfo to readme.texinfo.
2004-06-14 02:42:05 +00:00
Joshua Daniel Franklin
af6b55758b
Define ps status flags
2004-06-11 18:25:06 +00:00
Christopher Faylor
cc24f9b669
* include/cygwin/version.h: REALLY bump dll minor version to 11.
2004-06-09 16:03:51 +00:00
Corinna Vinschen
35fe2c0811
* include/cygwin/ipc.h: Make IPC_INFO visible only for ipc system
...
utilities, to make it consistent with declaration of struct seminfo.
2004-06-08 10:53:40 +00:00
Corinna Vinschen
694a67c4e1
* path.cc (fchdir): Pass the Posix path to chdir.
2004-06-08 07:20:04 +00:00
Christopher Faylor
beffbc5efd
* dtable.cc (dtable::find_fifo): Release lock after fifo found (still racy).
...
* fhandler.h (fhandler_fifo::get_io_handle): New fifo-specific method.
* fhandler_fifo.cc (fhandler_fifo::close): Close output_handle only if it is
open.
(fhandler_fifo::open_not_mine): Reorganize slightly. Don't call _pinfo methods
when the fifo is owned by me or suffer dtable lock_cs deadlock.
(fhandler_fifo::open): Call open_not_mine first, otherwise open myself
(racy).
* pinfo.cc (_pinfo::commune_recv): Duplicate fifo handles here in requesting
processes arena to avoid one potential race (of many).
(_pinfo::commune_send): Move all PICOM_FIFO code under one case statement.
* thread.cc (pthread::init_mainthread) Use existing hMainProc handle rather
than calling GetCurrentProcess.
2004-06-07 04:26:32 +00:00
Luke Dunstan
6a02213b52
2004-06-05 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winbase.h (GetWriteWatch): Correct prototype.
(WRITE_WATCH_FLAG_RESET): Define.
Thanks to Sergey Philippov <phis@users.sourceforge.net>.
2004-06-05 13:39:35 +00:00
Luke Dunstan
99745be758
2004-06-02 Rocher Laurent <lrocher@users.sourceforge.net>
...
* include/commctrl.h (Animate_OpenEx): Define.
(DateTime_GetSystemTime, DateTime_SetSystemTime): Correct names.
(ListView_GetNumberOfWorkAreas): Correct macro.
(ListView_SetUnicodeFormat, ListView_GetUnicodeFormat,
ListView_SetItemCountEx, ListView_GetISearchString,
TreeView_GetLastVisible, Header_CreateDragImage,
Header_SetImageList, Header_GetImageList): Define.
(LVM_SETUNICODEFORMAT, LVM_GETUNICODEFORMAT,
MCM_GETUNICODEFORMAT, MCM_SETUNICODEFORMAT,
TBSTATE_ELLIPSES): Define.
(MonthCal_SetRange): Correct macro.
(ImageList_Duplicate): Declare.
2004-06-05 13:01:07 +00:00
Christopher Faylor
cf4bfdb2f8
* winbase.h (ilockincr): Add more neverending changes from the inexplicable
...
world of gcc asm constraint magic. Should stop random crashes.
(ilockdecr): Ditto.
2004-06-04 23:55:44 +00:00
Christopher Faylor
04612c69eb
* autoload.cc (IsDosDeviceName_U): Define.
...
* ntdll.h (IsDosDeviceName_U): Declare.
* fhandler.cc (fhandler_base::open): Check to see if win32_name is a dos device
and just call the 9x open if so.
2004-06-03 22:27:25 +00:00
Christopher Faylor
1633289656
revert accidental checkin
2004-06-03 21:33:29 +00:00
Christopher Faylor
604ca5fa17
* winbase.h (ilockincr): More changes from the inexplicable world of gcc asm
...
magic.
(ilockdecr): Ditto.
2004-06-03 21:29:43 +00:00
Christopher Faylor
ee94df3ecc
* winbase.h (ilockincr): YA correction to ensure correct operation with no
...
optimization.
(ilockdecr): Ditto.
2004-06-03 20:48:02 +00:00
Corinna Vinschen
414bfc1072
* cygserver.h (CYGWIN_SERVER_VERSION_API): Bump.
2004-06-03 19:52:12 +00:00
Corinna Vinschen
378e5a0271
* include/cygwin/ipc.h (IPC_KEY_IS_SHMID): Redefine to a more sensible
...
value.
2004-06-03 19:51:10 +00:00
Corinna Vinschen
e9054f3f7f
* shm.cc (shmget): Explicitely set td_retval[0] to -1 on error.
2004-06-03 19:49:54 +00:00
Christopher Faylor
e6f751a5a9
remove erroneous ChangeLog entry
2004-06-03 18:56:49 +00:00
Christopher Faylor
a864f241f1
* winbase.h: Fix all ilock defs as per cygwin 1.5.10 release.
2004-06-03 18:55:56 +00:00
Christopher Faylor
e847fe136d
add missing changelog entry
2004-06-02 21:25:57 +00:00
Christopher Faylor
1a21f33188
* spawn.cc (find_exec): Use has_slash to determine if path has a slash rather
...
than calculating this twice.
2004-06-02 21:20:54 +00:00
Luke Dunstan
cdb055db02
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/limits.h (_I64_MIN, _I64_MAX, _UI64_MAX): Add defines.
2004-06-01 14:09:20 +00:00
Luke Dunstan
b188d0f595
2004-05-29 Filip Navara <xnavara@volny.cz>
...
* include/winnt.h (IMAGE_EXPORT_DIRECTORY): Fixed declaration.
2004-05-31 14:10:20 +00:00
Luke Dunstan
814a8765fb
2004-05-25 Al Slater <al.slater@scluk.com>
...
* include/httpext.h (HSE_SEND_HEADER_EX_INFO,
HSE_REQ_SEND_RESPONSE_HEADER_EX): Define.
2004-05-31 13:57:30 +00:00
Pierre Humblet
2d5afa98a2
2004-05-30 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (mount_info::add_item): Make sure native path has drive
or UNC form. Call normalize_xxx_path instead of [back]slashify.
Remove test for double slashes. Reorganize to always debug_print.
2004-05-31 02:20:39 +00:00
Joshua Daniel Franklin
e3c1b77980
* pathnames.sgml: Remove /dev/kmem from the supported POSIX
...
device list.
* cygwinenv.sgml: Fix typo in check_case description.
2004-05-30 06:47:09 +00:00
Joshua Daniel Franklin
1a8b65e301
2004-05-29 John Paul Wallington <jpw@gnu.org>
...
* ssp.c (usage): Add missing linefeed.
2004-05-30 06:33:02 +00:00
Christopher Faylor
c4c9eb5fd6
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only try to open the file
...
if it uses an acl.
2004-05-29 00:51:16 +00:00
Christopher Faylor
e3778517d9
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
...
starts with a drive.
Also perform whitespace cleanup.
2004-05-28 19:50:07 +00:00
Christopher Faylor
1973881114
clarify last entry slightly.
2004-05-27 15:58:29 +00:00
Christopher Faylor
0512945eb5
* kill.cc (listsig): NSIG includes Signal 0, so we need to avoid calling
...
strtosigno with NSIG - 1.
2004-05-27 15:15:51 +00:00
Christopher Faylor
37eadb6fb1
* winbase.h: Semi-revert previous patch as it caused strange behavior. Use
...
syntax similar to that recommended in mingw-dvlpr.
2004-05-25 20:00:19 +00:00
Christopher Faylor
9a17d61b09
* include/cygwin/version.h: Bump DLL minor number to 11.
2004-05-25 16:01:49 +00:00
Christopher Faylor
1b1f85fa0c
* winbase.h: Add proper attributions for memory operands throughout.
2004-05-25 04:00:49 +00:00
Christopher Faylor
41bba72eb4
* include/cygwin/version.h: Bump api minor version number.
...
* cygwin.din: Export atoll.
2004-05-25 03:21:34 +00:00
Christopher Faylor
bfa768973c
* tty.cc (tty_list::allocate_tty): Leave tty_mutex armed on successful return
...
from !with_console
* fhandler_tty.cc (fhandler_pty_master::open): Release tty_mutex here after all
initialization is done.
2004-05-20 17:32:12 +00:00
Corinna Vinschen
aac9c88c24
* grp.cc (getgrgid_r): Replace struct group by struct __group32 in
...
argument definition.
(getgrnam_r): Ditto.
2004-05-17 16:14:01 +00:00
Corinna Vinschen
68509b303e
* cygwin.din: Add symbols flockfile, ftrylockfile, funlockfile,
...
getgrgid_r, getgrnam_r and getlogin_r.
* grp.cc (getgrgid_r): New function.
(getgrnam_r): Ditto.
* syscalls.cc (flockfile): Ditto.
(ftrylockfile): Ditto.
(funlockfile): Ditto.
* sysconf.cc (sysconf): Return LOGIN_NAME_MAX in case of
_SC_LOGIN_NAME_MAX.
* thread.cc (__cygwin_lock_trylock): Define int. Return value from
call to pthread_mutex_trylock.
* uinfo.cc (getlogin_r): New function.
* include/limits.h: Define LOGIN_NAME_MAX.
* include/cygwin/version.h: Bump API minor number.
* include/sys/lock.h: Add declarations for __cygwin_lock_xxx functions.
* include/sys/stdio.h: Add define for _ftrylockfile.
2004-05-17 16:06:02 +00:00
Christopher Faylor
3271e9f9e3
* tty.cc (tty_list::init): Move hmaster initialization earlier to prevent
...
compilation error.
2004-05-17 15:55:42 +00:00
Christopher Faylor
641654f72a
Change the name "title_mutex" to "tty_mutex" throughout.
...
* tty.h (tty_list::allocate_tty): Turn argument into a boolean.
* tty.cc (tty_list::init): Protect entire allocation operation with tty_mutex
(formerly title_mutex) to protect against allocation races.
2004-05-17 15:27:56 +00:00
Christopher Faylor
fb4489a53f
add missing file
2004-05-16 16:38:27 +00:00
Corinna Vinschen
32880f1e4a
* fhandler_socket.cc (fhandler_socket::recvfrom): Use original flags
...
value in each WSARecvFrom call.
(fhandler_socket::recvmsg): Ditto. Reformat slightly.
2004-05-16 15:38:03 +00:00
Christopher Faylor
0c565ab35b
* cygthread.cc (cygthread::is): Eliminate.
...
* cygthread.h (cygthread::is): Eliminate declaratin.
* fhandler_console.cc (fhandler_console::read): Only wait for signal_arrived in
the main thread.
* fhandler_socket.cc: Include new "wininfo.h".
(fhandler_socket::ioctl): Use 'winmsg' rather than 'gethwnd()'.
* sync.cc (muto::grab): Define new function.
(muto::acquire): Use tls pointer rather than tid.
(muto::acquired): Ditto.
(muto::reset): Delete.
(muto::release): Ditto. Also implement "close on last release".
* sync.h (muto::tid): Delete.
(muto::tls): New field.
(muto::ismine): Delete.
(muto::owner): Delete.
(muto::unstable): Delete.
(muto::reset): Delete.
(muto::upforgrabs): New method.
(muto::grab): Ditto.
(new_muto_name): New define.
* wininfo.h: New file.
(wininfo): New class.
* window.cc: Rework throughout to use winfo class for controlling invisible
window operation.
(gethwnd): Delete definition.
* winsup.h (gethwnd): Delete declaration.
2004-05-16 04:18:50 +00:00
Christopher Faylor
aafd8a545f
revert previous not-ready-for-primetime checkin.
2004-05-15 16:10:41 +00:00
Christopher Faylor
71af2ed39e
* cygheap.h: Remove some parameter names from declarations throughout.
...
(cygheap::set): Reflect changes in declaration for arguments and return value
from previous checkin.
2004-05-15 16:09:04 +00:00
Christopher Faylor
982c8ecdb4
* cygheap.h (cwdstuff::set): Modify return value and arguments.
...
* path.cc (chdir): Specify PC_POSIX. Do not call SetCurrentDirectory. Set
posix_cwd in a way that does not break find.exe. Change call to cwd.set.
(cwdstuff::get_initial): Do not call GetCurrentDirectory here.
(cwdstuff::set): Call SetCurrentDirectory and GetCurrentDirectory as needed.
2004-05-15 15:55:43 +00:00
Danny Smith
99189153b3
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* include/ddk/kbdmou.h: New file.
* lib/ddk/videoprt.def (VideoPortMapBankedMemory,
VideoPortMapDmaMemory, VideoPortMapMemory): Correct suffix.
* lib/ddk/ntoskrnl.def (_snprintf, _snwprintf, _vsnprintf,
_vsnwprintf, sprintf, swprintf): Export.
2004-05-15 10:08:06 +00:00
Danny Smith
34f35cf5e0
2004-05-15 Filip Navara <xnavara@volny.cz>
...
* include/ddk/ntddk.h: Don't set 4-byte alignment on included
headers.
2004-05-15 09:47:02 +00:00
Christopher Faylor
f30298c13b
remove keyword stuff
2004-05-12 16:21:18 +00:00
Corinna Vinschen
8d8bc1e139
* path.cc (path_conv::check): Don't bail out with error if path is "//".
2004-05-12 14:04:23 +00:00
Corinna Vinschen
191ea07aa5
* cygheap.h (struct init_cygheap): Add mt_h member.
...
* fhandler_tape.cc (mt_h): Drop in favor of cygheap based handle.
(mtinfo_init): Use cygheap->mt_h handle. Protect it.
2004-05-12 12:28:59 +00:00
Pierre Humblet
8bdfa78a69
2004-05-12 Pierre Humblet <pierre.humblet@ieee.org>
...
* tty.h: Remove the %d or %x from all cygtty strings.
(tty::open_output_mutex): Only declare.
(tty::open_input_mutex): Ditto.
(tty::open_mutex): New definition.
* fhandlet_tty.cc (fhandler_tty_slave::open): Declare buf with
size CYG_MAX_PATH and replace __small_printf calls by shared_name.
* tty.cc (tty::create_inuse): Ditto.
(tty::get_event): Ditto.
(tty::common_init): Ditto.
(tty::open_output_mutex): New method definition.
(tty::open_input_mutex): Ditto.
(tty::open_mutex): New method.
2004-05-12 01:44:11 +00:00
Corinna Vinschen
0175b5311e
* fhandler.cc (fhandler_base::open): Set file attributes to correct
...
value when creating files.
* path.h (class path_conv): Add write accessor for file_attributes.
2004-05-11 15:39:50 +00:00
Corinna Vinschen
75b5f30fdd
* fhandler.h (class fhandler_socket): Add "owner" status flag.
...
* fhandler_socket.cc (wait): Take flag parameter to take FD_OOB into
account. Don't wait infinitely.
(fhandler_socket::recvfrom): Also wait for FD_OOB if socket owner.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::fcntl): Set owner status flag if F_SETOWN with own
pid is called.
2004-05-10 15:21:01 +00:00
Pierre Humblet
94f29ccdf6
2004-05-09 Pierre Humblet <pierre.humblet@ieee.org>
...
* environ.cc (build_env): Only try to construct required-but-missing
variables while issetuid.
2004-05-09 15:17:15 +00:00
Christopher Faylor
ac3003157b
* syscalls.cc: Include environ.h.
...
(chroot): Set errno in case of path error. Call getwinenv.
* environ.cc: Remove the NO_COPY attribute of conv_envvars.
2004-05-08 02:55:38 +00:00
Corinna Vinschen
f8aae275a4
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Move
...
initialization of "mem_size" from here...
(fhandler_dev_mem::open): ...to here. Fix typo in FH_PORT case.
2004-05-07 21:28:53 +00:00
Corinna Vinschen
367ff06ea4
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Move delete of
...
bigwavebuffer_ so that it is always cleaned, also in child processes.
(fhandler_dev_dsp::Audio_in::stop): Ditto.
(fhandler_dev_dsp::close): Stop audio play immediately in case of
abnormal exit.
2004-05-07 07:54:28 +00:00
Corinna Vinschen
3e101fb2cd
Revert code reversion from 2004-04-03. So, revert to async I/O again.
...
* fhandler.h (status): Add "closed" flag.
(prepare): New method declaration.
(wait): Ditto.
(release): Ditto.
* fhandler_socket.cc: Don't include wsock_event.h.
(fhandler_socket::prepare): New method, moved from wsock_event.
(fhandler_socket::wait): Ditto.
(fhandler_socket::release): New method.
(fhandler_socket::recvfrom): Simplify loop.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
* net.cc: Don't include wsock_event.h.
(wsock_event::prepare): Remove.
(wsock_event::wait): Ditto.
* wsock_event.h: Remove.
2004-05-07 07:51:31 +00:00
Christopher Faylor
dab22ff6e6
fix entry
2004-05-07 03:51:22 +00:00
Christopher Faylor
9b0b76ba92
* thread.cc (pthread::create): Move postcreate call to avoid a potential race.
...
(pthread::cancelable_wait): Don't allow signal interrupt unless main thread.
2004-05-07 03:31:04 +00:00
Christopher Faylor
1940656ab9
Christopher Faylor <cgf@timesys.com>
...
* path.cc (mount_info::conv_to_posix_path): Add return.
2004-05-07 03:27:37 +00:00
Danny Smith
718123fada
* include/wingdi.h: Correct non-unicode typedefs of
...
ENUMLOGFONTEXDV, PENUMLOGFONTEXDV, LPENUMLOGFONTEXDV.
2004-05-06 21:04:26 +00:00
Danny Smith
bbf3df482a
2004-05-07 Pascal Obry <obry@act-europe.fr>
...
* include/winsock.h (IN_CLASSA): Fix macro.
* include/winsock2.h (IN_CLASSA): Fix macro.
2004-05-06 20:54:50 +00:00
Pierre Humblet
14017d5313
2004-05-06 Pierre Humblet <pierre.humblet@ieee.org>
...
* path.cc (path_conv::check): Strip trailing dots and spaces and
return error if the final component had only dots and spaces.
(normalize_posix_path): Revert 2004-04-30.
(chdir): Do not check for trailing spaces. Do not set native_dir
to c:\ for virtual devices. Pass only native_dir to cwd.set.
(cwdstuff::set): Assume posix_cwd is already normalized.
2004-05-06 16:26:10 +00:00
Christopher Faylor
6767691ff0
fix changelog dates
2004-05-05 03:55:48 +00:00
Christopher Faylor
5cc2189c09
* path.cc (normalize_win32_path): Detect components with only dots. Remove a
...
final . if it follows '\\'.
(mount_info::conv_to_win32_path): Only backslashify the path when no mount is
found.
(chdir): Do not look for components with only dots.
2004-05-04 15:14:48 +00:00
Christopher Faylor
3dcb399b58
* path.cc (is_unc_share): Remove redundant tests.
2004-05-04 15:09:58 +00:00
Corinna Vinschen
423ea473f4
* crt0.o (mainCRTStartup): 16 byte align stack for main function.
2004-05-04 14:46:25 +00:00
Corinna Vinschen
ad7ba32b2d
* path.cc (check_sysfile): Don't scan string twice.
2004-05-04 10:54:06 +00:00
Corinna Vinschen
1e98729b2a
* dir.cc (writable_directory): Remove.
...
(mkdir): Remove call to writable_directory.
* syscalls.cc (unlink): Ditto.
(rename): Ditto.
* winsup.h (writable_directory): Remove declaration.
2004-05-03 11:53:07 +00:00
Luke Dunstan
2d465f741f
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winbase.h (EXECUTION_STATE): Add typedef.
(SetThreadExecutionState): Declare.
* include/wingdi.h (_WINGDI_): Define.
* include/objbase.h (_OBJBASE_H_): Define.
2004-05-01 01:52:58 +00:00
Corinna Vinschen
43b2d5bace
* fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_path
...
for evaluating NT path.
* path.cc (normalize_posix_path): Remove trailing dots and spaces.
(path_conv::get_nt_native_path): New function.
* path.h (class path_conv): Declare get_nt_native_path method.
2004-04-30 17:36:36 +00:00
Luke Dunstan
ed8dd3c858
2004-04-29 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* include/objbase.h (STGOPTIONS): Correct pwcsTemplateFile type.
* include/aclui.h: Remove '\r', throughout.
* include/msacm.h: Likewise.
* lib/aclui.def: Likewise.
2004-04-30 17:06:21 +00:00
Corinna Vinschen
e6b21dafc1
* fhandler.cc (fhandler_base::open): Fix NT native path evaluation
...
to allow opening serial ports.
2004-04-30 14:02:37 +00:00
Corinna Vinschen
72f3756e07
* init.cc (threadfunc_fe): Hack to make thread stacks always 16
...
byte aligned.
2004-04-30 13:27:27 +00:00
Luke Dunstan
4163fce83f
2004-04-28 Luke Dunstan <infidel@users.sourceforge.net>
...
* lib/comctl32.def (SetWindowSubclass): Add stub.
Thanks to Eugene <egladysh@users.sourceforge.net>.
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
* include/winbase.h (EXECUTION_STATE): Add typedef.
(SetThreadExecutionState): Declare.
* include/wingdi.h (_WINGDI_): Define.
* include/objbase.h (_OBJBASE_H_): Define.
2004-04-28 14:18:13 +00:00
Luke Dunstan
7ed02aabd1
2004-04-24 Luke Dunstan <infidel@users.sourceforge.net>
...
* include/winuser.h (SM_IMMENABLED, SM_CXFOCUSBORDER,
SM_CYFOCUSBORDER, SM_TABLETPC, SM_MEDIACENTER): Add defines.
(SM_CMETRICS): Adjust value.
* include/winnt.h (PROCESSOR_ARCHITECTURE_MSIL): Correct define.
(PROCESSOR_ARCHITECTURE_AMD64, PROCESSOR_ARCHITECTURE_IA32_ON_WIN64):
Add defines.
Thanks to Benoit Blanchon <benoit.blanchon@free.fr>
2004-04-23 18:24:03 +00:00