179cae11d7
* cygheap.cc (cfree_and_set): New function.
...
(cygheap_user::set_name): Use cfree_and_set to reset members.
* cygheap.h (cygheap_user): Delete static members.
(cygheap_user::puserprof): New member.
(cfree_and_set): Declare.
* dcrt0.cc (almost_null): Define.
* winsup.h (almost_null): Declare.
* syscalls.cc (cfree_and_set): Remove unused variable.
* uinfo.cc (cygheap_user::homepath_env_buf): Eliminate.
(cygheap_user::homedrive_env_buf): Ditto.
(cygheap_user::userprofile_env_buf): Ditto.
(cygheap_user::ontherange): YA change to try to preserve existing HOMEPATH and
HOMEDRIVE. Return almost_null values when variables should not actually exist.
(cygheap_user::env_logsrv): Ditto.
(cygheap_user::env_domain): Ditto.
(cygheap_user::env_userprofile): Ditto.
2002-06-27 20:44:27 +00:00
d3c260c334
Delete extraneous comment from my previous change.
2002-06-27 20:08:33 +00:00
eba23038af
* dcrt0.cc (dll_crt0_1): Let __progname point to the applications
...
basename. Move eliminating ".exe" suffix from argv[0] so that it
always also affects __progname.
2002-06-27 16:01:38 +00:00
196cdd45f6
* thread.cc (pthread::create): Added trace printf to get CreateThread
...
LastError.
2002-06-27 14:19:30 +00:00
5b509758a0
* mmap.cc (list::match): Check using pagesize aligned size.
2002-06-27 13:01:35 +00:00
75c6a983c6
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Force
...
FindFirstFile on first file of directory when asking for x:\ .
2002-06-27 03:06:44 +00:00
b3e2d035bb
* cygheap.cc (cygheap_user::set_name): Correct thinko in below change.
2002-06-27 02:29:57 +00:00
c99902b9b0
* cygheap.cc (cygheap_user::set_name): Avoid clearing things when just setting
...
name to itself or during first time initialization.
* environ.cc (check_case_init): Make case insensitive.
2002-06-26 19:39:05 +00:00
be5007aa52
* fhandler.h (fhandler_socket::bind): Add method definition.
...
(fhandler_socket::connect): Ditto.
(fhandler_socket::listen): Ditto.
(fhandler_socket::accept): Ditto.
(fhandler_socket::getsockname): Ditto.
(fhandler_socket::getpeername): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::shutdown): Ditto.
* fhandler_socket.cc (get_inet_addr): Move here from net.cc.
(fhandler_socket::bind): New method.
(fhandler_socket::connect): Ditto.
(fhandler_socket::listen): Ditto.
(fhandler_socket::accept): Ditto.
(fhandler_socket::getsockname): Ditto.
(fhandler_socket::getpeername): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::shutdown): Ditto.
* net.cc: Various formatting cleanups throughout.
(get_inet_addr): Move to fhandler_socket.cc.
(cygwin_bind): Move base functionality to appropriate fhandler_socket
method.
(cygwin_connect): Ditto.
(cygwin_listen): Ditto.
(cygwin_accept): Ditto.
(cygwin_getsockname): Ditto.
(cygwin_getpeername): Ditto.
(cygwin_recvfrom): Ditto.
(cygwin_recvmsg): Ditto.
(cygwin_sendto): Ditto.
(cygwin_sendmsg): Ditto.
(cygwin_shutdown): Ditto.
2002-06-26 19:25:09 +00:00
303af15742
* pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
2002-06-26 14:59:22 +00:00
8698edb8ae
* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and it's not
...
cygwin info.
2002-06-26 05:37:29 +00:00
f279e522b0
* autoload (noload): Avoid clobbering bx register.
...
* environ.cc (codepage_init): Use case insensitive match.
* fhandler_console.cc (cp_get_internal): Delete.
(con_to_str): Use get_cp to derive code page.
(str_to_con): Ditto.
* miscfuncs.cc (get_cp): New function.
(sys_wcstombs): New function. Converted from macro.
(sys_mbstowcs): Ditto.
* winsup.h: Reflect above changes.
2002-06-26 05:29:41 +00:00
109e482278
* winsup.h: Minor cleanup.
...
* path.h (path_conv::[]): New operator.
* syscalls.cc (_link): Use path_conv operators rather than methods, where
appropriate. Minor white space cleanup.
* include/cygwin/version.h: Bump DLL minor number.
* dcrt0.cc (sm): Make NO_COPY.
2002-06-26 04:21:01 +00:00
b4b15309b7
* include/winbase.h (FILE_FLAG_FIRST_PIPE_INSTANCE): Add constant.
2002-06-25 21:16:46 +00:00
8e8a913ff1
2002-06-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/winbase.h (WINBASEAPI): Don't define if prior
definition.
* include/winioctl.h (PARTITION_FAT32, PARTITION_FAT32_XINT13,
PARTITION_XINT13, PARTITION_XINT13_EXTENDED, PARTITION_LDM,
PARTITION_UNIX): Add defines.
(PDRIVE_LAYOUT_INFORMATION): Add typedef.
(IsRecognizedPartition): Also check for PARTITION_FAT32,
PARTITION_FAT32_XINT13 and PARTITION_XINT13.
(IsContainerPartition): Add macro.
2002-06-25 21:05:19 +00:00
6331b65843
* syscalls.cc (chown): Convert uid to 32 bit.
...
(lchown): Ditto.
(fchown): Ditto.
2002-06-25 08:06:29 +00:00
e85e106d88
2002-06-25 Ken Fitlike <kenfitlike@hotmail.com>
...
* include/commctrl.h: (CBEIF_*): Add defines.
(CBEN_*): Add defines and UNICODE mappings
(WC_COMBOBOXEX[AW]): Add defines and UNICODE mappings.
(CBEMAXSTRLEN): Add define.
(COMBOBOXEXITEM[AW]): Add structures and typedefs.
(NMCOMBOBOXEX[AW]): Add structures and typedefs.
(NMCBEDRAGBEGIN[AW]): Add structure and typedefs.
(NMCBEENDEDIT[AW]): Add structure and typedefs.
2002-06-25 03:26:21 +00:00
0914e17db5
Update from Joshua Daniel Franklin
2002-06-25 01:16:23 +00:00
e773b7cf30
* dtable.cc (dtable::find_unused_handle): Avoid coercion.
2002-06-24 21:14:04 +00:00
4c78be52df
* dtable.cc (fhandler_base::dup2): Cleanup. Ensure that lock is turned off in
...
error condition.
2002-06-24 20:05:52 +00:00
1fd072b6e4
* uinfo.cc (internal_getlogin): Set myself->uid and myself->gid instead
...
of user.real_uid and user.real_gid.
(uinfo_init): Evaluate orig_uid and real_uid from myself->uid. Ditto
for gid.
2002-06-24 15:40:57 +00:00
de0557f7a3
* security.cc (get_group_sidlist): Add pw argument and use pw->pw_name in call
...
to get_supplementary_group_sidlist.
(create_token): Add pw argument and use it in call to get_group_sidlist.
* security.h: Add pw argument in declaration of create_token.
* syscalls.cc (seteuid32): Add pw argument in call to create_token.
2002-06-24 13:01:50 +00:00
76093a9b7e
* ntsec.sgml: Clean up text for examples of /etc/passwd and /etc/group.
...
Add examples with SIDs. Warn about changing them crudely.
2002-06-24 09:30:02 +00:00
f8f2ad211f
* include/objidl.h (struct tagPROPVARIANT): Kill obsolete
...
union member _VARIANT_BOOL bool.
2002-06-24 04:51:34 +00:00
e106f92bfc
* include/winioctl.h (FILE_SPECIAL_ACCESS): Add define.
2002-06-24 02:49:47 +00:00
7c00c9bd40
2002-06-24 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/winnt.h (PCCHAR, FCHAR, FSHORT, FLONG,
PLUID_AND_ATTRIBUTES,PSECURITY_IMPERSONATION_LEVEL,
PSID_AND_ATTRIBUTES, PTOKEN_TYPE, PTOKEN_STATISTICS):
Add typedefs.
(CCHAR): Correct typedef.
(PROCESS_SET_SESSIONID, SECURITY_*,SECTION_MAP_EXECUTE):
Add defines.
* README.w32api: Correct spelling error.
2002-06-24 02:46:38 +00:00
035bfbddf5
* fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes.
...
* fhandler_socket.cc (fhandler_socket.cc::fstat): Set S_IFSOCK.
2002-06-24 02:23:14 +00:00
eecef29f50
* lib/_cygwin_S_IEXEC.cc: Remove obsolete file.
2002-06-24 02:08:41 +00:00
85b995d4f1
Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout.
...
* sys/ipc.h: Remove.
* sys/shm.h: Remove.
* cygwin_ipc.h: New file.
* cygwin_shm.h: New file.
2002-06-23 22:56:58 +00:00
6bda8defe9
* cygwin.sc: Add recent changes from ld sources.
...
* winsup.h: Move #ifdef EXPCGF code into "winbase.h".
* winbase.h: #ifdef EXPCGF code moved here from "winsup.h".
2002-06-23 18:55:23 +00:00
f6709c07db
2002-06-12 Thomas Pfaff <tpfaff@gmx.net>
...
* thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to
cleanup_stack.
* thread.cc (pthread::pthread): Ditto.
(pthread::create): Fixed mutex verification.
(pthread::push_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
Mutex calls removed, used InterlockedExchangePointer instead.
(pthread::pop_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
(pthread::pop_all_cleanup_handlers): Ditto.
(__pthread_once): Check state first and return if already done.
(__pthread_join): DEADLOCK test reverted to __pthread_equal
call.
(__pthread_detach): Unlock mutex before deletion.
2002-06-23 07:36:21 +00:00
0278e3a33f
* Makefile.in (cygrun.exe): Move -lgcc where it will do some good.
2002-06-22 02:56:56 +00:00
0094fa046c
* Makefile.in (cygrun.exe): Use -lgcc when linking.
2002-06-22 02:50:01 +00:00
cd6df12137
* what.texinfo: Fix typo.
2002-06-21 15:28:06 +00:00
1a7cb557b0
* syscalls.cc (stat64_to_stat32): Correctly evaluate st_rdev.
...
(fstat64): Set st_rdev to same value as st_dev.
(stat_worker): Ditto.
2002-06-21 15:01:19 +00:00
49056987f1
* security.cc (alloc_sd): Carefully check owner_sid again after trying
...
SIDs from cygheap.
2002-06-21 12:57:19 +00:00
dd0208eb34
* security.cc (alloc_sd): Remove unnecessary retrieval of owner name.
...
Check uid for current user first and use SIDs from cygheap if so.
Set errno to EINVAL if user SID isn't retrievable. Just print user SID
as debug output.
Don't bail out if group SID isn't retrievable. Change debug output
appropriately.
2002-06-21 12:37:51 +00:00
d7c2bd8ee7
* errno.cc: Change text description for EBADF throughout.
2002-06-21 05:47:09 +00:00
d70b993fe2
remove unneeded white space
2002-06-21 05:01:56 +00:00
7c02f861e3
* uinfo.cc (cygheap_user::ontherange): Use env_name for NetUserGetInfo.
...
(cygheap_user::env_logsrv): Verify env_domain is valid.
* environ.cc: Include child_info.h and keep spenvs[] sorted.
(environ_init): Check child_proc_info instead of myself->ppid_handle.
2002-06-21 05:01:17 +00:00
c25ebbaf55
* fhandler.cc (fhandler_base::set_flags): Change priority of "linked in"
...
default binmode setting so that it has priority over optional setting.
2002-06-20 00:36:40 +00:00
03a2ce9a36
Use hMainProc where appropriate, throughout.
...
* environ.cc (spenv::retrieve): Add debugging statements.
* pinfo.cc (set_myself): Don't call strace.hello if already stracing.
* strace.cc (strace): Move NO_COPY keyword so that it will actually take
effect.
2002-06-19 15:27:27 +00:00
834224ab85
* uinfo.cc (cygheap_user::ontherange): Call NetUserGetInfo() only with
...
non-NULL logserver parameter.
2002-06-19 13:56:34 +00:00
e1164b684d
2002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/winuser.h (FLASHW_*,INPUT_MOUSE,INPUT_KEYBOARD,
INPUT_HARDWARE): Add defines.
(HDEVNOTIFY): Add typedef.
(FLASHWINFO,tagMOUSEMOVEPOINT,tagMOUSEINPUT,tagKEYBDINPUT,
tagHARDWAREINPUT,tagINPUT,tagGUITHREADINFO): Define structs and
typedefs.
(CreateDesktop[AW],CreateMDIWindow[AW],GetClassInfo[AW],
GetClassInfoEx[AW],GetKeyboardLayoutList,
MessageBoxIndirect[AW],MsgWaitForMultipleObjects,
MsgWaitForMultipleObjectsEx, RegisterClass[AW],
RegisterClassEx[AW]): Correct prototypes.
Remove duplicate ChangeLog entry of 2001-12-07
2002-06-19 12:32:06 +00:00
33bd2d1268
* cygpath.cc (usage): Clean up usage output.
...
(dowin): Correct output of -t mixed for -ADHPSW options.
2002-06-19 02:09:41 +00:00
7c1d8db987
2002-06-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ddeml.h (DdeCreateStringHandle{AW]:Correct
prototypes.
* include/winsvc.h (StartServiceW): Correct prototype.
* include/winbase.h (BackupRead,BackupSeek,BackupWrite,
FileTimeToLocalFileTime, GetAce,GetPrivateProfileStruct[AW],
GetTickCount,InterlockedExchangeAdd,
WritePrivateProfileStruct[AW]: Correct prototypes.
(GetEnvironmentStrings): Correct mapping to
GetEnvironmentStringsA.
* include/winver.h (VerQueryValueA,VerQueryValueW):
Correct prototypes.
* include/wincon.h (CreateConsoleScreenBuffer): Correct
prototype.
* include/winreg.h (RegQueryMultipleValues[AW],
RegQueryValueEx[AW]):Correct prototypes.
* include/wingdi.h (PXFORM, PLOGBRUSH, PLOGPEN, PPOLYTEXTA,
PPOLYTEXTW): Add typedefs.
(_DESIGNVECTOR,COLOR16, _TRIVERTEX, _DISPLAY_DEVICE): Add
structures and typedefs.
(MM_MAX_NUMAXES): Add define.
(EnumFontsW,GetEnhMetaFilePixelFormat,wglGetLayerPaletteEntries):
Correct prototypes.
* include/winerror.h (RPC_X_INVALID_PIPE_OBJECT,
RPC_X_WRONG_PIPE_ORDER,RPC_X_WRONG_PIPE_VERSION,
RPC_S_SEND_INCOMPLETE): Add defines.
2002-06-19 01:15:45 +00:00
97858a2641
* include/tchar.h (_getts): Define as _getws for _UNICODE.
...
(_putts): Define as _putws for _UNICODE.
Thanks to: Tomasz Pona <cochisek@poczta.onet.pl > for report.
2002-06-18 20:48:57 +00:00
8cb1442e10
* include/float.h: #include_next<float.h> before header guard.
2002-06-18 04:20:14 +00:00
9fe2a2157b
2002-06-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/_mingw.h (__MINGW_IMPORT): Check for prior definition before
defining.
* include/excpt.h (): Include windef.h not windows.h.
* include/fcntl.h (_O_SHORT_LIVED): Add define.
(_chmod): Add prototype.
(_creat): Correct prototype.
(SH_DENY*): Rename defines to _SH_DENY*.
(SH_DENY*): Add Non-ANSI names for _SH_DENY*.
include/stdio.h (_IOMYBUF, _IOEOF, _IOERR, _IOSTRG,
_IOAPPEND): Add defines.
(_wfindfirst): Correct prototype.
(_wfdopen): Add prototype.
* include/stdlib.h (_rotl, _rotr, _lrotl, _lrotr): Add
prototypes.
* include/string.h (_mbschr, _mbstok, _mbsncat): Remove
prototypes.
(_wcsdup): Correct prototype.
* include/mbstring.h: Remove comments about _mbschr, _mbstok,
_mbsncat being in string.h.
* include/wchar.h (_wfindfirst): Correct prototype.
* include/tchar.h (_tfdopen): Add _UNICODE mappings.
2002-06-18 04:13:18 +00:00
6cde27195c
2002-06-17 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/windef.h (_fastcall, __fastcall, FASTCALL):
Add defines.
2002-06-17 08:22:02 +00:00