Danny Smith
f610c4f993
* include/inttypes.h: Include _mingw.h.
2003-09-24 01:06:09 +00:00
Danny Smith
8852e9c5f1
* include/_mingw.h (__CRT_INLINE): Define.
...
* include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
throughout
* include/inttypes.h: Likewise.
* include/math.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
2003-09-24 00:41:01 +00:00
Dimitri Papadopoulos
92694c7a96
This fixes regression in <winable.h> introduced by previous change.
2003-09-23 15:11:12 +00:00
Dimitri Papadopoulos
729d289070
New CHILDID_SELF constant.
...
More duplicates in <winuser.h> and <winable.h>.
2003-09-23 09:09:50 +00:00
Dimitri Papadopoulos
dbb760bdb8
Bring back OBJID_* and GUITHREADINFO constants in <winuser.h>.
...
Some constants and structures are duplicated in <winable.h> and <winuser.h>.
Add GUI_* and new KEYEVENTF_* constants.
2003-09-23 08:51:57 +00:00
Dimitri Papadopoulos
679ff6d4fb
add some missing constants
2003-09-23 07:35:54 +00:00
Christopher Faylor
3400b4fc44
* dcrt0.cc (do_exit): Eliminate "C" linkage. Call events_terminate early.
...
(exit_states): Move out of source file into header file.
* winsup.h: Move exit_states here. Remove "C" linkage from do_exit
declaration.
* debug.cc (lock_debug): Remove explicit (and incorrect) external for
exit_state.
* sigproc.cc (sig_dispatch_pending): Don't flush signals if exiting.
2003-09-23 04:02:07 +00:00
Danny Smith
d92d731fa5
2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
...
* mingwex/dirent.c (_topendir): Allocate enough memory for
DIR struct in UNICODE case too.
2003-09-22 21:32:52 +00:00
Christopher Faylor
7ed1b504b6
* kill.cc (main): Allow negative pids (indicates process groups).
2003-09-20 20:24:33 +00:00
Christopher Faylor
0199487e6a
* spawn.cc (pthread_cleanup): New struct.
...
(do_cleanup): New function.
(spawn_guts): Initialize struct for pthread_cleanup handling to ensure proper
restoration of signals if/when thread is cancelled. Restore settings using
pthread_cancel_pop.
2003-09-20 19:51:48 +00:00
Christopher Faylor
5ab307ccfd
* include/cygwin/version.h: Bump DLL minor number to 6.
2003-09-20 03:15:57 +00:00
Christopher Faylor
370b1173b0
* thread.h (__reent_t::init_clib): Declare new function.
...
* thread.cc (__reent_t::init_clib): Define new function.
(pthread::thread_init_wrapper): Use __reent_t::init_clib to init local clib
storage and set std{in,out,err} appropriately.
2003-09-20 02:43:18 +00:00
Christopher Faylor
bc54734d15
fix accidental checkin
2003-09-20 00:43:33 +00:00
Christopher Faylor
d1fb625d2b
* syscalls.cc (system): Strip signal considerations from here so that they are
...
not inherited by a child process.
* spawn.cc (spawn_guts): Handle system() signal stuff here.
* winsup.h (_P_SYSTEM): Define.
2003-09-20 00:31:13 +00:00
Corinna Vinschen
41946df611
* fhandler_tty.cc (fhandler_pty_master::process_slave_output):
...
Handle buf == NULL as flushing the buffer.
(fhandler_tty_slave::read): Handle ptr == NULL as flushing the buffer.
(fhandler_tty_slave::tcflush): Implement input queue flushing by
calling read with NULL buffer.
(fhandler_pty_master::tcflush): Ditto, calling process_slave_output.
* termios.cc (tcflush): Check for legal `queue' value. Return
EINVAL otherwise.
2003-09-18 18:54:48 +00:00
Christopher Faylor
b1e00863f3
* parse_pe.cc (exclusion::sort_and_check): Make error message a little more
...
explicit and ignore (hopefully) harmless region overlap.
2003-09-18 01:46:18 +00:00
Christopher Faylor
f7f542063b
* syscalls.cc (gethostid): Add lpFreeBytesAvailable argument to
...
GetDiskFreeSpaceEx call since NT4 requires it.
2003-09-17 21:47:12 +00:00
Danny Smith
cb16ce2c2e
* include/winuser.h (UpdateLayeredWindow): Protect against NOGDI.
...
Thanks to Will Levine <willll@users.sourceforge.net>
2003-09-17 20:41:53 +00:00
Christopher Faylor
11dcd1546f
* fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with
...
PID_MAP_RW.
* sigproc.cc (talktome): Ditto for winpids.
2003-09-17 02:10:13 +00:00
Christopher Faylor
9ee691211b
fix stupid typo
2003-09-17 01:43:27 +00:00
Christopher Faylor
deb648cc8b
* pinfo.h (winpids::pid_access): New element.
...
(winpids::winpids): Rejigger to set pinfo_access.
* pinfo.cc (winpids::add): Try to open shared memory region with supplied
pinfo_access first, then default to readonly.
* fhandler_termios.cc (tty_min::kill_pgrp): When getting list of pids to work
with, suggest opening with PID_MAP_RW.
* signal.cc (kill_pgrp): Ditto.
* sigproc.cc (sig_send): Perform a write check on todo prior to attempting to
increment it. Return EACCES if we can't write to it.
2003-09-17 01:15:56 +00:00
Corinna Vinschen
1498189ca8
* cygheap.cc (cygheap_user::set_saved_sid): Rename from set_orig_sid.
...
* cygheap.h (class cygheap_user): Rename orig_psid, orig_uid and
orig_gid to saved_psid, saved_uid and saved_gid respectively.
Rename methods orig_sid and set_orig_sid to saved_sid and set_saved_sid
respectively.
* sec_helper.cc (sec_acl): Accomodate above changes.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (uinfo_init): Ditto.
2003-09-16 09:24:52 +00:00
Christopher Faylor
c429c346d8
fix typo
2003-09-16 03:59:35 +00:00
Christopher Faylor
2bfdb22e23
* getopt.cc (opterr): Reinstate initialization.
...
(optind): Ditto.
(optopt): Ditto.
* pinfo.cc: Include cygheap.h or suffer compile error.
* shared.h: Reset magic number.
2003-09-16 03:39:55 +00:00
Christopher Faylor
8ec37f2168
* exceptions.cc (sig_handle_tty_stop): Fix boneheaded mistake by using correct
...
check for parent state rather than inverted check.
2003-09-16 03:07:27 +00:00
Pierre Humblet
c61ada9bd3
2003-09-15 Pierre Humblet <pierre.humblet@ieee.org>
...
* security.h (__sec_user): Add "access2" argument.
(sec_acl): Add "original" and "access2" arguments.
(sec_user): Add "sid2" and "access2" argument. Remove dependence on
allow_ntsec.
(sec_user_nih): Ditto.
* sec_helper.cc (__sec_user): Add "has_security" test.
Call sec_acl with new arguments, letting it handle original_sid.
(sec_acl): Add "original" and "access2" arguments. Handle original_sid
depending on flag but avoiding duplicates. Use "access2" for sid2.
* pinfo.cc (pinfo::init): Use security attributes created by sec_user
when creating the mapping.
* security.cc (create_token): Adjust arguments in call to sec_acl.
Call sec_user instead of __sec_user.
* syscall.cc (seteuid32): Adjust arguments in call to sec_acl. Remove
now unnecessary test. Remove useless conversions to psid.
* dcrt0.cc (dll_crt0_1): Call cygsid::init before pinfo_init.
2003-09-16 00:45:50 +00:00
Earnie Boyd
7fe8e90299
* include/_mingw.h: Increment version to 3.2.
...
* Makefile.in: Ditto.
2003-09-15 15:21:53 +00:00
Earnie Boyd
42f4ef1131
* include/w32api.h: Increment version to 2.5.
...
* Makefile.in: Ditto.
2003-09-15 12:05:40 +00:00
Danny Smith
b639ac2b93
2003-09-15 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ws2spi.h (LPWSPBIND): Change CONST LPSOCKADDR to
const struct sockaddr*.
(LPWSPCONNECT): Likewise.
(LPWSPJOINLEAF): Likewise.
(LPWSPSENDTO): Likewise.
Tanks to Sebastian Nowak <snowak1@users.spourceforge.net>
2003-09-15 Filip Navara <xnavara@volny.cz>
* include/commctrl.h (TCIS_BUTTONPRESSED, TCIS_HIGHLIGHTED):
Add definitions.
2003-09-15 Sascha Brawer <brawer@dandelis.ch>
* include/winuser.h (DISPLAY_DEVICE_ATTACHED_TO_DESKTOP,
DISPLAY_DEVICE_PRIMARY_DEVICE, DISPLAY_DEVICE_MIRRORING_DRIVER,
DISPLAY_DEVICE_VGA_COMPATIBLE, DISPLAY_DEVICE_REMOVABLE,
DISPLAY_DEVICE_MODESPRUNED): Define constants.
(ChangeDisplaySettingsEx[A,W]): Add prototype.
* lib/user32.def (ChangeDisplaySettingsEx[A,W]): Add exports.
(EnumDisplayDevices[A,W]): Likewise.
2003-09-15 Danny Smith <dannysmith@users.sourceforge.net>
* include.commctrl.h (_WIN32_WINNT): Change _WXP to 0x0501,
throughout.
2003-09-15 10:21:57 +00:00
Christopher Faylor
de9e39f701
* Makefile.in: Make malloc_wrapper -fomit-frame-pointer.
...
* cygwin.din: Remove extraneous mallinfo definition.
* dcrt0.cc (quoted): Use strechr for efficiency.
* fhandler.cc (fhandler_base::write): Correctly use get_output_handle rather
than get_handle.
(fhandler_base::lseek): Use method for accessing name in debug output.
2003-09-14 01:58:03 +00:00
Christopher Faylor
e306c058c7
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix potential off-by-one
...
problem when first file in a directory is a directory.
2003-09-14 00:07:50 +00:00
Christopher Faylor
a98a001169
* kill.c (forcekill): Wait for process to terminate even if TerminateProcess
...
says it failed.
2003-09-13 18:20:52 +00:00
Christopher Faylor
276448cf67
* include/sys/cygwin.h: Rename PID_UNUSED to PID_MAP_RW.
...
* pinfo.cc (pinfo_init): Initialize myself->gid.
(pinfo::init): Create the "access" variable, set it appropriately and use it to
specify the requested access.
* exceptions.cc (sig_handle_tty_stop): Add PID_MAP_RW in pinfo parent.
* signal.cc (kill_worker): Ditto for pinfo dest.
* syscalls.cc (setpgid): Ditto for pinfo p.
2003-09-13 17:14:15 +00:00
Christopher Faylor
4442ed9171
* include/cygwin/version.h: Bump DLL minor number to 5.
2003-09-13 17:12:01 +00:00
Danny Smith
52bce3938f
* include/olectl.h (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
...
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF,LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): Remove from here ...
* include/ocidl.h: (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF, LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): ... to here, for consistency
with documentation.
* include/olectl.h: Do #include <ocidl.h>.
* include/ocidl.h: Don't #include <olectl.h>.
2003-09-13 12:05:08 +00:00
Danny Smith
77780db3bd
* include/winuser.h (_WIN32_WINNT, _WIN32_WINDOWS, WINVER):
...
Change guards to use numeric constants, throughout.
2003-09-13 08:13:30 +00:00
Christopher Faylor
b0309a1658
* thread.cc (MTinterface::fixup_after_fork): Remove code which potentially
...
overwrote _impure pointer with contents of thread which invoked fork since this
eliminates important information like the pointer to the atexit queue.
2003-09-13 01:21:32 +00:00
Christopher Faylor
21d7ec1928
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix problem where search
...
characters overwrote the path instead of being tacked on the end.
2003-09-12 20:17:28 +00:00
Christopher Faylor
fb3dd71676
* dcrt0.cc (_dll_crt0): Accommodate breaking apart of early_stuff_init.
...
* exceptions.cc (early_stuff_init): Delete.
(init_console_handler): New function - top half of early_stuff_init.
(init_global_security): New function - bottom half of early_stuff_init.
(sig_handle): Avoid special hExeced test for SIGINT. Just terminate the
captive process.
(signal_exit): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't allocate a console if one
already seems to exist. Properly initialize ctrl-c handling if we do allocate
a console.
* winsup.h (early_stuff_init): Delete declaration.
(init_console_handler): New declaration.
(init_global_security): New declaration.
2003-09-12 06:41:53 +00:00
Christopher Faylor
3a25635489
* Makefile.in: Tweak mingw libz.a detection to make it more reliably detect
...
when libz.a is not available.
2003-09-12 01:51:21 +00:00
Christopher Faylor
9e24b8ace9
* fhandler_disk_file.cc (path_conv::ndisk_links): Rename from num_entries.
...
Accept an argument and calculate any extra links needed based on missing . and
.. entries.
(fhandler_disk_file::fstat_helper): Always call pc->ndisks_links() to calculate
the number of links.
* path.h (path_conv::ndisk_links): Declare.
2003-09-11 23:30:26 +00:00
Christopher Faylor
b9041ba3d9
* path.cc (normalize_posix_path): Put check for '//' prefix back to denote a
...
UNC path.
(slash_unc_prefix_p): Remove vestige of old //c method for accessing drives.
2003-09-11 17:46:31 +00:00
Corinna Vinschen
59a7603554
* cygcheck.cc (dump_only): New global variable.
...
(usage): Add "--dump-only" option, fix "--verbose" line.
(longopts, opts): Add "--dump-only" option.
(main): Process the "--dump-only" flag. Add new semantic check.
Pass dump_only information to dump_setup().
2003-09-11 16:24:26 +00:00
Christopher Faylor
88092a3ea1
* dir.cc (rmdir): Add more samba workarounds.
2003-09-11 14:43:09 +00:00
Corinna Vinschen
d99e72dc52
* shared.cc (user_shared_initialize): Revert length attribute for name
...
variable to be just UNLEN + 1.
2003-09-11 07:57:39 +00:00
Corinna Vinschen
a5ba4027f4
* getfacl (main): Remove extern declaration of optind.
...
* setfacl (main): Remove extern declaration of optarg and optind.
2003-09-11 07:55:51 +00:00
Christopher Faylor
bd79b736d4
* Makefile.in (cygcheck.o): Use MINGW_CXX for compilation.
...
* cygcheck.cc: Just include <getopt.h> rather than cygwin version.
(pretty_id): Avoid compiler warnings.
* cygpath.cc (usage): Ditto.
2003-09-11 02:56:40 +00:00
Christopher Faylor
b07b167eec
* Makefile.in (MINGW_CXX): Define and use for mingw-compiled files.
...
* path.cc: Include more path info in cygwin-specific includes since the cygwin
directory is no longer included by default.
2003-09-11 02:00:42 +00:00
Christopher Faylor
704d8c321e
* Makefile.in: More fixups to adjust for the fact that mingw_getopt.o is no
...
longer built.
2003-09-11 00:07:28 +00:00
Christopher Faylor
4a6890e76e
* Makefile.in: Remove references to getopt since it is now part of mingwex.
2003-09-10 21:55:59 +00:00
Christopher Faylor
0efafbfb8c
* shared_info.h (shared_info::initialize): Remove argument.
...
* cygheap.h (cygheap_user::init): New declaration.
* uinfo.cc (cygheap_user::init): New.
(internal_getlogin): Move functionality to cygheap_user::init. Open the
process token to update the group sid.
* shared.cc (user_shared_initialize): Get the user information from
cygheap->user.
(shared_info::initialize): Remove argument. Call cygheap->user.init instead of
cygheap->user.set_name.
(memory_init): Do not get the user name and do not pass it to
shared_info::initialize.
* registry.cc (get_registry_hive_path): Make csid a cygpsid.
(load_registry_hive): Ditto.
2003-09-10 21:01:40 +00:00
Christopher Faylor
1aa76ad568
* fhandler_disk_file.cc (num_entries): Take . and .. into account if they do
...
not exist since cygwin simulates them.
(fhandler_cygdrive::fstat): Ditto.
(fhandler_cygdrive::readdir): Don't do any specific tests on __d_position when
seeing if a drive exists.
2003-09-10 20:16:00 +00:00
Corinna Vinschen
932a40e86b
* Makefile.in (DLL_OFILES): Add getopt.o and iruserok.o.
...
* cygwin.din: Export __check_rhosts_file, __rcmd_errstr, optarg,
opterr, optind, optopt, optreset, getopt, getopt_long, iruserok
and ruserok.
* getopt.c: Moved from lib to here. Define opt* variables as
dllexport.
* iruserok.c: Moved from lib to here. Rearrange function order.
Prefer using 64/32 bit functions.
* syscalls.cc (shell_fp): Define as struct __sFILE64.
(getusershell): Use fopen64 instead of fopen.
* winsup.h: Add declarations for seteuid32, fopen64,
cygwin_gethostbyname and cygwin_inet_addr.
* include/getopt.h: Declare opt* variables dllimport.
* include/cygwin/version.h: Bump API minor number.
2003-09-10 19:13:05 +00:00
Christopher Faylor
6d2d2bce72
* exceptions.cc (sig_handle_tty_stop): Check parent PID_NOCLDSTOP rather than
...
erroneously checking *my own* sigtodo.
2003-09-10 17:26:12 +00:00
Christopher Faylor
4018776f6e
* Makefile.in: Add some more -fomit-frame-pointer files.
...
* path.cc (conv_path_list_buf_size): Free normalized_path or suffer memory
leak.
* syscalls.cc (chroot): Ditto.
2003-09-10 16:22:49 +00:00
Corinna Vinschen
34a1d63d80
* Makefile.in (DLL_OFILES): Add bsdlib.o.
...
* autoload.cc (RegisterServiceProcess): Add.
* bsdlib.cc: New file.
(daemon): New function.
(login_tty): Ditto.
(openpty): Ditto.
(forkpty): Ditto.
* cygwin.din: Export daemon, forkpty, login_tty, logwtmp, updwtmp,
openpty and revoke.
* syscalls.cc (updwtmp): New function, writing to wtmp exclusively.
(logwtmp): Ditto.
(login): Call updwtmp instead of writing to wtmp by itself.
(logout): Ditto.
* tty.cc (revoke): New funtion.
* include/paths.h: Define _PATH_DEVNULL.
* include/pty.h: New header.
* include/cygwin/version.h: Bump API minor number.
* include/sys/utmp.h: Declare logwtmp with const arguments.
Declare updwtmp.
* lib/iruserok.c: New file.
(ruserok): New function.
(iruserok): Ditto.
(__ivaliduser): Ditto.
(__icheckhost): Ditto.
2003-09-10 15:51:59 +00:00
Corinna Vinschen
136265194d
* fhandler_socket.cc (fhandler_socket::fstat): Don't use PC_POSIX.
2003-09-10 10:01:32 +00:00
Pierre Humblet
7119fc0d0b
2003-09-09 Pierre Humblet <pierre.humblet@ieee.org>
...
* shared_info.h: Include security.h.
(open_shared): Add psa argument.
(user_shared_initialize): New declaration.
* security.h: Add _SECURITY_H guard.
(sec_user): Use sec_none in the no ntsec case.
* spawn.cc (spawn_guts): Remove call to load_registry_hive.
* syscalls (seteuid32): If warranted, call load_registry_hive,
user_shared_initialize and RegCloseKey(HKEY_CURRENT_USER).
* shared.cc (user_shared_initialize): New.
(open_shared): Add and use psa argument.
(memory_init): Move mount table initialization to
user_shared_initialize. Call it.
2003-09-10 02:12:26 +00:00
Corinna Vinschen
807dfb3d4a
* mmap.cc (mmap64): Change address types from caddr_t to void *
...
according to SUSv3.
(mmap): Ditto.
(munmap): Ditto.
(msync): Ditto.
(mprotect): Ditto. Move to before the fhandler methods.
* include/sys/mman.h: Change prototypes accordingly.
2003-09-09 09:41:18 +00:00
Christopher Faylor
3ef50005c7
* dcrt0.cc (dlL_crt0_1): Set __argc_safe after __argc is absolutely know to be
...
set.
* exceptions.cc (sig_handle_tty_stop): Don't reset sigCONT event since it is
reset automatically.
* fork.cc (fork): Remove obsolete usage of PID_SPLIT_HEAP.
* include/sys/cygwin.h: Ditto.
* sigproc.cc (sig_send): Use sigframe init method to set frame since it checks
for previous ownership of the frame.
* sigproc.h (sigframe::init): Accept an "is_exception" argument.
2003-09-09 03:11:31 +00:00
Christopher Faylor
51d340e1c8
* dir.cc (readdir): Reinstate setting of old ino field for legacy applications.
...
* dirent.h (dirent): Rename unused field to __ino32.
* passwd.cc (getpwnam_r): Initialize pw_comment field.
2003-09-09 00:21:16 +00:00
Christopher Faylor
7d0e78a71b
* passwe.cc (getpwnam_r): Initialize pw_comment field.
2003-09-08 22:03:20 +00:00
Christopher Faylor
7a198a0675
* passwd.cc (getpwuid_r32): Initialize pw_comment field.
2003-09-08 21:44:53 +00:00
Christopher Faylor
9547a8b3c3
* sigproc.cc (wait_sig_inited): Remove assertion since it is racy.
2003-09-08 21:10:23 +00:00
Corinna Vinschen
24efca1401
* cygwin.din: Export endusershell, getusershell and setusershell.
...
* syscalls.cc (getusershell): New function.
(setusershell): Ditto.
(endusershell): Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-09-08 20:08:53 +00:00
Danny Smith
6c73e54252
2003-09-08 Justin Forest <vhex@users.sourceforge.net>
...
* include/winuser.h (PM_QS_INPUT, PM_QS_POSTMESSAGE,
PM_QS_PAINT, PM_QS_SENDMESSAGE): Add defines.
2003-09-08 Filip Navara <xnavara@volny.cz>
* include/wingdi.h (GRADIENT_FILL_RECT_H, GRADIENT_FILL_RECT_V,
GRADIENT_FILL_TRIANGLE, GRADIENT_FILL_OP_FLAG): Add defines.
2003-09-08 10:35:56 +00:00
Corinna Vinschen
dcb6ce0cb2
* cygwin.din: Export argz_add argz_add_sep argz_append argz_count
...
argz_create argz_create_sep argz_delete argz_extract argz_insert
argz_next argz_replace argz_stringify envz_add envz_entry envz_get
envz_merge envz_remove envz_strip
* include/cygwin/version.h: Bump api minor number.
2003-09-08 08:53:01 +00:00
Christopher Faylor
87f9911114
fix typo
2003-09-08 05:09:13 +00:00
Christopher Faylor
7b06693464
* Makefile.in (zlib_h): Rename libz.h -> zlib.h.
2003-09-08 04:29:34 +00:00
Christopher Faylor
0c7b55727a
Throughout, remove __d_u.__d_data fields from DIR structure.
...
* include/sys/dirent.h (dirent): Remvoe old_d_ino.
(DIR): Make __d_dirhash a 64 bit value. Remove __d_data and __d_u. Add
__flags.
* dir.cc (opendir_states): New enum.
(opendir): Clear new DIR __flags field.
(readdir): Fill in '.' and '..' entries if we hit EOF and we haven't seen them
already. Nuke setting of old_d_ino.
(rewinddir): Reset DIR __flags field.
(seekdir64): Ditto.
* fhandler_disk_file.cc (fhandler_cygdrive::fhandler_cygdrive): Remove special
handling of "." and ".." since they are now handled automatically.
2003-09-08 04:04:19 +00:00
Christopher Faylor
d31c5928dd
* Makefile.in: Detect existence of mingw zlib headers and libraries. Build
...
cygcheck wihtout package checking if they are unavailable.
* dump_setup.cc: Generate dummy zlib macros when zlib is not available.
(open_package_list): Use zlib functions to uncompress package lists. Return
gzFile rather than FILE *.
(check_package_files): Change fp to gzFile to accommodate zlib functions. Use
gzgets to read from package file. Use gzclose to close the handle.
(package_list): Ditto.
(package_find): Ditto.
2003-09-08 02:50:02 +00:00
Christopher Faylor
2e5228f964
* include/cygwin/in.h: Don't define ipv6 stuff unless we call for it
...
specifically since it isn't really implemented yet.
2003-09-08 00:26:26 +00:00
Christopher Faylor
bd8938985e
* cygheap.cc (_csbrk): More left coercion cleanup.
...
* fhandler_tty.cc (fhandler_tty_slave::read): Ditto.
(fhandler_tty_slave::write): Ditto.
* fhandler_windows.cc (fhandler_windows::read): Ditto.
* heap.cc (sbrk): Ditto.
2003-09-07 18:27:54 +00:00
Christopher Faylor
ed2287adcd
* signal.cc (nanosleep): Improve test for valid values. Round delay up to
...
resolution. Fix test for negative remainder. Use timeGetTime through gtod.
(sleep): Round up return value. Christopher Faylor <cgf@redhat.com>
* hires.h (HIRES_DELAY_MAX): Define.
(hires_ms::minperiod): Declare static.
(hires_ms::resolution): New.
(hires_ms::dmsecs): New.
(hires_ms::prime): Return UINT.
(gtod): Declare.
* times.cc (hires_ms::prime): Always calculate minperiod and set it to 1 in
case of failure. Return minperiod.
(hires_ms::resolution): Define.
(hires_ms::~hires_ms): Delete.
(hires_ms::usecs): Check minperiod to prime.
(gtod) Define as global.
2003-09-07 05:18:01 +00:00
Christopher Faylor
6cce721b15
Remove left coercion throughout.
2003-09-07 02:22:58 +00:00
Christopher Faylor
46645f9c6e
* hires.h (hires_ms::~hires_ms): Delete declaration.
...
* times.cc (hires_ms::~hires_ms): Delete definition..
2003-09-06 02:14:06 +00:00
Christopher Faylor
1f602fd729
* dump_setup.cc (check_package_files): Don't fail on empty package.
2003-09-06 02:02:30 +00:00
Earnie Boyd
661cc22065
* include/w32api.h (_NT5, etc): Reverse the changes of 2003-07-01.
...
* include/winbase.h (_NT5, etc): Ditto.
2003-09-05 19:41:22 +00:00
Christopher Faylor
c6f53ff6be
* dcrt0.cc (__argc_safe): New variable.
...
(dll_crt0_1): Store argc in __argc_safe, which will theoretically remain
untouched by the user.
* fhandler_console.cc (fhandler_console::read): Silence some compiler warnings.
* fhandler_raw.cc (fhandler_dev_raw::raw_read): Ditto.
* pinfo.cc (_pinfo::commune_recv): Carefully bound argv scan and check for
potentially bad pointers since user could have set argv cell to anythinw.
* cygheap.h (CYGHEAPSIZE): Bump up size.
2003-09-05 01:55:01 +00:00
Corinna Vinschen
39473bba44
* sysconf.cc (sysconf): Return more accurate value for _SC_AVPHYS_PAGES.
2003-09-04 10:57:58 +00:00
Corinna Vinschen
4544f7f6a2
* mmap.cc: Restructure. Add, remove and rewrite comments throughout
...
for better readability. Change function names for better
understanding.
(MAP_SET): Accomodate name change from map_map_ to page_map_.
(MAP_CLR): Ditto.
(MAP_ISSET): Ditto.
(mmap_record::page_map_): Rename from page_map_.
(mmap_record::get_map): Remove.
(mmap_record::alloc_page_map): Rename from alloc_map. Return bool
indicating success of cygheap memory allocation.
(mmap_record::free_page_map): Rename from free_map.
(mmap_record::fixup_page_map): Rename from fixup_map.
(mmap_record::find_unused_pages): Rename from find_empty.
(mmap_record::map_pages): Rename from map_map.
(mmap_record::unmap_pages): Rename from unmap_map.
(class list): Make all class members private.
(list::list): Remove.
(list::~list): Remove.
(list::get_fd): New attribute reader.
(list::get_hash): Ditto.
(list::get_record): Ditto.
(list::add_record): Manage all allocation for mmap_records. Check
for failed memory allocation and return NULL if so.
(list::set): New function.
(list::del_record): Rename from erase. Return true if last mmap_record
has been deleted, false otherwise. Check for legal incoming index
value.
(list::erase): Remove erase/0.
(list::search_record): Rename from match.
(map::map): Remove.
(map::~map): Remove.
(map::add_list): Manage all allocation for lists. Check for failed
memory allocation and return NULL if so.
(map::get_list): New method.
(map::del_list): Rename from erase. Check for legal incoming index
value.
(mmap64): Check for failed mmap_record memory allocation. Return
with MAP_FAILED and errno set to ENOMEM if so.
(munmap): Rearrange loop using new list and mmap_record accessor
functions. Rename loop index variables for better understanding.
Check if list can be deleted after last mmap_record in it has been
deleted.
(msync): Rearrange loop using new list and mmap_record accessor
functions. Rename loop index variables for better understanding.
(fixup_mmaps_after_fork): Ditto.
2003-09-04 10:27:51 +00:00
Christopher Faylor
026dcb34c6
* cxx.cc (new): Fix formatting. Just return result of ccalloc rather than
...
calling memset explicitly.
2003-09-04 03:01:35 +00:00
Christopher Faylor
e48feef96a
* mount.cc (mount_commands): Ensure user mode is actually user mode and not the
...
default system mode.
2003-09-04 01:04:57 +00:00
Christopher Faylor
75119e9980
* exceptions.cc (set_process_mask): Set pending signals only when signals
...
become unmasked.
* sigproc.cc (pending_signals): Flip back to a global.
(wait_sig): Don't set pending signals when there is an armed semaphore or
signal is blocked.
* shared.cc (shared_info::initialize): Add a username parameter for user-mode
mounts. Reorganize to try to avoid startup race.
(memory_init): Move some stuff into shared_info::initialize.
* shared_info.h (shared_info::initialize): Change declaration.
(CURR_SHARED_MAGIC): Update.
2003-09-03 14:15:55 +00:00
Danny Smith
73b2114815
2003-09-02 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* lib/snmpapi.def (LIBRARY) Add library name.
Remove '\r', throughout.
* lib/wsnmp32.def: Remove '\r', throughout.
* lib/igmpagnt.def: Likewise.
2003-09-03 00:59:02 +00:00
Christopher Faylor
b960d7bf2d
* include/cygwin/version.h: Bump DLL minor number to 4.
2003-09-01 17:12:29 +00:00
Christopher Faylor
da43df2df0
* net.cc (dup_ent): Restore check for NULL input.
2003-09-01 16:47:03 +00:00
Corinna Vinschen
bf6269abd3
* pathnames.sgml: Remove description how to mount raw devices and
...
dicourage it. Desparately try to make usage of raw devices a bit
clearer.
2003-09-01 12:56:01 +00:00
Christopher Faylor
ef58cd2f44
* kill.cc (forcekill): Silence some compiler warnings.
2003-09-01 02:40:16 +00:00
Christopher Faylor
f6f88b66d2
* Makefile.in: Oops. Put the '...' in the right place.
2003-09-01 02:33:50 +00:00
Christopher Faylor
840fcfef8d
* include/sys/cygwin.h: Don't define cygwin-specific things if !__CYGWIN__.
2003-09-01 02:26:27 +00:00
Christopher Faylor
c0a9bffd03
* cygheap.cc (cygheap_init): Allocate space for sigaction array in cygheap.
...
* cygheap.h (cygheap_types): Add HEAP_SIGS.
* exceptions.cc (signal_fixup_after_exec): Remove from this file.
* pinfo.h (pinfo::getsig): Just return global_sigs array.
(pinfo::sigs): Delete.
* sigproc.cc (signal_fixup_after_exec): Move it here.
(global_sigs): New global array, moved from pinfo structure.
(sigalloc): New function. Allocate global sigaction array here.
(proc_subproc): Remove copysigs call. It's automatic now.
* include/sys/cygwin.h (PID_NOCLDSTOP): New value.
* signal.cc (sigaction): Set myself->PID_NODCLDSTOP when appropriate.
* sigproc.h (sigalloc): Declare.
* fnmatch.c (fnmatch): Use C90 parameters.
(rangematch): Ditto.
* fhandler.cc (fhandler_base::raw_read): Use right coercion to avoid a compiler
warning.
2003-09-01 02:05:32 +00:00
Christopher Faylor
40d885eb7b
* Makefile.in: Display "..." when not-verbose.
...
* kill.cc (forcekill): Default to entered pid when pinfo fails. Issue some
warnings when things don't work.
2003-09-01 01:57:44 +00:00
Christopher Faylor
12ffca1d84
* net.cc (dup_ent): Make debugging output consistent.
2003-08-31 23:23:40 +00:00
Christopher Faylor
a3de4e19b4
Use dup_ent rather than specific dup_*_ptr functions throughout.
...
* (gen_ent): Delete.
(dup_ent): Subsume gen_ent functionality.
(dup_host_ptr): Delete.
(dup_proto_ptr): Ditto.
(dup_servent_ptr): Ditto.
* net.cc (gen_ent): Invert sense of null check so that debug output makes
sense.
2003-08-31 23:16:34 +00:00
Christopher Faylor
edf16a29fc
* net.cc (free_char_list): Delete.
...
(dup_addr_list): Delete.
(dup_char_list): Delete.
(free_hostent_ptr): Delete.
(free_protoent_ptr): Delete.
(free_servent_ptr): Delete.
(DWORD_round): New function.
(strlen_round): New function. Returns strlen rounded up to word size.
(dup_ent): New, generic function to duplicate a {host,proto,serv}ent structure.
(gen_ent): New macro. Generates a generic dup_{host,proto,serv}ent_ptr
function.
(cygwin_getservbyname): Remove call to free_servent_ptr, pass servent_buf to
dup_servent_ptr.
(cygwin_getservbyport): Ditto.
(cygwin_gethostbyname): Ditto for hostent.
(cygwin_gethostbyaddr): Ditto.
(cygwin_getprotobyname): Ditto for protoent.
(cygwin_getprotobynumber): Ditto.
2003-08-31 22:02:15 +00:00
Christopher Faylor
f8e2f358c4
* Makefile.in (MALLOC_OFILES): Always fill in with correct malloc object.
...
* configure.in: Fill in MALLOC_OFILES with either debugging or regular malloc.
* configure: Regenerate.
* dlmalloc.c: Make various fruitless changes to attempt to get to work.
* dlmalloc.h: Ditto.
* malloc.cc (free): Check malloc pool when debugging.
* path.cc (win32_device_name): Eliminate compiler warning.
* sigproc.cc (sig_dispatch_pending): Remove use of was_pending. Let
thisframe.call_signal_handler decide if handler should be called rather than
using bogus was_pending check.
* exceptions.cc (interrupt_setup): Remove accidentally checked in debugging
code.
* heap.cc (sbrk): Save rounded addess in user_heap_max.
2003-08-31 18:26:58 +00:00
Christopher Faylor
110a4b87df
change copyright
2003-08-31 00:40:16 +00:00
Christopher Faylor
b939e87080
* sigproc.cc (sig_dispatch_pending): Remove explicit call to
...
thisframe.call_signal_handler.
2003-08-30 20:43:06 +00:00
Christopher Faylor
40f3536c52
missed one
2003-08-30 16:35:46 +00:00
Christopher Faylor
a245bd6e99
* msg.cc: New file.
...
* sem.cc: Ditto.
2003-08-30 16:34:56 +00:00
Christopher Faylor
9540fc5962
* threaded_queue.h: New file.
2003-08-30 16:32:15 +00:00
Christopher Faylor
6c125ba745
Remove some cygserver files.
2003-08-30 16:31:10 +00:00
Danny Smith
b258e2c63b
2003-08-29 Steve Cleary <scleary@jerviswebb.com>
...
* include/winuser.h (QS_ALLPOSTMESSAGE, QS_RAWINPUT): Add defines.
(QS_INPUT, QS_ALLINPUT, QS_ALLEVENTS): Adjust by OR'ing with
QS_RAWINPUT for XP.
(MWMO_*): Add flags.
* include/wincrypt.h (MS_ENHANCED_PROV[AW], MS_STRONG_PROV[AW],
MS_DEF_RSA_SIG_PROV[AW], MS_DEF_RSA_SCHANNEL_PROV[AW],
MS_DEF_DSS_PROV[AW], MS_DEF_DSS_DH_PROV[AW], MS_ENH_DSS_DH_PROV[AW],
MS_DEF_DH_SCHANNEL_PROV[AW], MS_SCARD_PROV[AW]): Add definitions.
2003-08-29 08:01:09 +00:00
Christopher Faylor
5a96b1cbff
* sigproc.h: Make some functions regparm.
...
* sigproc.cc (checkstate): Make regparm.
(getevent): Change parameters in declaration, rename from getsem, make regparm.
(sig_send): Recognize that nosync is now an event. Remove some old cruft from
previous interrupt anywhere signal handler.
(getevent): Change parameters in definition, rename from getsem. Allocate
event rather than semaphore.
(wait_sig): Treat sigcatch_nosync as an event.
2003-08-29 03:29:16 +00:00
Christopher Faylor
99a8fab5a6
* sigproc.h: Make some functions regparm.
...
* sigproc.cc (checkstate): Make regparm.
(getevent): Change parameters in declaration, rename from getsem, make regparm.
(sig_send): Recognize that nosync is now an event. Remove some old cruft from
previous interrupt anywhere signal handler.
(getevent): Change parameters in definition, rename from getsem. Allocate
event rather than semaphore.
(wait_sig): Treat sigcatch_nosync as an event.
2003-08-29 02:59:06 +00:00
Christopher Faylor
5e8355c765
* exceptions.cc (sigreturn): Fix problem where old return address was not
...
properly restored for a nested signal.
2003-08-29 02:05:00 +00:00
Christopher Faylor
d533b9214f
* autoload.cc (SwitchToThread): Declare as autoload function.
...
* cygthread.h (cygthread::main_thread_id): Make public.
* exceptions.cc (setup_handler): Remove unneeded priority stuff. Rename label
to reflect what it does. Add debugging for idiotic Windows NT problem. Change
debugging output to include signal number.
* miscfuncs.cc (low_priority_sleep): If available, use SwitchToThread function
to give time slice to other threads.
* wincap.cc: Properly define have_switch_to_thread throughout.
* wincap.h (wincap::switch_to_thread): New element.
2003-08-28 02:09:42 +00:00
Christopher Faylor
e2bc5017fa
* syscalls.cc (mount): Don't check win32_path when doing cygdrive mount.
2003-08-28 02:04:16 +00:00
Christopher Faylor
7028311c04
* specdir: Correctly remove temporary directory prior to use.
2003-08-27 21:01:14 +00:00
Christopher Faylor
90f4768b78
* sigproc.cc (wait_sig): Count number of iterations through 'more_signals' loop
...
and issue a warning if DEBUGGING and excessive.
(WFSO): When debugging and infinite timeout, loop.
2003-08-27 20:42:52 +00:00
Corinna Vinschen
1ce25e2add
* include/cygwin/stat.h: Allow definition of internal stat structures
...
also when compiling newlib.
2003-08-26 07:45:38 +00:00
Danny Smith
311d0d67b9
2003-08-26 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: Add vfw.h to includes.
* include/mmsystem.h: Add #ifndef guard to definition of
mmioFOURCC macro.
* include/vfw.h: Protect __OBJC__ from COM declarations.
2003-08-26 Filip Navara <xnavara@volny.cz>
* include/vfw.h: New file.
2003-08-26 06:54:55 +00:00
Christopher Faylor
ff57520702
add missing files
2003-08-25 19:44:44 +00:00
Christopher Faylor
29c1c50828
* Makefile.in: Build libcygserver.a.
...
* client.cc: Rename allow_daemon to allow_server.
2003-08-25 18:22:07 +00:00
Christopher Faylor
4392d36cbb
Throughout, change USE_CYGSERVER to USE_SERVER.
...
* Makefile.in (LIBSERVER): Define and use.
* configure.in: Set LIBSERVER as appropriate.
* environ.cc: Rename allow_daemon to allow_server. Only recognize when
USE_SERVER is defined.
2003-08-25 18:21:07 +00:00
Danny Smith
e98b6dbb6d
2003-08-26 Filip Navara <xnavara@volny.cz>
...
* include/ddk/winddk.h (RTL_REGISTRY_*): Add defines.
(IoSetCompletionRoutine): Cast _CompletionRoutine arg to
PIO_COMPLETION_ROUTINE.
2003-08-25 10:20:36 +00:00
Danny Smith
1b1c7fbfa5
test new snmp headers
2003-08-25 09:52:10 +00:00
Danny Smith
912800ed01
Add snmp API
...
2003-08-26 Filip Navara <xnavara@volny.cz>
* include/snmp.h: New file.
* include/winsnmp.h: New file.
* include/mgmtapi.h: New file.
* lib/snmpapi.def: New file.
* lib/wsnmp32.def: New file.
* lib/igmpagnt.def: New file.
* lib/mgmtapi.def (SnmpMgrCtl) Add stub.
(SnmpMgrGetTrapEx): Ditto.
(SnmpMgrMIB2Disk): Remove.
(dbginit): Remove.
2003-08-25 09:33:14 +00:00
Danny Smith
6315f62b20
2003-08-25 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/ddk/ntifs.h: Change all C++ style comments to C.
* include/GL/gl.h: Ditto.
2003-08-25 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/shlobj.h (SFGAO_GHOSTED): Correct.
(SFGAO_HIDDEN): Add define.
2003-08-25 02:02:37 +00:00
Danny Smith
1a5c6b9d0a
2003-08-25 Filip Navara <xnavara@volny.cz>
...
* include/commctrl.h (ILCF_*): Add defines.
(ILD_*): Ditto.
(HDS_*); Ditto.
(IPN_FIRST, IPN_LAST): Cast to UINT.
(SBN_FIRST, SBN_LAST): Add defines.
(PGN_*): Ditto.
(HDF_JUSTIFYMASK): Fix typo.
(HDM_*): Add defines.
(HICF_*): Ditto.
(I_INDENTCALLBACK,I_IMAGENONE): Ditto.
(TBSTATE_MARKED): Add define.
(TBSTYLE_EX_*): Add defines.
(TBCDRF_*): Ditto.
(IDB_HIST_SMALL_COLOR,IDB_HIST_LARGE_COLOR): Ditto.
(TB_*): Ditto.
(TBN_*): Ditto.
(TBNRF_*): Ditto.
(TTF_*): Ditto.
(TBCD_*): Ditto.
(TBDDRET_*): Ditto.
(TBIMHT_*): Ditto.
(TTM_*): Ditto.
(UDM_*): Ditto.
(TBIF_BYINDEX): Define as hex constant.
(CDIS_*): Add defines.
(CDDS_SUBITEM): Add define.
(LVIF_*): Add defines.
(LVM_*): Ditto.
(LVGIT_UNFOLDED): Add define.
(TVM_): Add defines.
(TVE_EXPANDPARTIAL): Add define.
(TVGN_LASTVISIBLE): Ditto.
(TVN_*): Add defines.
(TVNRET_*): Add defines.
(TCIF_STATE): Add define.
(NM_TOOLTIPSCREATED): Ditto.
(CCM_*): Add defines.
(INFOTIPSIZE): Add numeric value.
(ODT_LISTVIEW): Ditto.
(MCM_GETMAXTODAYWIDTH): Ditto.
(MCHT_*): Add defines.
(UDM_SETRANGE32,UDM_GETRANGE32): Define in terms of WM_USER.
(PGF_*): Add defines.
(PGM_*): Ditto.
(TBINSERTMARK): Add structure.
(LPIMAGEINFO) Add typedef.
(LPHDHITTESTINFO): Ditto.
(NMLVGETINFOTIP[AW]: Add structures.
(NMTBCUSTOMDRAW): Add structure.
(TTTOOLINFOA_V*_SIZE): Add macros.
(TTTOOLINFOW_V1_SIZE): Ditto.
(IMAGELISTDRAWPARAMS): Add new members for WXP.
(LVITEM[AW]: Ditto.
(TCITEM[AW]):Ditto.
(CCSIZEOF_STRUCT): Correct macro definition.
(ListView_*): Add new macros.
(HIMAGELIST): Correct typedef.
(HTREEITEM): Ditto.
2003-08-25 Danny Smith <dannysmith@users.sourceforge.net>
* commctrl.h (TC_HITTESTINFO): Remove. Add defines for
TCHITTESTINFO for backward compatibility.
(TC_ITEM[AW]): Rename to TCITEM[AW]. Add defines for backward
compatibility.
2003-08-25 01:39:59 +00:00
Danny Smith
110af2d2db
2003-08-24 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/objidl.h (COBJMACROS): Define macros only
if using C interace.
* include/unknwn.h: Ditto.
* include/comcat.h: Ditto.
2003-08-24 Filip Navara <xnavara@volny.cz>
* include/prsht.h (PSH_WIZARDHASFINISH, PSH_WIZARD_LITE,
PSH_NOCONTEXTHELP): Define.
(PSH_WIZARD97): Fix definition for _WIN32_IE >= 0x500.
* include/winuser.h (DFCS_TRANSPARENT, DFCS_HOT): Define.
(LPDLGTEMPLATE[AW]): Add typedefs.
2003-08-24 23:04:57 +00:00
Christopher Faylor
be1ea8cde7
* syscalls.cc (_remove_r): Define.
2003-08-23 18:03:16 +00:00
Christopher Faylor
5c6497b43f
* cygheap.h (enum cygheap_types): Add HEAP_MMAP.
...
(CYGHEAPSIZE): Add another 64K.
* mmap.cc: Use cmalloc, ccalloc and crealloc with HEAP_MMAP type throughout.
2003-08-23 00:03:54 +00:00
Christopher Faylor
7f32ba3a8d
* cygheap.cc (user_heap_info::max): New field.
...
* heap.cc (heap_init): Save pointer to end of heap reserved memory.
(sbrk): Don't attempt to commit memory beyond end of heap reserved memory.
Attempt to honor comment and reserve commitbytes if heapchunk fails.
2003-08-22 19:33:09 +00:00
Christopher Faylor
897c6b5231
* exceptions.cc (sigreturn): Don't clobber ebp in recursive signal calls.
2003-08-22 19:25:56 +00:00
Christopher Faylor
29cd21d03a
* exceptions.cc (sig_handle): Change so that default signals indicate success.
2003-08-22 17:01:53 +00:00
Danny Smith
01d699914d
2003-08-22 Filip Navara <xnavara@volny.cz>
...
* include/aclapi.h (BuildImpersonateExplicitAccessWithName[AW]):
Add prototypes.
BuildImpersonateTrustee[AW]): Add prototypes.
GetMultipleTrustee[AW]): Add prototypes.
GetMultipleTrusteeOperation[AW]): Add prototypes.
Add missing changelog entry from last commit.
2003-08-22 11:21:28 +00:00
Danny Smith
9e80cb966c
2003-08-22 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winnt.h (IMAGE_SUBSYSTEM_XBOX): Add define.
2003-08-22 Mihai Preda <mihai_preda@users.sourceforge.net>
* include/shlobj.h (IPersistFolder::GetClassID):
Correct declaration.
(CMF_*) Add missing defines.
2003-08-22 Danny Smith <dannysmith@users.sourceforge.net>
* include/winuser.h (DC_BUTTONS): Add define.
2003-08-22 Andrew Greenwood <lists@silverblade.co.uk>
* include/winuser.h (DC_GRADIENT): Add define.
2003-08-22 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/commctrl.h (BTNS_*): Define BTNS_* as successors to the
older TBSTYLE_* constants.
2003-08-22 10:50:54 +00:00
Christopher Faylor
095abc79ba
* sigproc.cc (wait_sig): Remove redundant test in do/while.
2003-08-22 03:40:49 +00:00
Christopher Faylor
a9f7754462
* sigproc.cc (wait_sig): Avoid infinite loop.
2003-08-22 01:07:01 +00:00
Christopher Faylor
b5c5b9996a
* speclib: Reenable removal of temp files.
2003-08-21 03:36:02 +00:00
Christopher Faylor
d688945c44
* miscfuncs.cc (low_priority_sleep): Sleep at same priority as main thread.
...
* sigproc.cc (wait_sig): Keep looping if there are more signals to consider and
we are flushing signals.
(sig_send): Put nonsync signals in the correct bucket.
2003-08-21 03:18:46 +00:00
Christopher Faylor
0b10f795f1
* speclib: Fix created lib to avoid "File truncated" problems.
2003-08-21 02:19:25 +00:00
Christopher Faylor
2bf794af9a
* exceptions.cc (interrupt_setup): Set sigsave.sig last to avoid a race.
2003-08-20 18:09:24 +00:00
Christopher Faylor
6f6d673cc5
* sigproc.cc (wait_sig): Ensure that myself->getsigtodo array is flushed on a
...
__SIGFLUSH. Christopher Faylor <cgf@redhat.com>
* exceptions.cc (_sigreturn): Handle nested signals without growing the stack.
2003-08-20 05:15:33 +00:00
Christopher Faylor
5f31e0f305
* exceptions.cc (pending_signals): Remove unneeded declaration.
...
* sigproc.cc (pending_signals): Make static.
(wait_sig): Use defined values rather than integers for rc. Never scan both
todo arrays as this could cause hangs if signals arrive from two different
sources. Rename saw_pending_signals to saw_failed_interrupt. Exit loop when
signal found. Enter low-priority sleep, if necessary, after finished
signalling completion. Set pending_signals when blocked
(from Pierre Humblet).
2003-08-20 02:31:26 +00:00
Christopher Faylor
6ac844b5e3
clarify
2003-08-20 01:19:04 +00:00
Christopher Faylor
06bb489932
* signal.cc (sigpending): Move.
...
* sigproc.cc (sigpending): To here.
(getlocal_sigtodo): Return process-local signal array.
(sigpending): Accommodate new process-local signal array.
(sig_send): Ditto.
(sig_set_pending): Ditto.
(wait_sig): Ditto.
2003-08-19 05:47:44 +00:00
Christopher Faylor
05cb7b17cb
Throughout, eliminate argument to sig_dispatch_pending.
...
* exceptions.cc (setup_handler): Move non-interruptible condition handling
(back) to wait_sig (as suggested by Pierre Humblet).
(set_process_mask): Don't worry about calling sig_dispatch_pending from
sigthread since it is detected in the function anyway.
(sig_handle): Eliminate thisproc arg. Don't call sig_dispatch_pending on
SIGCONT since that should happen automatically.
* sigproc.cc (sig_dispatch_pending): Eliminate justwake argument. Just return
when called from sigthread.
(wait_sig): Change some variables to bool. Change inner while to an if. Move
uninterruptible signal handling here.
(sigproc_terminate): Don't call sig_dispatch_pending. Just increment semaphore
on exit.
* speclib: Use slightly different (but still flawed) method for determining
symbols to extract from libraries.
2003-08-19 04:10:42 +00:00
Christopher Faylor
755f575f15
correct attribution, since this is not Pierre's patch.
2003-08-19 01:17:53 +00:00
Christopher Faylor
372cd2cbe6
* exceptions.cc (sigdelayed): Fix race where signal handler could get the wrong
...
mask.
2003-08-19 00:31:56 +00:00
Christopher Faylor
9d7f26eaf4
* path.cc (mount): Add null/empty check for input parameters.
...
(umount): Add null/empty check for input parameters.
2003-08-19 00:18:48 +00:00
Danny Smith
bb7c60962d
2003-08-17 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/commctrl.h (TB_*) Group defines together.
2003-08-17 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/winuser.h (ICON_SMALL2): Define.
* include/commctrl.h (TB_SETBUTTONWIDTH,TB_SETDRAWTEXTFLAGS):
Define.
* include/shlobj.h (SHDRAGIMAGE): Define structure.
(IDragSourceHelper) Define interface.
(IDropTargetHelper): Likewise.
(IExtractIcon): Unicode it.
(ICommDlgBrowser): Use IShellView type as param in OnDefaultCommand,
OnStateChange and IncludeObject methods.
2003-08-18 09:43:24 +00:00
Corinna Vinschen
981f9625f3
* grp.cc (read_group): Revert previous change.
...
* uinfo.cc (pwdgrp::load): Always reset curr_lines.
2003-08-17 17:50:40 +00:00
Corinna Vinschen
919497ee6b
* dump_setup.cc (check_package_files): Strip leading / and ./ from
...
package file names.
2003-08-17 17:26:08 +00:00
Corinna Vinschen
22d82f9f46
* errno.cc (errmap): Map ERROR_INVALID_BLOCK_LENGTH to EIO.
...
* fhandler_raw.cc (fhandler_dev_raw::raw_read): Set more accurate
errnos instead of EACCES.
(fhandler_dev_raw::raw_write): Ditto.
2003-08-17 17:12:18 +00:00
Christopher Faylor
293ce8104d
* path.cc (special_name): Accommodate all special names with extensions.
2003-08-17 16:33:15 +00:00
Danny Smith
597b518cb9
Add ChangeLog entry for last commit.
2003-08-17 08:55:28 +00:00
Danny Smith
5ca7a646d5
2003-08-17 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/commctrl.h (TreeView_GetScrollTime,
TreeView_SetScrollTime): Define macros.
* include/winuser.h (GetShellWindow): Add prototype.
* include/objidl.h (STGMEDIUM): Correct lpszFileName type.
2003-08-17 08:47:37 +00:00
Corinna Vinschen
b723879025
* dump_setup.cc (package_find): Don't stop searching on missing
...
file list.
(package_list): Ditto.
* dump_setup.cc: (package_list): Make output terse unless
verbose requested. Fix formatting.
(package_find): Ditto.
2003-08-16 09:09:09 +00:00
Corinna Vinschen
200f243c42
* cygcheck.cc (main): Fix some formatting and help text printing.
...
* cygcheck.cc (find_package,list_package): New global
variables.
(usage): Add "--find-package" and "--list-package" options,
reformat output.
(longopts, opts): Add "--find-package" and "--list-package"
options.
(main): Process the "--find-package" and "--list-package"
flags. Add new semantic checks. Add calls to find_package()
and list_package().
* dump_setup.cc: Fix header comment.
(match_argv): Change return type to int to distinguish
between real matches and default ones.
(open_package_list): New static function.
(check_package_files): Factor out opening the package list
file into open_package_list().
(get_packages): New static function.
(dump_setup): Factor out getting a list of packages into
get_packages().
(package_list, package_find): New global functions.
2003-08-15 20:26:11 +00:00
Corinna Vinschen
92d897cde2
* mmap.cc (mmap64): Avoid crash if file size is less than requested
...
map length.
2003-08-15 12:05:08 +00:00
Corinna Vinschen
dae37d5d84
* regtool.cc (usage): Add missing linefeed. Move example to --help
...
text. Fix forward slash description.
2003-08-15 08:58:54 +00:00
Danny Smith
b98580a716
2003-08-15 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shguid.h (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Declare.
* lib/shell32.c (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Define.
2003-08-15 03:04:25 +00:00
Danny Smith
37f0dc7a05
2003-08-15 Andrew Greenwood <lists@silverblade.co.uk>
...
* include/wingdi.h (DEVMODE[AW]) Correct structure definition.
* include/ddk/ntapi.h (LPC_TYPE): Add LPC_CONNECTION_REFUSED.
* include/ddk/winddk.h (IRP_*): Add constants as anonymous enum.
2003-08-15 02:19:54 +00:00
Corinna Vinschen
e2b1a74c13
* dump_setup.cc (check_package_files): Fix extra '/' in filename.
...
Resize command buffer. Fix buffer overflow bug.
2003-08-13 19:37:40 +00:00
Corinna Vinschen
6763d47b1e
* path.cc (special_name): Add checks for some specials followed by
...
a "." and a FIXME comment.
2003-08-13 17:28:00 +00:00
Corinna Vinschen
ae89a49602
* cygwin.din: Accomodate change from cygwin_lstat to lstat.
...
* syscalls.cc: Add defines to avoid declaration issues when
renaming cygwin_lstat back to lstat.
(lstat): Reverted name change from cygwin_lstat.
2003-08-13 11:28:42 +00:00
Corinna Vinschen
c86c10b803
* include/sys/param.h (NBBY): Define if not defined.
...
* include/sys/param.h (setbit): Add new bitmap related macro.
(clrbit): Likewise.
(isset): Likewise.
(isclr): Likewise.
(howmany): Add new counting/rounding macro.
(rounddown): Likewise.
(roundup): Likewise.
(roundup2): Likewise.
(powerof2): Likewise
(MIN): Add macro for calculating min.
(MAX): Add macro for calculating max.
2003-08-12 10:23:40 +00:00
Danny Smith
6c7560c901
* lib/uuid.c (CGID_Explorer, CGID_ShellDocView,
...
CGID_ShellServiceObject): Remove definitions.
* lib/shell32.c (CGID_ShellServiceObject): Add definition.
Correct last ChangeLog entry for lib/shell32.def.
2003-08-10 09:19:06 +00:00
Christopher Faylor
e41630b08a
* dump_setup.cc (dump_setup): Check for the existence of the package list file.
...
Rework slightly to use static buffer for popen commands.
2003-08-10 01:07:04 +00:00
Danny Smith
46258d6fb8
2003-08-10 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shlobj.h (SHELLSTATE): Add structure.
(SHGetSetSettings): Add prototype.
(SHGetSettings): Add prototype.
* lib/user32.def (SHGetSetSettings): Add stub.
2003-08-10 Phil Krylov <likewolf@users.sourceforge.net>
* include/commctrl.h (HDM_ORDERTOINDEX): Add define.
(Header_OrderToIndex): Add macro.
(Header_GetOrderArray): Add macro.
* include/commdlg.h (FR_MATCHALEFHAMZA,
FR_MATCHDIAC, FR_MATCHKASHIDA): Add defines.
2003-08-10 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/commctrl.h (TVM_GETSCROLLTIME,
TVM_SETSCROLLTIME): Add defines.
2003-08-10 00:40:01 +00:00
Christopher Faylor
58d4b72d33
* dump_setup.cc (version_len): New static variable.
...
(could_not_access,directory_exists): New static function.
(file_exists): Ditto.
(check_package_files): Ditto.
(dump_setup): Check the contents of each package if check_files is true and
output the result in the "Status" column. Flush output after each package.
* dump_setup.cc (dump_setup): Remove redundant null check. Add informative
message if package info not found.
2003-08-09 16:32:22 +00:00
Christopher Faylor
9d77d53601
* include/cygwin/version.h: Bump DLL minor number to 3.
2003-08-09 16:32:03 +00:00
Christopher Faylor
5c65fa0200
* include/stdint.h: Correctly define INT32_MIN.
2003-08-08 19:30:41 +00:00
Christopher Faylor
b344f1876c
* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr after
...
free() is called.
2003-08-08 19:28:34 +00:00
Christopher Faylor
0601b11fb6
fix typo
2003-08-06 03:39:36 +00:00
Christopher Faylor
8440f55d74
typo
2003-08-06 03:22:18 +00:00
Christopher Faylor
16f9bc1323
* Makefile.common: Hmm. Older compilers seem to need -nostdinc.
2003-08-06 02:35:33 +00:00
Christopher Faylor
c6f80f3e29
* Makefile.common: Don't send -nostdinc++ with g++.
2003-08-06 02:06:43 +00:00
Christopher Faylor
4b154cc1b3
* Makefile.in: Rework to accommodate new speclib arguments.
...
* speclib: Rework to extract everything from libcygwin.a rather than building
things from existing object files.
2003-08-06 01:40:12 +00:00
Christopher Faylor
4423d92489
* path.cc (cygdrive_getmntent): Do not skip over drives of type
...
DRIVE_REMOVABLE.
* fhandler.cc (fhandler_base::lseek): Be more paranoid when constructing
offsets from 64 bit value.
* syscalls.cc (logout): Avoid temp buffer memcpy since new scheme does not
require it.
(utmp_data): Rework as a macro which returns a pointer into a buffer.
(getutent): Use new buffer allocation mechanism to grab a utmp buffer.
(getutid): Ditto.
(pututline): Ditto.
2003-08-05 04:49:44 +00:00
Christopher Faylor
3fea2e4087
* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if
...
end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
2003-08-05 03:04:28 +00:00
Christopher Faylor
2f631ebc94
change default for --change-default-prefix
2003-08-05 01:06:22 +00:00
David Starks-Browning
90b3d5dcb6
New canonical location.
2003-08-04 10:40:28 +00:00
Danny Smith
5060d48ee7
* include/shlobj.h (SHELLFLAGSTATE): Add structure.
...
(SHGetInstanceExplorer): Correct return type.
(SHGetFolderPath[AW]: Likewise.
Thanks to Magnus Olsen <greatlord@sourceforge.users.net>
for report.
2003-08-03 09:09:07 +00:00
Danny Smith
be21429f2f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: Include winldap.h, ntldap.h, winber.h.
2003-08-01 Filip Navara <xnavara@volny.cz>
* include/winldap.h: New file.
* include/ntldap.h: New file.
* include/winber.h: New file.
* lib/winldap32.def: New file.
2003-08-01 09:11:39 +00:00
Danny Smith
7d18037f8f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/atm.h: Remove stray '.';
2003-08-01 Gisle Vanem <gvanem@broadpark.no>
* include/ddk/winddk.h; Remove trailing ';' from macro expressions,
throughout. Add () around macro expressions with cast returns,
throughout.
2003-08-01 01:06:26 +00:00
Joshua Daniel Franklin
4b8283ec80
Screwed up ChangeLog
2003-07-31 21:12:11 +00:00
Joshua Daniel Franklin
0da026c397
* effectively.sgml: New file, "Using Cygwin Effectively with Windows".
2003-07-31 21:06:55 +00:00
Danny Smith
49c12c3f53
2003-7-31 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shlobj.h (SFGAO_COMPRESSED): Add define.
(SFGAOF,SHGDNF): Add typedef's.
(SHCONTF): Extend enum.
2003-07-31 10:25:56 +00:00
Danny Smith
de03e10ca5
* include/shellapi.h: Include all structs within pshpack2.h/
...
poppack.h block.
2003-07-31 05:40:39 +00:00
Christopher Faylor
b9621e8d94
* dcrt0.cc (_dll_crt0): Move strace.microseconds initialization to after
...
pthread initialization.
(dll_crt0_1): i.e., here.
2003-07-30 04:46:07 +00:00
Christopher Faylor
8e2315f07d
* include/cygwin/version.h: Bump DLL minor number to 2.
2003-07-28 21:14:25 +00:00
Christopher Faylor
d2466c7aa0
* fhandler_base.cc (fhandler_base::readv): Rework to properly return number of
...
bytes from read.
2003-07-28 21:13:17 +00:00
Danny Smith
e816a74f80
* include/winuser.h (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK,
...
LWA_COLORKEY, LWA_ALPHA): Guard with _WIN32_WINNT,
_WIN32_WINDOWS, not WINVER.
(AllowSetForegroundWindow,LockSetForegroundWindow,
SetLayeredWindowAttributes): Likewise.
(GetLayeredWindowAttributes,UpdateLayeredWindow): Add prototypes.
* lib/user32.def (GetLayeredWindowAttributes,UpdateLayeredWindow):
Add stubs.
2003-07-26 11:58:24 +00:00
Christopher Faylor
035df9eff5
* mount.cc (do_mount): Issue warning when using managed mount option on
...
non-empty directory.
2003-07-26 05:38:51 +00:00
Christopher Faylor
df04ae29b2
* exceptions.cc (ctrl_c_handler): Send SIGHUP when events occur only if there
...
is a tty associated with the process. Send SIGHUP on CTRL_LOGOFF_EVENT.
* fhandler_tty.cc (fhandler_tty_slave::open): Adjust console open handle
counter regardless of whether this is a pty or tty.
(fhandler_tty_slave::open): Ditto.
(fhandler_tty_slave::dup): Ditto.
(fhandler_tty_common::set_close_on_exec): Ditto.
(fhandler_tty_master::init_console): Decrement console open handle counter
after init since it will now be handled by all tty open.
* syscalls.cc (setsid): Rework debugging output slightly.
2003-07-26 04:53:59 +00:00
Christopher Faylor
ddb6762155
* configure.in: Use 'install-sh -c'.
...
* configure: Regenerate.
2003-07-26 01:53:18 +00:00
Christopher Faylor
4b2bb1425e
revert erroneous checkin
2003-07-26 01:52:52 +00:00
Christopher Faylor
c2af0de226
* Makefile.in: Only use localhost when building mingw with distcc or gcc won't
...
be able to find .exp files on other hosts.
2003-07-26 01:51:39 +00:00
Danny Smith
ffe3e7ef4f
2003-07-26 Eric R. Krause <ekrause_98@users.sourceforge.net>
...
* include/onjidl.h (IMalloc): Fix typo.
2003-07-26 01:01:03 +00:00
Christopher Faylor
8c21a4cdfb
preliminary checkin
2003-07-26 00:49:12 +00:00
Christopher Faylor
d9cbe316d5
preliminary checkin
2003-07-26 00:43:57 +00:00
Christopher Faylor
5ed664d4a6
preliminary checkin
2003-07-26 00:28:59 +00:00
Christopher Faylor
9ddd929f68
preliminary checkin
2003-07-26 00:10:48 +00:00
Christopher Faylor
7f4773b3ef
* configure.in: Always use install-sh.
...
* configure: Regenerate.
2003-07-25 23:52:30 +00:00
Christopher Faylor
5d66faab67
* include/cygwin/socket.h: Conditionalize [AP]F_INET6 define.
2003-07-25 17:57:51 +00:00
Christopher Faylor
6f8c86aec5
* Makefile.in (OBSOLETE_FUNCTION): Add fdopen.
2003-07-25 17:42:08 +00:00
Christopher Faylor
86ed5c8821
* cygwin.din: Export _fdopen64
...
* Makefile.in (NEW_FUNCTIONS): Add _fdopen64 -> fdopen translation.
* include/cygwin/version.h: Bump api minor number.
* ntdll.h: Remove (now) duplicate FILE_SYNCHRONOUS_IO_NONALERT definition.
2003-07-25 16:13:12 +00:00
Danny Smith
468f9fa2fe
* include/dkk/ntifs.h: Fix typo in guard for
...
#pragma GCC system_header.
2003-07-24 20:55:48 +00:00
Christopher Faylor
1fbeb8274f
* environ.cc (check_case_init): Use strncasematch.
...
* cygwin.din: Export __mempcpy.
* cygwin/version.h: Bump api minor number.
2003-07-24 19:33:14 +00:00
Danny Smith
b57a74b210
* include/objidl.h (PropVariant): Add CHAR cVal field
...
to union.
(FMTID_SummaryInformation, FMTID_DocSummaryInformation,
FMTID_UserDefinedProperties): Declare.
2003-07-22 22:48:00 +00:00
Danny Smith
f7ef885903
* include/winbase.h (GetModuleHandleEx[AW]): Add prototypes.
2003-07-22 22:36:03 +00:00
Danny Smith
1058b66e9a
* include/winbase.h (DUPLICATE_CLOSE_SOURCE,
...
DUPLICATE_SAME_ACCESS): Remove defines.
(HANDLE_FLAG_INHERIT, HANDLE_FLAG_PROTECT_FROM_CLOSE): Sync with
ddk/ntapi.h defines.
(SEM_*) : Likewise.
* include/winnt.h (COMPRESSION_*, ACCESS_*, SYSTEM_*): Sync with
ddk/ntifs.h defines.
(FILE_*): Likewise.
(MEM_IMAGE, SEC_*): Likewise.
(DUPLICATE_CLOSE_SOURCE, DUPLICATE_SAME_ACCESS,
DUPLICATE_SAME_ATTRIBUTES): Sync with ddk/winddk.h defines.
(TOKEN_*): Sync with ddk/ntifs.h defines.
* include/ddk/ntapi.h: Add comments noting definitions in
winbase.h.
* include/ddk/ntifs.h: Add comments noting definitions in
winnt.h.
* include/ddk/winddk.h: Add comments noting definitions in
winnt.h.
2003-07-22 22:21:27 +00:00
Corinna Vinschen
d432ac751b
* mmap.cc: Use proper format specifiers for _off64_t and size_t in
...
format strings passed to syscall_printf () and debug_printf ()
throughout.
2003-07-21 13:06:49 +00:00
Christopher Faylor
522483e4f6
* Makefile.common (CFLAGS_COMMON): Remove -march=i386.
2003-07-18 16:40:59 +00:00
Danny Smith
00314d7e16
* include/winnt.h (FILE_*): Sync with ddk/winddk.h.
...
* include/winioctl.h (FILE_*): Sync with ddk/winddk.h.
2003-07-18 10:21:01 +00:00
Pierre Humblet
b4ece40c0f
2003-07-18 Pierre Humblet <pierre.humblet@ieee.org>
...
* security.cc (verify_token): Fix white space and style.
Use type bool instead of BOOL and char. Use alloca
instead of malloc and free for my_grps.
2003-07-18 02:14:42 +00:00
Danny Smith
a817d5a835
2003-07-17 Pierre Humblet <pierre.humblet@ieee.org>
...
* include/mmsystem.h (TIME_KILL_SYNCHRONOUS): Add define.
2003-07-17 08:23:06 +00:00
Corinna Vinschen
fc2843ca96
* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on
...
_SC_PAGESIZE again.
2003-07-17 07:35:16 +00:00
Christopher Faylor
5b429f2674
update copyright
2003-07-17 05:27:03 +00:00
Danny Smith
a13fa879dd
Clean up warnings in ddk.
...
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-16 21:49:02 +00:00
Christopher Faylor
908a2a2bc0
* pathnames.sgml: Use correct registry key. Clarify '@' operation.
...
* ntsec.sgml: Reword references to "ntsec patch".
2003-07-16 02:12:00 +00:00
Corinna Vinschen
ea3ba11499
* cygheap.h (class cygheap_user): Use INVALID_HANDLE_VALUE as invalid
...
value for tokens.
* syscalls.cc (seteuid32): Ditto. Set new_token to process token if
process token is suitable.
* uinfo.cc (uinfo_init): Initialize tokens in cygheap user info
to INVALID_HANDLE_VALUE.
* cygheap.h (enum impersonation): Delete.
(cygheap_user::impersonation_state): Delete.
(cygheap_user::current_token): New.
(cygheap_user::issetuid): Modify to use current_token.
(cygheap_user::token): Ditto.
(cygheap_user::deimpersonate): Ditto.
(cygheap_user::reimpersonate): Ditto.
(cygheap_user::has_impersonation_tokens): Ditto.
(cygheap_user::close_impersonation_tokens): Ditto.
* security.cc (cygwin_set_impersonation_token): Always set the token.
(verify_token): Change type of gsid to cygpsid.
(get_file_attribute): Use the effective ids.
* syscalls.cc (seteuid32): Modify to use cygheap_user::current_token.
* uinfo.cc (uinfo_init) Do not set cygheap->user.impersonation_state.
2003-07-14 17:04:21 +00:00
Danny Smith
8330615ded
2003-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ddk/ntifs.h (KeInsertQueueApc): Make return type
BOOLEAN. Name parameter 4 PriorityBoost and make it of type
KPRIORITY.
* include/ddk/winddk.h (_KPCR): Put IDT field on next line.
* include/ddk/winddk.h (_IO_STATUS_BLOCK, _IRP, _OWNER_ENTRY,
_ERESOURCE, _IMAGE_INFO, _CREATE_DISK, _DISK_SIGNATURE, _KPCR_TIB):
Apply _ANONYMOUS_UNION to anonymous unions and _ANONYMOUS_STRUCT
to anonymous structs.
2003-07-13 03:41:46 +00:00
Christopher Faylor
9e8ac0ae35
* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
...
communicating pid actually stops eventually.
2003-07-12 21:37:07 +00:00
Danny Smith
a6674ee61b
* include/winnt.h (PVOID): Move to before HANDLE typedef.
...
* include/winuser.h (mouse_event): Correct type of fifth param,
Thanks to: Andrew Jones <guln at users dot sourceforge dot net>
2003-07-12 09:26:43 +00:00
Earnie Boyd
57552a7378
* include/winnt.h (HANDLE): Define based on STRICT filter.
...
(THREAD_BASE_PRIORITY_MIN): Use parens around negative value.
(THREAD_BASE_PRIOIRTY_IDLE): Ditto.
2003-07-11 11:56:00 +00:00
Christopher Faylor
e47d564835
* path.cc (get_device_number): Remove special com? consideration.
...
(special_chars): Make static.
(special_introducers): New.
(special_char): Allow specified valid_chars args.
(fnunmunge): Handle aux-like filenames correctly.
(special_name): Add con, conin$, conout$.
(mount_item::fnmunge): Use __small_sprintf return value to calculate
increments.
2003-07-11 00:54:46 +00:00
Christopher Faylor
30811232c7
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 02:33:27 +00:00
Christopher Faylor
2f5cab7bb2
* fhandler_proc.cc (format_proc_stat): Use correctly sized constants for
...
filling in zeros on 98.
2003-07-10 02:09:24 +00:00
Christopher Faylor
f1a4b6b59a
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 01:58:39 +00:00
Christopher Faylor
cf38615c3b
* fhandler_proc.cc (fhandler_proc::fill_filebuf): Allocate more space for stat
...
buffer.
(format_proc_stat): Reorganize to accumulate and report on all cpus.
2003-07-10 01:09:24 +00:00
Christopher Faylor
ab3dc80d9e
* sysconf.cc (sysconf): Return processors online rather than bitmask for
...
_SC_NPROCESSORS_ONLN.
2003-07-09 23:59:47 +00:00
Christopher Faylor
4d782b426a
* cygheap.cc (creturn): Set appropriate errno when out of memory.
...
(ccalloc): Only issue system_printf when debugging.
* dtable.cc (dtable::extend): Only allocate 100 * the incremental growth size
max. Set errno appropriately.
(dtable::build_fhandler): Check for error from set_name.
* fhandler.cc (fhandler_base::set_name): Set errno and return error on OOM.
* fhandler.h (fhandler_base::set_name): Change to bool.
* fhandler_process.cc (format_process_stat): Fix formatting.
* resource.cc (getrlimit): Return greater of OPEN_MAX or fd table size.
* sysconf.cc (sysconf): Ditto.
2003-07-09 01:33:06 +00:00
Danny Smith
49a14729eb
* include/commctrl.h (NMTVDISPINFO[AW]): Replace obsolete struct
...
names _TV_DISPINFO[AW] and typedefs. Add defines for backward
compatability. Thanks to Magnus Olsen <greatlord@users.sf.net>
for report.
2003-07-08 11:11:58 +00:00
Christopher Faylor
a711a5af45
* rmsym: Don't use ranlib.
2003-07-07 05:32:24 +00:00
Christopher Faylor
c0a6fcd75b
* newsym: Reenable removal of tmp directory. Just use ar to generate archive
...
index.
* Makefile.in: Don't send ranlib to newsym.
2003-07-07 05:30:33 +00:00
Christopher Faylor
0e5db0bfe8
* newsym: Create objects that are closer to those created by dlltool so as not
...
to confuse --export-all-symbols.
* rmsym: Be a little more accepting of object filenames now that dlltool can
create different format files.
2003-07-07 05:23:35 +00:00
Christopher Faylor
c522b9078c
* newsym: Oops. Revert below change.
2003-07-07 00:14:58 +00:00
Christopher Faylor
88a628163e
* newsym: Use correct prefix for generating imports.
...
* pinfo.cc (_pinfo::commune_send): Don't wait forever for a response from
another process.
2003-07-06 23:24:13 +00:00
Christopher Faylor
f346ea770f
update copyright
2003-07-06 21:45:21 +00:00
Christopher Faylor
35738f040e
* winsup.api/known_bugs.tcl: Remove gethostid01 from list of known bugs.
2003-07-06 21:40:38 +00:00
Christopher Faylor
0d043e9aac
white space
2003-07-06 20:13:48 +00:00
Christopher Faylor
b671715358
* syscalls.cc (gethostid): Set thread affinity so that results are predictable.
2003-07-06 20:08:42 +00:00
Christopher Faylor
e2723b750a
* Makefile.in: Remove .dat files when cleaning.
2003-07-06 19:25:40 +00:00
Christopher Faylor
d9a7d28a3f
* Makefile.in: Remove .d files when cleaning.
2003-07-06 19:24:31 +00:00
Corinna Vinschen
f2d3c47b14
* mmap.cc (list::match): Add parameters to return valid address and
...
length back to munmap(). Evaluate intersection between given
area and mapped area and return it, if any.
(mmap64): On regular files, don't allow mappings beginning beyond
EOF. Return with errno set to ENXIO instead.
(munmap): Rewrite SUSv3 conformant. Check if given memory area is
valid. Unmap all maps inside given memory area. Don't return error
if no mapping has been unmapped.
2003-07-05 18:59:35 +00:00
Corinna Vinschen
4b2cbaeefd
* fhandler.h (fhandler_socket::get_connect_state): New method to
...
return socket connection state.
* fhandler_socket.cc (dup): Copy socket connect state to new file
handle.
* net.cc (cygwin_rcmd): Mark file handles of sockets returned by
rcmd() as CONNECTED state.
(cygwin_rexec): Similarly for rexec().
(socketpair): Mark both ends of a new socket pair as CONNECTED.
2003-07-05 18:20:13 +00:00
Christopher Faylor
49806b9b06
fix typo
2003-07-04 17:37:59 +00:00
Corinna Vinschen
6694f3054e
* mmap.cc (fhandler_disk_file::mmap): Fix address test.
2003-07-04 09:06:54 +00:00
Christopher Faylor
baf77a53b0
* mount.cc (struct opt): Remove posix option.
2003-07-04 03:20:22 +00:00
Christopher Faylor
08604f02bc
* mount.cc (longopts): Add long "options" keyword.
...
(opts): Add -o option.
(usage): Display -o option.
(struct opt): New.
(concat3): New function.
(main): Handle -o flag.
2003-07-04 03:11:18 +00:00
Christopher Faylor
d108f312f9
* path.cc (fillout_mntent): Change "posix" to "managed".
2003-07-04 03:08:26 +00:00
Christopher Faylor
3f21478315
* fhandler.h (FH_ENC): New enum.
...
(fhandler_base::get_encoded): New function.
(fhandler_base::set_encoded): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Set encoded flag in
fhandler, as appropriate.
(fhandler_disk_file::readdir): Unmunge filename as appropriate based on new
encoding flag.
* path.cc (normalize_posix_path): Don't punt on files with colons.
(special_char): New function.
(mount_item::fnmunge): Ditto.
(fnunmunge): Ditto.
(special_name): Ditto.
(mount_item::build_win32): Avoid drive considerations when file is encoded.
(mount_info::conv_to_win32_path): Handle encoded filenames.
(mount_info::conv_to_posix_path): Ditto.
(fillout_mntent): Add posix string when directory is encoded.
* path.h (fnunmunge): Declare.
(path_conv::is_encoded): Declare.
2003-07-04 03:07:01 +00:00
Christopher Faylor
8f856553c0
ntsec patch
2003-07-04 01:58:24 +00:00
Christopher Faylor
3d8a75bdbe
* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize a little more of
...
the cygserver stuff so that ttys actually work.
2003-07-03 21:22:17 +00:00
Corinna Vinschen
6556178009
* mmap.cc (mmap64): Allow MAP_FIXED with pagesize granularity (4K).
...
If a non-zero addr is given, align it to the next lower 64K boundary.
(fhandler_disk_file::mmap): If a non-zero address is given, try
mapping using the given address first. If it fails and flags is not
MAP_FIXED, try again with NULL address.
2003-07-03 20:53:26 +00:00
Earnie Boyd
0def41361b
* config.guess, config.sub: Update with new versions from ftp.gnu.org.
2003-07-03 15:17:14 +00:00
Earnie Boyd
cdff6e0e16
* config.guess, config.sub: Update with versions from ftp.gnu.org.
2003-07-03 15:15:56 +00:00
Danny Smith
235f653a53
* mingwex/math/trunc.c (trunc): Provide lvalue for memory input constraint.
...
* mingwex/math/truncf.c (truncf): Likewise.
* mingwex/math/truncl.c (truncl): Likewise.
* mingwex/math/modff.c (modff): Likewise.
* mingwex/math/modfl.c (modfl): Likewise.
2003-07-03 11:24:18 +00:00
Danny Smith
78b8a13965
* include/search.h: New file.
...
* include/stdlib.h: Add comment about qsort, bsearch in
search.h.
* test_headers.c: Include search.h.
* moldname.def.in (lfind, lsearch): Add.
2003-07-03 07:50:53 +00:00
Luke Dunstan
b1868c88bc
* include/commdlg.h (CommDlg_OpenSave_*): Add parentheses around
...
macro arguments. Thanks to Tom Bishop <tombishop@users.sf.net>.
* include/winuser.h (MONITOR_DEFAULTTONULL, MONITOR_DEFAULTTOPRIMARY,
MONITOR_DEFAULTTONEAREST, MONITORINFOF_PRIMARY): Add defines.
(TPM_RECURSE): Add guard for Win98/Win2K.
Thanks to Magnus Olsen <greatlord@users.sf.net>.
2003-07-03 02:19:01 +00:00
Danny Smith
e298efab0a
* include/process.h (_execv, _execvp, _spawnv, _spawnvp, _execve,
...
_execvpe, _spawnve, _spawnvpe, execv, execvp, spawnv, spawnvp,
execve, execvpe, spawnve, spawnvpe): Const-ify all the char params.
2003-07-02 22:09:25 +00:00
Christopher Faylor
f3ff0ca9ed
* thread.cc: Remove _MT_SAFE conditional.
2003-07-02 03:50:05 +00:00
Christopher Faylor
9c01984ec2
* configure.in: Add --enable-server option.
...
* configure: Regenerate.
2003-07-02 03:33:01 +00:00
Christopher Faylor
6a59d15696
fix typo
2003-07-02 03:32:04 +00:00
Christopher Faylor
8fb2df196d
* configure.in: Fix --enable-server option.
2003-07-02 03:29:40 +00:00
Christopher Faylor
3872e9a419
* Makefile.in: Remove cygserver stuff.
...
* acconfig.h: Add USE_CYGSERVER define.
* config.h.in: Regenerate.
* configure.in: Add --enable-server setting.
* configure: Regenerate.
* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize compilation of
cygserver stuff.
* fork.cc (fork_child): Ditto.
* shm.cc: Ditto.
* tty.cc (tty::common_init): Ditto.
* dcrt0.cc: Use bool rather than BOOL for CYGWIN environment variable
definitions.
* environ.cc: Ditto.
* ntea.cc: Ditto.
* security.cc: Ditto.
* security.h: Ditto.
* syscalls.cc (check_posix_perm): Remove externs that were already declared in
a header.
* winsup.h: Ditto. Declare _MT_SAFE here. Delete it someday since cygwin
should always be _MT_SAFE.
2003-07-02 03:16:00 +00:00
Christopher Faylor
4d8d80b8a7
* Makefile.in (OBJS): Move some more files from cygwin directory.
...
* woutsup.h: Define _MT_SAFE.
2003-07-02 02:31:32 +00:00
Christopher Faylor
1847a1637d
* Makefile.common (CFLAGS_COMMON): Remove -Winline since it is too noisy on
...
newer versions of gcc.
2003-07-02 02:30:16 +00:00
Earnie Boyd
f7ba12a587
* include/basetyps.h (small, hyper): Change to __small and __hyper to
...
avoid user namespace conflicts.
2003-07-01 23:37:00 +00:00
Earnie Boyd
acd2330e32
* include/_mingw.h (small, hyper): Change to __small and __hyper to
...
avoid user space name conflicts.
2003-07-01 23:34:36 +00:00
Christopher Faylor
345ee543e0
first checkin
2003-07-01 21:09:39 +00:00
Christopher Faylor
c57452c817
First checkins.
2003-07-01 21:09:30 +00:00
Christopher Faylor
350c2f44b8
* configure.in: Add cygserver subdir.
...
* Makefile.in: Ditto.
* configure: Regenerate.
* Makefile.common: Remove debugging statements.
2003-07-01 20:51:03 +00:00
Earnie Boyd
e21a622054
* mingwex/math/tgamma.c, tgammaf.c, tgammal.c (small):
...
Rename to Small (case difference).
2003-07-01 13:55:47 +00:00
Earnie Boyd
6dbe0697a7
Change existing guards to use the above macro names as appropriate.
...
* include/basetyps.h (__int32, __int16, __int8, small, hyper): Define.
Note: Also added to mingw/include/_mingw.h.
2003-07-01 13:01:41 +00:00
Earnie Boyd
fecdb8380e
* include/_mingw.h (__int32, __int16, __int8, small, hyper): Define.
...
Note: Also added to w32api/include/basetyps.h.
2003-07-01 12:57:53 +00:00
Earnie Boyd
b8582a99b5
* include/w32api.h (_NT4, _W98, _WME, _NT5, _W2000, _WXP, _W2003,
...
_IE3, _IE4, _IE5, _IE6): Add definitions.
* include/winbase.h (GetLongPathName[AW]): Add guard for OS >= NT5 or
>= Win98.
Change existing guards to use the above macro names as appropriate.
2003-07-01 12:01:05 +00:00
Corinna Vinschen
70249d5687
* cygheap.h (enum impersonation): New enum.
...
(cygheap_user::token): Delete.
(cygheap_user::impersonated): Delete.
(cygheap_user::external_token): New member.
(cygheap_user::internal_token): New member.
(cygheap_user::impersonation_state): New member.
(cygheap_user::issetuid): Modify.
(cygheap_user::token): New method.
(cygheap_user::deimpersonate): New method.
(cygheap_user::reimpersonate): New method.
(cygheap_user::has_impersonation_tokens): New method.
(cygheap_user::close_impersonation_tokens): New method.
* dtable.cc (dtable::vfork_child_dup): Use new cygheap_user methods.
* fhandler_socket.cc (fhandler_socket::dup): Ditto.
* fork.cc (fork_child): Ditto.
(fork_parent): Ditto.
* grp.cc (internal_getgroups): Ditto.
* security.cc (verify_token): Ditto.
(check_file_access): Ditto.
(cygwin_set_impersonation_token): Detect conflicts. Set
user.external_token.
* spawn.cc (spawn_guts): Use new cygheap_user methods.
* syscalls.cc (seteuid32): Rearrange to use the two tokens
in cygheap_user.
(setegid32): Use new cygheap_user methods.
* uinfo.cc: (internal_getlogin): Ditto.
2003-06-30 13:07:36 +00:00
Danny Smith
a52e274d12
2003-06-28 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/shlwapi.h (UrlGetLocationA, UrlGetLocationW,
PathFindSuffixArrayA, PathFindSuffixArrayW,
PathFindExtensionA, PathFindExtensionW, StrStrW
StrStrA): Change unicode-macro'd LP[C]TSTR return values to
explicit type.
2003-06-28 05:34:47 +00:00
Danny Smith
b08e1ec95a
2003-06-26 Mattia Barbon <mbarbon@dsi.unive.it>
...
* include/richedit.h (PARAFORMAT2): Add definition.
* include/richedit.h (PFA_*, PFE_*, PFM_*): Add some
missing constants.
2003-06-26 01:49:11 +00:00
Christopher Faylor
b06d4a0881
* Makefile.in: Use INSTALL_PROGRAM to install the cygwin DLL.
2003-06-25 19:12:01 +00:00
Thomas Pfaff
e1e196a225
* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.
...
(pthread::threads): Instantiate.
(pthread::pthread): Initialize running and suspendend.
Initialize next with NULL.
Add thread to thread list if it is not the null_pthread.
(pthread::~pthread): Remove thread from thread list if it is not the null_pthread.
(pthread::postcreate): Set running flag.
(pthread::exit): Reset running flag.
(pthread::cancel): Try to cancel thread only if still running.
(pthread::_fixup_after_fork): Implement.
(pthread::detach): Check if thread is still running before detach.
* thread.h (pthread::running): New member.
(pthread::next): Ditto.
(pthread::fixup_after_fork): New static method.
(pthread::threads): New static method.
(pthread::_fixup_after_fork): New method.
2003-06-24 20:14:01 +00:00
Christopher Faylor
6c6f70947d
* pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a pure
...
windows process.
2003-06-21 00:08:02 +00:00
Earnie Boyd
e7f4ab4d51
Oops, Forgot to submit the change log
2003-06-19 02:06:04 +00:00
Pierre Humblet
c9a5cfa0d3
2003-06-18 Pierre Humblet <pierre.humblet@ieee.org>
...
* autoload.cc (GetNetworkParams): Add.
* net.cc (getdomainname): Call GetNetworkParams and read the
DhcpDomain registry value if warranted.
2003-06-19 00:57:26 +00:00
Earnie Boyd
2302957c53
* include/dirent.h (dirent): Make d_name and array instead of a pointer.
...
* mingwex/dirent.c: Modifications througout to fill d_name array.
* Makefile.in (LIBS): Add new MSVCRT libraries libmsvcr70 and
libmsvcr71, including debug versions.
(msvcr70.def, msvcr70d.def, msvcr71.def, msvcr71.def): New targets.
2003-06-18 13:54:47 +00:00
Danny Smith
1c906df21f
2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shellapi.h (SHQUERYRBINFO): Add structure,
(SHQueryRecycleBin[AW]. SHEmptyRecycleBin[AW]):Add prototypes.
(SHERB_NOCONFIRMATION, SHERB_NOPROGRESSUI, SHERB_NOSOUND):
Add defines. Thanks to Brett Hart <brett at ncubedtech dot com>
2003-06-17 Danny Smith <dannysmith@users.sourceforge.net>
* include/winbase.h (GlobalCompact, GlobalFix, GlobalFlags,
GlobalUnfix, GlobalUnWire, GlobalWire, LocalCompact,
LocalFlags, LocalShrink, LockSegment, UnlockSegment): Add comment
that these are obsolete no-ops.
2003-06-17 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (GetProcessWorkingSetSize,
GlobalCompact, LocalAlloc, LocalCompact, LocalReAlloc,
LocalShrink, SignalObjectAndWait, WriteProcessMemory):
Correct prototypes.
2003-06-18 10:04:09 +00:00
Luke Dunstan
5a8ad0f577
2003-06-18 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/winuser.h (TPM_RECURSE): Add define.
2003-06-18 09:46:09 +00:00
Danny Smith
0d7e4ab2ba
* msvcrt.def.in (__badioinfo, __lc_codepage, __lc_handle,
...
__pioinfo, __setlc_active, _unguarded_readlc_active, _dstbias):
Mark as DATA.
2003-06-17 23:08:26 +00:00
Christopher Faylor
0d58ef9dac
* path.cc (mount): Do more strict checking on posix path arguments.
2003-06-17 16:52:18 +00:00
Christopher Faylor
c433f4617f
Throughout, remove "include <errno.h>" from files which already include
...
cygerrno.h.
* include/cygwin/config.h (__DYNAMIC_REENT__): Define.
* include/cygwin/version.h: Bump API minor version.
* cygwin.din: Export __getreent
* cygerrno.h: Include errno.h. Fix places where _impure_ptr is used directly
to store the errno value.
* debug.cc (__set_errno): Ditto.
* errno.cc: Remove _RRENT_ONLY define to get errno.cc compiled.
* signal.cc: Rename _reent_clib to _REENT throughout.
* thread.h (reent_clib): Remove prototype.
* thread.cc (reent_clib): Rename reent_clib to __getreent. Return _impure_ptr
until MTinterface is initialized.
(reent_winsup): Fix a possible SEGV when _r == NULL. Return NULL instead.
* MTinterface::fixup_after_fork: Switch reent back to _impure_ptr to keep
signal handling running when fork is called from a thread other than the
mainthread.
2003-06-16 03:24:13 +00:00
Christopher Faylor
6806f4f6e2
* cygcheck.cc (pretty_id): Rework slightly to not rely on spaces.
2003-06-13 02:36:12 +00:00
Christopher Faylor
8d60a6029c
clarify
2003-06-13 02:21:18 +00:00
Christopher Faylor
cc3ce0bb5f
Throughout, always return error when GetShortPathName returns 0.
2003-06-12 20:40:58 +00:00
Thomas Pfaff
1c80421cb4
* thread.cc (pthread_attr_init): Revert change from 2003-06-11
...
to return 0 if attribute is already initialized back to EBUSY.
(pthread_condattr_init): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_mutexattr_init): Ditto.
2003-06-12 18:15:34 +00:00
Corinna Vinschen
5bdb56f061
* exceptions.cc (ctrl_c_handler): Don't send a signal on
...
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
2003-06-12 12:36:07 +00:00
Thomas Pfaff
00e6660b0d
* thread.cc (pthread_attr_init): Return 0 if attribute is already initialized.
...
Fix return code if out of memory.
(pthread_condattr_init): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_mutexattr_init): Return 0 if attribute is already initialized.
2003-06-11 19:08:42 +00:00
Corinna Vinschen
271c1935b3
* spawn.cc (spawn_guts): Call CreateProcess while impersonated,
...
when the real {u,g}ids and the groups are original.
Move RevertToSelf and ImpersonateLoggedOnUser to the main line.
* uinfo.cc (uinfo_init): Reorganize. If CreateProcess was called
while impersonated, preserve the uids and gids and call
ImpersonateLoggedOnUser. Preserve the uids and gids on Win9X.
* exceptions.cc (error_start_init): Quote the pgm in the command.
2003-06-09 13:29:12 +00:00
Christopher Faylor
32173f7ec4
fix typo
2003-06-07 15:37:35 +00:00
Christopher Faylor
42a737d0a4
* poll.cc: Define FD_SETSIZE to ridiculously large number so that there will be
...
no artificially large limits.
2003-06-07 15:36:47 +00:00
Christopher Faylor
9501a0a1c7
* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last tty
...
closes.
2003-06-07 15:12:23 +00:00
Thomas Pfaff
f496071c40
* fhandler_socket.cc (fhandler_socket::connect): Change error
...
handling for nonblocking connects to return EALREADY when
connect is called more than once for the same socket.
2003-06-07 11:05:35 +00:00
Corinna Vinschen
54152c7e7e
* cygwin.din: Add vsyslog.
...
* fhandler.cc (fhandler_base::write): Only make file sparse if the
seeked area is >= 128K.
* syslog.cc (vsyslog): New function, overtaking functionality from
syslog.
(syslog): Just call vsyslog.
* include/cygwin/version.h: Bump API minor.
* include/sys/syslog.h: Add vsyslog declaration.
2003-06-06 08:11:19 +00:00
Danny Smith
b0ad6f2ba5
2003-06-06 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: #include <powerprof.h>.
2003-06-06 James E. Lucas <xelloss@sourceforge.net>
* include/powerprof.h: New file.
* lib/powerprof.def: New file.
2003-06-06 Danny Smith <dannysmith@users.sourceforge.net>
* include/winnt (SLIST_HEADER): Add C90 anonymous struct
protection.
2003-06-06 00:24:34 +00:00
Christopher Faylor
979233a51a
* cygthread.cc (cygthread::terminate_thread): Change system_printf to
...
debug_printf.
2003-06-05 19:18:33 +00:00
Luke Dunstan
51683b1aed
* include/winuser.h (WNDCLASS[AW], WNDCLASSEX[AW]): Change type of
...
hInstance members to HINSTANCE.
Thanks to: Brenden T. <brenden@rcsis.com>
2003-06-05 10:19:08 +00:00
Christopher Faylor
f51e42acc8
* shared.cc (shared_info::heap_chunk_size): Be really defensive about making
...
sure that heap_chunk is set.
2003-06-05 02:56:27 +00:00
Danny Smith
496e018f2f
2003-06-05 Bart Oldeman <bartoldeman@users.sourceforge.net>
...
* include/lmaccess.h (UF_MNS_LOGON_ACCOUNT): Add define.
* include/wingdi.h (LPRGBTRIPLE, LPRGBQUAD): Add typedefs.
2003-06-05 00:49:27 +00:00
Christopher Faylor
7b17543fb2
* path.cc (conv_path_list): Use correct value when calculating length to avoid
...
a potential SEGV.
2003-06-04 22:59:55 +00:00
Pierre Humblet
9f033c223c
2003-06-03 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Mark the pc
as non-executable if the file cannot be opened for read. Retry query
open only if errno is EACCES. Never change the mode, even if it is 000
when query open() fails.
2003-06-04 01:57:44 +00:00
Christopher Faylor
1e61337ccf
* configure.in: Allow any i?86 variant.
...
* configure: Regenerate.
2003-06-04 01:44:07 +00:00
Christopher Faylor
14963df6be
* configure.in: Allow any i?86 variant.
...
* configure: Regenerate.
2003-06-03 17:32:03 +00:00
Corinna Vinschen
fb6b1418e4
* fhandler_socket.cc (connect_thread): Remove.
...
(accept_thread): Remove.
(fhandler_socket::connect): Remove all special blocking handling.
(fhandler_socket::accept): Ditto.
* net.cc (cygwin_connect): Make blocking sockets temporarily
non-blocking and call cygwin_select on them to be interruptible.
(cygwin_accept): Ditto.
2003-06-03 14:05:17 +00:00
Christopher Faylor
0c8fe17278
* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
2003-06-03 02:32:49 +00:00
Danny Smith
38b524b385
* include/ddk/ntpoapi.h (POWER_INFORMATION_LEVEL): Remove.
...
* include/winnt.h (POWER_INFORMATION_LEVEL): Add.
* include/ddk/winddk.h (SINGLE_LIST_ENTRY,SLIST_HEADER):
Remove.
* include/ddk/ndis.h (NdisAllocateSpinLock): Add missing '\'.
2003-06-02 22:21:54 +00:00
Christopher Faylor
3786526ea8
* cygthread.h (cygthread::terminate_thread): Mark private.
...
* cygthread.cc (cygthread::terminate_thread): Deallocate free_range thread
stuff.
2003-06-02 21:22:02 +00:00
Corinna Vinschen
cbdc3d1780
* fhandler_socket.cc (fhandler_socket::accept): Rename `signalled'
...
to `interrupted' as used in fhandler_socket::connect.
2003-06-02 21:20:22 +00:00
Corinna Vinschen
dfe7d28850
* fhandler_socket.cc (fhandler_socket::connect): Simplify previous
...
patch.
(fhandler_socket::accept): Ditto.
2003-06-02 21:14:39 +00:00
Corinna Vinschen
8e13bd144d
* fhandler_socket.cc: Include cygthread.h.
...
(class sock_event): Remove.
(thread_connect): New function.
(thread_accept): Ditto.
(fhandler_socket::connect): Use cygthread instead of socket event
handling for blocking sockets.
(fhandler_socket::accept): Ditto.
2003-06-02 17:52:16 +00:00
Christopher Faylor
418c623614
* fhandler.cc (fhandler_base::write): Correct minor printf formatting style
...
glitch.
2003-06-02 14:07:48 +00:00
Pierre Humblet
c17e8306d0
2003-06-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Assume
an existing directory is a root if FindFirstFile fails.
2003-06-01 19:37:13 +00:00
Christopher Faylor
e59c6ff448
* path.cc (mount_info::conv_to_win32_path): gcc warning about chroot_ok was
...
actually valid. Fix it.
2003-05-30 23:43:24 +00:00
Christopher Faylor
cbe5375437
* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's have
...
problems with.
* path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple exec
tests away from filesystem tests.
2003-05-30 15:01:33 +00:00
Luke Dunstan
1698ff392a
2003-05-30 Mattia Barbon <mbarbon@dsi.unive.it>
...
* lib/oleacc.def: New file.
* include/winable.h: New file.
* include/oleacc.h: Add extern "C" guard.
(NAVDIR_*, ROLE_*, STATE_*): Add missing constants.
(AccessibleChildren, AccessibleObjectFromEvent,
AccessibleObjectFromPoint, AccessibleObjectFromWindow,
CreateStdAccessibleProxy[AW], GetOleaccVersionInfo, GetRoleText[AW],
GetStateText[AW], LresultFromObject, ObjectFromLresult,
WindowFromAccessibleObject): Add prototypes and UNICODE mappings.
* include/winuser.h (NotifyWinEvent): Add prototype.
(OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR,
OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL,
OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT,
OBJID_SOUND): Move from here to...
* include/winable.h (OBJID_WINDOW, OBJID_SYSMENU, OBJID_TITLEBAR,
OBJID_MENU, OBJID_CLIENT, OBJID_VSCROLL, OBJID_HSCROLL,
OBJID_SIZEGRIP, OBJID_CARET, OBJID_CURSOR, OBJID_ALERT,
OBJID_SOUND): Here, as per documentation.
* lib/test.c: Include winable.h.
* lib/user32.def (NotifyWinEvent): Add missing export.
2003-05-30 10:09:36 +00:00
Danny Smith
a681e7f0c6
2003-05-30 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (HeapCompact): Correct prototype.
* include/winnt.h (SINGLE_LIST_ENTRY, SLIST_ENTRY,
SLIST_HEADER): Add.
2003-05-30 08:44:50 +00:00
Corinna Vinschen
4aa10069db
* include/sys/param.h: Add DEV_BSIZE.
2003-05-30 08:39:02 +00:00
Danny Smith
ea6ce1d0de
2003-05-30 Sascha Sommer <saschasommer@freenet.de>
...
* include/sys/types.h (_ssize_t, ssize_t): Add typedefs.
2003-05-30 02:42:07 +00:00
Corinna Vinschen
4e2db52c1c
* fhandler_socket.cc (fhandler_socket::dup): Rearrange. Fix
...
conditional.
2003-05-29 16:16:59 +00:00
Luke Dunstan
87cde7d600
* include/winuser.h (LWA_COLORKEY, LWA_ALPHA): Add defines.
2003-05-29 10:32:03 +00:00
Christopher Faylor
b666c2eb34
* mkvers.sh: Avoid "-dontuse" tags.
...
* path.cc (path_conv::check): Set exec state based on known situations.
* path.cc (mount_item::fnmunge): New function.
(mount_item::build_win32): New function.
(mount_info::conv_to_win32_path): Use build_win32 to build windows path.
* path.h (mount_item::fnmunge): Declare new function.
(mount_item::build_win32): Ditto.
* sys/mount.h (MOUNT_ENC): Define.
2003-05-29 03:50:15 +00:00
Corinna Vinschen
72c1470d67
* fhandler_socket.cc (fhandler_socket::dup): If running impersonated,
...
revert to original account before calling fixup_before_fork_exec
and impersonate again afterwards. Change comment accordingly.
Clean up error handling and debug output.
2003-05-28 22:05:56 +00:00
Thomas Pfaff
a946fb037d
* fhandler_socket.cc (sock_event::~sock_event): New method.
...
(sock_event::load): Change to void. Check if winsock2 is available.
(socke_event::wait): Return 0 if interruptible mode is not available.
(fhandler_socket::connect): Remove checks for winsock2 availability.
(fhandler_socket::accept): Ditto.
2003-05-27 18:30:29 +00:00
Corinna Vinschen
dae86e4507
* fhandler_socket.cc (fhandler_socket::dup): First try duplicating
...
using WSADuplicateSocket/WSASocket, if that fails, try DuplicateHandle.
2003-05-27 07:50:00 +00:00
Corinna Vinschen
2311f6b0e4
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Filter
...
permissions throug umask on FAT or if ntsec is off.
2003-05-27 07:44:26 +00:00
Corinna Vinschen
ada0376f64
* syscalls.cc (statfs): Call GetDiskFreeSpaceEx before GetDiskFreeSpace.
2003-05-26 16:52:58 +00:00
Corinna Vinschen
0372ad9f11
* fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZE
...
instead of numeric constant.
2003-05-26 15:43:54 +00:00
Corinna Vinschen
6852f6c0f6
* fhandler_socket.cc (fhandler_socket::connect): Guard calls to
...
sock_event methods by a check for WinSock2 availability.
(fhandler_socket::accept): Ditto.
2003-05-26 11:11:22 +00:00
Corinna Vinschen
fac297d5f8
* fhandler.h: Rename FH_W95LSBUG flag to FH_LSEEKED.
...
(fhandler_base::set_did_lseek): Rename from set_check_win95_lseek_bug.
(fhandler_base::get_did_lseek): Rename from get_check_win95_lseek_bug.
(fhandler_base::set_fs_flags): New method.
(fhandler_base::get_fs_flags): Ditto.
* fhandler.cc (fhandler_base::write): Make 64 bit clean. Convert file
to a "sparse" file when writing after a long lseek (>64K) beyond EOF.
(fhandler_base::lseek): Call set_did_lseek() instead of
set_check_win95_lseek_bug().
(fhandler_base::fhandler_base): Initialize fs_flags to 0.
* fhandler_disk_file.cc (fhandler_disk_file::open): Don't create files
as "sparse" unconditionally. Set fs_flags member.
2003-05-26 09:54:01 +00:00
Christopher Faylor
7b3a9e6e00
* include/winuser.h (EnumDisplayDevicesW): Fix typo.
2003-05-25 21:38:31 +00:00
Corinna Vinschen
a80229fd49
* autoload.cc (GetDiskFreeSpaceEx): Add.
...
* syscalls.cc (statfs): Call full_path.root_dir() instead of
rootdir(full_path). Use GetDiskFreeSpaceEx when available and
report space available in addition to free space.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name):
Do not call FindFirstFile for disk root directories.
2003-05-25 09:18:43 +00:00
Corinna Vinschen
c295ce6f6e
* fhandler_process.cc (format_process_stat): use PagefileUsage
...
instead of VirtualSize.
(get_mem_values): Ditto.
2003-05-24 20:14:19 +00:00
Danny Smith
ff462cb235
2003-05-23 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winuser.h (EnumDisplayDevices[AW]): Add prototypes.
* include/wingdi.h (DISPLAY_DEVICE): UNICODE it.
2003-05-23 Andrew Dunbar <hippietrail@users.sourceforge.net>
* include/wingdi.h (GCP_RESULTS[AW]) Correct type of
lpGlyphs field to LPWSTR.
2003-05-23 08:07:05 +00:00
Danny Smith
a66cfe68eb
* include/wincrypt.h (PLAINTEXTKEYBLOB, OPAQUEKEYBLOB,
...
PUBLICKEYBLOBEX, SYMMETRICWRAPKEYBLOB) Add defines.
(PP_*): Add defines.
(CryptContextAddRef): Add prototype.
Thanks to: Shura Zam <debil_urod@users.sourceforge.net>
2003-05-21 09:49:58 +00:00
Corinna Vinschen
5c768c978c
* shared_info.h: Match shared_name declaration with below change.
...
* shared.cc (shared_name): Use incoming char * parameter instead of
local static buffer.
(open_shared): Accomodate new calling convention for shared_name.
* exceptions.cc (events_init): Ditto.
* sigproc.cc (getsem): Ditto.
* syscalls.cc (login): Ditto.
(logout): Ditto.
(pututline): Ditto.
2003-05-21 08:01:57 +00:00
Corinna Vinschen
44be819760
* fhandler_socket.cc (secret_event_name): Return void. Use incoming
...
char *parameter instead of local static buffer.
(fhandler_socket::create_secret_event): Accomodate new calling
convention for secret_event_name.
(fhandler_socket::close_secret_event): Ditto.
2003-05-20 17:39:46 +00:00
Corinna Vinschen
d4f3ce316c
* fhandler_socket.cc (SECRET_EVENT_NAME): Remove.
...
(ENTROPY_SOURCE_NAME): Ditto.
(secret_event_name): New static function. Create shared event name
with "Global\" prefix on systems supporting terminal services.
(fhandler_socket::set_connect_secret): Fix conditional.
(fhandler_socket::create_secret_event): Create secret event using
secret_event_name().
(fhandler_socket::close_secret_event): Ditto.
* shared.cc (shared_name): Create shared object name with "Global\"
prefix on systems supporting terminal services.
* wincap.cc: Set has_terminal_services capability throughout.
(wincap_2003): New global object representing Windows 2003 Server
capabilities.
(wincapc::init): Accomodate Windows 2003 Server.
* wincap.h (struct wincaps): Add has_terminal_services capability.
2003-05-20 15:22:09 +00:00
Corinna Vinschen
10bada05fa
* winsup/cygwin/include/cygwin/version.h: Bump API minor version.
...
* winsup/cygwin/include/cygwin/types.h: Define key_t as long long.
* winsup/cygwin/cygwin.din: Add ftok, _ftok.
* winsup/cygwin/ipc.cc (ftok): Rework implementation.
2003-05-20 12:38:04 +00:00
Christopher Faylor
d8ee8ca551
* spawn.cc (spawn_guts): Show more of command line in strace output.
2003-05-19 01:43:31 +00:00
Danny Smith
8dc6cea2e8
2003-05-18 Manu B <manubee@users.sourceforge.net>
...
* include/commctrl.h (TVSORTCB): Rename old TV_SORTCB structure.
2003-05-18 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (CREATE_DEFAULT_ERROR_MODE,
DEBUG_PROCESS, DEBUG_ONLY_THIS_PROCESS, CREATE_SUSPENDED,
DETACHED_PROCESS, CREATE_NEW_CONSOLE, NORMAL_PRIORITY_CLASS,
IDLE_PRIORITY_CLASS, HIGH_PRIORITY_CLASS, REALTIME_PRIORITY_CLASS,
CREATE_NEW_PROCESS_GROUP, CREATE_UNICODE_ENVIRONMENT,
CREATE_SEPARATE_WOW_VDM, CREATE_SHARED_WOW_VDM, CREATE_FORCEDOS,
CREATE_NO_WINDOW): Convert to hexadecimal form for better
readability.
(BELOW_NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS,
CREATE_BREAKAWAY_FROM_JOB, CREATE_WITH_USERPROFILE): Add.
2003-05-18 10:20:47 +00:00
Danny Smith
8ed969331b
* include/stdlib.h (_Exit): Move out of __STRICT_ANSI__ block,
...
but still protect inline definition with __STRICT_ANSI__
2003-05-15 22:28:57 +00:00
Danny Smith
90e1332c38
Remove isascii.o, add isascii.c to repository
2003-05-15 22:21:00 +00:00
Thomas Pfaff
c8fa3426af
* thread.h (pthread::init_mainthread): Remove function parameter.
...
(MTinterface::Init): Ditto.
* thread.cc (MTinterface::Init): Remove function parameter.
Always initialize reent_key.
(pthread::init_mainthread): Remove function parameter.
(MTinterface::fixup_after_fork): Fix pthread::init_mainthread call.
* dcrt0.cc (dll_crt_0_1) Fix calls to MTinterface::Init and
pthread::init_mainthread.
Call pthread::init_mainthread only when not forked.
2003-05-15 19:42:51 +00:00
Corinna Vinschen
f2669f5d16
* fhandler_proc.cc (format_proc_meminfo): Make swap memory output
...
Linux style values.
2003-05-15 11:56:51 +00:00
Danny Smith
a445a0b0ce
* include/ddk/ndis.h (NDIS30_MINIPORT_CHARACTERISTICS_S):
...
Unname anonymous unions if NONAMELESSUNION not defined.
2003-05-15 01:04:07 +00:00
Danny Smith
620c28a975
* string_old.c: Remove, splitting into...
...
* strcasecmp.c: New file.
* strncasecmp.c: New file.
* wscmpi.c : New file.
* ctype_old.c: Remove, splitting into...
* isascii.c: New file.
* iscsym.c: New file.
* iscsymf.c: New file.
* toascii.c: New file.
* Makefile.in (MOLD_OBJS): Adjust.
(SRCDIST_FILES): Adjust.
2003-05-15 00:21:12 +00:00
Danny Smith
6c4ce46ce1
2003-05-14 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (GMEM_VALID_FLAGS): Add.
2003-05-15 00:10:33 +00:00
Danny Smith
3927f0a891
* include/math.h (fabs) : Remove inline definition.
...
(fabsf): Likewise.
(fabsl): Likewise.
2003-05-14 01:03:20 +00:00
Danny Smith
1b89c1742e
* include/prsht.h (PROPSHEETHEADER[AW]: Mark
...
anonymous unions as GCC extension.
2003-05-13 10:53:13 +00:00
Corinna Vinschen
5d575f7dcd
* include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.
2003-05-13 09:26:17 +00:00
Danny Smith
b823fca9ba
* include/oleidl.h (LPENUMOLEDOCUMENTVIEWS): Remove typedef.
...
(IEnumOleDocumentViews): Remove commented out DECLARE_ENUMERATOR.
* include/docobj.h (LPENUMOLEDOCUMENTVIEWS): Add typedef (previously
commented out).
(IEnumOleDocumentViews): Add definition using DECLARE_ENUMERATOR.
2003-05-13 02:05:12 +00:00
Earnie Boyd
3b30f11fbf
* include/commctrl.h: (MCSC_BACKGROUND, MCSC_TEXT, MCSC_TITLEBK,
...
MCSC_TITLETEXT, MCSC_MONTHBK, MCSCTRAILTEXT): Define.
Thanks to: Robert Wishlaw <rwishlaw @ shaw . ca>
2003-05-12 12:29:00 +00:00
Corinna Vinschen
194d9eb318
* Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS.
...
* fhandler.h (fhandler_virtual::fstat): Remove useless declaration.
* fhandler_virtual.cc: Remove _COMPILING_NEWLIB define.
* ipc.cc (ftok): Use stat64.
* syscalls.cc (_fstat64): Remove alias.
(_fstat): Ditto.
(_stat): Ditto.
(_fstat64_r): New function.
(_fstat_r): Ditto.
(_stat64_r): Ditto.
(stat_r): Ditto.
* crt0.o: New file, moved from newlib.
* include/sys/param.h: Ditto.
* include/sys/utime.h: Ditto.
* include/sys/utmp.h: Ditto.
* include/sys/dirent.h: Ditto. Expose different struct dirent,
dependening of the environment.
2003-05-12 11:06:27 +00:00
Corinna Vinschen
01859fc441
* Makefile.common: Remove newlib_sys_include and
...
newlib_sys_include_include entirely. Set CRT0 to cygwin/crt0.o.
2003-05-12 11:06:00 +00:00
Danny Smith
214d1b21cb
* include/olectl.h (IOleControl,IOleControlSite,ISimpleFrameSite,
...
IErrorLog,IPropertyBag,IPersistPropertyBag,IPersistStreamInit,
IPersistMemory,IPropertyNotifySink,IProvideClassInfo,
IProvideClassInfo2,IConnectionPointContainer,
IEnumConnectionPoints,IConnectionPoint,IEnumConnections,
IClassFactory2,ISpecifyPropertyPages,IPerPropertyBrowsing,
IPropertyPageSite,IPropertyPage,IPropertyPage2,IFont,IFontDisp,
IPicture,IPictureDisp): Move from here to...
* include/ocidl.h (IOleControl,IOleControlSite,ISimpleFrameSite,
IErrorLog,IPropertyBag,IPersistPropertyBag,IPersistStreamInit,
IPersistMemory,IPropertyNotifySink,IProvideClassInfo,
IProvideClassInfo2,IConnectionPointContainer,
IEnumConnectionPoints,IConnectionPoint,IEnumConnections,
IClassFactory2,ISpecifyPropertyPages,IPerPropertyBrowsing,
IPropertyPageSite,IPropertyPage,IPropertyPage2,IFont,IFontDisp,
IPicture,IPictureDisp): Here, as per documentation.
2003-05-12 10:43:08 +00:00
Danny Smith
e9a398893f
2003-05-12 Mattia Barbon <mbarbon@dsi.unive.it>
...
* include/oleauto.h (VarR8FromDec, VarDecFromR8): Add prototypes.
* include/winbase.h (TerminateJobObject,
AssignProcessToJobObject): Likewise.
* include/servprov.h: New header.
* lib/test.c: Include servprov.h.
Correct ChangeLog typo
2003-05-12 10:35:35 +00:00
Corinna Vinschen
cc95baad41
Replace ino_t by __ino64_t throughout.
2003-05-11 21:52:09 +00:00
Corinna Vinschen
aee7085346
* include/cygwin/types.h: Add key_t typedef.
2003-05-11 12:50:18 +00:00
Christopher Faylor
066ca06fd0
* dir.cc (readdir): Fill out new old_d_ino field.
...
* fhandler.h (fhandler_base::namehash): Define as ino_t.
(fhandler_base::get_namehash): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Accommodate new 64
bit st_ino.
* fhandler_socket.cc (fhandler_socket::fstat): Ditto.
* path.cc (hash_path_name): Return ino_t.
* syscalls.cc (stat64_to_stat32): Convert 64 bit inode to 32 bit.
* winsup.h (hash_path_name): Declare as returning ino_t.
* include/cygwin/stat.h (__stat32): Use 32 bit st_ino.
(__stat64): Use 64 bit st_ino.
* include/cygwin/types.h (__ino64_t): Define.
(__ino32_t): Ditto.
(ino_t): Define appropriately.
2003-05-11 00:10:11 +00:00
Danny Smith
bf759a5ae6
* include/shlguid.h (CGID_ShellServiceObject): Declare.
...
* lib/uuid.c (CGID_ShellServiceObject): Define guid.
Thanks to Chris Sutcliffe <ir0nh34d#users.sourceforge.net>
* include/winuser.h (SetLayeredWindowAttributes): Add prototype.
* lib/user32.def (SetLayeredWindowAttributes): Add stub.
* lib/uuid.c (CGID_Explorer, CGID_ShellDocView): Define guids.
2003-05-10 09:20:11 +00:00
Corinna Vinschen
3e66a81cd1
* Makefile.in (NEW_FUNCTIONS): All 32/64 from 0.79 API get
...
leading underscore.
* cygwin.din: Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-05-09 22:11:25 +00:00
Corinna Vinschen
d3b450f3a1
* include/cygwin/config.h: New file.
2003-05-09 21:27:40 +00:00
Corinna Vinschen
8e67b974a9
* libltp/include/test.h: Remove gethostid declaration.
2003-05-09 20:53:22 +00:00
Christopher Faylor
b92899cca0
revert errnoneous checkin
2003-05-09 17:58:20 +00:00
Christopher Faylor
9508ebc53d
* cygthread.cc (cygthread::detach): Prioritize waiting for I/O completion over
...
waiting for signal delivery.
2003-05-09 17:56:58 +00:00
Joshua Daniel Franklin
af9315f8a3
* cygwin-ug-net.in.sgml: Remove outdated revision information and authors names
2003-05-09 00:05:02 +00:00
Earnie Boyd
85051ee6c1
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-05-07 03:12:17 +00:00
Thomas Pfaff
0bb7254f38
* signal.cc (nanosleep): Do not wait twice for signal arrival.
2003-05-06 19:39:10 +00:00
Earnie Boyd
4c6bc0ed42
Uh hum, just not my day
2003-05-06 16:04:25 +00:00
Earnie Boyd
60e9842b39
* configure: Regenerate
2003-05-06 14:48:34 +00:00
Earnie Boyd
3a1f652308
* configure.in (W32API_INCLUDE): Need the -I switch in the value.
...
* mingwex/configure.in (W32API_INCLUDE): Ditto.
* profile/configure.in (W32API_INCLUDE): Ditto.
2003-05-06 14:46:06 +00:00
Earnie Boyd
98a430bcbe
Oops. Add ending quotes to CFLAGS value.
2003-05-06 13:35:20 +00:00
Earnie Boyd
42fbaad1e8
* configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
...
of multiply defined symbols if the symbols is defined locally. E.G.:
A local definition of malloc causes this problem.
* configure: Regenerate.
* profile/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
(gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
Thanks to Jeff Bonggren <jbon@users.sf.net>.
* profile/configure.in (W32API_INCLUDE): Set default value.
* profile/configure: Regenerate.
* mingwex/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API-INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* mingwex/configure.in (W32API_INCLUDE): Set default value.
* mingwex/configure: Regenerate.
2003-05-06 13:26:44 +00:00
Earnie Boyd
fe2f86961e
* Makefile.in (W32API_INCLUDE): New variable.
...
(ALL_CFLAGS): Include W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
(W32API_INCLUDE): Set default value.
* configure: Regenerate.
2003-05-05 16:04:11 +00:00
Danny Smith
2937200d0e
* include/commctrl.h (STATUSCLASSNAME, TOOLBARCLASSNAME,
...
TOOLTIPS_CLASS, TRACKBAR_CLASS, UPDOWN_CLASS, PROGRESS_CLASS,
HOTKEY_CLASS): Remove dupicate defines for UNICODE case.
2003-05-05 09:16:35 +00:00
Corinna Vinschen
a6d745f53c
* include/cygwin/types.h: Fix erroneous definition of ino_t from
...
2003-04-28.
2003-05-03 18:14:29 +00:00
Corinna Vinschen
40d3c80413
* syscalls.cc (chown_worker): Allow chown'ing of socket files.
2003-05-03 16:03:19 +00:00
Danny Smith
1a2060aa43
2003-05-02 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/richedit.h (EM_FINDTEXTEXW, EM_FINDTEXTW,
EM_GETAUTOURLDETECT, EM_GETBIDIOPTIONS, EM_GETEDITSTYLE,
EM_GETIMECOLOR, EM_GETIMEOPTIONS, EM_GETPUNCTUATION,
EM_GETWORDWRAPMODE, EM_RECONVERSION, EM_SETBIDIOPTIONS,
EM_SETEDITSTYLE, EM_SETIMECOLOR, EM_SETIMEOPTIONS,
EM_SETPALETTE, EM_SETPUNCTUATION, EM_SETTEXTEX,
EM_SETWORDWRAPMODE, RICHEDIT_CLASS10A): Add defines.
2003-05-02 00:46:57 +00:00
Danny Smith
b349465ef3
2003-05-02 Francois Ferrand <typz@sourceforge.users.net>
...
* include/commctrl.h (TBM_*): Add missing trackbar defines.
2003-05-02 00:16:03 +00:00
Danny Smith
41e7de4863
* include/cplext.h (CPLPAGE_MOUSE_WHEEL,
...
CPLPAGE_DISPLAY_BACKGROUND): Add defines.
2003-05-02 00:11:49 +00:00
Thomas Pfaff
2238537c36
* Makefile.in: Revert patch from 2003-04-17.
2003-04-30 22:18:24 +00:00
Danny Smith
14dbd34e9e
* include/wingdi.h (DC_PEN, DC_BRUSH): Add defines.
...
(SetDCPenColor, SetDCBrushColor): Add prototypes.
* lib/gdi32.def (SetDCPenColor, SetDCBrushColor): Add stubs.
2003-04-30 09:28:15 +00:00
Christopher Faylor
6ef342e460
* profil.h (PROFADDR): Prevent overflow when text segments are larger than
...
256k.
* profil.c (profthr_func): Raise thread priority for more accurate sampling.
* path.cc (hash_path_name): Use ino_t as type.
2003-04-28 20:10:54 +00:00
Christopher Faylor
878251d460
really check in correct fix.
2003-04-27 03:14:02 +00:00
Christopher Faylor
7d6d38aaec
* errno.cc (_sys_nerr): Fix compile error erroneously checked in on 2003-04-23.
2003-04-27 03:09:17 +00:00
Joshua Daniel Franklin
45bfd8ed74
* mkpasswd.c (usage) Remove extra newline from description output.
2003-04-26 22:33:00 +00:00
Danny Smith
98dc5aa07f
2003-04-26 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro.
2003-04-26 22:00:16 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Joshua Daniel Franklin
3c7197b104
* gcc.sgml: Remove outdated "WinMainCRTStartup" references. Add a hellogui.c example
2003-04-26 14:10:59 +00:00
Danny Smith
a5035abfac
* include/oaidl.h (ITypeMarshal): Add interface.
2003-04-26 08:48:03 +00:00
Danny Smith
d9d35a454b
2003-04-26 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winioctl.h: Clean up formatting.
(RETRIEVAL_POINTERS_BUFFER): Add fields to Extents[1] struct.
(CREATE_DISK): Add _ANONYMOUS_UNION macro.
(DISK_CACHE_INFORMATION): Likewise.
(DISK_DETECTION_INFO): Likewise.
(DISK_PARTITION_INFO): Likewise.
(PARTITION_INFORMATION_EX): Likewise.
(DRIVE_LAYOUT_INFORMATION_EX): Likewise.
2003-04-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/winbase.h (DeleteVolumeMountPoint[AW],
FindFirstVolumeMountPoint[AW], FindNextVolumeMountPoint[AW],
FindVolumeMountPointClose, GetVolumeNameForVolumeMountPoint[AW],
GetVolumePathName[AW], GetVolumePathNamesForVolumeName[AW],
SetVolumeMountPoint[AW]): Add prototypes.
* include/winioctl.h (IOCTL_DISK_GET_PARTITION_INFO_EX,
IOCTL_DISK_SET_PARTITION_INFO_EX,
IOCTL_DISK_GET_DRIVE_LAYOUT_EX,
IOCTL_DISK_SET_DRIVE_LAYOUT_EX, IOCTL_DISK_CREATE_DISK,
IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_PERFORMANCE_OFF,
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GROW_PARTITION,
IOCTL_DISK_GET_CACHE_INFORMATION,
IOCTL_DISK_SET_CACHE_INFORMATION,
IOCTL_DISK_DELETE_DRIVE_LAYOUT, IOCTL_DISK_UPDATE_PROPERTIES,
FSCTL_GET_VOLUME_BITMAP, FSCTL_GET_RETRIEVAL_POINTERS,
FSCTL_MOVE_FILE): Define.
(CREATE_DISK_GPT, CREATE_DISK_MBR, CREATE_DISK,
DISK_CACHE_INFORMATION,
DETECTION_TYPE, DISK_INT13_INFO, DISK_EX_INT13_INFO,
DISK_DETECTION_INFO, DISK_GEOMETRY_EX, DISK_GROW_PARTITION,
DISK_PARTITION_INFO, DISKQUOTA_USER_INFORMATION,
GET_LENGTH_INFORMATION, DISK_EXTENT, VOLUME_DISK_EXTENTS,
DRIVE_LAYOUT_INFORMATION_GPT, DRIVE_LAYOUT_INFORMATION_MBR,
PARTITION_INFORMATION_MBR, PARTITION_INFORMATION_GPT,
PARTITION_INFORMATION_EX, DRIVE_LAYOUT_INFORMATION_EX,
MOVE_FILE_DATA,
RETRIEVAL_POINTERS_BUFFER, STARTING_LCN_INPUT_BUFFER,
STARTING_VCN_INPUT_BUFFER, VOLUME_BITMAP_BUFFER): Add structs
(PARTITION_STYLE, DISK_CACHE_RETENTION_PRIORITY): Add enums.
(MEDIA_TYPE): Add F3_120M_512, F3_640_512, F5_640_512,
F5_720_512,
F3_1Pt2_512, F3_1Pt23_1024, F5_1Pt23_1024, F3_128Mb_512,
F3_230Mb_512,
F8_256_128, F3_200Mb_512, F3_240M_512, and F3_32M_512.
* lib/kernel32.def (GetVolumePathNamesForVolumeName[AW]): Add
stubs.
2003-04-26 08:31:29 +00:00
Corinna Vinschen
f615d74b72
* include/netinet/ip.h: Include netinet/in_systm.h and netinet/in.h
...
to allow standalone usage (autoconf).
2003-04-25 08:32:30 +00:00
Christopher Faylor
5d9a7c875a
* fork.cc: Change SLOW_PID_REUSE to NO_SLOW_PID_REUSE and invert ifdef sense
...
throughout.
2003-04-24 01:57:07 +00:00
Christopher Faylor
5f92bef8a8
fix typo
2003-04-23 01:54:17 +00:00
Christopher Faylor
0eaf24fead
* select.cc (fhandler_pipe::ready_for_read): Assure that get_guard is called
...
for successful non-blocking pipe reads.
2003-04-23 01:27:51 +00:00
Corinna Vinschen
e8a57b4fc7
* include/inttypes.h: New file.
...
* include/stdint.h: New file.
* include/cygwin/in.h: Include stdint.h instead of sys/types.h.
* include/cygwin/types.h: Include stdint.h. Remove typedefs for
intN_t and uintN_t since these are defined in stdint.h now.
2003-04-22 14:55:01 +00:00
Christopher Faylor
650dc784e5
Clarify number bump
2003-04-21 04:33:00 +00:00
Christopher Faylor
99b1a40dc1
* include/cygwin/version.h: Bump DLL major number to 5. Change DLL minor
...
number to 0. Bump API minor number.
2003-04-21 04:31:06 +00:00
Corinna Vinschen
beb5408583
* autoload.cc (CreateWindowStationA): Add.
...
(SetProcessWindowStation): Add.
2003-04-20 08:56:42 +00:00
Christopher Faylor
6b3bdf38e0
* wincap.h (wincaps:pty_needs_alloc_console): New element.
...
(wincapc:pty_needs_alloc_console): New function.
* wincap.cc: Add pty_needs_alloc_console throughout.
* fhandler_tty.cc (fhandler_tty_slave::open): Open an "invisible" console on
first pty allocation.
2003-04-20 01:36:15 +00:00
Christopher Faylor
afa18d8a69
* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
...
is allocated.
2003-04-19 02:04:55 +00:00
Christopher Faylor
4e0d877875
* Makefile.in: Use ${nostdlib} variable.
...
* fhandler_proc.cc (format_proc_cpuinfo): Change /proc/cpuinfo "vendor id"
string to "vendor_id" to conform with Linux systems.
2003-04-19 01:03:16 +00:00
Christopher Faylor
b128dd21af
* Makefile.in: Reorganize to try to allow lack of mingw/w32api to work.
2003-04-19 01:02:51 +00:00
Christopher Faylor
4e837e7368
* syscalls.cc (setsid): Don't call FreeConsole if ctty is already < 0.
2003-04-18 00:25:41 +00:00
Thomas Pfaff
f3c1c54051
* Makefile.in: Add finline-functions optimization to CXXFLAGS.
...
* autoload.cc (LoadDLLprime): Rename std_dll_init to
_std_dll_init.
(std_dll_init): Remove name mangling prototype. Add attributes
used and noinline.
(wsock_init): Ditto.
Change wsock_init to _wsock_init in wsock32 and ws2_32
LoadDLLprime.
* exceptions.cc (unused_sig_wrapper): Remove prototype. Add
attributes used and noinline.
* pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code.
(pwdgrp (__group32 *&)): Ditto.
* grp.cc (pwdgrp (passwd *&)): Outline constructor.
(pwdgrp (__group32 *&)): Ditto.
2003-04-17 20:05:15 +00:00
Thomas Pfaff
a4cea44072
* thread.h (pthread::equal): New static method.
...
* thread.cc: Rename pthread_equal to pthread::equal throughout.
(pthread_equal): Use pthread::equal to compare threads ids.
2003-04-17 19:57:01 +00:00
Earnie Boyd
8425a8ce49
* include/wingdi.h (DM_SPECVERSION): Define.
...
Thanks to Sinitsyn Valentime <valentine.sinitsyn@usu.ru>
* include/rpcdce.h (UuidCreateSequential): Properly guard with
appropriate _WIN32_WINNT values.
2003-04-16 12:19:57 +00:00
Christopher Faylor
c448f78fd5
* termios.cc (setspeed): New function.
...
(cfsetospeed): Use setspeed to set speed.
(cfsetispeed): Use setspeed to set speed.
* autoload.cc: Add load statement for UuidCreate, and UuidCreateSequential.
* cpuid.h: New file.
* cygwin.din: Export gethostid.
* fhandler_proc.cc (cpuid): Move to cpuid.h.
(can_set_flag): Move to cpuid.h.
* syscalls.cc (gethostid): New function.
* version.h: Bump DLL minor version number to 83.
2003-04-16 03:03:45 +00:00
Christopher Faylor
9eed5df639
* rpcdce.h: Add declaration for UuidCreateSequential.
...
* rpcrt4.def: Add entry for UuidCreateSequential.
2003-04-16 02:57:33 +00:00
Thomas Pfaff
ffb576fbf2
Fix a race in pthread_rwlock caused by simultanoues unlock and cancelation.
...
* thread.h (pthread_rwlock::release): New method.
* thread.cc (pthread_rwlock::unlock): Use release to signal
waiting threads.
(pthread_rwlock::rdlock_cleanup): Signal waiting threads after a
cancelation.
(pthread_rwlock::wrlock_cleanup): Ditto.
2003-04-15 20:14:12 +00:00
Danny Smith
b88a1e6f13
2003-04-14 Phil Krylov <likewolf@users.sourceforge.net>
...
* include/winuser.h (VK_*): Add missing defines.
2003-04-14 Vincent B�ron <papineau@users.sourceforge.net>
* include/commctrl.h (NMUPDOWN, LPNMUPDOWN): Use currently
documented typedefs for struct _NM_UPDOWN.
Add defines for backward comapatibility.
* include/commdlg.h (OFN_ENABLESIZING): Add define.
* include/wininet.h (IRF_*): Add issing defines.
2003-04-14 Bang Jun-Young <junyoung@netbsd.org>
* lib/ntdll.def (Csr*, Dbg*, Ki*, Ldr*, Rtl*): Add W2K exports.
2003-04-14 05:26:34 +00:00
Christopher Faylor
b3acb772c0
* mkvers.sh: Prefix day with 0 in date only when day < 10.
2003-04-14 02:09:57 +00:00
Christopher Faylor
770ff5bcb4
* Makefile.common (w32api_lib): Fix w32api detection.
2003-04-11 21:48:39 +00:00
Earnie Boyd
000cfc2eb2
* configure.in (LIBM_A): Define for cygwin target.
...
* configure (LIBM_A): Ditto.
2003-04-11 12:35:51 +00:00
Earnie Boyd
fd959d2b39
* include/sspi.h: Add comment for FreeCredentialsHandle.
2003-04-11 12:27:39 +00:00
Corinna Vinschen
2e23862a8a
* security.cc (get_info_from_sd): New function.
...
(get_nt_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_file_attribute): Move sd error handling to get_info_from_sd.
and symlink handling to fhandler_disk_file::fstat_helper.
(get_nt_object_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_object_attribute): Remove symlink handling and simply return -1
when ntsec is off.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): For
symlinks set the attribute, call get_file_attribute to get the ids
and return. In the normal case call get_file_attribute with the
addresses of the buffer ids and do not recheck if the file is a socket.
2003-04-11 09:38:07 +00:00
Christopher Faylor
73afb2abb0
* cygthread.cc (cygthread::stub): Initialize stack pointer earlier.
...
(cygthread::simplestub): Initialize stack pointer.
(cygthread::terminate_thread): Account for possibility that stack pointer has
not been set. Issue warnings for unusual conditions.
2003-04-11 02:16:17 +00:00
Joshua Daniel Franklin
518a04c40b
Pierre's update for mkgroup/mkpasswd
2003-04-10 23:27:13 +00:00
David Starks-Browning
ca78fd5f10
Setup updates. More about installing everything, not using setup to mirror.
2003-04-10 20:09:35 +00:00
Corinna Vinschen
2a1e8e117e
* regex/regex.h: Define regoff_t as _off_t.
...
* regex/regex2.h: Ditto.
2003-04-10 19:49:30 +00:00
Corinna Vinschen
ac5ec96137
* cygwin.din: Export wcscoll, wcswidth and wcwidth.
...
* include/cygwin/version.h: Bump API minor number.
2003-04-10 08:22:42 +00:00
Christopher Faylor
e5d6d53590
* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
...
* cygthread.cc: Ditto.
(cygthread::stub): Don't initialize already initialized events.
(cygthread::freerange): Don't create thread here.
(cygthread::cygthread): Create thread here. Die if thread not created.
(cygthread::operator new): Simplify. Just grab a thread structure from the
pool. Don't try to start the thread.
(cygthread::terminate_thread): Don't close event handles. Just reuse them.
Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
2003-04-10 05:27:34 +00:00
Pierre Humblet
57efd527df
2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.c (current_user): print uid and gid as unsigned.
(enum_users): Ditto. Do not free servername.
(usage): Update to allow several domains and improve -p.
(main): On Win9x limit uids to 1000. Only print specials
when -l is specified. Add a loop to allow several domains
and free servername in the loop.
* mkgroup.c (enum_groups): Do not free servername.
(usage): Update to allow several domains. Change uid to gid.
(main): Only print specials when -l is specified. Add a
loop to allow several domains and free servername in the loop.
2003-04-10 01:14:18 +00:00
David Starks-Browning
c6e74c4c82
add lack of '~' to ash missing features
2003-04-08 22:24:27 +00:00
Christopher Faylor
ca81cd60ce
* fhandler_console.cc (fhandler_console::read) Handle certain key up events, to
...
allow pasting accented characters and typing them using the "alt + numerics"
sequences.
* include/limits.h (IOV_MAX): Set to a number which is small enough to use in
an array.
2003-04-08 21:19:33 +00:00
Thomas Pfaff
e3501c78ca
* winsup.api/pthread/condvar9.c: Fix test.
2003-04-08 18:29:37 +00:00
Danny Smith
29d0fe3f74
* include/time.h (strftime): Remove duplicate declaration.
2003-04-07 01:31:37 +00:00
Danny Smith
3f26a1aeb7
2003-04-07 Marcel Telka <telka@users.sourceforge.net>
...
* include/ddk/winddk.h (KIRQL): Typedef as UCHAR. not ULONG.
2003-04-07 01:06:23 +00:00
Christopher Faylor
9dbe3289ee
* cygthread.h (cygthread::avail): Make LONG for easier use with Interlocked*
...
functions.
* cygthread.cc (cygthread::init): Eliminate unneeded muto.
(cygthread::operator new): Don't lock. Instead change use of avail variable
into tri-state: available (1), not available (-1), uninitialized (0).
(cygthread::terminate_thread): Set avail to uninitialized.
(cygthread::detach): Eliminate local 'avail'. Always set avail to 1 unless
signalled.
* cygthread.cc (cygthread::operator new): Be more defensive when messing with
2003-04-04 18:52:11 +00:00
Christopher Faylor
8aed2a11a8
add comments
2003-04-04 06:03:52 +00:00
Christopher Faylor
b410f1680f
* cygthread.cc (operator new): Be more defensive when messing with threads that
...
are marked "unavailable".
2003-04-04 05:58:06 +00:00
Christopher Faylor
a61bf8c369
* fhandler_console.cc (CONVERT_LIMIT): Use a size for the 21st century.
2003-04-03 14:05:30 +00:00
Corinna Vinschen
d5292d66a4
* external.cc (check_ntsec): Return general ntsec state on NULL
...
filename. Check wincap.is_security() additionally.
2003-04-03 08:18:43 +00:00
Corinna Vinschen
5a4a19b3f3
ChangeLog already commited yesterday:
...
* external.cc (check_ntsec): New function.
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec()
from applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
2003-04-03 08:04:41 +00:00
Christopher Faylor
1ce82d241f
fix usage
2003-04-03 04:07:57 +00:00
Christopher Faylor
5a87c6163b
* Makefile.in (EXTRA_OFILES): Remove debugging object.
2003-04-03 01:23:37 +00:00
Christopher Faylor
d99c61760e
* external.cc (check_ntsec): New function.
...
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec() from
applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
* cygthread.cc (cygthread::new): Add more defensive debugging.
2003-04-02 23:01:11 +00:00
Corinna Vinschen
2d388e433f
* fhandler.cc (fhandler_base::fstat): Set the uid and gid fields
...
from the current effective ids.
* fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set
by fhandler_base::fstat.
* security.cc (get_nt_attribute): Do not test wincap.has_security ().
(get_nt_object_attribute): Ditto.
(get_file_attribute): Add test for wincap.has_security ().
(get_object_attribute): Ditto.
2003-04-01 17:17:46 +00:00
Corinna Vinschen
1727fba007
* dir.cc: Change __off32_t to _off_t and __off64_t to _off64_t
...
throughout.
* fhandler.cc: Ditto.
* fhandler.h: Ditto.
* fhandler_clipboard.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_floppy.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_proc.cc: Ditto.
* fhandler_process.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_registry.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_termios.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_zero.cc: Ditto.
* mmap.cc: Ditto.
* pipe.cc: Ditto.
* syscalls.cc: Ditto.
* winsup.h: Ditto.
* include/cygwin/stat.h: Ditto.
* include/cygwin/types.h: Ditto. Remove definition of __off32_t
and __off64_t.
2003-04-01 16:11:41 +00:00
Christopher Faylor
333879e77b
* exceptions.cc (setup_handler): Make sure winapi lock is released when exiting
...
loop.
2003-03-31 21:27:06 +00:00
Danny Smith
ce5435df0b
* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
2003-03-31 21:11:13 +00:00
Danny Smith
ebb73170e8
2003-03-30 Hans E. Molin <kvasi@users.sourceforge.net>
...
* include/olectl.h (OleLoadPicturePath): Correct prototype.
2003-03-30 21:19:04 +00:00
Christopher Faylor
a2105d9387
* include/cygwin/fs.h: Remove unneeded include.
...
* include/cygwin/in.h: Include sys/types.h rather than cygwin/types.h.
2003-03-30 17:28:52 +00:00
Danny Smith
c453f40410
2003-03-30 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/uuid.c (IID_IHTML*): Move definitions to...
* lib/mshtml-uuid.c: New file.
* lib/Makefile.in: Add mshtml-uuid.o to libuuid.a
2003-03-30 Michael Sazonov <traip@comset.net>
* lib/uuid.c (IID_IHTML*): Add new GUID definitions.
* include/mshtml.h (IHTMLElementCollection, IHTMLLinkElement,
IHTMLImgElement): Add intetface definitions.
2003-03-29 21:31:15 +00:00
Corinna Vinschen
856a9750ba
* syscalls.cc (login): Fix comment.
...
(logout): Ditto.
2003-03-29 13:15:55 +00:00
Corinna Vinschen
8304de2e34
* syscalls.cc: Slightly cleanup all utmp functions.
...
(login): Use mutex to secure against concurrent access to wtmp file.
(logout): Rewrite using POSIX calls.
(utmp_fd): Initialized to -1 now. Any value < 0 is treated as closed
in subsequent functions.
(utmp_readonly): New variable, indicating utmp file open for reading
only.
(internal_setutent): New function implementing setutent().
(setutent): Call internal_setutent now.
(endutent): Reset utmp_readonly.
(getutent): Return immediately if utmp file can't be opened.
(getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto. Use mutex to secure against concurrent access to
utmp file.
2003-03-29 12:44:01 +00:00
Danny Smith
d9c55a44d6
* include/commctrl.h (ANIMATE_CLASS,HOTKEY_CLASS,PROGRESS_CLASS,
...
STATUSCLASSNAME,TOOLBARCLASSNAME,TOOLTIPS_CLASS,TRACKBAR_CLASS,
UPDOWN_CLASS,WC_COMBOBOXEX,WC_HEADER,WC_IPADDRESS,WC_LISTVIEW,
WC_TABCONTROL,WC_TREEVIEW): Move UNICODE mappings out of
RC_INVOKED guard.
(WC_PAGESCROLLER,WC_NATIVEFONTCTL,WC_BUTTON,WC_STATIC,WC_EDIT,
WC_LISTBOX,WC_COMBOBOX,WC_SCROLLBAR): Add defines.
2003-03-29 05:06:53 +00:00
Christopher Faylor
46c8214c77
* Makefile.in: Remove EXE_LDFLAGS. Fix fhandler_CFLAGS typo. Recognize .s
...
suffix.
* configure.in: Remove EXE_LDFLAGS.
* configure: Regenerate.
2003-03-29 04:20:45 +00:00
Christopher Faylor
b7f68d3e9d
* Makefile.common (ALL_CXXFLAGS): Make normal '=' type variable so that
...
CXXFLAGS is properly interpreted.
2003-03-29 04:15:52 +00:00
Danny Smith
247808c13b
2003-03-28 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winnt.h (WAITORTIMERCALLBACKFUNC): Add typedef.
2003-03-29 01:33:41 +00:00
Christopher Faylor
a7ab35c1bb
* include/sys/cygwin.h: Declare cygwin_internal as unsigned long.
...
* external.cc (cygwin_internal): Define as unsigned long.
* include/sys/cygwin.h: Move cygwin_internal outside of WINVER conditional.
2003-03-28 14:21:40 +00:00
Thomas Pfaff
eff6c00e19
* thread.cc: Change 1==foo equations to foo==1 throughout.
2003-03-27 19:57:06 +00:00
Thomas Pfaff
15648790f4
* thread.h: Change class names, methods, members and local vars
...
according to the GNU coding style.
* thread.cc: Ditto.
* dcrt0.cc (dll_crt0_1): Rename pthread::initMainThread call to
pthread::init_mainthread.
* pthread.cc (pthead_getsequence_np): Rename pthread::isGoodObject
call to pthread::is_good_object.
2003-03-27 19:52:20 +00:00
Thomas Pfaff
c65b504859
* winsup.api/pthread/rwlock1.c: Remove pthreads-win32 header.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
2003-03-27 19:46:35 +00:00
Thomas Pfaff
9b15aa7559
* winsup.api/pthread/condvar7.c (mythread): Cast
...
pthread_mutex_unlock argument of pthread_cleanup_push
to void *, preventing a compiler warning / testsuite failure.
* winsup.api/pthread/condvar9.c (mythread): Likewise.
* winsup.api/pthread/rwlock7.c (main): Use ftime instead of
_ftime.
2003-03-27 19:44:41 +00:00
Christopher Faylor
921587de50
note mount binary default.
2003-03-27 18:46:16 +00:00
Corinna Vinschen
98b36ec8ed
* autoload.cc: added RegGetKeySecurity()
...
* security.cc (get_nt_object_attribute): use RegGetKeySecurity() for
performance.
2003-03-27 09:40:25 +00:00
Danny Smith
2f4be7367e
* include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW],
...
TranslateName[AW]): Add prototypes.
* lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW],
TranslateName[AW]): Add stubs.
2003-03-27 08:10:46 +00:00
Joshua Daniel Franklin
6c7303cd5f
* setup-net.sgml: Make suggested additions to setup.exe documentation
2003-03-27 04:56:52 +00:00
Danny Smith
498268ef01
2003-03-27 Vladimir Michl <michlv@users.sourceforge.net>
...
* include/ddk/ndis.h (NdisAllocateSpinLock,NdisFreeSpinLock,
NdisAcquireSpinLock,NdisReleaseSpinLock,NdisDprAcquireSpinLock,
NdisDprReleaseSpinLock): Change macro argument from SpinLock to
_SpinLock.
2003-03-27 02:14:14 +00:00
Earnie Boyd
fc7c546387
* include/w32api.h: Increment version to 2.4.
...
* Makefile.in: Ditto.
2003-03-26 23:50:25 +00:00
Danny Smith
200738932f
Move some ddk defines to winnt.h as per MSDN documentation
...
* include/ddk/batclass.h (BATTERY_REPORTING_SCALE)
Move structure from here...
* include/winnt.h (BATTERY_REPORTING_SCALE): To here.
* include/ddk/ntapi.h (JOBOBJECT_*):
Remove structures and enums definitions.
(JOB_OBJECT*): Move defines from here...
* include/winnt.h (JOB_OBJECT* ): To here.
* include/ddk/ntpoapi.h (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES): Move enums, structures
and associated defines from here ...
* include/winnt.h: (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES):To here.
* include/ddk/winddk.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): Move enums
from here...
* include/winnt.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): To here.
2003-03-26 22:28:01 +00:00
Christopher Faylor
85738bf7e3
Joe Buehler <jhpb@draco.hekimian.com>
...
* fork.cc (fork_parent): Don't copy signals from parent to child here.
* sigproc.cc (proc_subproc): Copy signals from parent to child pinfo here.
2003-03-26 04:18:01 +00:00
Christopher Faylor
ce7a361072
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
...
correctly set.
2003-03-25 01:20:04 +00:00
Joshua Daniel Franklin
8fdbcd1279
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:43:33 +00:00
Joshua Daniel Franklin
0fd535061d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:35:52 +00:00
Joshua Daniel Franklin
489d990b9d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 16:23:52 +00:00
Thomas Pfaff
b2ee9a5565
*** empty log message ***
2003-03-23 10:56:19 +00:00
Thomas Pfaff
9306ba2ee4
* thread.h (class List): Move inline code inside class
...
declaration.
(List::forEach): Change callback parameter to template class
member functionpointer.
(pthread_keys::fixup_before_fork): Change to inline. Use
List::forEach to fixup keys.
(pthread_keys::fixup_after_fork): Ditto.
(pthread_keys::runAllDestructors): Ditto.
(pthread_key::saveAKey): Remove.
(pthread_key::restoreAKey): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(pthread_mutex::FixupAfterFork): New method.
(pthread_mutex::mutexes): New member.
(pthread_cond::fixup_after_fork): Change to inline. Use
List::forEach to fixup conds after a fork.
(pthread_cond::FixupAfterFork): New method.
(pthread_cond::conds): New member.
(pthread_rwlock::fixup_after_fork): Change to inline. Use
List::forEach to fixup rwlocks after a fork.
(pthread_rwlock::FixupAfterFork): New method.
(pthread_rwlock::rwlocks): New member.
(semaphore::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(semaphore::FixupAfterFork): New method.
(semaphore::semaphores): New member.
(MTinterface::mutexs): Remove.
(MTinterface::conds): Ditto.
(MTinterface::rwlocks): Ditto.
(MTinterface::semaphores): Ditto.
(pthread_equal): Add extern "C".
(pthread_mutex_lock): Ditto.
* thread.cc (MTinterface::fixup_after_fork): Change
fixup_after_fork calls for pthread objects.
(semaphore::conds): Instantiate.
(pthread_cond::pthread_cond): Use List::Insert rather than
custom list code.
(pthread_cond::~pthread_cond): Use List::Remove rather than
custom list code.
(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
(pthread_rwlock::rwlocks): Instantiate.
(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
custom list code.
(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
custom list code.
(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
(pthread_key::saveAKey): Remove.
(pthread_key::fixup_before_fork): Ditto.
(pthread_key::restoreAKey): Ditto.
(pthread_key::fixup_after_fork): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::runAllDestructors): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::mutexes): Instantiate.
(pthread_mutex::pthread_mutex): Use List::Insert rather than
custom list code.
(pthread_mutex::~pthread_mutex): Use List::Remove rather than
custom list code.
(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
(semaphore::conds): Instantiate.
(semaphore::semaphore): Use List::Insert rather than custom list
code.
(semaphores::~semaphore): Use List::Remove rather than custom
list code.
(semaphore::fixup_after_fork): Rename to FixupAfterFork.
2003-03-23 10:52:02 +00:00
Joshua Daniel Franklin
522fcf1615
* setup-net.sgml: Document setup.exe
2003-03-22 21:16:25 +00:00
Joshua Daniel Franklin
7d37d0459e
* setup-net.sgml: Document setup.exe
2003-03-22 20:03:41 +00:00
Christopher Faylor
ff3ef36d88
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
2003-03-22 18:30:58 +00:00
Christopher Faylor
ca04f61fc7
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
...
Fix typo in debugging output.
2003-03-22 17:48:40 +00:00
Christopher Faylor
89e7a1ced9
* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
...
for newer versions of bash.
2003-03-22 01:45:18 +00:00
Corinna Vinschen
fa85038b5f
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
...
SIGPIPE handling to connection oriented sockets. Add comment.
2003-03-20 08:53:28 +00:00
Christopher Faylor
4da34970de
* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
...
* exceptions.cc (signal_fixup_after_exec): Eliminate argument in definition.
Don't reset signal handlers after spawm. Just treat like fork/exec.
* dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
signal_fixup_after_exec.
* syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
Ditto for resetting of arguments.
2003-03-20 01:34:53 +00:00
Danny Smith
8e3121c535
*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
...
Thanks to: Vladimir Michl <michlv@users.sourceforge.net>
(NdisUpdateSharedMemory): Likewise.
(NdisMFreeSharedMemory: Likewise.
(NdisMMapIoSpace: Likewise.
2003-03-20 00:44:06 +00:00
Corinna Vinschen
036ac6b3a2
* glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
...
throughout.
2003-03-19 21:38:25 +00:00
Corinna Vinschen
b1897d27a8
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
...
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.
2003-03-19 21:34:38 +00:00
Corinna Vinschen
c16d09466b
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
...
Define.
* glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
instead of numerical constants.
(g_stat): Ditto.
2003-03-19 20:13:57 +00:00
Thomas Pfaff
6a80a133be
* pthread.cc (pthread_attr_init): Remove
...
(pthread_attr_destroy): Ditto.
(pthread_attr_setdetachstate): Ditto.
(pthread_attr_getdetachstate): Ditto.
(pthread_attr_setstacksize): Ditto.
(pthread_attr_getstacksize): Ditto.
(pthread_attr_setinheritsched): Ditto.
(pthread_attr_getinheritsched): Ditto.
(pthread_attr_setschedparam): Ditto.
(pthread_attr_getschedparam): Ditto.
(pthread_attr_setschedpolicy): Ditto.
(pthread_attr_getschedpolicy): Ditto.
(pthread_attr_setscope): Ditto.
(pthread_attr_getscope): Ditto.
(pthread_attr_setstackaddr): Ditto.
(pthread_attr_getstackaddr): Ditto.
(pthread_key_create): Ditto.
(pthread_key_delete): Ditto.
(pthread_setspecific): Ditto.
(pthread_getspecific): Ditto.
(pthread_kill): Ditto.
(pthread_sigmask): Ditto.
(pthread_equal): Ditto.
(pthread_mutex_lock): Ditto.
(pthread_mutex_trylock): Ditto.
(pthread_mutex_unlock): Ditto.
(pthread_mutex_destroy): Ditto.
(pthread_mutex_setprioceiling): Ditto.
(pthread_mutex_getprioceiling): Ditto.
(pthread_mutexattr_destroy): Ditto.
(pthread_mutexattr_getprioceiling): Ditto.
(pthread_mutexattr_getprotocol): Ditto.
(pthread_mutexattr_getpshared): Ditto.
(pthread_mutexattr_gettype): Ditto.
(pthread_mutexattr_init): Ditto.
(pthread_mutexattr_setprioceiling): Ditto.
(pthread_mutexattr_setprotocol): Ditto.
(pthread_mutexattr_setpshared): Ditto.
(pthread_mutexattr_settype): Ditto.
(pthread_cond_destroy): Ditto.
(pthread_cond_signal): Ditto.
(pthread_cond_broadcast): Ditto.
(pthread_condattr_init): Ditto.
(pthread_condattr_destroy): Ditto.
(pthread_condattr_getpshared): Ditto.
(pthread_condattr_setpshared): Ditto.
(pthread_rwlock_destroy): Ditto.
(pthread_rwlock_rdlock): Ditto.
(pthread_rwlock_tryrdlock): Ditto.
(pthread_rwlock_wrlock): Ditto.
(pthread_rwlock_trywrlock): Ditto.
(pthread_rwlock_unlock): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_rwlockattr_getpshared): Ditto.
(pthread_rwlockattr_setpshared): Ditto.
(pthread_rwlockattr_destroy): Ditto.
(pthread_getconcurrency): Ditto.
(pthread_setconcurrency): Ditto.
(pthread_getschedparam): Ditto.
(pthread_setschedparam): Ditto.
* thread.h (__pthread_attr_init): Remove prototype.
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
* thread.cc: Rename __pthread_equal to pthread_equal throughout.
Change pthread_self parameter appropriate.
(__pthread_attr_init): Remove __ prefix. Change to extern "C".
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
2003-03-18 20:12:05 +00:00
Thomas Pfaff
4fd9bca85e
* winsup.api/pthread/rwlock1.c: New test.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
* winsup.api/pthread/rwlock7.c: Ditto.
2003-03-18 20:04:24 +00:00
Thomas Pfaff
00d296a3f9
* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
...
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* include/cygwin/version.h: Bump API minor number.
* include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a
reasonable value.
Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init,
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon.
(PTHREAD_RWLOCK_MAGIC): New define.
(PTHREAD_RWLOCKATTR_MAGIC): Ditto.
(pthread_rwlockattr): New class.
(pthread_rwlock): Ditto.
(MTinterface::rwlocks): New member.
(MTinterface::MTinterface): Initialize rwlocks.
Add prototypes for __pthread_rwlock_destroy,
__pthread_rwlock_wrlock, __pthread_rwlock_trywrlock,
__pthread_rwlock_unlock, __pthread_rwlockattr_init,
__pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared,
and __pthread_rwlockattr_destroy.
* thread.cc (MTinterface::Init): Initialize rwlock internal mutex.
(MTinterface::fixup_after_fork): Fixup rwlocks after fork.
(pthread_rwlockattr::isGoodObject): Implement.
(pthread_rwlockattr::pthread_rwlockattr): Ditto.
(pthread_rwlockattr::~pthread_rwlockattr): Ditto.
(pthread_rwlock::initMutex): Ditto.
(pthread_rwlock::pthread_rwlock): Ditto.
(pthread_rwlock::~pthread_rwlock): Ditto.
(pthread_rwlock::RdLock): Ditto.
(pthread_rwlock::TryRdLock): Ditto.
(pthread_rwlock::WrLock): Ditto.
(pthread_rwlock::TryWrLock): Ditto.
(pthread_rwlock::UnLock): Ditto.
(pthread_rwlock::addReader): Ditto.
(pthread_rwlock::removeReader): Ditto.
(pthread_rwlock::lookupReader): Ditto.
(pthread_rwlock::RdLockCleanup): Ditto.
(pthread_rwlock::WrLockCleanup): Ditto.
(pthread_rwlock::fixup_after_fork): Ditto.
(pthread_rwlock::isGoodObject): Ditto.
(pthread_rwlock::isGoodInitializer): Ditto.
(pthread_rwlock::isGoodInitializerOrObject): Ditto.
(pthread_rwlock::isGoodInitializerOrBadObject): Ditto.
(__pthread_rwlock_destroy): Ditto.
(pthread_rwlock::init): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
2003-03-18 20:01:07 +00:00
Thomas Pfaff
5df1410028
* winsup.api/pthread/condvar7.c: New test.
...
* winsup.api/pthread/condvar9.c: Ditto.
2003-03-18 19:51:58 +00:00
Thomas Pfaff
f592b05df1
* thread.h (pthread_cond::ExitingWait): Remove.
...
(pthread_cond::mutex): Ditto.
(pthread_cond::cond_access): Ditto.
(pthread_cond::win32_obj_id): Ditto.
(pthread_cond::TimedWait): Ditto.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::waiting): Change type to unsigned long.
(pthread_cond::pending): New member.
(pthread_cond::semWait): Ditto.
(pthread_cond::mtxIn): Ditto.
(pthread_cond::mtxOut): Ditto.
(pthread_cond::mtxCond): Ditto.
(pthread_cond::UnBlock): New method.
(pthread_cond::Wait): Ditto.
* thread.cc: Update list of cancellation points.
(pthread_cond::pthread_cond): Rewrite.
(pthread_cond::~pthread_cond): Ditto.
(pthread_cond::TimedWait): Remove.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::UnBlock): Implement.
(pthread_cond::Wait): Ditto.
(pthread_cond::fixup_after_fork): Rewrite.
(pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP
conditional.
(__pthread_cond_broadcast): Just return 0 if the condition is
not initialized. Call pthread_cond::UnBlock to release blocked
threads.
(__pthread_cond_signal): Ditto.
(__pthread_cond__dowait): Rewrite.
(pthread_cond_timedwait): Add pthread_testcancel call. Fix
waitlength calculation.
(pthread_cond_wait): Add pthread_testcancel call.
2003-03-18 19:49:38 +00:00
Thomas Pfaff
0bad7c2e26
* winsup.api/pthread/mutex1n.c: New test.
...
* winsup.api/pthread/mutex6n.c: Ditto.
* winsup.api/pthread/mutex7n.c: Ditto.
2003-03-18 19:42:43 +00:00
Thomas Pfaff
2ff03dc2e0
* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
...
* thread.cc: Remove errno.h include.
(pthread::precreate): Change internal mutex type to normal.
(pthread_mutex::canBeUnlocked): Implement.
(pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
(pthread_mutex::Lock): Rename to _Lock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
Change lock_counter logic.
(pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
(pthread_mutex::SetOwner): Move to thread.h as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::fixup_after_fork): Change lock_counter logic.
(__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
types check.
* thread.h: Include errno.h and limits.h.
(MUTEX_LOCK_COUNTER_INITIAL): Remove.
(MUTEX_OWNER_ANONYMOUS): New define.
(pthread_mutex::canBeUnlocked): New static method.
(pthread_mutex::lock_counter): Change type to unsigned long.
(pthread_mutex::GetPthreadSelf): New method.
(pthread_mutex::Lock): Call _Lock with pthread_self pointer.
(pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
(pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
(pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
(pthread_mutex::SetOwner): Moved from thread.cc as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::_Lock): New method.
(pthread_mutex::_TryLock): New method.
(pthread_mutex::_UnLock): New method.
(pthread_mutex::_Destroy): New method.
2003-03-18 19:39:21 +00:00
Corinna Vinschen
dcd350f0ec
* fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
...
only on Windows NT. Read CPU Mhz value only on NT. Revert previous
change so cpuid instruction is called even on non-NT systems.
2003-03-18 09:30:03 +00:00
Danny Smith
bc1658ad66
* include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.
...
Thanks to: Fabricio D. Rossi <gurusoda@users.sourceforge.net>
(UF_SETTABLE_BITS): Correct UF_LOCKOUT here too.
2003-03-18 09:19:21 +00:00
Christopher Faylor
eeb65b9513
* Makefile.common (w32api_lib): Default to system w32api directory if w32api is
...
missing from source.
2003-03-17 23:13:26 +00:00
Christopher Faylor
298b2249e6
* Makefile.common: Fix typo from previous checkin.
2003-03-17 22:35:53 +00:00
Christopher Faylor
237ab58c28
* configure.in: w32api directory was already optional. Semi-revert 2003-02-06
...
change.
* configure: Regenerate.
* Makefile.common: Don't specific -nostdinc if there is no w32api directory.
2003-03-17 22:27:07 +00:00
Corinna Vinschen
c51dc9c245
* glob.c (g_lstat): Change API minor test to match API minor number
...
change in previous patch.
(g_stat): Ditto.
2003-03-17 20:44:10 +00:00
Christopher Faylor
f194ba1ff3
* include/cygwin/version.h: Reorganize last two api versions so that btowc and
...
trunc exports show up before previous bump since there has been no exported
version of the DLL with the 64 bit changes yet but 1.3.22 will have the btowc
and trunc.
2003-03-17 19:16:15 +00:00
Christopher Faylor
3543669fd3
* cygwin.din: Export btowc, trunc.
...
* include/cygwin/version.h: Reflect new exports.
* syscalls.cc (_stat): Rename to stat to avoid newlib wrapper.
* syscalls.cc (_fstat): Ditto.
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.
Add debugging output when console is freed.
(set_console_state_for_spawn): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console open flag
when vforking.
* sigproc.cc (sigproc_terminate): Fix debugging output.
* spawn.cc (handle): Eliminate second argument.
(spawn_guts): Reflect elimination of argument change to handle.
* syscalls.cc (setsid): Add debugging output when console is freed.
* syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on Win9x.
2003-03-17 19:08:11 +00:00
Danny Smith
4b170a4bf4
2003-03-17 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (EnumResourceLanguages[AW]): Correct prototypes.
(EnumResourceNames[AW]): Ditto.
(EnumResourceTypes[AW]): Ditto.
* include/wincon.h (CONSOLE_FONT_INFO): Add struct.
2003-03-17 10:01:07 +00:00
Danny Smith
48051a71ce
Get rid of some warnings
...
* mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
* mingwex/strtoimax.c (strtoimax): Likewise.
* mingwex/wcstoimax.c (wcstoimax): Likewise.
* mingwex/wtoll.c (wtoll): Remove unnecessary ';'
* mingwex/fesentenv.c: Include float.h.
* mingwex/math/powl.c: Eliminate type punning/strict aliasing
warning.
* mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
constants.
* mingwex/math/tgammal.c: Likewise.
2003-03-17 01:03:43 +00:00
Danny Smith
9bd09d45f0
2003-03-16 Toby Malone <malone@users.sourceforge.net>
...
* include/winuser.h (SendInput): Add prototype.
* lib/user32.def (SendInput): Add stub.
2003-03-17 00:14:39 +00:00
Danny Smith
f99ee1608c
* include/utime.h: New file, forwarding to sys/utime.h.
2003-03-16 22:23:58 +00:00
Danny Smith
5652f74ed2
* include/sys/param.h (MAXPATHLEN): Define.
2003-03-16 22:18:05 +00:00
Danny Smith
e685ccffdf
* include/tchar.h: Ansi-fy a comment.
2003-03-16 22:15:19 +00:00
Danny Smith
dcbe33d83a
* profile/profile.h (mcount): Use __builtin_return_address
...
rather than __asm statements.
* profile/Makefile.in: Remove special rule for mcount.o
Specify dependencies for mcount.o profil.o gmon.o.
2003-03-16 22:12:01 +00:00
Danny Smith
7729cf524f
2003-03-16 Vadim Yegorov <zg@bmg.lv>
...
* winioctl.h (FSCTL_SET_REPARSE_POINT: Correct macro.
(FSCTL_DELETE_REPARSE_POINT): Likewise.
2003-03-16 01:41:58 +00:00
Danny Smith
5b537130a3
2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
...
* winnt.h (JOBOBJECTINFOCLASS): Define enum.
(JOBOBJECT_*): Define corresponding structures.
2003-03-15 03:50:48 +00:00
Danny Smith
2359084b5b
2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect
typedef.
2003-03-13 Bang Jun-Young <junyoung@netbsd.org>
* lib/kernel32.def (Module32{First,Next}{,W}): Add missing exports.
(Process32{First,Next}{,W}): Ditto.
(Thread32{First,Next}): Ditto.
* include/ntdef.h (PCUNICODE_STRING): Add typedef.
2003-03-14 03:06:52 +00:00
Christopher Faylor
41ffdfa51e
* include/cygwin/version.h: Bump DLL minor number to 23.
2003-03-13 23:11:38 +00:00
Corinna Vinschen
5b186cd999
* autoload.cc (IsProcessorFeaturePresent): Add.
...
* fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
2003-03-13 22:53:16 +00:00
Corinna Vinschen
c58555c70f
* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
2003-03-13 22:32:40 +00:00
Corinna Vinschen
49a0d53c46
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
...
(cygwin_rexec): Ditto.
2003-03-13 11:31:24 +00:00
Christopher Faylor
6fcd5661fe
* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
...
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
2003-03-13 08:18:15 +00:00
Earnie Boyd
19bf3bcc3e
* include/mswsock.h: Correct invalid filter for _WINSOCK2_H.
...
Thanks to Jim Barton <jmbarton@users.sf.net>.
2003-03-12 23:36:54 +00:00
Christopher Faylor
0e2b01821a
fix typo
2003-03-12 17:21:31 +00:00
Christopher Faylor
df4bf7b98c
Checkin previously referred to in ChangeLog.
2003-03-12 06:28:27 +00:00
Danny Smith
c5e1d3ea74
2003-03-12 Ranjit Mathew <rmathew@hotmail.com>
...
* include/winnt.h (_IMAGE_SEPARATE_DEBUG_HEADER): Expose
member SectionAlignment.
2003-03-11 23:53:08 +00:00
Corinna Vinschen
aa39b7f7bf
* fhandler_socket.cc (fhandler_socket::dup): Don't call
...
fhandler_base::dup() but call DuplicateHandle directly instead to have
control over socket inheritence.
2003-03-11 16:49:58 +00:00
Earnie Boyd
296b2a5f17
* include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoid
...
warnings.
Thanks to Fabricio D. Rossi <gurusoda@users.sf.net>.
* Makefile.in (bindist): Correct process.
* lib/Makefile.in (install): Ditto.
Thanks to Jeff Bonnggren <jbon@users.sf.net>.
2003-03-11 14:44:58 +00:00
Corinna Vinschen
2afa7f5882
2003-03-11 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (fhandler_socket::dup): On NT systems avoid
using WinSock2 socket duplication methods. Add comment.
2003-03-11 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler_socket.cc (fhandler_socket::fixup_after_fork):
Set io_handle to INVALID_SOCKET in case of failure.
(fhandler_socket::dup): Return 0 if the io_handle is valid.
2003-03-11 13:05:36 +00:00
Danny Smith
970f752c8c
* include/stdlib.h (qsort): Remove const from first parm.
...
Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
2003-03-11 03:00:50 +00:00
Danny Smith
316d65dc72
* include/rasdlg.h: New file.
...
* lib/rasdlg.def: New file.
* lib/test.c: Include rasdlg.h.
2003-03-10 22:45:51 +00:00
Corinna Vinschen
556ceaeb58
* sec_acl.cc (setacl): Don't handle DELETE flag specially.
...
* security.cc (alloc_sd): Ditto.
2003-03-10 16:25:48 +00:00
Corinna Vinschen
6bbf711e68
Fix typo.
2003-03-09 22:13:27 +00:00
Corinna Vinschen
a201401c41
* winver.rc: Change Copyright hint to inlcude 2003.
2003-03-09 22:13:06 +00:00
Corinna Vinschen
b1aae492d0
Switch to 32/64 datatypes:
...
* Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
telldir truncate.
(NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
above.
* cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
members to __uid32_t and __gid32_t.
* cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
_fstat64 ftello64 _lseek64 mknod32 _open64.
* glob.c: Include perprocess.h.
(globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
getuid.
(g_lstat): Check for applications API version to call the appropriate
typed gl_lstat function.
(g_stat): Ditto for gl_stat.
* shm.cc (client_request_shm::client_request_shm): Call geteuid32
and getegid32 instead of geteuid and getegid throughout.
* syscalls.cc (_open64): New alias for open.
(_lseek64): New alias for lseek64.
(_fstat64): New alias for fseek64.
(mknod32): New function.
(mknod): Calls mknod32 now.
* winsup.h: Make function declarations for getuid32, geteuid32,
and getpwuid32 accessible for plain C sources. Add declarations
for getegid32 and getpwnam.
* include/cygwin/version.h: Bum API minor number to 78.
* include/sys/cygwin.h: Guard C++ specific members of struct
per_process against inclusion in plain C sources.
* include/sys/mman.h (mman): Add guard to avoid type clash when
compiling Cygwin.
2003-03-09 21:51:00 +00:00
Christopher Faylor
d580d86c80
fix typo
2003-03-09 20:54:12 +00:00
Christopher Faylor
659fb3ffd3
* include/cygwin/version.h: Bump DLL minor number to 21.
2003-03-09 20:50:11 +00:00
Christopher Faylor
a113a3c540
whitespace cleanup
2003-03-09 20:31:07 +00:00
Christopher Faylor
c367dfd02c
Do some minor reformatting of 'extern "C"' use throughout.
...
* autoload.cc (GetSystemTimes): Define new autoload function.
* fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
(fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases.
(format_proc_uptime): Use GetSystemTimes if available.
(read_value): New macro.
(print): New macro.
(cpuid): New function.
(can_set_flag): New function.
(format_proc_cpuinfo): New function.
(format_proc_partitions): New function.
2003-03-09 20:10:25 +00:00
Christopher Faylor
90fec0fa7a
* winsup.api/winsup.exp: Use -nostdinc when compiling.
...
* Makefile.in: Specifically search compiler include directory since it is now
stripped via -nostdinc.
2003-03-09 19:46:29 +00:00
Christopher Faylor
bc1c4e1e64
.
2003-03-09 19:29:22 +00:00
Christopher Faylor
cb837d41a7
* Makefile.common: Avoid double slashes in GCC_INCLUDE.
2003-03-09 19:22:15 +00:00
Corinna Vinschen
ef1aafb0f3
* getfacl.c (username): Fix ambiguous printf calls.
...
(groupname): Ditto.
(main): Ditto.
2003-03-09 19:04:23 +00:00
Christopher Faylor
36c4a441f6
* syscalls.cc (unlink): Attempt to be more clever about setting attributes of
...
file. Only open file in query mode to avoid having to mess with security stuff
for reading.
2003-03-09 18:10:42 +00:00
Corinna Vinschen
c379f2ed07
* winsup.api/ltp/fork10.c (main): Remove non-portable declaration
...
of lseek.
2003-03-09 17:53:06 +00:00
Corinna Vinschen
639ebe297b
* rmsym: Fix regular expression.
2003-03-09 17:13:46 +00:00
Christopher Faylor
6e0465c6bc
* Makefile.in: Use "cygwin0" rather than "new-cygwin" to denote in-build-tree
...
version of library or dll.
* config/default.exp: Ditto.
* winsup.api/winsup.exp: Ditto.
2003-03-09 17:03:05 +00:00
Christopher Faylor
3a1d827f5c
* Makefile.in: Change from using new-* to cygwin0 for temporary targets.
2003-03-09 17:01:41 +00:00
Corinna Vinschen
ca0e907143
* include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
2003-03-09 16:05:54 +00:00
Christopher Faylor
ed269ceaa2
* syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE to
...
delete files since this allows us to preserve the protection of hard linked
files.
(link): Generate full path for potentially recalculated .lnk target.
2003-03-09 00:10:29 +00:00
Christopher Faylor
35c6ce031e
missed in last checkin
2003-03-08 19:22:08 +00:00
Christopher Faylor
1114c3d059
Revert below changes regarding _pinfo::cmdline.
2003-03-08 17:56:13 +00:00
Corinna Vinschen
d66ac2bc52
* external.cc (cygwin_internal): Change n to __off64_t to match change
...
of _pinfo::cmdline.
* fhandler.h (class fhandler_virtual): Change filesize member to
__off64_t.
* fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
(format_proc_stat): Ditto.
(format_proc_uptime): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(format_process_statm): Ditto.
* pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
* pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
2003-03-08 16:44:25 +00:00
Christopher Faylor
762520f3bc
* path.h (PATH_LNK): New enum val.
...
(path_conv::is_lnk_symlink): New function. True if path represents .lnk style
symlink.
* path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
(symlink_info::check): Ditto. Remove PATH_LNK from pflags initially.
* syscalls.cc (unlink): Always remove readonly attribute from a symlink
regardless of type.
(link): (from Corinna Vinschen) Allow links to symlinks. Reset attributes on a
symlink after successful link creation.
(chmod): Use is_lnk_symlink where appropriate.
(rename): Ditto.
* tty.cc (create_tty_master): Call GetComputerName instead of
cygwin_gethostname. Set ut_id.
* syscalls.cc (login): Call endutent.
(setutent): Do not seek after a fresh open.
2003-03-08 03:36:39 +00:00
Corinna Vinschen
6f8102cb71
* syscalls.cc (seteuid32): Fix formatting.
2003-03-07 16:35:56 +00:00
Corinna Vinschen
e463d1ac53
* winsup.api/known_bugs.tcl: Remove fsync01, setregid01 and setreuid01
...
from list of known bugs.
2003-03-07 15:59:58 +00:00
Danny Smith
3332e57f26
2003-03-06 Christopher January <chris@atomice.net>
...
* include/winbase.h (FindFirstVolume): Add declaration.
(FindNextVolume): Add declaration.
(FindVolumeClose): Add declaration.
(GetSystemTimes): Add declaration.
* include/winnt.h: Add define for PF_XMMI64_INSTRUCTIONS_AVAILABLE.
2003-03-06 Danny Smith <dannysmith@users.sourceforge.net>
*lib/kernel32.def (GetSystemTimes): Add stub.
2003-03-07 00:51:19 +00:00
Thomas Pfaff
8824332846
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
...
prior to pthread objects.
2003-03-04 20:16:49 +00:00
Corinna Vinschen
12390bc40d
* fhandler_socket.cc (fhandler_socket::dup): Initialize type.
2003-03-04 16:35:00 +00:00
Christopher Faylor
a354f29e07
revert erroneous entry
2003-03-04 05:30:51 +00:00
Christopher Faylor
229f2bb465
* Makefile.in (strace.exe): Include mingw_getopt.o in link line.
...
* cygcheck.cc (print_version): Update copyright.
* strace.cc (print_version): Ditto.
(main): Allow cygwin paths for -o option.
(create_child): Allow cygwin path as argv[0].
* path.cc (path.cc): Allow UNC paths.
2003-03-04 05:30:50 +00:00
Christopher Faylor
c418817ed8
* fhandler.h (fhandler_tty_slave::close): Declare new function.
...
(fhandler_tty_slave::dup): Declare new function.
(fhandler_tty_slave::fixup_after_function): Declare new function.
* fhandler_tty.cc (fhandler_tty_slave_open): Only increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::close): Define new function. Decrement
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::dup): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::fixup_after_fork): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
2003-03-04 04:07:34 +00:00
Danny Smith
b99f1bf031
2003-03-04 Heiko Gerdau <hg@technosis.de>
...
* oleidl.h (IOleObject): Correct GetUserType prototype.
(IViewObject2): Correct GetExtent prototype.
* olectl.h (DISPIP_): Add new defines
* ocidl.h (IOleInPlaceSiteWindowless): Add new interface.
2003-03-04 00:36:06 +00:00
Christopher Faylor
e11fe31b55
* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
...
fhandler_console::open_fhs here.
(fhandler_pty_slave::close): Ditto for close.
2003-03-03 15:15:49 +00:00
Danny Smith
2b02bd3c3f
2003-03-03 Christopher Faylor <cgf@redhat.com>
...
* mingwex/getopt.c: Refresh from NetBSD sources.
2003-03-03 10:27:57 +00:00
Christopher Faylor
cffdb4b17f
* lib/getopt.c: Refresh from NetBSD sources.
2003-03-03 04:30:09 +00:00
Christopher Faylor
d5d2ffee38
* fhandler_console.cc (fhandler_console::close): Don't decrement in use counter
...
if in vfork fixup stage.
2003-03-03 03:58:10 +00:00
Danny Smith
f5eb407ed1
* mingwex/getopt.c: New file, copied from cygwin srcs.
...
* include/getopt.h: New file, copied from cygwin srcs.
* include/unistd.h: Include getopt.h.
* mingwex/Makefile.in ((DISTFILES): Add getopt.c.
(POSIX_OBJS): Add getopt.o.
2003-03-03 01:19:42 +00:00
Christopher Faylor
c2c6b1701a
* lib/getopt.c: Nuke use of unneeded BSDisms.
2003-03-02 22:52:18 +00:00
Christopher Faylor
8b19b43d00
* dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if
...
LoadLibraryEx fails.
* dtable.cc (dtable::dec_console_fds): Eliminate.
(dtable::release): Don't treat console specially.
(dtable::build_fhandler): Ditto.
* dtable.h (console_fds): Eliminate.
(dtable::dec_console_fds): Eliminate.
(dtable::inc_console_fds): Eliminate.
* fhandler.h (fhandler_console::open_fhs): New static element.
* fhandler_console.cc (fhandler_console::open): Increment open_fs.
(fhandler_console::close): Call FreeConsole if no more open consoles and ctty
is not associated with the console.
* syscalls.cc (setsid): Simplify check for when to call FreeConsole.
(check_pty_fds): Eliminate definition.
* winsup.h (check_pty_fds): Eliminate declaration.
2003-03-02 18:37:17 +00:00
Christopher Faylor
3efc65f7df
* dll_init.cc (dll_list::load_after_fork): Fix typo where result of LoadLibrary
...
was ignored.
2003-03-02 17:29:47 +00:00
Danny Smith
4aa3feb899
2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/stdio.h (vscanf): Add prototype.
(vfscanf): Ditto.
(vsscanf): Ditto.
(vwscanf): Ditto.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* include/wchar.h (vwscanf): Add prototype.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* mingwex/snprintf.c: Move to mingwex/stdio.
* mingwex/vsnprintf.c: Ditto.
* mingwex/snwprintf.c: Ditto.
* mingwex/vsnwprintf.c: Ditto.
* mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
(STDIO_DISTFILES): Add.
(DISTFILES): Adjust.
(STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
(LIB_OBJS): Adjust.
(dist): Adjust.
2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
* mingwex/stdio: New directory
* mingwex/stdio/vfscanf.c: New file.
* mingwex/stdio/vfwscanf.c: New file.
* mingwex/stdio/vscanf.c: New file.
* mingwex/stdio/vsscanf.c: New file.
* mingwex/stdio/vswscanf.c: New file.
* mingwex/stdio/vwscanf.c: New file.
2003-03-02 07:00:48 +00:00
Christopher Faylor
408e9b2fd4
fix typo
2003-03-02 06:50:27 +00:00
Joshua Daniel Franklin
34a50bf03f
Document new mkgroup,mkpasswd options
2003-03-01 17:29:51 +00:00
Pierre Humblet
f78765dadd
2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.cc (main): On Win95, output both a default line and a
line for the current user (if known) with a pseudorandom uid. If
the -u switch is given, produce a line for the specified user.
* mkgroup.cc (main): On Win95 change the group name from "unknown" to
"all".
2003-03-01 16:38:26 +00:00
Corinna Vinschen
5a082e9eac
* fhandler_socket.cc (fhandler_socket::bind): Open and write socket
...
file using Win32 calls.
2003-03-01 16:17:55 +00:00
Corinna Vinschen
9d913f071f
* fhandler_socket.cc (get_inet_addr): Open and read socket file using
...
Win32 calls.
2003-03-01 15:28:24 +00:00
Danny Smith
82569d7ac6
* include/olectl.h (OleLoadPictureEx) Add prototype.
...
(OleLoadPictureFile): Ditto.
(OleLoadPictureFileEx): Ditto.
(OleLoadPicturePath): Ditto.
(OleSavePictureFile): Ditto.
2003-03-01 09:34:12 +00:00
Danny Smith
c498f2e35a
* include/objbase.h (CoAddRefServerProcess): Add prototype.
...
(CoAddReleaseServerProcess): Ditto.
(CoResumeClassObjects): Ditto.
(CoSuspendClassObjects): Ditto.
* include/oleauto.h (V_I1): Define.
Thanks to: "Timofei" <mmttmm@users.sourceforge.net>
2003-03-01 07:19:36 +00:00
Danny Smith
8c061d6294
2003-03-01 Heiko Gerdau <hg@technosis.de>
...
* include/oleidl.h (USERCLASSTYPE): Add enum.
* include/ocidl.h (IObjectWithSite): Add interface.
2003-03-01 06:51:51 +00:00
Christopher Faylor
dbc49afd52
* Makefile.in (cygcheck.o): Fix so that actual mingw include files are used.
...
* cygcheck.cc (find_on_path): Translate from cygwin path when qualified path
name found.
(pretty_id): New function. Dump output of id command.
(dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2003-03-01 03:38:19 +00:00
Christopher Faylor
005c3065eb
* cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions.
...
* dcrt0.cc (cygwin_atexit): New function.
(cygwin_exit): Ditto.
2003-03-01 02:02:42 +00:00
Pierre Humblet
27b4082ae7
2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* syscalls.cc (fstat64): Pass get_name () to pc.
(access): Pass fn to stat_worker.
2003-02-28 23:52:48 +00:00
Danny Smith
3d5a4cbe6b
2003-02-28 Roland Schwingel <roland.schwingel@onevision.de>
...
Fixup UNICODE thinko in 2003-02-22 patch.
* include/wingdi.h (AddFontMemResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def: (AddFontResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-28 08:03:13 +00:00
Corinna Vinschen
5777b970bb
2003-03-27 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (class sock_event): New class managing Winsock
events for interruptible socket calls.
(fhandler_socket::connect): Move support for interruptible call to
class sock_event. Use class object instead.
(fhandler_socket::accept): Ditto. Remove useless casts.
2003-03-27 Thomas Pfaff <tpfaff@gmx.net>
* fhandler_socket.cc (fhandler_socket::connect): Add support for
an interruptable connect.
2003-02-27 21:41:28 +00:00
Corinna Vinschen
7b2ce66370
* uinfo.cc (internal_getlogin): Only update user.groups.pgsid
...
if the call to set the primary group succeeds.
2003-02-27 17:41:15 +00:00
Christopher Faylor
0e7a60fef9
* cygthread::detach: Improve error message.
2003-02-27 15:09:31 +00:00
Corinna Vinschen
61a525994a
* sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid.
2003-02-26 08:34:34 +00:00
Earnie Boyd
5ffa5aaa5c
* Makefile.in (libmsvcrt20.a): Remove target and dependencies.
...
(libmsvcrt40.a): Ditto.
2003-02-25 13:07:46 +00:00
Corinna Vinschen
6b9a9ce6ba
* mmap.cc (mmap64): Fix returned address by taking the granularity
...
into account.
2003-02-25 12:46:39 +00:00
Pierre Humblet
1ffc44aaf7
2003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
...
* syslog.cc (syslog): Do not unlock the file before closing it
and remove debug_printf about stream errors.
2003-02-23 19:12:55 +00:00
Danny Smith
cc379158bb
2003-02-23 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (EVENTLOG_SUCCESS): Add define.
Thanks to: Thomas Weber <thomasweber@sourceforge.net>
2003-02-23 08:31:37 +00:00
Christopher Faylor
b59e1aaceb
whitespace
2003-02-22 23:03:26 +00:00
Christopher Faylor
a066f3645b
* cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true. # cygwin.din:
...
Export mallinfo. # malloc_wrapper.cc (mallinfo): New function.
2003-02-22 23:02:15 +00:00
Christopher Faylor
878e60c561
* syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin pid as an
...
unsigned decimal. On Win95 print a timestamp and attempt to lock the file up
to four times in 3 ms.
2003-02-22 19:35:03 +00:00
Danny Smith
fe96201935
2003-02-22 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto.
2003-02-22 11:32:30 +00:00
Danny Smith
d17d85ec0c
2003-02-22 Bang Jun-Young <junyoung@netbsd.org>
...
* lib/ntdll.def (NT*, RTL*, ZW*): Add missing exports.
(NtCurrentTeb): Remove.
2003-02-22 10:43:46 +00:00
Danny Smith
f06b65e352
* include/wsahelp.h: Remove ';' after closing
...
#ifdef __cplusplus brace.
* include/ws2spi.h: Likewise.
2003-02-22 10:21:39 +00:00
Danny Smith
dffcc5d324
* include/winbase.h (MEMORYSTATUSEX): Add structure.
...
(GlobalMemoryStatusEx): Add prototype.
* lib/kernel32.def (GlobalMemoryStatusEx): Add stub.
2003-02-22 10:16:22 +00:00
Earnie Boyd
ab664f2d53
Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
...
this patch.
* Makefile.in (libmsvcrtd.a): Add target library.
(libmoldnamed.a): Ditto.
(msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
template to create.
($(srcdir)): Remove explicit reference for depencies of object targets.
* moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
msvcrt20.def, msvcrt40.def: Remove.
* msvcrt.def.in: New file (Copy of previous msvcrt.def).
2003-02-21 21:12:29 +00:00
David Starks-Browning
a0c8d53b5a
various updates to setup entries. Stronger emphasis to use setup, and only setup.
...
(no more "work in progres ... ")
2003-02-21 20:37:47 +00:00
David Starks-Browning
45fb46b48d
new link to "How To Ask Questions The Smart Way" by Eric S. Raymond, added to Posting Guidelines entry
2003-02-21 20:13:55 +00:00
David Starks-Browning
b0484ae4d9
remove tired subtitle "(Not completely updated for the latest net release, but still useful!)"
2003-02-21 20:00:54 +00:00
Corinna Vinschen
b1d1e50d04
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler
...
warning.
(fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective
uid/gid of current process in case of open sockets.
2003-02-21 14:59:35 +00:00
Corinna Vinschen
cf762b08cf
* dtable.cc (dtable::build_fhandler_from_name): Set some fhandler
...
data on sockets to evaluate AF_LOCAL sockets correctly.
(dtable::build_fhandler): Set unit number on sockets.
* fhandler.h (fhandler_socket): Add unit number.
(fhandler_socket::get_unit): New method.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit
number.
(fhandler_socket::fstat): Reorganize to return more Linux-like
values.
* net.cc: include ctype.h.
(fdsock): Set unit number when building fhandler.
* path.cc (path_conv::check): Set device type to FH_SOCKET if file
is a AF_UNIX socket.
(get_devn): Evaluate unit for virtual socket devices.
(win32_device_name): Set windows path for sockets to unix_path with
just backslashes to keep the different names.
* syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev
for sockets.
(stat_worker): Ditto.
From Pierre Humblet:
* autoload.cc (AccessCheck): Add.
(DuplicateToken): Add.
* security.h (check_file_access): Declare.
* syscalls.cc (access): Convert path to Windows, check existence
and readonly attribute. Call check_file_access instead of acl_access.
* security.cc (check_file_access): Create.
* sec_acl (acl_access): Delete.
2003-02-21 14:29:18 +00:00
Christopher Faylor
5cd8241242
* fhandler.cc (fhandler_base::open): Move some filesystem specific stuff.
...
(fhandler_disk_file::open): Accept some filesystem specific stuff.
* sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
(sig_send): Don't assume that signal thread is ready.
2003-02-21 04:33:53 +00:00
Corinna Vinschen
892d896274
* wincap.h (wincap): Remove unnecessary definition of
...
supports_sparse_files.
* wincap.cc: Ditto.
2003-02-20 15:58:55 +00:00
Corinna Vinschen
518f5d4935
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
...
created by cygheap_fdnew constructor.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* fhandler_socket.cc (fhandler_socket::accept): Ditto and move
creation of file descriptor behind blocking OS call.
* net.cc (cygwin_socket): Ditto.
(cygwin_rcmd): Ditto.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
(socketpair): Ditto.
2003-02-20 14:14:37 +00:00