summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libc/stdlib/mbtowc_r.c (_mbtowc_r): Avoid dereferencingJonathan Larmour2001-06-112-2/+9
| | | | NULL pointer.
* * path.cc (chdir): Fix call to path_conv constructor so that it REALLY doesn'tChristopher Faylor2001-06-112-2/+7
| | | | check for the null/non-empty path.
* * path.cc (path_conv::update_fs_info): Don't consider remote drives to be NTFS.Christopher Faylor2001-06-112-18/+22
| | | | | Set root_dir before invoking GetDriveType (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>). Eliminate extra checks for rootdir.
* * path.cc (chdir): Pre-check path for validity before eating trailing space.Christopher Faylor2001-06-112-7/+32
| | | | Then, ensure that path_conv doesn't check the path for validity again.
* * exceptions.cc (sigdelayed): Ensure that signal is cleared as the lastChristopher Faylor2001-06-103-4/+17
| | | | | operation or suffer races. * sigproc.cc (proc_subproc): Deal with zombie array overflow.
* * cygwin.din: Add fchdir symbols.Corinna Vinschen2001-06-105-10/+36
| | | | | | | * path.cc (chdir): Guard against invalid parameter. (fchdir): New function. * include/cygwin/version.h: Bump API minor version to 40. * uinfo.cc (internal_getlogin): Remove unused variable.
* * syscalls.cc (seteuid): Set environment variables USERNAME andCorinna Vinschen2001-06-093-84/+185
| | | | | | | | | USERDOMAIN before impersonation to workaround a LookupAccountSid() misbehaviour. * uinfo.cc (internal_getlogin): Revert most of the previous change. Don't set environment variables USERNAME and USERDOMAIN. That's the job of seteuid() now. Try to get logon server from Lsa only if logon server isn't already known.
* * Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): IfAlexandre Oliva2001-06-082-0/+12
| | | | | gcc/xgcc is built, use -print-prog-name to find out the program name to use.
* * thread.cc (pthread_cond::Broadcast): Don't print error messages on invalidChristopher Faylor2001-06-072-1/+16
| | | | | | mutexs - user programs are allowed to call pthread_cond_broadcast like that. (__pthread_cond_timedwait): Initialise themutex properly. (__pthread_cond_wait): Initialise themutex properly.
* * Makefile.in (bindist): Reassign value of exec_prefix on make commandEarnie Boyd2001-06-062-1/+7
| | | | line.
* * fhandler_console.cc (fhandler_console::dup): Allocate space forCorinna Vinschen2001-06-052-6/+12
| | | | | savebuf on Cygwin heap. (fhandler_console::char_command): Ditto. Use correct values for size.
* * security.h (NTWriteEA): Change prototype.Egor Duda2001-06-057-38/+140
| | | | | | | | | | | | | | | | | | | * ntea.cc (NTReadEA): Don't check for global ntea setting, now it's caller responsibility. (NTWriteEA): Ditto. * security.cc (get_file_attribute): Read attribute from EA only if 'ntea' is enabled. (set_file_attribute): Ditto. * path.h: (class path_conv): Add members to store file system information. (path_conv::get_drive_type): New function. * syscalls.cc (stat_worker): Use it. * path.cc (path_conv::update_fs_info): New functions. (path_conv::check): Get file system information from device where file resides. On NTFS, try to read symlink contents from EA. (get_symlink_ea): New function. (set_symlink_ea): Ditto. (symlink): Store symlink in extended attribute, if possible.
* * fhandler.cc (fhandler_disk_file::fstat): Always reset file positionCorinna Vinschen2001-06-052-8/+20
| | | | to original value after checking for executable magic.
* * profile/Makefile.in (mkinstalldirs): Correct relative path.Earnie Boyd2001-06-041-1/+1
|
* * include/_mingw.h: Change version to 1.0.Earnie Boyd2001-06-043-4/+9
| | | | Makefile.in: Ditto.
* * ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,Alexandre Oliva2001-06-042-5/+14
| | | | with_gcc]: Use `gcc -shared' to build a shared library.
* * ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link sharedAlexandre Oliva2001-06-042-4/+16
| | | | archives.
* * cygheap.h (cygheap_user::cygheap_user): Initialize token toCorinna Vinschen2001-06-043-1/+10
| | | | | INVALID_HANDLE_VALUE. * uinfo.cc (uinfo_init): Close token handle if needed.
* * path.cc (normalize_posix_path): Revert .. check removed by previous changes.Christopher Faylor2001-06-045-26/+39
| | | | * cygheap.h: Temporarily declare path_prefix_p here.
* * net.cc (wsock_event): Add destructor.Corinna Vinschen2001-06-032-0/+10
|
* * dlfcn.cc (dlclose): Do not call FreeLibrary if the symbol to close wasChristopher Faylor2001-06-032-1/+8
| | | | obtained by dlopen(NULL,...).
* * syscalls.cc (sleep): Try to be a little more accomodating of signal arrival.Christopher Faylor2001-06-032-7/+17
| | | | Ensure that the signal handler is called.
* * cygheap.cc (cygheap_root::cygheap_rot): Remove constructor.Christopher Faylor2001-06-037-138/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cygheap_root::~cygheap_root): Remove destructor. (cygheap_root::operator =): Remove. (cygheap_root::set): New method. * cygheap.h (cygheap_root): Reflect above changes. Store root info in mount-like structure. (cygheap_root:posix_ok): New method. (cygheap_root::ischroot_native): Ditto. (cygheap_root::unchroot): Ditto. (cygheap_root::exists): Ditto. (cygheap_root::posix_length): Ditto. (cygheap_root::posix_path): Ditto. (cygheap_root::native_length): Ditto. (cygheap_root::native_path): Ditto. * dir.cc (opendir): Remove special chroot test. * path.cc (path_prefix_p): Remove front end. (normalize_posix_path): Reorganize chroot tests to accomodate new convention of allowing paths using posix chroot prefix. (path_conv::check): Pass a "already ran normalize" option to conv_to_win32_path. Return if there is an error from this function. (mount_info::conv_to_win32_path): Add extra argument. Don't call normalize_posix_path if caller has already done so. Substitute chroot setting, if any, for root translation. Add chroot checking to final output step. * shared_info (mount_info): Accomodate additional argument to conv_to_win32_path. * syscalls.cc (chroot): Store both normalized posix path and native path in chroot.
* * path.cc (chdir): Really make sure that isspace gets only an unsigned char.Christopher Faylor2001-06-012-1/+6
|
* * syscalls.cc (_rename): Handle the case that `foo' is renamed toCorinna Vinschen2001-06-012-8/+33
| | | | `bar' while `bar.lnk' is an existing shortcut-symlink.
* revert.Christopher Faylor2001-06-011-14/+14
|
* * fhandler.cc (fhandler_disk_file::fstat): Avoid clearing S_IFMT bits sinceChristopher Faylor2001-05-312-3/+11
| | | | we've already pre-cleared everything anyway.
* Maintain 80 col line length.Christopher Faylor2001-05-311-1/+2
|
* * path.cc (chdir): Always send unsigned chars to isspace since newlib's isspaceChristopher Faylor2001-05-318-62/+91
| | | | | | | | | | | | | | | | | | | | doesn't deal well with "negative" chars. * fhandler.cc (fhandler_disk_file::open): Propagate remote status of file garnered from path_conv. Move #! checking to fstat. (fhandler_disk_file::fstat): Reorganize st_mode setting to eliminate duplication. Move check for #! here from fhandler::open. * fhandler.h (fhandler_base::isremote): New method. (fhandler_base::set_isremote): Ditto. (fhandler_base::set_execable_p): Also record "don't care if executable state". (fhandler_base::dont_care_if_execable): New method. * path.cc (path_conv::check): Clear new flags. Appropriately set vol_flags, drive_type, and is_remote_drive. * path.h: Add new flags and methods for manipulating them. * syscalls.cc (_unlink): Use isremote() to determine if a path is remote rather than calling GetDriveType. (stat_worker): Ditto. * security.cc (get_file_attribute): Or attribute with result of NTReadEA to be consistent with get_nt_attribute.
* New entry "How do I print under Cygwin?"David Starks-Browning2001-05-301-0/+6
|
* New entry "Where is Objective C?"David Starks-Browning2001-05-301-0/+8
|
* New entry "How do I contribute to Cygwin?"David Starks-Browning2001-05-301-0/+5
|
* * Makefile.in: Tweak to attempt to accomodate older texi2html.Christopher Faylor2001-05-302-1/+5
|
* * sec_helper.cc (cygsid::getfrompw): Change parameter to `const'.Corinna Vinschen2001-05-295-190/+140
| | | | | | | | | | | (cygsid::getfromgr): Ditto. * security.cc: Use `sys_mbstowcs' and `sys_wcstombs' throughout. (extract_nt_dom_user): Try to get user and domain from SID in pw->pw_gecos first. * security.h (class cygsid): Change parameter of getfrompw() and getfromgr() to `const'. * uinfo.cc (internal_getlogin): Change order for evaluating user information in winNT case. Drop usage of NetWkstaUserGetInfo().
* * Makefile.in: Accomodate newer versions of docbook and openjade.Christopher Faylor2001-05-293-8/+12
|
* Avoid NAME too long error.Christopher Faylor2001-05-291-14/+14
|
* Expand entry "why doesn't my script work"David Starks-Browning2001-05-291-1/+2
|
* Update entry about PATH, now done in /etc/profile not cygwin.bat.David Starks-Browning2001-05-291-26/+10
| | | | Remove entry "Where can I find 'which'" since it's included now.
* Add pointer to google for searching list archives.David Starks-Browning2001-05-291-0/+2
|
* Remove distinction between latest and contrib in list of packages.David Starks-Browning2001-05-291-20/+14
|
* * shortcut.c (check_shortcut): Treat only Cygwin shortcuts as symlinks.Corinna Vinschen2001-05-292-2/+9
|
* * ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++ sharedAlexandre Oliva2001-05-282-30/+35
| | | | libraries when using g++ with native linker.
* * ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256.Alexandre Oliva2001-05-283-34/+39
|
* Handle printf ("%#.0o",0);Nick Clifton2001-05-282-0/+16
|
* Fix some entries.Alan Modra2001-05-283-4/+9
|
* Fix bug when both pointers have matching, non-word alignment, and the lengthNick Clifton2001-05-252-85/+95
| | | | | is <= 4 but more than enough to move them over a word boundary. Add comments explaining what each instruction does.
* * path.cc (symlink_info::check): Correctly set 'ext_tacked_on'. Use this toChristopher Faylor2001-05-252-15/+20
| | | | | determine if user specified 'foo.lnk' explicitly. Reorganize slightly to get rid of one goto.
* * path.cc (symlink_info::check): Add a check to return correctlyCorinna Vinschen2001-05-252-1/+6
| | | | if incoming `*.lnk' file is not a symlink.
* * path.cc (slash_drive_prefix_p): Remove.Christopher Faylor2001-05-253-45/+20
| | | | | | | | (mount_info::slash_drive_to_win32_path): Ditto. (mount_info::conv_to_win32_path): Remove slash drive prefix check. (mount_info::add_item): Ditto. (mount_info::del_item): Ditto. * shared_info.h (mount_info): Remove slash_drive_to_win32_path declaration.
* Support for xcoff64, enable ld for aixTom Rix2001-05-242-12/+7
|