summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path along toChristopher Faylor2002-05-2410-55/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | set_name via return_and_clear_normalized_path. (dtable::build_fhandler): New method with const char * argument. (dtable::reset_unix_path_name): Eliminate. (dtable::dup_worker): Use correct build_fhandler method. * mmap.cc (mmap_record::alloc_fh): Ditto. * dtable.h (dtable::build_fhandler): New method. (dtable::reset_unix_path_name): Eliminate. * fhandler.cc (fhandler_base::set_name): Assume that unix_name has already been cmalloced. (fhandler_base::reset_unix_path_name): Eliminate. (fhandler_base::~fhandler_base): Coercion for cfree. * fhandler.h (fhandler_base::unix_path_name): Make const char *. (fhandler_base::win32_path_name): Ditto. (fhandler_base::reset_unix_path_name): Eliminate. * fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate const char *ness of win32_path_name. * fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name requirements. * path.cc (path_conv::return_and_clear_normalized_path): New method. (path_conv::clear_normalized_path): Eliminate. (path_conv::~path_conv): Ditto. (path_conv::check): Accommodate new build_fhandler method. * path.h (path_conv::~path_conv): Eliminate. (path_conv::clear_normalized_path): Ditto. (path_conv::return_and_clear_normalized_path): Declare new method.
* * path.cc (path_conv::check): Make sure any trailing path component is part ofChristopher Faylor2002-05-232-1/+10
| | | | potential normalized posix path.
* * getfacl.c (usage): Standardize usage output. Change return type toCorinna Vinschen2002-05-232-58/+101
| | | | | | | static void. (print_version): New function. (longopts): Added longopts for all options. (main): Accommodate new help and version options.
* * smallprint.c (__small_vsprintf): Implement '%o' after all these years.Christopher Faylor2002-05-232-0/+8
|
* fix typo.Christopher Faylor2002-05-231-1/+1
|
* * mount.cc (version) New global variable.Christopher Faylor2002-05-232-23/+73
| | | | | | | | (usage) Standardize usage output. Accomodate new version option. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * fhandler.h (fhandler_virtual::exists): Eliminate path argument.Christopher Faylor2002-05-228-24/+40
| | | | | | | | | | | | | | (fhandler_proc::exists): Ditto. (fhandler_registry::exists): Ditto. (fhandler_process::exists): Ditto. * fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name. * fhandler_process.cc (fhandler_process::exists): Ditto. (fstat): Ditto. * fhandler_registry.cc (fhandler_registry::exists): Ditto. (fhandler_registry::fstat): Ditto. * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto. * path.cc (path_conv::check): Ditto. Add debugging. * syscalls.cc (dup): Always call dup2 for error handling.
* * include/cygwin/types.h: Revert previous patch.Corinna Vinschen2002-05-222-2/+4
|
* * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADSCorinna Vinschen2002-05-222-0/+7
| | | | is defined.
* * cygpath.cc (usage): Change usage output slightly.Corinna Vinschen2002-05-223-105/+303
| | | | | | | | | | | | | | | | * cygpath.cc (main): Add option l to support conversion to Windows long file names. Refactured code for capital options. Support of options from file for capital options. (dowin): New function. Refactured from main. (doit): Call long path conversion. (get_long_name): New function. (get_long_paths): New function. (get_long_path_name_w32impl): New function. Reimplementation of Windows API function GetLongPathName (only 98/Me/2000/XP or higher). (get_short_name): Call GetShortPathName only once. (get_short_paths): Fix calculating buffer size. * utils.sgml: Update cygpath section for l option.
* * Makefile.in: Increment VERSION to 1.4.Earnie Boyd2002-05-212-2/+9
| | | | | (conf_prefix): New variable. (bindist): Modify target to use $(conf_prefix).
* * security.cc (open_local_policy): Initialize lsa toCorinna Vinschen2002-05-212-4/+12
| | | | | | | INVALID_HANDLE_VALUE instead of NULL. (get_logon_server_and_user_domain): Test for INVALID_HANDLE_VALUE instead of NULL. (create_token): Both of the above.
* 2002-05-20 Philip Aston <philipa@mail.com>Danny Smith2002-05-202-1/+5
| | | | * include/pbt.h (PBT_APMRESUMESUSPEND): Correct value is 7.
* 2002-05-20 Ren� M�ller Fonseca <fonseca@users.sourceforge.net>Danny Smith2002-05-202-43/+49
| | | | | | * include/lmaccess.h: (NetAccess*, NetGroup*, NetLocalGroup*, NetUser*, NetGet*, INetLogonControl[2], NetQueryDisplayInfotmationIndex): Replace LPWSTR with LPCWSTR.
* * fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of nlinkChristopher Faylor2002-05-182-4/+8
| | | | consistent for remote files.
* * strace.cc (add_child): Use calloc since new requires working libstdc++.a.Christopher Faylor2002-05-182-2/+8
| | | | (fhandler_disk_file::fstat): Ditto for delete/free.
* * path.cc (path_conv::check): Always set executable bit for executableChristopher Faylor2002-05-184-3/+10
| | | | extension.
* remove white spaceChristopher Faylor2002-05-181-2/+2
|
* * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with highChristopher Faylor2002-05-172-2/+16
| | | | | order part of 64 bit address on OS's which do not support that kind of operation. Otherwise Windows 95 will become confused.
* * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()Corinna Vinschen2002-05-173-15/+22
| | | | | | | | | | by __seterrno_from_win_error(). * security.cc (open_local_policy): Ditto. (get_lsa_srv_inf): Ditto. (get_user_groups): Ditto. (get_user_primary_group): Ditto. (create_token): Ditto. (subauth): Ditto.
* * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me whenCorinna Vinschen2002-05-174-16/+9
| | | | | | opening file for writing timestamp. * wincap.cc: Remove flag has_specific_access_rights. * wincap.h: Ditto.
* * syscalls.cc (seteuid): Set default dacl in process token.Corinna Vinschen2002-05-165-74/+140
| | | | | | | | | | | | | | | Replace in-line code by call to verify_token(). (setegid): Reverse change from 2002-01-21. Add call to RevertToSelf and set primary group in impersonation token. * security.cc (create_token): Store pgrpsid in token security descriptor, except if it already appears in my_grps. Use sec_acl() in place of get_dacl(). (verify_token): Create from code in seteuid(), with tighter checks. (get_dacl) Deleted. (get_group_sidlist): Add argument to indicate if pgrpsid is already in the groups. * security.h: Define verify_token(). * autoload.cc: Load GetKernelObjectSecurity().
* * cygpath.cc (get_short_paths): Fix more error checking.Corinna Vinschen2002-05-153-58/+73
| | | | | | | | | (get_short_name): Ditto. * cygpath.cc (main): Add option H to show the Windows' profiles directory. Support short names for options DPSW. Clean up copied code lines. * utils.sgml: Update cygpath section for H option and s support.
* * cygpath.cc (get_short_name): Fix error checking.Corinna Vinschen2002-05-142-1/+5
|
* * kill.cc (prog_name) New global variable.Christopher Faylor2002-05-132-7/+60
| | | | | | | | (usage) Standardize usage output. Add descriptions. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * cygwin.din: Add strlcat and strlcpy.Christopher Faylor2002-05-133-1/+11
| | | | * include/cygwin/version.h: Increment API minor version number.
* * shared.cc (__sec_user): Split into sec_acl() and call orig_sid().Corinna Vinschen2002-05-133-42/+44
| | | | | (sec_acl): Create from part of __sec_user(), except creator/owner. * security.h: Define sec_acl() and MAX_DACL_LEN.
* * kill.cc (listsig): Display numeric id when given symbolic input.Christopher Faylor2002-05-132-1/+8
|
* document kill -h.Christopher Faylor2002-05-131-0/+3
|
* * kill.cc (usage): Show new options. Allow specification of output stream.Christopher Faylor2002-05-132-3/+13
| | | | (main): Implement 'h' option.
* Update ChangeLog with missing entry.Christopher Faylor2002-05-132-1/+8
|
* * Makefile.in (kill.exe): Add as a specific target.Christopher Faylor2002-05-134-28/+114
| | | | | | | | | | * kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
* remove a commaChristopher Faylor2002-05-121-1/+1
|
* * fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using O_DIROPEN whenChristopher Faylor2002-05-122-4/+14
| | | | OS doesn't support it. Return proper errno in that case.
* fix entryChristopher Faylor2002-05-121-3/+3
|
* * syscalls.cc (_read): Change error to EBADF if attempt to write to aChristopher Faylor2002-05-122-0/+13
| | | | non-writable fd.
* * mount.cc (do_mount): Default to non-exec option for remote drives. ReportChristopher Faylor2002-05-124-16/+70
| | | | | | | | | | | warnings before attempting a mount. (longopts): Add no-executable option. (mount_commands): Ditto. (opts): Ditto. (usage): Ditto. Indicate that system mount is now the default. (main): Accommodate no-executable option. Make system mount the default. * umount.cc (usage): Indicate that system umount is now the default. (main): Make system umount the default.
* * fhandler.h (executable_states): For now, make dont_care_if_executableChristopher Faylor2002-05-125-60/+80
| | | | | | | | | | equivalent to not_executable. * sys/mount.h: Define MOUNT_NOTEXEC. * path.h (fs_info): New class. (path_conv): Move fs-specific fields to new 'fs' structure. (path_conv::update_fs_info): Move to fs_info and rename to just 'update'. * path.cc (fs_info::update): Ditto. Return 'true' if successful. (fillout_mntent): Add ',noexec' to list of reported options.
* * fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler warning.Christopher Faylor2002-05-122-1/+6
|
* fix formattingChristopher Faylor2002-05-122-12/+17
|
* fix commentChristopher Faylor2002-05-121-1/+1
|
* * autoload.cc: Add dynamic load statements for 'ZwQueryInformationProcess' andChristopher Faylor2002-05-1210-73/+1001
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'ZwQueryVirtualMemory'. * fhandler.h: Change type of bufalloc and filesize members of fhandler_virtual from int to size_t. Change type of position member from __off32_t to __off64_t. Add new fileid member to fhandler_virtual class. Make seekdir take an __off64_t argument. Make lseek take an __off64_t argument. Add fill_filebuf method to fhandler_virtual. Add fill_filebuf method to fhandler_proc. Add fill_filebuf method to fhandler_registry. Add fill_filebuf method to fhandler_process. Add saved_pid and saved_p members to fhandler_process. * fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'. (proc_fhandlers array): Ditto. (fhandler_proc::open): Use fill_filebuf to flesh out the file contents. (fhandler_proc::fill_filebuf): New method. (fhandler_proc::format_proc_meminfo): Ditto. (fhandler_proc::format_proc_stat): Ditto. (fhandler_proc::format_proc_uptime): Ditto. * fhandler_process.cc (process_listing): Add 'stat' and 'statm'. (fhandler_process::fstat): Find the _pinfo structure for the process named in the filename. Return ENOENT if the process is no longer around. Set the gid and uid fields of the stat structure. (fhandler_process::open): Store pid and pointer to _pinfo structure in saved_pid and saved_p respectively. Use fill_filebuf to flesh out file contents. (fhandler_proc::fill_filebuf): New method. (format_process_stat): New function. (format_process_status): Ditto. (format_process_statm): Ditto. (get_process_state): Ditto. (get_mem_values): Ditto. * fhandler_registry.cc (fhandler_registry::seekdir): Change argument type from __off32_t to __off64_t. (fhandler_registry::fill_filebuf): New method. * fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type from __off32_t to __off64_t. (fhandler_virtual::lseek): Ditto. (fhandler_virtual::fill_filebuf): New method. (fhandler_virtual::fhandler_virtual): Initialise fileid to -1. * wincap.cc: Set flag has_process_io_counters appropriately. * wincap.h: Add flag has_process_io_counters.
* * syscalls.cc (_write): Change error to EBADF if attempt to write to aChristopher Faylor2002-05-092-0/+8
| | | | non-writable fd.
* * cygheap.h (class cygheap_user): Add member `orig_psid'.Corinna Vinschen2002-05-083-1/+19
| | | | | Add method `orig_sid()'. * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.
* * dumper.cc (usage) Standardize usage output. Generalize to allow use forChristopher Faylor2002-05-082-11/+59
| | | | | | | help. (longopts) New struct. Added longopts for all options. (print_version) New function. (main) Change getopt to getopt_long. Accommodate new help and version options.
* * include/commctrl.h (ImageList_DragShowNolock): RemoveDanny Smith2002-05-072-1/+5
| | | | conflicting redeclaration.
* * localtime.cc (tzsetwall): Use wildabbr if generated timezone nameCorinna Vinschen2002-05-072-7/+12
| | | | length < 3.
* * include/windows.h: Move _ANONYMOUS_UNION, _ANONYMOUS_STRUCT,Danny Smith2002-05-063-59/+65
| | | | | | | STRICT and related defines to ... * include/windef.h: Here. ChangeLog: Correct date and typo in last entry.
* * spawn.cc (spawn_guts): Move call to set_process_privilege()Corinna Vinschen2002-05-064-11/+13
| | | | | | to load_registry_hive(). * registry.cc (load_registry_hive): ditto. * fork.cc (fork_parent): Call sec_user_nih() only once.
* * path.h (path_conv::path_conv): Initialise normalized_path to NULL.Christopher Faylor2002-05-042-1/+5
|