summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_socket.cc (set_connect_secret): Use /dev/urandom toEgor Duda2001-05-042-2/+25
| | | | generate secret cookie.
* * configure.in: Make subauth configuration optional.Christopher Faylor2001-05-043-3/+10
| | | | * configure: Regenerate.
* Initial release of the Cygwin subauthentication DLL.Corinna Vinschen2001-05-046-0/+1588
| | | | | | | | | * ChangeLog: New file. * Makefile.in: Ditto. * configure: Ditto. Generated from configure.in. * configure.in: Ditto. * cygsuba.c: Ditto. * cygsuba.din: Ditto.
* * subauth: New subdirectory.Corinna Vinschen2001-05-043-2/+8
| | | | | * configure.in: Add subauth to the list of subdirectories. * configure: Regenerated from configure.in.
* Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.Alan Modra2001-05-042-4/+9
|
* * include/pthread.h (pthread_cleanup_push): Eliminate space precedingChristopher Faylor2001-05-032-6/+11
| | | | | arguments. (pthread_cleanup_pop): Ditto.
* * configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: DisableAlexandre Oliva2001-05-032-3/+8
| | | | libgcj.
* * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'Corinna Vinschen2001-05-032-3/+8
| | | | for clearness.
* * exceptions.cc (handle_exceptions): Break out of "loop" if the debuggerChristopher Faylor2001-05-034-3/+9
| | | | doesn't seem to be attaching to our process.
* * autoload.cc: Use new definition of LoadDLLinitfunc throughout.Corinna Vinschen2001-05-034-204/+72
| | | | | | | | | | | Redefine wrapper for wsock32.dll and ws2_32.dll. (std_dll_init): New function. * autoload.h: Rename LoadDLLinitfunc to LoadDLLinitfuncdef. Add new defines LoadDLLinitfunc and LoadDLLstdfunc. * net.cc (wsock_init): Add guard variable handling. Take care to call WSAStartup only once. Load WSAStartup without using autoload wrapper to eliminate recursion. Eliminate FIONBIO and srandom stuff.
* 2001-05-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-05-012-0/+15
| | | | | | * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have real file systems, let __smakebuf() determine if line buffering should be used for stdout.
* * mkpasswd.c (enum_users): Use /bin/bash as the default shell.Christopher Faylor2001-05-012-2/+7
| | | | (main): Ditto.
* * path.cc (mount_info::conv_to_win32_path): More path tweaking.Christopher Faylor2001-05-012-1/+5
|
* * path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid aChristopher Faylor2001-05-012-2/+7
| | | | SIGSEGV. Avoid double backslashes in middle of filename.
* * path.cc (mkrelpath): New function.Christopher Faylor2001-05-013-99/+86
| | | | | | | | | | (mount_info::conv_to_win32_path): Eliminate now-unneeded relative path name arg and processing. (path_conv::check): Accomodate relative path names again. Accomodate one extra argument in mount_info::conv_to_win32_path. Tack trailing slash on end of relative path as a side effect, like before. * shared_info.h (mount_info::conv_to_win32_path): Reflect new argument ordering.
* * autoload.cc: Add LoadDLLinitfunc for secur32.dll.Corinna Vinschen2001-04-308-113/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add LoadDLLfuncEx statements for AllocateLocallyUniqueId@4, DuplicateTokenEx@24, LsaNtStatusToWinError@4, LsaDeregisterLogonProcess@4, LsaFreeReturnBuffer@4, LsaLogonUser@56, LsaLookupAuthenticationPackage@12, LsaRegisterLogonProcess@12, * environ.cc: Add extern declaration for `subauth_id'. (subauth_id_init): New function for setting `subauth_id'. (struct parse_thing): Add entry for `subauth_id'. * fork.cc (fork_parent): Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid'. * security.cc: Define global variable `subauth_id'. (extract_nt_dom_user): New function. (cygwin_logon_user): Call `extract_nt_dom_user' now. (str2lsa): New static function. (str2buf2lsa): Ditto. (str2buf2uni): Ditto. (subauth): Ditto. * security.h: Add prototype for `subauth'. * spawn.cc (spawn_guts): Use cygheap->user.token only if impersonated. Use `cygsid' type. Remove impersonation before allowing access to workstation/desktop to everyone. Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid'. * syscalls.cc (seteuid): Rearranged to allow using subauthentication to retrieve user tokens when needed.
* * uinfo.cc (internal_getlogin): Formatting change.Corinna Vinschen2001-04-302-2/+7
|
* * grp.cc: Eliminate MAX_DOMAIN_NAME define.Corinna Vinschen2001-04-3010-54/+65
| | | | | | | | | | | | | | | | | | | (read_etc_group): Substitute MAX_DOMAIN_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * passwd.cc (parse_pwd): Don't force pw_name to be lower case. * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN, MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout. (lookup_name): Slight cleanup. * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN. * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS. * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN. * thread.h: Ditto. * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN. Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.
* * path.cc (path_conv::check): Don't use path_flags when converting to MS-DOSChristopher Faylor2001-04-302-16/+29
| | | | | syntax unless parsing tail of path component. Stop parsing path when we reach the 'root' of the path. Correctly copy tail to path component.
* * exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.Christopher Faylor2001-04-303-94/+100
| | | | | | | | | | | | | | | | | | | | (init_exceptions): Just use init_exception_handler. (open_stackdumpfile): New function. (stack_info::first_time): Eliminate. (stack_info::init): Set up fields to avoid "first_time" consideration. (stack_info::walk): Remove "first_time" consideration. (stackdump): Change arguments to accept initial frame pointer and open stack file flag. (stack): Eliminate. (cygwin_stackdump): Use stackdump() rather than stack(). (try_to_debug): Remove all synchronization logic. Just keep looping in exception handler until debugger notices us. Return 1 if successfully started debugger. (handle_exceptions): Just return if we know that we're debugging. Reorganize to avoid creating a stackdump file if we are starting a debugger. Return from exception handler if debugger started successfully. (sig_handle): Create a stackdump only if debugger wasn't started. * winsup.h (try_to_debug): Add an argument.
* * path.cc (symlink_info::check): Remove extra arguments, move functionalityChristopher Faylor2001-04-302-46/+51
| | | | | | | | back to path_conv::check. Clear symlink bit from pflags argument before detecting if this is a symlink. (path_conv::check): Convert posix path here instead of symlink_info::check. Only grab volflags when using ntsec. (symlink_info::check_case): Just replace appropriate part of input path.
* minor formatting changes.Christopher Faylor2001-04-292-6/+6
|
* * passwd.cc (ttymnam): New function.Christopher Faylor2001-04-292-7/+24
| | | | (main): Use ttynam() to report name of tty.
* Throughout, change 'tty_attached' to 'real_tty_attached', for clarity.Christopher Faylor2001-04-2814-229/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | Throughout, change 'OutputStopped' to 'output_stopped', for consistency. * dtable.cc (stdio_init): Set controlling tty if not set by stdio opens. * exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is associated with the process. (Suggested by Tim Baker <dbaker@direct.ca>) * external.cc (fillout_pinfo): Return actual tty number for ctty. * fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is allocated. Accept flags input from open(). (set_console_ctty): New function. (fhandler_console::open): Pass flags to get_tty_stuff and rely on this function to set the ctty, if appropriate. * fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class. * fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access set_ctty(). * tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h. (tty_min): Add set_ctty class here. * include/sys/cygwin.h (TTY_CONSOLE): New home here. * path.cc (symlink_info): Make contents an actual buffer. Pass more flags to case_check. (path_conv::check): Reorganize to do parsing based on posix path rather than native path. (symlink_info::check): Expect posix path as input. Translate to native path here. Accept path_conv flags. Stop parsing if not a symlink regardless of whether previous path was a symlink.
* 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-272-1/+5
| | | | * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.
* 2001-04-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-04-272-0/+5
| | | | * libc/include/stdlib.h: Add prototype for _strtod_r.
* * thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reentChristopher Faylor2001-04-275-11/+18
| | | | | | | structure of newlib. * sigproc.h (sig_send): Add exception parameter to sig_send. * sigproc.cc (sig_send): Ditto. Use it when setting frame info. * exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.
* Add openRISC support in opcodesNick Clifton2001-04-272-0/+5
|
* * winsup.api/mmaptest04.c: Take care for binmode explicitely.Corinna Vinschen2001-04-272-2/+10
|
* * tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking.Egor Duda2001-04-273-4/+36
| | | | | * fhandler_tty.cc (fhandler_pty_master::accept_input): If pipe buffer is full, give slave a chance to read data.
* * security.cc (alloc_sd): Add unrelated ACCESS_ALLOWED_ACE behindCorinna Vinschen2001-04-262-8/+11
| | | | the `everyone' ACE.
* * configure.in (noconfigdirs): Don't reset it from scratch in theAlexandre Oliva2001-04-262-3/+8
| | | | target case; only append to it.
* * configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,Alexandre Oliva2001-04-262-3/+25
| | | | sparc-*-solaris2.8]: Disable ${libgcj}.
* * configure.in (libgcj_saved): Copy from $libgcj.Alexandre Oliva2001-04-252-0/+22
| | | | | (libgcj): Zero out if --enable-libgcj; add to noconfigdirs is --disable-libgcj.
* * sigproc.h [sigthread]: Add exception field.Christopher Faylor2001-04-254-3/+16
| | | | | | | [sigframe::~sigframe]: Clear exception field. [sigframe::set]: Set exception field from caller. * sigproc.cc (sig_send): Set exception field when frame pointer is passed in. * exceptions.cc (interrupt_on_return): Always treat exception as interruptible.
* * cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_rEgor Duda2001-04-253-1/+15
| | | | * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 39
* * include/cygwin/version.h: Bump minor version number.Christopher Faylor2001-04-253-2/+7
| | | | * childinfo.h: Bump child structure magic number.
* * uinfo.cc (internal_getlogin): Return pointer to struct passwd.Corinna Vinschen2001-04-253-6/+12
| | | | | (uinfo_init): Accommodate the above change. * syscalls.cc (seteuid): Ditto.
* * autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16.Corinna Vinschen2001-04-2513-153/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygheap.cc: Include security.h. * grp.cc (internal_getgrent): New function. (getgroups): Rearranged using `internal_getgrent' and the new `cygsid' class. * passwd.cc (internal_getpwent): New function. * sec_acl.cc: Use new `cygsid' class throughout. (acl_access): Use `internal_getgrent' instead of `getgrent'. * sec_helper.cc: Use new `cygsid' class throughout. (get_id_from_sid): Use `internal_getgrent' instead of `getgrent'. Use `internal_getpwent' instead of `getpwent'. * security.cc: Use new `cygsid' class throughout. * security.h: Move `MAX_SID_LEN' from winsup.h to here. Add extern declarations for `internal_getgrent' and `internal_getpwent'. (class cygsid): New class. * shared.cc (sec_user): Use new `cygsid' class. * syscalls.cc (seteuid): Try to set owner to user and primary group to current group in impersonation token before performing impersonation. (setegid): Try to set primary group in process token to the new group if ntsec is on. * uinfo.cc (internal_getlogin): Use new `cygsid' class. Try to set owner to user and primary group to current group in process token if the process has been started from a non cygwin process. (uinfo_init): Set primary group only if the process has been started from a non cygwin process. * winsup.h: Move define for `MAX_SID_LEN' to security.h.
* * fhandler_dsp.cc: Improved handling of 8 bit playback modes.Corinna Vinschen2001-04-252-3/+30
| | | | Put in mock support for SNDCTL_DSP_SETFRAGMENT.
* * lib/Makefile.in: Install libraries in /usr/lib/w32api when building forChristopher Faylor2001-04-252-10/+19
| | | | cygwin.
* 2001-04-24 Charles Wilson <cwilson@ece.gatech.eduJeff Johnston2001-04-244-25/+45
| | | | | | | | | | | * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN * libc/stdio/vprintf.c (_vprintf_r): new function * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf. * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use _DEFUN, and call _vfprintf_r, not vfprintf.
* * passwd.cc (getpwnam_r): Add pw_passwd handling as well.Corinna Vinschen2001-04-242-2/+13
| | | | (getpwuid_r): Ditto.
* * passwd.cc (getpwnam_r): Use correct offsets into buffer.Corinna Vinschen2001-04-242-6/+18
| | | | | Copy pw_gecos field as well. (getpwuid_r): Ditto.
* * include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.Christopher Faylor2001-04-242-2/+7
|
* * sparc.h: Fix typo.DJ Delorie2001-04-242-1/+5
|
* * dlmalloc.c: New file. Port of Doug Lea's mallocEgor Duda2001-04-2410-56/+4062
| | | | | | | | | | | | * dlmalloc.h: Ditto. * Makefile.in: Add support for MALLOC_DEBUG * config.h.in: Ditto. * winsup.h: Ditto. * configure.in: Add --enable-malloc-debugging option. * configure: Regenerate. * debug.h: Include declarations for debugging malloc. * tty.cc (grantpt): Fix definition. (unlockpt): Ditto.
* Add OpenRISC supportNick Clifton2001-04-243-0/+48
|
* * include/winsock2.h: Protect some more newlib defines when compiling cygwinChristopher Faylor2001-04-242-1/+6
|
* Remove trailing underscore from fhandler_base and friends, throughout.Christopher Faylor2001-04-2413-66/+113
| | | | | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_base::set_open_status): New method. Stores original open status. (fhandler_base::get_open_status): New method. Retrieves original open status. (fhandler_base::reset_to_open_binmode): New method. * fhandler.cc (fhandler_base::open): Save open status. (fhandler_base::init): Ditto. * fhandler_clipboard.cc (fhandler_clipboard::open): Ditto. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_dsp.cc (fhandler_dsp::open): Ditto. * fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_dev_random.cc (fhandler_dev_random::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto. * fhandler_tty_master.cc (fhandler_tty_master::open): Ditto. * fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto. * syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open state. * fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when converting from deciseconds to milliseconds.