summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * sec_helper.cc (legal_sid_type): Fix conditional. Change toCorinna Vinschen2001-05-162-3/+8
| | | | inline function.
* * autoload.h: Eliminate.Christopher Faylor2001-05-165-235/+295
| | | | | | | | | | * autoload.cc: Pull in autoload.h. Eliminate many macros. Rewrite to avoid necessity of initialization routines. Just use a standard one. (wsock_init): New function. Moved from net.cc. * net.cc (wsock_init): Move to autoload.cc. (wsadata): Make global. * dtable.cc (dtable::build_fhandler): Use more reliable method for checking if net stuff has been loaded.
* * fork.cc (fork): Eliminate superfluous call to getuid().Corinna Vinschen2001-05-1512-163/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * security.h: New define `NO_SID'. Remove declarations of functions moved to methods into class cygsid. (class cygsid): Declare new methods `getfromstr', `get_sid', `getfrompw', `getfromgr', `get_rid', `get_uid', `get_gid', `string' and new constructors and operators =, == and !=. Declare new global cygsids `well_known_XXX_sid' substituting the corresponding `get_XXX_sid' functions. Remove declarations of these functions. * sec_helper.cc (well_known_admin_sid): New global variable. (well_known_system_sid): Ditto (well_known_creator_owner_sid): Ditto (well_known_world_sid): Ditto (cygsid::string): New method, substituting `convert_sid_to_string_sid'. (cygsid::get_sid): New method, substituting `get_sid'. (cygsid::getfromstr): New method, substituting `convert_string_sid_to_sid'. (cygsid::getfrompw): New method, substituting `get_pw_sid'. (cygsid::getfromgr): New method, substituting `get_gr_sid'. (cygsid::get_id): New method, substituting `get_id_from_sid'. (get_admin_sid): Eliminated. (get_system_sid): Ditto. (get_creator_owner_sid): Ditto. (get_world_sid): Ditto. * grp.cc: Use new cygsid methods and well known sids throughout. * registry.cc: Ditto. * sec_acl.cc: Ditto. * security.cc: Ditto. * shared.cc: Ditto. * syscalls.cc (seteuid): Ditto. Eliminate redundant conditional. * uinfo.cc (internal_getlogin): Ditto. * spawn.cc (spawn_guts) Revert previous patch.
* Remove definition of EM_MIPS_RS4_BE. The constant was never in active useNick Clifton2001-05-152-1/+5
| | | | and is used otherwise by the ABI.
* Fix MIPS disassembler so that it produces reassemblable code.Nick Clifton2001-05-152-0/+5
|
* * winsup.api/winsup.exp: Force linking all tests against binmode.o.Corinna Vinschen2001-05-152-1/+5
|
* * fhandler_socket.cc (fhandler_socket::ioctl): Convert s_addrCorinna Vinschen2001-05-152-1/+7
| | | | field to host byte order before comparing with INADDR_LOOPBACK.
* * autoload.cc: Add autoload statements for ws2_32 functionsCorinna Vinschen2001-05-154-25/+191
| | | | | | | | | | | | | | `WSACloseEvent', `WSACreateEvent', `WSAGetOverlappedResult', `WSARecv', `WSARecvFrom', `WSASend', `WSASendTo' and `WSASetEvent', `WSAWaitForMultipleEvents'. * net.cc: Define wsock_evt. (wsock_event): New class. (cygwin_sendto): Use overlapped socket io if available. (cygwin_recvfrom): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * security.cc (subauth): Set Win32 error to 0 to safely ask for the error code of dynamically loaded function `LsaRegisterLogonProcess'.
* * Makefile.common: Change method for finding current directory.Christopher Faylor2001-05-152-1/+11
|
* * errno.cc (_sys_errlist): Add missing commas.Christopher Faylor2001-05-142-2/+6
|
* 2001-05-14 H.J. Lu <hjl@gnu.org>H.J. Lu2001-05-142-2/+7
| | | | | * config.if (libc_interface): Set to -libc6.2- for cross compiling to Linux/glibc 2.2.
* * security.cc (subauth): Check if Secur32.dll could be loaded.Corinna Vinschen2001-05-142-0/+9
|
* * path.cc (path_conv::check): Revert allow_ntsec check so that volume info isChristopher Faylor2001-05-142-2/+7
| | | | always retrieved and isdisk setting is properly set.
* Fix formatting.Christopher Faylor2001-05-141-4/+4
|
* * fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping aChristopher Faylor2001-05-132-1/+6
| | | | filehandle.
* * dir.cc (rmdir): Rearrange slightly to allow removing directoriesCorinna Vinschen2001-05-122-13/+34
| | | | even when R/O attribute is set.
* Correct cvtps2dq, movdq2q, movq2dq, and movq problems.Alan Modra2001-05-122-3/+9
|
* * external.cc (fillout_pinfo): Use correct pids.Christopher Faylor2001-05-113-3/+11
| | | | | * path.cc (mount_info::conv_to_win32_path): Correct test for whether to include a slash.
* merge from gccDJ Delorie2001-05-112-10/+4
|
* * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwindJakub Jelinek2001-05-112-0/+7
| | | | | | | | | | | | | | | | | | | | | | | sections as well. (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO to .gnu.linkonce.t.FOO text section. * readelf.c (process_unwind): Print all unwind sections, not just one. * config/tc-ia64.c (special_linkonce_name): New. (make_unw_section): Map .gnu.linkonce.t.FOO text section into .gnu.linkonce.ia64unw{,i}.FOO. (ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO. (dot_endp): Add comment about it. * elf/ia64.h (ELF_STRING_ia64_unwind_once): Define. (ELF_STRING_ia64_unwind_info_once): Define. * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind* output sections. * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
* * exceptions.cc (handle_exceptions): Don't print message when executing from aChristopher Faylor2001-05-112-2/+7
| | | | cygwin program.
* Christopher Faylor <cgf@redhat.com>Christopher Faylor2001-05-112-9/+49
| | | | | * environ.cc (winenv): Always add SYSTEMDRIVE and SYSYEMROOT to win32-style environment if they don't already exist.
* remove erroneous header.Christopher Faylor2001-05-091-1/+0
|
* * path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as pathsChristopher Faylor2001-05-092-1/+6
| | | | including `:' or `\'.
* * fhandler.h (fhandler_termios::echo_erase): Declare new method.Christopher Faylor2001-05-093-6/+27
| | | | | | | * fhandler_termios.cc (fhandler_termios::echo_erase): New method for echoing erase characters. (fhandler_termios::line_edit): Check the echo flag before echoing control characters (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>).
* * include/pthread.h: Remove C++ comment.Christopher Faylor2001-05-092-1/+5
|
* * cygheap.cc (_cfree): Add regparm attribute.Christopher Faylor2001-05-0812-30/+71
| | | | | | | | | | | | | | | | (_crealloc): Ditto. * dcrt0.cc (dll_crt0_1): Default to always checking for executable for now. * dtable.cc (dtable::not_open): Move method. * dtable.h (dtable): Here. * exceptions.cc (ctrl_c_handler): Don't expect process group leader to handle a signal if it doesn't exist. * fhandler.h (fhandler_base): Make openflags protected. * localtime.c (tzsetwall): Check for __CYGWIN__ as well as __WIN32__. * path.cc (path_conv::check): Add some comments. Change strcat to assignment. * lib/_cygwin_S_IEXEC.cc (_cygwin_bob__): Eliminate. * fhandler_tty.cc (fhandler_console::dup): Set controlling terminal if necessary. * fhandler_tty.cc (fhandler_tty_slave::dup): Ditto.
* merge from gccDJ Delorie2001-05-083-5/+14
|
* Fix typo.Christopher Faylor2001-05-081-1/+1
|
* * include/sys/file.h: Revert special X_OK usage. Just make it a constant.Christopher Faylor2001-05-082-8/+9
|
* * libc/include/sys/stat.h: Revert March 3, Cygwin change.Christopher Faylor2001-05-083-20/+6
| | | | * libc/include/sys/Ditto.h: Ditto.
* merge from gccDJ Delorie2001-05-072-0/+9
|
* * external.h: Fix typo.Alan Modra2001-05-073-38/+112
| | | | | | | | | | | | | | | | | | | * mips.h: Add/Extend many comments with reference to the MIPS ELF64 spec v. 2.4, available at e.g. ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps. (EF_MIPS_UCODE): Define. (EF_MIPS_OPTIONS_FIRST): Define. (EF_MIPS_ARCH_ASE): Define. (EF_MIPS_ARCH_ASE_MDMX): Define. (EF_MIPS_ARCH_ASE_M16): Define. (SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32. (SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64. (SHF_MIPS_NODUPES): Define. (ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro. (ELF64_MIPS_R_TYPE3): Likewise. (ELF64_MIPS_R_TYPE2): Likewise. (ELF64_MIPS_R_TYPE): Likewise. (OHW_R10KLDL): Define.
* Sun May 6 17:05:00 2001 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-05-063-10/+69
| | | | | | | | | | * thread.h (pthread_cond): New element cond_access to allow atomic broadcasts. * thread.cc (pthread_cond::pthread_cond): Initialise cond_access. (pthread_cond::~pthread_cond): Destroy cond_access. (pthread_cond::Broadcast): Use cond_access. (pthread_cond::Signal): Use cond_access. (pthread_cond_wait): Use cond_access. (pthread_cond_timedwait): Use cond_access.
* * string.h (cygwin_strchr): Make 'static inline' so that things will still workChristopher Faylor2001-05-062-1/+6
| | | | when optimized.
* * exceptions.cc (handle_exceptions): Vastly increase test for exception loopChristopher Faylor2001-05-052-2/+10
| | | | guard variable.
* * configure.in: Fix typo.Christopher Faylor2001-05-053-2/+7
| | | | * configure: Regenerate.
* * exceptions.cc (stack_info): Add some controls.Christopher Faylor2001-05-052-19/+44
| | | | | | | | | | | | | (stack_info::init): Add extra arguments to control method of initialization.. If we have a known good frame, set things up so that this frame is not skipped the first time through. Record whether caller cares about arguments or not. (stack_info::walk): Don't store arguments if they're unwanted. (stackdump): Add isexception parameter for use when called by exception handler. (cygwin_stackdump): Accomodate extra argument to stackdump. (handle_exceptions): Ditto. (sig_handle): Ditto. (interrupt_on_return): Accomodate extra arguments to stack walk initialization.
* * localtime.c: Revert exclusion of windows.h.Christopher Faylor2001-05-052-1/+5
|
* oops.Christopher Faylor2001-05-042-2/+3
|
* * string.h: Fix last-minute typo.Christopher Faylor2001-05-042-2/+6
|
* Revert much of previous erroneous checkin. Add ChangeLog entry.Christopher Faylor2001-05-0412-47/+103
| | | | | | | | | | | * pinfo.h: Correctly set __SIGOFFSET. * path.cc (hash_path_name): Avoid calling library functions for simple copying of characters. * shortcut.c: Use WIN32_LEAN_AND_MEAN. * smallprint.c: Ditto. * environ.cc (getwinenv): Minor clarity fix. * localtime.c: No need to include windows.h * string.h: New file.
* * exceptions.cc (ctrl_c_handler): Always send signal to process if it has noChristopher Faylor2001-05-0417-76/+63
| | | | tty.
* 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>Jeff Johnston2001-05-042-8/+10
| | | | * libc/string/strrchr.c: Use strchr for the speed improvements.
* * 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.