Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2000-07-16Update comments.Christopher Faylor
2000-07-15* dll_init.cc (dll_list::alloc): Round correctly. Use VirtualAlloc sinceChristopher Faylor
shared file mapping is unnecessary. (dll_list::detach): Release memory via VirtualFree since there we no longer use shared file mapping.
2000-07-15* hinfo.cc (hinfo::linearize_fd_array): Make max_used_fd an int so that we canChristopher Faylor
detect when there are no fds to pass. * dcrt0.cc (host_dependent_constants::init): Revert Sat Mar 18 01:32:04 2000 change. (dll_crt0_1): Set "cygwin_finished_initializing" flag. (dll_crt0): Don't perform memcpy if uptr is already set to internal structure. (_dll_crt0): Remember location of programs envptr. * dll_init.h (per_module, dll, dll_list): Revamp. * dll_init.cc: Revamp. Use new classes. * fork.cc (fork): Use new revamped dll, dll_list, and per_module stuff. * environ.cc: Use __cygwin_environ throughout rather than the user_data->envptr. * exec.cc: Ditto. * spawn.cc: Ditto. * winsup.h: Declare update_envptrs, cygwin_finished_initializing. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Revert previous change. * lib/cygwin_attach_dll.cc (cygwin_attach_dll): Always pass in own per_process structure or we end up overwriting information from the main program.
2000-07-14 * mount.cc (mount_already_exists): Slightly rearrange.Corinna Vinschen
Change message texts.
2000-07-13 * mount.cc (mount_already_exists): Additional warning messageCorinna Vinschen
if mount point exists with another mount type.
2000-07-12* debug.cc (thread_stub): Use impure_ptr in place of reent_data.Christopher Faylor
* dll_init.cc (dll_dllcrt0): Replace erroneous use of local symbol with correct __cygwin_user_data->impure_ptr.
2000-07-12* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Don't reset environ ifChristopher Faylor
already set.
2000-07-11* include/shlobj.h: add CSIDL_COMMON_*DJ Delorie
2000-07-11* fhandler_console.cc (fhandler_console::read): Unicode interface toChristopher Faylor
ReadConsoleInput only exists on W2K, so use workaround from Kazuhiro Fujieda <fujieda@jaist.ac.jp>.
2000-07-10Add missing text.Christopher Faylor
2000-07-10* Makefile.in (install): Install textmode.o as well as binmode.o.Christopher Faylor
2000-07-10 * spawn.cc (spawn_guts): Close handle `hToken' only if it's notCorinna Vinschen
copied from myself->token. * syscalls.cc (seteuid): Replace CopySid by memcpy which is foolproof here.
2000-07-09Slight optimization.Christopher Faylor
2000-07-09* cygwin.din: Export _getmode and getmode to allow querying of binary state ofChristopher Faylor
an fd. * external.cc (cygwin_internal): Add handling of perfile_table setting. * fhandler.cc (perfile_table): New global. (fhandler_base::get_default_fmode): New method to return a file's default mode based on its name. (fhandler_base::open): Use get_default_mode method to determine a file's mode. Record file mode in file flags. * fhandler.h (fhandler_base): Declare get_default_fmode * syscalls.cc (getmode): New function. * sys/cygwin.h (__cygwin_perfile): New structure. (cygwin_getinfo_types): Move outside of WINVER conditional. (per_process): Move inside of WINVER conditional.
2000-07-08* external.cc (cygwin_internal): Export __cygwin_user_data.Christopher Faylor
* include/sys/cygwin.h: Allow definition of per_process even when not compiling with C++. (cygwin_getinfo_types): Add CW_USER_DATA. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Get __cygwin_user_data pointer from cygwin_internal. If it doesn't exist, return failure. Use either this pointer or passed in pointer throughout. Clear forkee. * lib/crt0.h: Accomodate argument changes to _cygwin_crt0_common. * lib/cygwin_attach_dll.c (cygwin_attach_dll): Reorganize to allow use of newer binaries with older DLLs. Detect older DLLs when _cygwin_crt0_common returns 0 and allocate space for a per_process structure on the stack. * lib/cygwin_crt0.c (cygwin_crt0): Ditto.
2000-07-07 * include/sys/cygwin.h: Hide internal data types in per_processCorinna Vinschen
when not __INSIDE_CYGWIN__.
2000-07-06* dcrt0.cc (__cygwin_user_data): Initialize.Christopher Faylor
(dll_crt0_1): Eliminate user_data initialization. (dll_crt0): Set up impure_ptr_ptr for older executables. (cygwin_dll_init): Eliminate user_data initializations. (__api_fatal): Don't check for user_data initialization. * dll_init.cc (struct dll): Store entire contents of per_process rather than just a pointer. (add): Ditto. (initOneDll): Don't check for user_data initialization. (DllList::recordDll): Store contents of per_process argument. (DllList::detachDll): Pass address of per_process field. (DllList::initAll): Ditto. (DllList::doGlobalDestructorsOfDlls): Ditto. (DllListIterator::operator *): Ditto. (dll_dllcrt0): Default to __cygwin_user_data if arg is NULL. * include/sys/cygwin.h: Reorganize per_process to eliminate obsolete fields and accomodate new way of initializing. * lib/_cygwin_crt0_common: Initialize _impure_ptr from __cygwin_user_data.impure_ptr.
2000-07-04* exceptions.cc (try_to_debug): Prevent recursive spawning of JIT debugger.Christopher Faylor
Treat special event from debugger as command to continue.
2000-07-04 * poll.cc (poll): Zero out `open_fds' as well.Corinna Vinschen
2000-07-04 * include/cygwin/version.h: Bump API minor version to 24.Corinna Vinschen
2000-07-04 * security.cc (read_sd): Eliminate OemToChar.Corinna Vinschen
2000-07-04 * poll.cc: New file. Implement `poll' system call.Corinna Vinschen
* include/poll.h: Ditto. * include/sys/poll.h: Ditto. * Makefile.in: Add poll.o as dependency. * cygwin.din: Add poll and _poll symbols.
2000-07-04"Posting Guidelines": New name for old entry.David Starks-Browning
"Multiple copies of DLL": shared region corrupt error message. "Why the weird directory structure": re-wrote for latest. "Symlinks on Samba": fix typo. "Where is glibc": new entry. "HT build relocatable dll": (interim update) link to Carl Thompson's message in cygwin list. "Can I mix msvc++ and gcc objects": remove disclaimer.
2000-07-04"Contents": Add package opengl.David Starks-Browning
2000-07-04* dcrt0.cc (dll_crt0_1): Eliminate SetFileApisToOEM and CharToOem.Christopher Faylor
* (dummy_autoload): Add functions used in fhandler_console. * fhandler_console.cc (fhandler_console::read): Use ENCHANCED_KEY flag to distinguish extended keys. Translate an input character from the OEM code page to the ANSI code page. * (fhandler_console::write_normal): Translate output characters from the ANSI code page to the OEM code page. * syscalls.cc (_link): Use MultiByteToWideChar instead of OemToCharW.
2000-07-04Revert errnoneous commit.Christopher Faylor
2000-07-04* exceptions.cc (stack_info::walk): Use method to find offset.Christopher Faylor
(handle_exceptions): Be more assertive in finding ebp for use under W2K. Create a dummy stack frame for cases where program is dying and a stack dump is being output. (sig_handle): Fill out a GetThreadContext for use with a user-generated "core dump".
2000-07-03 * include/cygwin/socket.h: Remove SOCK_PACKET define since it'sCorinna Vinschen
not supported by Windows sockets.
2000-07-03* dcrt0.cc (user32_init): Add primitive guard against concurrent attempts toChristopher Faylor
call this function. Also add temporary debugging code to display a message if the function is called multiple times. (api32_init): Ditto.
2000-07-02Replaced buggy ChangeLog entryCorinna Vinschen
2000-07-02 * winsup.h: Define MAX_SID_LEN and new MAX_HOST_NAME.Corinna Vinschen
* fork.cc (fork): Use above defines instead of numerical constants. * shared.cc (sec_user): Ditto. * shared.h (class pinfo): Ditto. * syscall.cc (seteuid): Ditto. * spawn.cc (_spawnve): Ditto. Eliminate conditional. (spawn_guts): Set child->uid = USHRT_MAX when user context will be changed in child process. * uinfo.cc (uinfo_init): Check for myself->uid instead of myself->psid to avoid reloading of /etc/passwd on process startup if ntsec is off. Use above defines instead of numerical constants. * security.cc: Move define for MAX_SID_LEN to winsup.h.
2000-07-02Add some comments.Christopher Faylor
2000-07-02 * uinfo.cc (uinfo_init): Eliminate calls to read_etc_group()Corinna Vinschen
and read_etc_passwd().
2000-07-01Changes by Kazuhiro Fujieda <fujieda@jaist.ac.jp>Corinna Vinschen
* assert.cc (__assert): Reduce dependency on newlib. * exec.cc: Eliminate unnecessary inclusion of ctype.h. * glob.c: Ditto. * hinfo.cc: Ditto. * init.cc: Ditto. * strace.cc: Ditto. * tty.cc: Ditto. * grp.cc (parse_grp): Eliminate atoi. * passwd.cc (grab_int): Ditto. * grp.cc (getgroups): Eliminate str{n,}casecmp. * path.cc (get_raw_device_number): Ditto. * path.cc (sort_by_native_name): Ditto. * spawn.cc (iscmd): Ditto. * uinfo.cc (internal_getlogin): Ditto.
2000-07-01* binmode.c (cygwin_premain0): Fix erroneous clearing of bit.Christopher Faylor
* textmode.c (cygwin_premain0): Ditto.
2000-07-01Remove asm labelling from _dll_crt0 since it seems to confuse different versionsChristopher Faylor
of gcc differently.
2000-07-01* dcrt0.cc (_dll_crt0): Renamed from dll_crt0 ().Christopher Faylor
* winsup.h: Accomodate above change. * cygwin.din: Ditto. * lib/cygwin_crt0.c: Ditto.
2000-07-01* Makefile.in: Find getopt.c in cygwin/lib subdirectory.Christopher Faylor
2000-07-01Forgot perthread.h.Christopher Faylor
2000-07-01* Makefile.in: Use variables rather than configure constructs whereChristopher Faylor
appropriate. (LIBCOS): Find additional stub library stuff in their own subdirectory. * dcrt0.cc: Convert user_data pointer to static __cygwin_user_data area. (do_global_ctors): Check magic_bisquit for initialization. (dll_crt0_1): First group of premain functions prior to fd initialization. Run second group before calling main. (dll_crt0 ()): New function, called from new initialization code. (dll_crt0 (per_process *uptr)): Call new dll_crt0 () function on initialization. * debug.cc (thread_stub): Initialize bottom of stack with per-thread info. * environ.cc (parse_thing): Use binmode global to control CYGWIN=binmode behavior. * fhandler.cc (fhandler_base::open): Allow explicit setting of __fmode to O_BINARY or O_TEXT to override disk mount settings. * libcmain.cc: Move to lib subdirectory. * libccrt0.cc: Ditto. * dll_main.cc: Ditto. * dll_entry.cc: Ditto. * getopt.c: Ditto. * thread.cc (thread_init_wrapper): Call ExitThread explicitly rather than returning, as a preliminary step towards placing per thread info at the bottom of the stack. * winsup.h: Move per_process class to include/sys/cygwin.h. Declare new dll_crt0(). * include/cygwin/version.h: Bump API minor version. * binmode.c: New file. * textmode.c: Ditto. * lib/_cygwin_crt0_common.cc: Ditto. * lib/crt0.h: Ditto. * lib/cygwin_attach_dll.c: Ditto. * lib/cygwin_crt0.c: Ditto. * lib/dll_entry.cc: Ditto. * lib/dll_main.cc: Ditto. * lib/getopt.c: Ditto. * lib/libcmain.c: Ditto. * lib/premain0.c: Ditto. * lib/premain1.c: Ditto. * lib/premain2.c: Ditto. * lib/premain3.c: Ditto.
2000-06-28 * syscalls.cc (seteuid): Initialize pi.token before callingCorinna Vinschen
internal_getlogin(). * uinfo.cc (internal_getlogin): Use impersonation token instead of process token in case of active impersonation. Add some comments. (uinfo_init): Initializing myself->token and myself->impersonated before calling internal_getlogin(). Add some comments.
2000-06-27 * include/winbase.h: Add stream ids BACKUP_OBJECT_ID,Corinna Vinschen
BACKUP_REPARSE_DATA and BACKUP_SPARSE_BLOCK. Add file open flags FILE_FLAG_OPEN_REPARSE_POINT and FILE_FLAG_OPEN_NO_RECALL. * winioctl.h: Add device io control codes FSCTL_GET_REPARSE_POINT, FSCTL_SET_REPARSE_POINT and FSCTL_DELETE_REPARSE_POINT. * winnt.h: Add typedef for GUID. Add file attributes FILE_ATTRIBUTE_ENCRYPTED, FILE_ATTRIBUTE_SPARSE_FILE, FILE_ATTRIBUTE_REPARSE_POINT and FILE_ATTRIBUTE_NOT_CONTENT_INDEXED. Add volume attributes FILE_VOLUME_QUOTAS, FILE_SUPPORTS_SPARSE_FILES, FILE_SUPPORTS_REPARSE_POINTS, FILE_SUPPORTS_REMOTE_STORAGE, FILE_SUPPORTS_OBJECT_IDS and FILE_SUPPORTS_ENCRYPTION. Add several reparse point defines and typedefs for REPARSE_DATA_BUFFER, REPARSE_GUID_DATA_BUFFER and REPARSE_POINT_INFORMATION. * lib/psapi.def: New file.
2000-06-27* windows.cc (setitimer): Round up when < 1000 usecs.Christopher Faylor
2000-06-27* hinfo.cc (hinfo::dup2): Eliminate compiler warning.Christopher Faylor
2000-06-26* hinfo.cc (hinfo::dup2): Guard against out of bounds newfd.Christopher Faylor
2000-06-25* grp.cc (read_etc_group): Open file in text mode.Christopher Faylor
* pwd.cc (read_etc_passwd): Ditto. * shared.h: Bump PROC_MAGIC.
2000-06-25* cygcheck.cc (cygwin_info): New function. Scans DLL for Cygwin version info.Christopher Faylor
(dll_info): Add path parameter for checking "cygwin1.dll". (track_down): Accomodate additional parameter for dll_info. (ls): Ditto. (dump_sys_info): Always print cygwin1.dll last.
2000-06-24 * fork.cc (fork): Fix error in copying SID pointer.Corinna Vinschen
* spawn.cc (_spawnve): Ditto. * passwd.cc: Remove static from `passwd_in_memory_p'. (read_etc_passwd): Remove static. * uinfo.cc: Move global declaration of `read_etc_group' and `group_in_memory_p' into `uinfo_init'. (internal_getlogin): Try to get SID from current process first. (uinfo_init): Don't set uid and gid if `myself' has a valid SID. Only load /etc/passwd and /etc/group in that case.
2000-06-24* shared.cc (shared_info::initialize): Improve error message clarity.Christopher Faylor
* mkvers.sh: Eliminate debugging output.
2000-06-23* Makefile.in: Add dummy info targets.Christopher Faylor