Danny Smith
9507f00e68
* include/winnls.h (WINBASEAPI): Define as DECLSPEC_IMPORT.
...
if undefined. and __W32API_USE_DLLIMPORT__.
Add WINBASEAPI token to prototypes, throughout.
2004-11-09 09:06:03 +00:00
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