Christopher Faylor
53e61a867b
* path.cc (cygpath): Don't consider cygpath stuff when trying to derive native
...
paths.
2001-11-22 00:29:04 +00:00
Corinna Vinschen
87f1a487ed
Patch by Pierre Muller <muller@ics.u-strasbg.fr>:
...
* w32api/include/winnt.h: prepare SSE register support.
(CONTEXT_EXTENDED_REGISTERS): Add new define.
(MAXIMUM_SUPPORTED_EXTENSION): New define.
(struct CONTEXT): ExtendedRegisters field added.
2001-11-21 23:13:59 +00:00
Corinna Vinschen
1d3dc11398
Patch by Mark Bradshaw <bradshaw@staff.crosswalk.com>:
...
* mkpasswd.c: include lmerr.h
(main): New -u option to allow specifying a
specific user. If specified, groups aren't displayed and
output is limited to only the specified user.
(enum_users): If specific user is specified, via -u option,
display only that user's record. With -u use NetUserGetInfo
instead of NetUserEnum.
(load_netapi): Added netusergetinfo.
2001-11-21 10:39:43 +00:00
Christopher Faylor
7903ee6955
* Makefile.in (DLL_OFILES): Add fhandler_disk_file.o.
...
* cygheap.h (cygheap_fdnew::operator =): New operator.
* dir.cc: Add invalid struct checking throughout. Use methods for all
directory manipulation throughout.
* fhandler.cc: Move fhandler_disk_file stuff to own file.
(fhandler_base::opendir): New method.
(fhandler_base::readdir): New method.
(fhandler_base::telldir): New method.
(fhandler_base::seekdir): New method.
(fhandler_base::rewinddir): New method.
(fhandler_base::closedir): New method.
* fhandler_disk_file.cc: New file.
* fhandler.h (fhandler_base): Declare new virtual methods.
(fhandler_disk_file): Ditto.
(fhandler_cygdrive): New class.
* path.cc (conv_path_list): Use strccpy to break apart path.
2001-11-21 06:47:57 +00:00
Christopher Faylor
f6a6c2a358
Change copyright.
2001-11-21 04:21:36 +00:00
Egor Duda
62a602939b
* winsup.api/pthread/condvar3_1.c: Fix debugging output.
2001-11-17 21:15:47 +00:00
Christopher Faylor
9c6a5c6ea8
* path.cc (conv_path_list): Copy source paths before modifying them.
2001-11-17 20:19:19 +00:00
Corinna Vinschen
33f0f67db7
* strace.cc (main): Change getopt() to getopt_long().
...
Add support for help and version info.
Use new parse_mask() function for -m/--mask option.
(longopts): Add long options structure.
(opts): Move options string from getopts call to static var.
(usage): Print usage information.
(SCCSid): Version info.
(version): New function for displaying version info.
(parse_mask): New function supporting parsing of mnemonics,
hex, and basic expressions in masks.
(mnemonic2ul): New mnemonic parsing function.
(tag_mask_mnemonic): New type.
(mnemonic_table): New table of mnemonics for mnemonic2ul() to
search through.
2001-11-17 09:48:09 +00:00
Corinna Vinschen
42d292493b
* fhandler_raw.cc (fhandler_dev_raw::clear): Don't reset unit.
...
* fhandler_tape.cc (fhandler_dev_tape::fhandler_dev_tape): Add debug
output.
2001-11-16 23:28:56 +00:00
Egor Duda
112ef24b52
Fix typo.
2001-11-15 11:27:15 +00:00
Egor Duda
4800c7477b
* winsup.api/pthread/: New directory. Ports of pthread functionality
...
tests ported from pthreads-win32 project.
* winsup.api/pthread/test.h: Commmon declaraions for pthread tests.
* winsup.api/pthread/cleanup2.c: New test.
* winsup.api/pthread/cleanup3.c: Ditto.
* winsup.api/pthread/condvar1.c: Ditto.
* winsup.api/pthread/condvar2.c: Ditto.
* winsup.api/pthread/condvar2_1.c: Ditto.
* winsup.api/pthread/condvar3.c: Ditto.
* winsup.api/pthread/condvar3_1.c: Ditto.
* winsup.api/pthread/condvar3_2.c: Ditto.
* winsup.api/pthread/condvar3_3.c: Ditto.
* winsup.api/pthread/condvar4.c: Ditto.
* winsup.api/pthread/condvar5.c: Ditto.
* winsup.api/pthread/condvar6.c: Ditto.
* winsup.api/pthread/condvar8.c: Ditto.
* winsup.api/pthread/count1.c: Ditto.
* winsup.api/pthread/create1.c: Ditto.
* winsup.api/pthread/create2.c: Ditto.
* winsup.api/pthread/equal1.c: Ditto.
* winsup.api/pthread/exit1.c: Ditto.
* winsup.api/pthread/exit2.c: Ditto.
* winsup.api/pthread/exit3.c: Ditto.
* winsup.api/pthread/inherit1.c: Ditto.
* winsup.api/pthread/join0.c: Ditto.
* winsup.api/pthread/join1.c: Ditto.
* winsup.api/pthread/join2.c: Ditto.
* winsup.api/pthread/mutex1.c: Ditto.
* winsup.api/pthread/mutex1r.c: Ditto.
* winsup.api/pthread/mutex2.c: Ditto.
* winsup.api/pthread/mutex3.c: Ditto.
* winsup.api/pthread/mutex6r.c: Ditto.
* winsup.api/pthread/once1.c: Ditto.
* winsup.api/pthread/priority1.c: Ditto.
* winsup.api/pthread/priority2.c: Ditto.
* winsup.api/pthread/self1.c: Ditto.
* winsup.api/pthread/self2.c: Ditto.
* winsup.api/pthread/tsd1.c: Ditto.
2001-11-15 11:19:48 +00:00
Egor Duda
f38ac9b70c
* include/pthread.h (PTHREAD_COND_INITIALIZER): Define.
...
* thread.cc (__pthread_cond_destroy): Add support for
PTHREAD_COND_INITIALIZER.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_dowait): Ditto.
(__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly,
don't return error when it's passed as parameter.
* winsup.h (check_null_invalid_struct): Call correct function.
2001-11-15 11:10:38 +00:00
Christopher Faylor
e2b3dc2580
* exceptions.cc: Add stdlib.h include for alloca declaration.
...
* poll.cc: Ditto.
* termios.cc: Ditto.
* syscalls.cc (_write): Only allow zero length when fd is valid.
2001-11-15 03:25:52 +00:00
Corinna Vinschen
7158264315
* fhandler.cc (fhandler_disk_file::fstat): Add setting access time
...
and creation time to last modification time for files on filesystems
not supporting multiple timestamps.
(fhandler_disk_file::fstat_helper): Set access time and creation
time in incoming Windows structure instead of in stat buf to avoid
incorrectly overwriting Epoch timestamp.
2001-11-14 21:47:41 +00:00
Corinna Vinschen
ac0ac6534d
* winsup.h: Remove alloca definition since it's now defined through
...
inclusion of stdlib.h.
* lib/cygwin_crt0.c: Ditto.
2001-11-14 10:47:54 +00:00
Christopher Faylor
65814395b6
* syscalls.cc (_write): Allow zero length as per SUSv2.
2001-11-14 04:12:11 +00:00
Corinna Vinschen
03adcc0fda
* dir.cc (mkdir): Add HIDDEN file attribute if file has leading dot
...
and HIDDEN_DOT_FILES is defined.
* fhandler.cc (fhandler_base::open): Ditto.
* path.cc (symlink): Ditto.
* syscalls.cc (_rename): Ditto and remove HIDDEN file attribute if
new filename does not begin with a dot.
2001-11-13 21:49:06 +00:00
Corinna Vinschen
1716f3b52e
Fix ChangeLog entry.
2001-11-12 21:56:31 +00:00
Corinna Vinschen
d1ba802d67
* cygcheck.cc (dump_sysinfo): Redefine output format slightly.
2001-11-12 21:55:39 +00:00
Christopher Faylor
e1af9739e0
* cygcheck.cc (main): Slight formatting tweak.
2001-11-12 21:28:32 +00:00
Corinna Vinschen
5e051b1bf7
* cygcheck.cc (dump_sysinfo): Add some more details.
2001-11-12 20:21:43 +00:00
Christopher Faylor
daccfdf9ef
Add missing ChangeLog entry.
2001-11-12 18:22:41 +00:00
Corinna Vinschen
e4087b7526
* cygcheck.cc (dump_sysinfo): Print more detailed OS information string
...
using OSVERSIONINFOEX information.
2001-11-12 17:55:52 +00:00
Corinna Vinschen
192b4f6261
* include/winbase.h (OSVERSIONINFOEX): Add definition.
...
* include/winnt.h: Add VER_NT_* and VER_SUITE_* defines.
2001-11-12 17:53:47 +00:00
Christopher Faylor
697b8c0c32
* fhandler_console.cc (fhandler_console::read): Revert 2001-10-23 change to
...
only honor keydown events.
2001-11-12 17:06:50 +00:00
Christopher Faylor
a36ee0b6b9
* include/cygwin/version.h: Bump version to 1.3.6.
2001-11-12 00:40:29 +00:00
Christopher Faylor
64bd8a83af
* path.h: New file.
2001-11-12 00:19:17 +00:00
Christopher Faylor
71f90de808
* cygcheck.cc (scan_registry): Open registry with read-only access.
...
(main): Reflect argument change for dump_setup.
* dump_setup.cc (dump_setup): Add preliminary extra argument for future use.
* path.cc (read_mounts): Open registry with read-only access.
2001-11-12 00:14:27 +00:00
Christopher Faylor
fcc8ea58ce
fix typo.
2001-11-11 06:55:35 +00:00
Christopher Faylor
da9e28d0fa
* cygcheck.cc (main): Display package info when '-s' is specified.
...
* dump_setup.cc (dump_setup): Change header. Remove typo. Always sort
packages output.
2001-11-11 06:16:18 +00:00
Christopher Faylor
d0d517913c
* dump_setup.cc: New file.
...
* Makefile.in: Add info for dump_setup.o.
* cygcheck.cc (main): Recognize '-c' option for checking setup installed base.
* path.cc (cygpath): Read mount table if not loaded.
2001-11-11 06:07:36 +00:00
Christopher Faylor
2fac517df4
* Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.
...
* path.cc: New file.
* cygcheck.cc (init_paths): Use MS-DOS path syntax.
(cygwin_info): Properly display cygwin version numbers. Prettify some output.
(dump_sysinfo): Calculate max names of posix and ms-dos paths for prettier
output.
2001-11-11 03:06:59 +00:00
Christopher Faylor
c8b3452829
* dtable.cc (dtable::build_fhandler): Don't increment console fd count if new
...
operation fails. Increment fork_fixup field here.
(dtable::dup2): Don't increment fork_fixup field here.
(fdsock): Ditto.
2001-11-10 19:46:15 +00:00
Corinna Vinschen
9a6c0a241b
* cygcheck.cc (dump_sysinfo): Print more detailed OS information string.
2001-11-09 17:18:36 +00:00
Robert Collins
4d1fdcb6f8
2001-11-10 Robert Collins <rbtcollins@hotmail.com>
...
* include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings
with _AUTHORITY #defines.
2001-11-09 13:23:54 +00:00
Robert Collins
d0d69f141d
2001-11-09 Robert Collins <rbtcollins@hotmail.com>
...
* include/winnt.h (GetCurrentFiber): Create a prototype before the implementation;
(GetFiberData): Ditto.
2001-11-09 11:34:26 +00:00
Robert Collins
29c63d063f
2001-11-09 Robert Collins <rbtcollins@hotmail.com>
...
* include/winnt.h: Backout last change.
2001-11-09 08:31:37 +00:00
Corinna Vinschen
461903013c
* checksignal.c: New testcase.
2001-11-08 21:04:05 +00:00
Corinna Vinschen
80a429d20a
* select.cc: Set errno using set_sig_errno() throughout.
...
* signal.cc (signal): Always set SA_RESTART flag.
* syscalls.cc (_read): Revert previous patch.
2001-11-08 17:49:52 +00:00
Corinna Vinschen
036fd823dc
* select.cc (fhandler_tty_slave::ready_for_read): Return 0 on EBADF.
...
* syscalls.cc (_read): If ready_for_read() failed, save errno from
being overwritten by signal handler call.
2001-11-08 15:01:44 +00:00
Robert Collins
418c02db8f
2001-11-08 Robert Collins <rbtcollins@hotmail.com>
...
* include/winnt.h: Define *_SID_AUTHORITY appropriately. (nested
structures.)
GetCurrentFiber: Create a prototype before the implementation;
GetFiberData: Ditto.
2001-11-07 14:11:41 +00:00
Robert Collins
4cecec6cde
2001-11-08 Robert Collins <rbtcollins@hotmail.com>
...
* include/errno.h: Fix "errno is not a prototype" warning.
2001-11-07 14:10:25 +00:00
Corinna Vinschen
e2c07930f7
* lib/getopt.c (getopt_internal): Reset optind to 1 only if optreset
...
is not set.
2001-11-07 11:47:23 +00:00
Christopher Faylor
d0e406c653
* select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_open
...
test.
2001-11-06 18:02:56 +00:00
Christopher Faylor
82105181d8
* include/cygwin/version.h: Bump version to 1.3.5.
2001-11-05 23:13:47 +00:00
Corinna Vinschen
910e57ec84
* mmap.cc (mmap_record::find_empty): Add input parameter check.
2001-11-05 20:58:22 +00:00
Egor Duda
48da07548b
* Makefile.in: Delete unused executable after creating base-files.
2001-11-05 13:16:41 +00:00
Christopher Faylor
9c510edc61
Eliminate excess whitespace.
2001-11-05 06:09:15 +00:00
Christopher Faylor
a9ae96dde4
Add strace debugging section.
2001-11-05 03:16:58 +00:00
Christopher Faylor
58eac090a3
* dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV due to
...
incorrect parameter placement.
2001-11-05 02:45:42 +00:00