summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.Christopher Faylor2000-06-151-1/+1
|
* * path.cc (normalize_posix_path): Convert path to POSIX if it seems to be aChristopher Faylor2000-06-152-19/+46
| | | | Windows path.
* * environ.cc (conv_envvars): Detect and convert all environment variables usedChristopher Faylor2000-06-152-0/+9
| | | | by libiberty's choose-temp.c
* * path.cc (mount_info::add_item): The previous patch can't handle the case ofChristopher Faylor2000-06-132-6/+13
| | | | overwriting a mount entry.
* * thread.h: Shorten "current_directory" variables to "cwd_*" throughout.Christopher Faylor2000-06-133-62/+69
| | | | | | | * path.cc: Ditto. (normalize_posix_path): Add some extra debugging info. (chdir): Ditto. Store chdir'ed posix and MS-DOS directory names in "cache" here rather than trying to derive them later.
* * fhandler_random.cc (read): Call CryptAquireContext withCorinna Vinschen2000-06-112-2/+8
| | | | CRYPT_VERIFYCONTEXT.
* * path.cc (path_conv::check): Erase two lines checked inCorinna Vinschen2000-06-082-2/+5
| | | | by mistake.
* * fhandler.cc (fhandler_disk_file::open): Check for directoryCorinna Vinschen2000-06-082-2/+11
| | | | to set O_DIROPEN on directories anyway.
* path.cc (mount_info::init): Eliminate the mount_slash feature.Corinna Vinschen2000-06-083-141/+88
| | | | | | | | | | | | | | | | | (mount_slash): Eliminated. (mount_info::read_mounts): Eliminate looking up existing entries. The loop for deleting cygpath entries is done only when such entries exist. (mount_info::from_registry): Eliminate sorting. (mount_info::add_item): Call add_reg_mount if necessary. Check nmounts more precisely. Use strcasematch in looking up existing entries. (mount_info::del_item): Call del_reg_mount if necessary. Use strcasematch. Use memmove instead of memcpy. (mount_info::import_v1_registry): Everything is done in this method. (mount_info::to_registry): Eliminated. (mount_info::from_v1_registry): Eliminated. (cygwin_umount): Simply call del_item. shared.h: Modify the declaration of add_item and del_item. Remove the declaration of from_v1_registry.
* * include/cygwin/version.h: Bump DLL minor version number to 3.Christopher Faylor2000-06-082-1/+5
|
* * cygwin.din: add cygwin_dll_initDJ Delorie2000-06-084-0/+55
| | | | | | * dcrt0.cc (cygwin_dll_init): new (dll_crt0_1): short circuit if manually loaded * path.cc (mount_info::init): don't init if manually loaded
* * include/netinet/in_systm.h: New file.Corinna Vinschen2000-06-073-0/+45
| | | | * include/cygwin/in_systm.h: Ditto.
* * exceptions.cc: Remove unneeded include.Christopher Faylor2000-06-017-27/+40
| | | | | | * dcrt0.cc: Wrap LoadDLLfunc stuff in dummy function. * init.cc: Ditto. * uinfo.cc: Ditto.
* * autoload.h: Put each info block in its own dummy static function.Christopher Faylor2000-06-012-1/+11
|
* * include/cygwin/version.h: use decimal, NOT octalDJ Delorie2000-05-312-2/+8
|
* * fhandler.cc (fhandler_disk_file::open): Check for executableCorinna Vinschen2000-05-312-2/+8
| | | | even if ntsec is on if filesystem doesn't support ACLs.
* * dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functionsCorinna Vinschen2000-05-312-5/+10
| | | | with parameter `notimp' set to 1.
* * path.cc (mount_info::conv_to_win32_path): Previous patch was too aggressiveChristopher Faylor2000-05-302-5/+12
| | | | in adding a trailing slash.
* Needed for previous changes.Christopher Faylor2000-05-301-0/+2
|
* * Makefile.in: Remove libadvapi32.a.Christopher Faylor2000-05-3011-130/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autoload.h: Add additional field to autoload block for handling unimplemented functions. (LoadDLLfuncEx): New function which accepts additional parameter for controlling unimplemented function behavior. (LoadDLLfunc): Use LoadDLLfuncEx. * dcrt0.cc: Use new arguments for LoadDLLfunc. Add advapi32 routines. (noload): Rewrite in assembler. Handle new unimplemented function type. * exceptions.cc: Eliminate another vestige of StackWalk stuff. * net.cc: Use new arguments for LoadDLLfunc. * uinfo.cc: Ditto. * config.h.in: Remove obsolete define. * path.h (isdrive): New macro. * dcrt0.cc (globify): Use new macro to determine if a string refers to an MS-DOS drive. * environ.cc (winenv): Ditto. * spawn.cc (find_exec): Ditto. * path.cc (get_raw_device_number): Ditto. (mount_info::conv_to_posix_path): Ditto. (chdir): Ditto. (cygwin_posix_path_list_p): Ditto. (cygwin_split_path): Ditto. (path_conv::check): Move tmp_buf to beginning of function since it can be used earlier in the loop. Use tmp_buf rather than 'root' to hold root information. (mount_info::conv_to_win32_path): Add trailing slash to end of mount path when it translates to a drive. Add defensive code to avoid writing beyond the end of 'dst'.
* * fhandler_random.cc (read): Use CRYPT_MACHINE_KEYSET inCorinna Vinschen2000-05-272-4/+10
| | | | | call to CryptAcquireContext() to serve users that did not log in interactively.
* * errno.cc (errmap): Map ERROR_BAD_NET_NAME to errno ENOSHARE.Corinna Vinschen2000-05-262-0/+5
|
* * sigproc.h (sigframe::set): Accept a default frame pointer.Christopher Faylor2000-05-263-4/+12
| | | | * sigproc.cc (sig_send): Use passed in frame pointer, if appropriate.
* * dir.cc (rmdir): Use file attributes that have already been discovered byChristopher Faylor2000-05-252-2/+3
| | | | path_conv.
* * dir.cc (rmdir): Use file attributes that have already been discoveredChristopher Faylor2000-05-252-2/+2
| | | | by path_conv.
* * dir.cc (rmdir): Use file attributes that have already been discovered byChristopher Faylor2000-05-252-3/+7
| | | | path_conv.
* Patch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>:Corinna Vinschen2000-05-252-1/+6
| | | | * dir.cc (rmdir): Correct the manner in checking the target directory.
* * dir.cc (writable_directory): Comment out previous code,Corinna Vinschen2000-05-244-7/+34
| | | | | | | | | | return always 1 for now. (mkdir): Call set_file_attribute explicitely with S_IFDIR mode bit. * syscalls.cc (chown_worker): Ditto. (chmod): Ditto. * security.cc (get_nt_attribute): Fix error in debug output. Never set FILE_DELETE_CHILD for files. Construct appropriate inherit attribute according to file type.
* * syscalls.cc (_cygwin_istext_for_stdio): New, for newlibDJ Delorie2000-05-233-2/+62
| | | | | * include/cygwin/version.h: Bump API number for detect old programs using old getc/putc macros
* * dir.cc (writable_directory): handle root directoriesDJ Delorie2000-05-232-0/+8
|
* * uname.cc (uname): Use a "s" to denote a snapshot to avoid confusion with theChristopher Faylor2000-05-232-1/+6
| | | | number "5".
* * path.cc (mount_info::conv_to_posix_path): Avoid putting a trailing slash on aChristopher Faylor2000-05-234-27/+48
| | | | | | | | | | | | | directory name when the ms-dos path spec is a root directory of a device. * registry.cc (reg_key::build_reg): Set 'key_is_invalid' flag rather than using an INVALID_HANDLE_KEY. (reg_key::get_int): Test for key validity before performing registry operations. (reg_key::set_int): Ditto. (reg_key::get_string): Ditto. (reg_key::set_string): Ditto. (reg_key::kill): Ditto. (reg_key::~reg_key): Ditto.
* * mkvers.sh: Use snapshot date as build date since it is more interesting.Christopher Faylor2000-05-233-6/+23
| | | | | * uname.cc (uname): Detect if this is a snapshot build and add an "S" to the version number. Report the snapshot date as the release date.
* * environ.cc (regopt): Scan HKLM if HKCU scan fails.Christopher Faylor2000-05-222-0/+10
|
* * dir.cc (rmdir): Care for misleading error messagesCorinna Vinschen2000-05-223-8/+26
| | | | | | | when trying to remove a directory on a samba share. Eliminate superfluous else branch. * syscalls.cc (_rename): Additional check for ERROR_FILE_EXISTS if MoveFile fails.
* * dcrt0.cc (dll_crt0_1): Move uinfo_init call to before sigproc_init to avoid aChristopher Faylor2000-05-223-16/+18
| | | | | | | race. (noload): Add an extra argument for debugging. * uinfo.cc (uinfo_init): Eliminate test for multiple calls. (getlogin): Assume that uinfo_init has already been called.
* * exceptions.cc (interruptible): Add an argument to control whether functionChristopher Faylor2000-05-202-37/+67
| | | | | | just checks for validity. Flag module handle == 0 as noninterrupible. (call_handler): Always acquire and release ebp lock. Loop for only a fixed amount of time attempting to grab mutos and find an interruptible PC.
* * syscalls.cc (setmode): change mode of any matching FILE* also.DJ Delorie2000-05-192-0/+26
|
* * Makefile.in: Remove external.h dependency.Christopher Faylor2000-05-184-6/+15
| | | | | * dcrt0.cc (sigthread::init): Move here from sigproc.h. * sigproc.h (sigthread): Move init to dcrt0.cc.
* Eliminate.Christopher Faylor2000-05-181-50/+0
|
* * select.cc (thread_pipe): Add paranoid check to ensure thread termination.Christopher Faylor2000-05-186-26/+88
| | | | | | | | | * external.cc: Eliminate obsolete include. * getopt.c (getopt_long): Fix compiler warning. * shared.h: Moved PID_ definitions to include/sys/cygwin so that they can be used by external programs. * include/sys/cygwin.h: Move external definitions here. Include sys/resource.h to avoid having to do this everywhere.
* * sigproc.h (sigframe): Don't set frame info unless tid matches this thread id.Christopher Faylor2000-05-182-1/+6
|
* * dcrt0.cc (dll_crt0_1): Initialize mainthread stuff here before anything needsChristopher Faylor2000-05-185-6/+22
| | | | | | | | it. * sigproc.cc (sigproc_init): Move mainthread initialization out of here. * sigproc.h (sigthread): Add init() method. (sigframe): Don't try to initialize muto. * sync.cc: Undef WaitForSingleObject to avoid recursion.
* * testsuite/winsup.api/crlf.c: NewDJ Delorie2000-05-173-0/+647
| | | | * testsuite/winsup.api/iospeed.c: New
* * path.cc (mount_info::cygdrive_posix_path): Don't add trailing slash ifChristopher Faylor2000-05-1715-69/+182
| | | | | | | | | | | | | | | | | | | | | | | | | referring to something like c:\. * dcrt0.cc (dll_crt0_1): Move uinfo initialization prior to sig_send initialization to give signal thread a chance to finish. * debug.cc (WFSO): Move to sigproc.cc (WFMO): Ditto. * exceptions.cc (interruptible): Allocate slightly more space for directory just for paranoia's sake. (call_handler): Eliminate nonmain argument. Determine if main thread has set a frame pointer and use it if so. (sig_handle): Eliminate nonmain argument. * net.cc: Record frame information in appropriate routines throughout. * select.cc (select): Ditto. * sigproc.cc: Use sigthread structure to record mainthread id throughout. (sig_send): Record frame information for signal handler. (wait_sig): Reflect argument change in sig_handle. (WFSO): Move here and record frame information for signal handler. (WFMO): Ditto. * sigproc.h: Implement new "sigthread" class. Implement "sigframe" class for manipulating signal frame info. * thread.cc (__pthread_kill): Use standard _kill() function rather than calling sig_send directly. * winsup.h: Eliminate ebp element from signal_dispatch class.
* * fhandler_tape.cc (fhandler_dev_tape::ioctl): CheckCorinna Vinschen2000-05-162-1/+12
| | | | for filemark feature on MTWEOF operation.
* * include/cygwin/in.h (AF_INET6): Use correct in6_addr struct.Christopher Faylor2000-05-162-1/+5
|
* * include/cygwin/version.h: Bump DLL minor version number to 2.Christopher Faylor2000-05-152-5/+5
|
* * shared.h: Bump PROC_MAGIC.Christopher Faylor2000-05-153-2/+9
| | | | * include/cygwin/version.h: Bump API minor to accomodate two recent exports.
* 2000-05-13 Mumit Khan <khan@xraylith.wisc.edu>Mumit Khan2000-05-142-1/+5
| | | | * include/cygwin/socket.h (AF_INET6): Use same value as winsock2.