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
Corinna Vinschen
1374b148ba
* winsup.api/crlf.c: Fix C signed/unsigned compare warning.
...
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/ltp/chmod01.c: Ditto.
* winsup.api/ltp/fork04.c: Ditto.
* winsup.api/ltp/lseek03.c: Ditto.
* winsup.api/ltp/lseek06.c: Ditto.
* winsup.api/ltp/lseek07.c: Ditto.
* winsup.api/ltp/lseek08.c: Ditto.
* winsup.api/ltp/mmap001.c: Ditto.
* winsup.api/ltp/mmap02.c: Ditto.
* winsup.api/ltp/mmap03.c: Ditto.
* winsup.api/ltp/mmap04.c: Ditto.
* winsup.api/ltp/mmap05.c: Ditto.
* winsup.api/ltp/mmap06.c: Ditto.
* winsup.api/ltp/mmap07.c: Ditto.
* winsup.api/ltp/mmap08.c: Ditto.
* winsup.api/ltp/pipe11.c: Ditto.
* winsup.api/ltp/poll01.c: Ditto.
* winsup.api/ltp/sync02.c: Ditto.
* winsup.api/ltp/times03.c: Ditto.
* winsup.api/ltp/umask03.c: Ditto.
* winsup.api/ltp/getpgid01.c: Remove unused obsolete include.
* winsup.api/ltp/getpgid02.c: Ditto.
2003-02-20 11:22:17 +00:00
Corinna Vinschen
3a88cf1b10
* autoload.cc (GetCompressedFileSize): Add.
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
st_blocks value from GetCompressedFileSize() if available.
2003-02-20 11:12:44 +00:00
Corinna Vinschen
7920792369
w32api:
...
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
cygwin:
* wincap.h (wincaps::supports_sparse_files): New flag.
(wincapc::supports_sparse_files): New method.
* wincap.cc (wincap_unknown): Define value for the new flag.
(wincap_95): Ditto.
(wincap_95osr2): Ditto.
(wincap_98): Ditto.
(wincap_98se): Ditto.
(wincap_me): Ditto.
(wincap_nt3): Ditto.
(wincap_nt4): Ditto.
(wincap_nt4sp4): Ditto.
(wincap_2000): Ditto.
(wincap_xp): Ditto.
* path.h (path_conv::fs_flags): New method.
* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
(fhandler_disk_file::open): Set newly created and truncated files as
sparse on platforms that support it.
2003-02-20 10:14:53 +00:00
Corinna Vinschen
3f3d479490
* Makefile.in: Make sure libmingwex.a from current build tree is used.
2003-02-20 10:12:15 +00:00
Corinna Vinschen
afe13e8454
* grp.cc (internal_getgroups): Handle properly tokens with
...
no groups. Fix bug introduced on 2003-02-04.
2003-02-18 10:09:37 +00:00
Christopher Faylor
8fc16812e8
* cygwin.din: Export all appropriate newlibc libm functions. Sort.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-16 19:31:07 +00:00
Christopher Faylor
f655eadfb4
* cygwin.din: Export all appropriate newlib functions.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-15 21:45:09 +00:00
Corinna Vinschen
4d9ba012a9
* mmap.cc (mprotect): Add missing break.
2003-02-14 21:15:16 +00:00
Christopher Faylor
8df75c3736
* profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to ensure
...
-mno-cygwin where appropriate. Filter out -O2.
2003-02-14 19:25:12 +00:00
Christopher Faylor
dff01e3aa8
* exceptions.cc (try_to_debug): Don't reset priority when returning from
...
non-waitloop call.
2003-02-14 02:52:29 +00:00
Danny Smith
6a25a6219c
Fix typo in last ChangeLog entry.
2003-02-14 00:45:17 +00:00
Danny Smith
4d658cfcd2
* profile/Makefile.in (mcount,o): Use -O1 optimization
...
switch to compile.
2003-02-14 00:42:35 +00:00
Christopher Faylor
d1d1797eb7
* fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep for
...
bell sound.
* autoload.cc (MessageBeep): Add.
2003-02-13 23:51:41 +00:00
Christopher Faylor
97c61aeba5
* include/cygwin/types.h: Use correct ifdef guard for u_ definitions.
2003-02-13 15:37:07 +00:00
Christopher Faylor
a200c081f5
* environ.cc (environ_init): Use strechr.
2003-02-13 15:17:11 +00:00
Christopher Faylor
9bebf38451
oops.
2003-02-13 15:16:33 +00:00
Christopher Faylor
2858de3a00
* include/cygwin/in.h (sockaddr_in): Fix typo.
2003-02-13 15:15:32 +00:00
Christopher Faylor
46b3d18661
fix typo
2003-02-13 14:20:32 +00:00
Christopher Faylor
9660d164f5
* how.texinfo: Add more w32api words.
2003-02-13 14:18:23 +00:00
Christopher Faylor
75c8a70c95
* path.h (path_conv): Reorganize slightly.
2003-02-13 03:13:37 +00:00
Christopher Faylor
939d19b0da
* fhandler_tty.cc (process_input): Add sanity check to ensure that console
...
typeahead is cleared on signal.
2003-02-13 02:56:36 +00:00
Christopher Faylor
7a44ba059b
* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.
2003-02-13 02:52:41 +00:00
Christopher Faylor
4cf24d1442
* MAINTAINERS: Remove out-of-date file.
2003-02-13 02:41:44 +00:00
Christopher Faylor
7ca68b7ec3
* cygpath.cc (doit): Allocate more space for non-path filename.
2003-02-12 22:48:13 +00:00
Danny Smith
31ad033df2
2003-02-12 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto
(FR_PRIVATE): Define.
(FR_NOT_ENUM): Define.
* lib/gdi32.def (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-12 21:15:13 +00:00
Danny Smith
de8eec5609
* include/math.h: Remove _CRTIMP from pow() prototype,
...
unless __NO_ISOCEXT.
2003-02-10 23:56:04 +00:00
Christopher Faylor
407b8df695
* include/cygwin/in.h (in_attr_t): Define new type.
...
* include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
(inet_lnaof): Ditto.
(inet_netof): Ditto.
(inet_network): Ditto.
* include/cygwin/types.h: Move many *_t typedefs here. Protect them with
ifdefs.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to
mode_t.
* security.cc (get_attribute_from_acl): Accept mode_t attribute.
(get_nt_attribute): Ditto.
(get_file_attribute): Ditto.
(get_nt_object_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h: Reflect above changes.
* syscalls.cc (chown_worker): Change attrib to mode_t.
2003-02-10 22:43:29 +00:00
Danny Smith
eff24ab9c5
* mingwex/math/cephes_emath.h: Don't redefine INFINITY.
2003-02-10 22:38:36 +00:00
Danny Smith
14e54d7c97
* include/_mingw.h (_CRTIMP): Define for __GNUC__ if
...
__declspec(dllimport) supported.
(__cdecl): Define if not already defined.
(__stdcall): Likewise.
* include/dirent.h: Qualify fuctions with __cdecl.
* include/fenv.h: Likewise.
* include/inttypes.h: Likewise.
* include/assert.h: Qualify fuctions with __cdecl. Qualify
CRT dll imports with _CRTIMP.
* include/conio.h: Likewise.
* include/ctype.h: Likewise.
* include/direct.h: Likewise.
* include/dos.h: Likewise.
* include/errno.h: Likewise.
* include/float.h: Likewise.
* include/io.h: Likewise.
* include/locale.h: Likewise.
* include/malloc.h: Likewise.
* include/math.h: Likewise.
* include/mbctype.h: Likewise.
* include/mbstring.h: Likewise.
* include/process.h: Likewise.
* include/setjmp.h: Likewise.
* include/signal.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/time.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/timeb.h: Likewise.
* include/sys/utime.h: Likewise.
* include/ctype.h: Guard ctype inlines with __NO_INLINE__.
* include/wctype.h: Guard wctype inlines with __NO_INLINE__.
* include/stdio.h (__VALIST): Guard against prior definition.
2003-02-10 21:13:34 +00:00
Earnie Boyd
16f4e17208
* include/w32api.h: Increment version to 2.3.
...
* Makefile.in: Ditto.
2003-02-10 14:14:01 +00:00
Earnie Boyd
5518d083b4
* include/GL/gl.h: Remove include of glext.h.
...
Thanks to Greg Couch <gregcouch@users.sf.net>
2003-02-09 14:04:56 +00:00
Earnie Boyd
4fa551dbc4
* include/secext.h: New file. Declare EXTENDED_NAME_FORMAT.
...
* include/security.h: Include secext.h.
* include/winbase.h: Declare COMPUTER_NAME_FORMAT.
Thanks to Dimitri Papadopoulos <dimitri_at@users.sf.net>
2003-02-09 14:02:30 +00:00
Earnie Boyd
f3c5821cb7
* lib/ddk/ntoskrnl.def (Ke386IoSetAccessProcess): Activate export.
...
(Ke386QueryToAccessMap): Ditto.
(Ke386SetIoAccessMap): Ditto.
Thanks to Marcel Telka <telka@users.sf.net>
2003-02-09 13:25:36 +00:00
Christopher Faylor
67c64e3b2e
clarify
2003-02-08 17:13:46 +00:00
Christopher Faylor
ad80bc4224
* include/cygwin/version.h: Bump DLL minor number.
...
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
changes.
2003-02-08 17:03:34 +00:00
Christopher Faylor
9c88207cf3
* winsup.api/winsup.exp (ws_spawn): Tweak slightly to work with tcl 8.4.1.
2003-02-08 16:46:32 +00:00
Earnie Boyd
994d26a476
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-02-08 14:58:31 +00:00
Earnie Boyd
9d55ae91b8
* include/stdlib.h: Make words after #endif a comment.
2003-02-08 14:30:29 +00:00
Christopher Faylor
9cca06eea1
* libltp/lib/parse_opts.c: Deal with C warnings.
...
* winsup.api/pthread/cancel12.c: Ditto.
* winsup.api/winsup.exp: Don't use -g3.
2003-02-08 02:56:49 +00:00
Christopher Faylor
3202ad2b9e
* dump_setup.cc (compar): Use case insensitive comparisons.
...
(dump_setup): Calculate package_len based on already used "len". Don't bother
with version_len.
2003-02-07 21:34:34 +00:00
Corinna Vinschen
eceb45bdff
* dump_setup.cc (dump_setup): Compute the longest package name
...
and align columns properly.
2003-02-07 21:11:44 +00:00
Corinna Vinschen
4a41db9e74
* ntsec.sgml: Add note on special names for missing user/group.
2003-02-07 20:59:19 +00:00
Corinna Vinschen
4136fdb16b
* mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
...
parameter. Only protect pages actually unused currently. Do job
of map_map() when initializing a map.
(mmap_record::map_map): Reduce functionality for the reuse case
of private anonymous mapping.
(mmap_record::fixup_map): Format change.
(list::add_record): Add offset and length parameter to call
mmap_record::alloc_map() correctly.
(mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
(munmap): Rename `l' variable to `map_list'.
(msync): Ditto.
(fhandler_disk_file::mmap): Streamline code.
(mprotect): Ditto.
(fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
2003-02-07 20:57:30 +00:00
Christopher Faylor
49b84ce441
Christopher Faylor <cgf@redhat.com>
...
* exceptions.cc (try_to_debug): Set priority of current thread rather than the
main thread. Make busy waiting loop less busy. Restore priority when function
returns.
2003-02-07 15:00:57 +00:00
Christopher Faylor
bc5b63edab
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
...
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 06:15:10 +00:00
Christopher Faylor
44a30b4510
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 05:48:58 +00:00
Christopher Faylor
4a9cbef09d
* cygcheck.cc (common_apps): Add some more apps.
...
* path.cc (get_cygdrive): Correctly set system flag.
2003-02-07 04:51:26 +00:00
Christopher Faylor
1de8d16415
* heap.cc (heap_init): Remove debugging code.
2003-02-07 04:13:41 +00:00
Christopher Faylor
45b314b1ad
* configure.in: Make w32api directory optional.
...
* configure: Regenerate.
2003-02-07 03:45:15 +00:00
Danny Smith
500ed83f45
* include/locale.h: Include stddef.h for definition of NULL.
2003-02-07 02:13:55 +00:00
Corinna Vinschen
565e80155b
* security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
...
declaration of is_grp_member.
* uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
* passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
* grp.cc (pwdgrp::read_group): Change group name to provide better
feedback.
(getgrgid): Use gid16togid32.
* sec_helper.cc (is_grp_member): Delete.
2003-02-06 14:01:54 +00:00
Joshua Daniel Franklin
f865f0c479
* setup-net.sgml: Add "setup-maxmem" section
2003-02-06 02:52:14 +00:00
Christopher Faylor
d238c1b453
* path.cc: Change 'to_posix_p' to 'to_posix' throughout.
...
(conv_path_list_buf_size): Accommodate relative paths.
2003-02-05 21:12:58 +00:00
Christopher Faylor
b7f52fe81a
* path.cc (etc::dir_changed): Fix debug printf.
2003-02-05 16:40:51 +00:00
Corinna Vinschen
62cd433e98
* sec_acl.cc (setacl): Move all permission settings to beginning of
...
loop. Set default rights to same values as in alloc_sd(). Set DELETE
for owner and default owner only if S_IWOTH is given.
* sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
wrapper function definitions. Replace call to the aclXYZ functions by
calls aclXYZ32.
(searchace): Change type of third argument to __uid32_t and use
ILLEGAL_UID instead of -1;
(setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
for S_IWOTH. Replace -1 by ILLEGAL_UID.
(getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
In last else clause, suppress second call to ace_sid.get_id and use
TRUE in first call. Replace EqualSid by ==.
(acl_access): Call internal_getgroups in USER and GROUP cases.
(acecmp: Define static.
(acl32): Create from 16 bit type.
(facl32): Ditto.
(lacl32): Ditto.
(aclcheck32): Ditto.
(aclsort32): Ditto.
(acltomode32): Ditto.
(aclfrommode32): Ditto.
(acltopbits32): Ditto.
(aclfrompbits32): Ditto.
(acltotext32): Ditto.
(aclfromtext32): Ditto, and use strechr.
(acl16to32): Create.
(acl): Make it a wrapper function.
(facl): Ditto.
(lacl): Ditto.
(aclcheck): Ditto.
(aclsort): Ditto.
(acltomode): Ditto.
(aclfrommode): Ditto.
(acltopbits): Ditto.
(aclfrompbits): Ditto.
(acltotext): Ditto.
(aclfromtext): Ditto.
* security.cc (write_sd): Call set_process_privilege and check
ownership.
(alloc_sd): Remove call to set_process_privilege and the owner check.
2003-02-05 16:15:22 +00:00
Earnie Boyd
33c7867ef1
* include/basetypes.h (_GUID_DEFINED): Add deprecation warning, start
...
using GUID_DEFINED instead.
* include/sqltypes.h: Ditto.
* include/winnt.h: Ditto.
* include/ddk/scsiwmi.h: Ditto.
2003-02-05 15:51:27 +00:00
Christopher Faylor
cadd065b63
* include/sys/cygwin.h: Use C-style comments.
2003-02-05 14:14:26 +00:00
Corinna Vinschen
0c8455c344
* sec_helper.cc (get_sids_info): New function.
...
* security.cc (extract_nt_dom_user): Simplify with strechr.
(get_user_groups): Initialize glen to MAX_SID_LEN.
(get_user_local_groups): Ditto.
(get_attribute_from_acl): Define ace_sid as cygpsid.
(get_nt_attribute): Define owner_sid and group_sid as cygpsid.
Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
(get_nt_object_attribute): Ditto.
(alloc_sd): Define ace_sid as cygpsid.
2003-02-05 13:47:47 +00:00
Danny Smith
b7b6c58a20
Correct typo in last changelog entry.
2003-02-04 22:21:45 +00:00
Danny Smith
ccbb9a6490
* include/shlwapi.h (PathRelativePathTo[AW]): Correct
...
protototypes.
Thanks to: John Dallaway <jld@ecoscentric.com>.
2003-02-04 22:17:38 +00:00
Thomas Pfaff
5ae9331a32
* syscalls.cc (struct system_cleanup_args): New struct.
...
(system_cleanup): New function.
(system): Use pthread_cleanup_push and _pop to save and restore
signal handlers and sigprocmask.
2003-02-04 19:49:39 +00:00
Thomas Pfaff
53c384f206
* winsup.api/pthread/cancel11.c: New test.
...
* winsup.api/pthread/cancel12.c: Ditto.
2003-02-04 19:34:21 +00:00
Corinna Vinschen
3dbafd873e
* path.cc (symlink): Create security attributes so that only the
...
user can modify the symlink.
* security.cc (set_security_attribute): Remove symlink special
handling.
2003-02-04 19:26:01 +00:00
Corinna Vinschen
0daf256192
* grp.cc (internal_getgroups): Do not return without closing
...
the process handle.
2003-02-04 17:53:08 +00:00
Corinna Vinschen
4a21c2d5c8
* security.h (class cygpsid): New class.
...
(class cygsid): Use cygpsid as base. Remove members psid, get_id,
get_uid, get_gid, string, debug_printf and the == and != operators.
(cygsidlist::clear_supp): Only do work if setgroups has been called.
* sec_helper.cc: Define sid_auth NO_COPY.
(cygpsid::operator==): New operator.
(cygpsid::get_id): New function.
(cygpsid::string): New function.
(cygsid::string): Delete.
(cygsid::get_id): Delete.
* pwdgrp.h: Change arguments of internal_getpwsid,
internal_getgrsid and internal_getgroups to cygpsid.
* passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
* grp.cc (internal_getgrsid): Ditto.
(internal_getgroups): Ditto.
2003-02-04 14:58:04 +00:00
Christopher Faylor
335556d58b
Eliminate most unneeded this-> pointers throughout.
2003-02-04 03:01:17 +00:00
Corinna Vinschen
153e83c605
* security.h: Add third argument to set_process_privilege.
...
* autoload.cc: Add OpenThreadToken.
* sec_helper.cc (set_process_privilege): Add and use use_thread
argument.
* security.cc (alloc_sd): Modify call to set_process_privilege.
Remember the result in each process. If failed and file owner is not
the user, fail.
2003-02-03 15:55:20 +00:00
Corinna Vinschen
f0f3ea68f3
* fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
...
length and don't set errno in case of WSAEMSGSIZE error.
(fhandler_socket::recvmsg): Ditto.
2003-02-03 15:34:52 +00:00
Joshua Daniel Franklin
46c1de5bf7
* cygwinenv.sgml: Add section for 'CYGWIN codepage:[ansi|oem]'
2003-02-03 00:30:45 +00:00
Christopher Faylor
6688a0618e
* grp.cc (getgrent32): Only refresh group entries when at beginning.
...
(internal_getgrsid): Only refresh if uninitialized.
(internal_getgrent): Ditto.
* passwd.cc (getpwent): Only refresh passwd entries when at beginning.
(pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
(internal_getpwsid): Only refresh if uninitialized.
(getpass): No need to refresh passwd data here.
* pwdgrp.h (refresh): Eliminate default.
2003-02-01 18:41:29 +00:00
Danny Smith
05d2a9a4fb
* include/commctrl.h (TCM_*): Add missing defines.
2003-02-01 11:38:31 +00:00
Danny Smith
93dfea5667
2003-02-01 Jesus Alvarez <jesus_alvarez@users.sourceforge.net>
...
Danny Smith <dannysmith@users.sourceforge.net>
* include/prsht.h (PSP_*, PSH_*): Add missing defines.
(PROPSHEETPAGE[AW]): Add pszHeaderTitle, pszHeaderSubTitle
for (_WIN32_IE >= 0x0400).
(PROPSHEETHEADER[AW]): Add hplWatermark and anonymous union
fields for (_WIN32_IE >= 0x0400).
2003-02-01 08:53:17 +00:00
Christopher Faylor
a5a93a62b2
* dlfcn.cc (dlerror): Only report load errors once per error.
2003-02-01 05:00:15 +00:00
Christopher Faylor
b0a82a859d
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting of res.
...
* termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
* fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking so that
if any Win32 SetComm*() calls fail, errno gets set to EINVAL and tcsetattr()
returns -1. Catch invalid bitrates, mostly. If baud rate setting is B0, just
drop DTR and leave Win32 DCB bitrate as-is since 0 is not a valid Win32
setting.
(fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as B0,
otherwise get it from the DCB.
2003-02-01 04:48:03 +00:00
Christopher Faylor
949c3da11a
* passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from Pierre
...
Humblet).
* pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already have
lock since that means we are in the process of reading the file.
2003-01-31 17:00:42 +00:00
Christopher Faylor
485d85bfa7
* shared.cc (shared_info::heap_chunk_size): Use correct variable when reading
...
HKLM.
2003-01-31 15:02:40 +00:00
Danny Smith
28c098e3f4
2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (CreateFiber): Change first parameter
to SIZE_T.
(CreateJobObject[AW], CreateHardLink[AW]): Guard with
(_WIN32_WINNT >= 0x0500).
2003-01-31 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW):
Add missing typedefs.
(CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing
prototypes.
(CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE.
2003-01-31 08:28:44 +00:00
Christopher Faylor
704ce46198
* fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one error when
...
inspecting path.
2003-01-30 23:15:15 +00:00
Christopher Faylor
ba6e108396
* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT behavior.
2003-01-30 01:14:30 +00:00
Corinna Vinschen
01e3c89709
* fhandler_socket.cc (fhandler_socket::accept): On successful execution
...
set connection state of returned socket to CONNECTED.
2003-01-28 15:33:50 +00:00
Danny Smith
500acc57eb
2003-01-27 Krzysztof Nikiel <kni@poczta.onet.pl>
...
* include/mmsystem.h (MIXERCONTROL_CONTROLF_MULTIPLE): Correct
define.
* lib/largeint.c (LargeIntegerAdd): Add, don't multiply.
2003-01-27 23:11:13 +00:00
Christopher Faylor
dfb366da5a
* passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about non-numeric
...
fields.
2003-01-27 17:00:17 +00:00
Christopher Faylor
ca6018a0d3
fix typo
2003-01-27 15:58:15 +00:00
Danny Smith
d2f9f641d9
2003-01-27 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/rpcnterr.h (RPC_X_INVALID_PIPE_OPERATION): Add
define.
* include/winbase.h (WAIT_TIMEOUT): Guard against prior
definition.
(WAIT_FAILED): Cast to DWORD.
* include/winerror.h (WAIT_TIMEOUT): Guard against prior
definition.
2003-01-27 Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h: Protect against multiple
definition of WSA* error codes.
* include/winsock.h: Likewise.
* include/winsock2.h: Likewise.
2003-01-27 Bang Dong-Heui
Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h (ERROR_*, SEC_E_*,RPC_S_*, FRS_ERR_*,
DNS_*, WSA*, WAIT_TIMEOUT): Add missing error codes.
(RPC_X_INVALID_PIPE_OPERATION): Remove define.
2003-01-27 07:15:17 +00:00
Christopher Faylor
03dba1defa
* uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no longer a
...
valid return from next_str.
(pwdgrp::add_line): Duh. Revert to use strchr.
2003-01-27 00:31:30 +00:00
Christopher Faylor
fea48988ea
* strings.h (strechr): New function.
...
* uinfo.cc (pwdgrp::next_str): Search only for input char in string. Return
EOS on failure. Don't check for NULL since it shouldn't be possible.
(pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
(pwdgrp::next_num): Pass explicit separator character to next_str.
* grp.cc (pwdgrp::parse_group): Ditto.
* passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage input.
* pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
2003-01-27 00:16:01 +00:00
Danny Smith
232cca6b0c
* include/math.h (tgamma): Correct typo in comment.
2003-01-26 07:04:04 +00:00
Christopher Faylor
9a75162166
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
...
CreateFile failure.
2003-01-26 06:42:40 +00:00
Danny Smith
989c97fe14
* mingwex/mingw-fseek.c (INLINE): Remove define.
...
(__mingw_is_win9x): Remove static inline function.
(_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
2003-01-26 06:38:43 +00:00
Christopher Faylor
5da947eaca
Fix typo.
2003-01-26 06:27:26 +00:00
Christopher Faylor
bdbd7fb6b9
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The structure
...
should always be completely filled out.
* grp.cc (pwdgrp::parse_group): Ditto.
* grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
2003-01-26 06:02:34 +00:00
Christopher Faylor
c913339563
* pwdgrp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating gr_mem.
2003-01-26 05:55:29 +00:00
Christopher Faylor
6503705696
* include/sys/strace.h (paranoid_printf): Define as not being part of "all"
...
output.
* pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns true/false if
parse operation succeeded.
(pwdgrp::reparse): Remove.
(pwdgrp::raw_ptr): New function. Returns pointer in line.
(pwdgrp::next_num): New functions for parsing other than unsigned long.
* grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior. Don't
fill in fields with NULL and assign empty gr_mem to known pointer rather than
doing a pointless calloc. Streamline gr_mem parsing. Don't increment
curr_lines here.
* passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num. Don't
increment curr_lines here.
* uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
(pwdgrp::reparse): Remove.
(pwdgrp::next_num): Rename from next_int. Return bool indicating success of
parse, argument returns value parsed.
(pwdgrp::add_line): Increment curr_lines here on successful parse.
(pwdgrp::load): (from Pierre Humblet) Don't return status. Just report it
here.
2003-01-26 05:38:38 +00:00
Christopher Faylor
c9b99d0d2a
clarify
2003-01-25 16:38:56 +00:00
Christopher Faylor
a53ddfe6c2
* pwdgrp.cc (pwdgrp::reparse): Declare.
...
* uinfo.cc (pwdgrp::reparse): Define.
* grp.cc (pwdgrp::parse_group): Use.
2003-01-25 16:34:32 +00:00
Corinna Vinschen
4f7e12dd26
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
...
update the euid and call cygheap->user.set_name. Remove special
handling of ILLEGAL_UID.
(setgid32): Add a debug_printf. On Win95, always set the egid.
Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
* child_info.h (class cygheap_exec_info): Remove uid.
* spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
* dcrto.cc (dll_crt0_1): Always call uinfo_init.
* uinfo.cc (uinfo_init): Reorganize and close handle if needed.
(cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
2003-01-25 10:36:46 +00:00
Christopher Faylor
45dbfc2611
* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll region
...
if size changes.
2003-01-25 01:17:51 +00:00
Danny Smith
81632e9e55
* include/ras.h (RASCONN[AW]): Add dwSessionId for
...
(WINVER >= 0x501).
2003-01-25 00:47:25 +00:00
Danny Smith
bb9f07bc54
* include/ras.h (RASCONN[AW]): Guard szDeviceType,
...
szDeviceName fields with WINVER >= 0x400. Add dwFlags, luid
fields for WINVER >= 0x501.
2003-01-25 00:41:45 +00:00
Corinna Vinschen
7d33eefa7b
* cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
...
* syscalls.cc (setreuid32): New function.
(setreuid): Ditto.
(setregid32): Ditto.
(setregid): Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-01-24 15:23:15 +00:00
Christopher Faylor
ac4133746e
* pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
...
* grp.cc (pwdgrp::parse_group): Eliminate arg and use class member instead.
Use next_str and next_int to parse arguments.
* passwd.cc (pwdgrp::parse_passwd): Ditto.
(grab_string): Eliminate.
(grab_int): Ditto.
* pwdgrp.h (pwdgrp::parse): Eliminate input arg.
(pwdgrp::parse_passwd): Reflect above change.
(pwdgrp::parse_group): Reflect above change.
(pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::gets): Eliminate.
* uinfo.cc (pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::add_line): Subsume gets.
(pwdgrp::gets): Eliminate.
(pwdgrp::load): Just call add_line to parse input buffer.
2003-01-24 03:53:46 +00:00
Christopher Faylor
09a8842674
Add missing entry.
2003-01-24 02:41:28 +00:00
Christopher Faylor
b831fc4446
* libltp/include/usctest.h: Add externs to some variables that need it.
...
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid
optimization glitch.
2003-01-24 01:51:39 +00:00
Christopher Faylor
8e61c0495e
* winsup.api/mmaptest03.c (main): Mark variables as volatile to avoid
...
optimization induced problems.
2003-01-24 01:41:30 +00:00
Christopher Faylor
23a30ba8d9
* Makefile (check): Add cygrun.exe dependency.
2003-01-24 01:30:43 +00:00
Christopher Faylor
31d7abadfe
Perform more C warning fixup on all C source files and headers.
2003-01-24 01:09:40 +00:00
Christopher Faylor
9b978ffe8b
* libltp/include/test.h: Fix C warnings.
...
* winsup.api/checksignal.c: Ditto.
* winsup.api/crlf.c: Ditto.
* winsup.api/devzero.c: Ditto.
* winsup.api/iospeed.c: Ditto.
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/mmaptest02.c: Ditto.
* winsup.api/mmaptest03.c: Ditto.
* winsup.api/mmaptest04.c: Ditto.
* winsup.api/nullgetcwd.c: Ditto.
* winsup.api/sigchld.c: Ditto.
* winsup.api/signal-into-win32-api.c: Ditto.
* winsup.api/systemcall.c: Ditto.
* winsup.api/waitpid.c: Ditto.
* winsup.api/pthread/mainthreadexits.c: Ditto.
* winsup.api/pthread/test.h: Ditto.
* winsup.api/pthread/threadidafterfork.c: Ditto.
* Makefile.in: Remove cygrun.exe from RUNTIME since it is built here now.
2003-01-23 21:21:28 +00:00
Christopher Faylor
d8f0f146b8
* Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries
...
and other options are used.
2003-01-23 21:14:56 +00:00
Danny Smith
2d771b3dd9
* lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo):
...
Add stubs.
* include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket
options.
2003-01-23 20:43:47 +00:00
Thomas Pfaff
ea35a5e4ae
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:51:31 +00:00
Thomas Pfaff
69fae98649
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:49:28 +00:00
Corinna Vinschen
92005b4cec
* Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
...
(MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2003-01-22 17:15:53 +00:00
Corinna Vinschen
2c6fdb56f5
* Makefile.common (MINGW_LDFLAGS): Add mingw/mingwex builddir.
2003-01-22 17:10:02 +00:00
Corinna Vinschen
2037688a5d
* cygrun.c: Move from here to ../testsuite.
...
* Makefile.in: Remove cygrun.exe dependencies.
2003-01-22 15:23:23 +00:00
Corinna Vinschen
19876644c7
* cygrun.c: Move here from ../cygwin.
...
* Makefile.in: Build cygrun.exe.
* winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
2003-01-22 15:18:58 +00:00
Corinna Vinschen
89f7e8d1d3
* cygwin.din: Export nanosleep().
...
* signal.cc (nanosleep): New function.
(sleep): Move old functionality to nanosleep(). Call nanosleep().
(usleep): Remove old functionality. Call nanosleep().
* include/cygwin/version.h: Bump API minor number.
2003-01-22 10:43:39 +00:00
Christopher Faylor
13afd798c3
* Makefile.in: Find tcl library in the right place.
2003-01-22 03:58:28 +00:00
Thomas Pfaff
5cd5638f57
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:36:31 +00:00
Thomas Pfaff
f2137182fb
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:34:24 +00:00
Thomas Pfaff
00d1a4bb20
* winsup.api/pthread/cancel9.c: Wait in mainthread until child process has terminated.
2003-01-21 20:51:14 +00:00
Christopher Faylor
57394495e2
* grp.cc: Call gr.refresh() rather than doing isunitialized tests throughout.
...
(gr): Use constructor (sigh).
(pwdgrp::parse_group): Rename from parse_grp.
(pwdgrp::read_group): Rename from read_etc_group. Just call gr.load with a
single argument.
* passwd.cc: Call pr.refresh() rather than doing isunitialized tests
throughout.
(pr): Use constructor (sigh).
(pwdgrp::parse_passwd): Rename from "parse_pwd".
(pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load with a
single argument.
* pwdgrp.h (pwdgrp_state): Eliminate.
(pwdgrp): Reflect above renamings.
(pwdgrp::etc_ix): Rename from pwd_ix.
(pwdgrp::read): New element.
(pwdgrp::lock): New element.
(pwdgrp::refresh): New function.
(pwdgrp::load): Eliminate variations which take buffer arguments.
(pwdgrp::pwdgrp): New constructors. Initialize mutex here.
* uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
(pwdgrp::load): Set initialized state to true rather than setting state to
loaded.
2003-01-21 06:58:11 +00:00
Christopher Faylor
984864e9ce
* include/cygwin/version.h: Bump DLL minor number.
2003-01-21 05:13:42 +00:00
Christopher Faylor
b99b804bb0
Fix ChangeLog entry.
2003-01-21 05:09:48 +00:00
Christopher Faylor
2386c7825f
add missing ChangeLog entry.
2003-01-21 05:09:20 +00:00
Christopher Faylor
33de631bf2
add missing ChangeLog entry.
2003-01-21 05:08:55 +00:00
Christopher Faylor
d8cde3a3ee
* path.h (etc::change_possible): Revert the type to bool.
...
(etc::set_last_modified): Remove obsolete function.
* path.cc (etc::change_possible): Revert type to bool.
(etc::test_file_change): Do not test for negative values of change_possible and
do not set it to -res.
(etc::dir_changed): When the handle is NULL, call memset instead of
test_file_changed. When the handle is invalid, return true.
(etc::file_changed): Remove unneeded check for !fn[n].
2003-01-21 05:07:28 +00:00
Christopher Faylor
7905c4f158
* pwdgrp.h (etc): Move to path.h.
...
(pwdgrp::max_lines): New field.
(pwdgrp::curr_lines): New field.
(pwdgrp::pwdgrp_buf): Ditto.
(pwdgrp_buf_elem_size): Ditto.
(pwdgrp_parse): Ditto.
(pwdgrp::gets): Just declare here.
(pwdgrp::load): Ditto. Just take one argument.
(pwdgrp::load): Define overloaded function accepting passwd buf.
(pwdgrp::load): Define overloaded function accepting group buf.
* grp.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_grp): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into __group32 buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to gr.load.
* passwd.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_passwd): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into passwd buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to pr.load.
* path.cc (etc::fn): Extend buffer size to allow index by 1 rather than zero.
(etc::last_modified): Ditto.
(etc::change_possible): Ditto. Renamed from sawchange. Change to signed char
since elements are now tri-state.
(etc::init): Assume "handle" is 1 based rather than 0.
(etc::test_file_change): New function. Sets change_possible based on file date
comparison.
(etc::dir_changed): Check file states immediately after changed_h is
initialized to avoid a race.
(etc::file_changed): Use test_file_change to detect if file needs to be
updated.
* path.h (etc): Move class here from pwdgrp.h.
* uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions here.
(pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
(pwdgrp::add_line): New function.
(pwdgrp::load): Call generic add_line function which will call correct parser.
2003-01-20 02:57:54 +00:00
Christopher Faylor
97d2bc794d
fix typo
2003-01-18 03:43:48 +00:00
Christopher Faylor
4c6a3e500e
* cygheap.cc: Change most 'int's to 'unsigned's.
...
(_cmalloc): Only check for size of malloced region when calculating budget.
Add overhead when performing the sbrk. Previous change broke _crealloc.
2003-01-18 03:26:07 +00:00
Christopher Faylor
e915243911
* dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
...
* grp.cc: Change most statics to NO_COPY throughout.
* passwd.cc: Ditto.
* pwdgrp.h: Change some BOOLs to bools.
(pwdgrp::pwdgrp): Remove unneeded constructor.
* passwd.cc: Change BOOL to bool throughout.
2003-01-17 18:05:32 +00:00
Corinna Vinschen
afa378e74a
* cygwin.din: Add strerror_r.
...
* include/cygwin/version.h: Bump API minor number.
2003-01-17 13:08:06 +00:00
Christopher Faylor
abbaa3a0e6
update copyright
2003-01-17 05:43:43 +00:00
Christopher Faylor
0c0eec3f43
whitespace
2003-01-17 05:33:52 +00:00
Christopher Faylor
5304bcdf6c
correct pwdgroup::load entry
2003-01-17 05:29:23 +00:00
Christopher Faylor
1de6f431aa
* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless
...
debugging.
2003-01-17 05:24:28 +00:00
Christopher Faylor
14ea50290a
* grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
...
"unknown" to "mkgroup".
(internal_getgrgid): Do not return default in nontsec case.
(internal_getgroups): Add argument srchsid and look for it in groups if not
NULL.
* passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use same
default uid for Win95 and NT. Call cygheap_user::ontherange to initialize
HOME.
* cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
* cygheap.h (init_cygheap::etc_changed_h): Remove.
(init_cygheap::etc_changed): Ditto.
* grp.cc (group_state): Remove. Use gr instead throughout.
(gr): Define as class pwdgrp.
(read_etc_group): Remove gr definition. Remove calls to set_last_modified and
close. Pass add_grp to gr.load to load file.
* passwd.cc (passwd_state): Remove. Use pr instead, throughout.
(pr): Define as class pwdgrp.
(read_etc_passwd): Remove pr definition. Remove calls to set_last_modified and
close. Pass add_pwd_line to pr.load to load file.
* pwdgrp.h (etc): New helper class for pwdgrp.
(pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove file_w32
and last_modified fields.
(pwdgrp::set_last_modified): Remove.
(pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
etc::file_changed.
(pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc scanning.
Close file handle after reading buffer into memory. Parse buffer by calling
second argument.
(pwdgrp::gets): Reorganize slightly to rely on eptr starting at beginning of
buffer. Free buffer when memory exhausted.
(pwdgrp::close): Remove.
* uinfo.cc (etc::dir_changed): New function.
(etc::init): Ditto.
(etc::file_changed): Ditto.
(etc::set_last_modified): Ditto.
2003-01-17 05:18:30 +00:00
Corinna Vinschen
41429bc99b
* mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
...
ReadProcessMemory() error codes that trigger a retry with temporary
PAGE_READONLY access. Note that this can occur on NT 4.0.
2003-01-16 14:11:10 +00:00
Christopher Faylor
df9b825c9f
remove errnoneously added files
2003-01-16 01:57:08 +00:00
Christopher Faylor
188132541b
* path.cc (normalize_posix_path): Convert win32 path separators to slashes when
...
full path is specified.
2003-01-16 01:49:14 +00:00
Christopher Faylor
ce9eeb04a6
merge from trunk
2003-01-16 01:27:30 +00:00
Christopher Faylor
77cb0c56ef
* cmalloc.cc (_cmalloc): Fix memory leak.
2003-01-15 17:27:20 +00:00
Corinna Vinschen
ce542f7867
* autoload.cc: Fix copyright date.
...
* fhandler_dsp.cc: Ditto.
* mmap.cc: Ditto.
* net.cc: Ditto.
* ntdll.h: Ditto.
* signal.cc: Ditto.
* syscalls.cc: Ditto.
* uname.cc: Ditto.
* wait.cc: Ditto.
2003-01-15 10:21:23 +00:00
Corinna Vinschen
3903b47b79
* mkgroup.c: Fix copyright date.
...
* mkpasswd.c: Ditto.
* setfacl.c: Ditto.
Fix ChangeLog typos.
2003-01-15 10:08:37 +00:00