Christopher Faylor
a3cfd73ac9
* select.cc (cygwin_select): Correct logic for "always_ready" fds or when there
...
is no wait specified.
* syslog.cc (pass_handler::set_message): Zero the buffer prior to setting it.
2000-08-24 21:19:14 +00:00
Christopher Faylor
be8924c43b
Change attribution.
2000-08-24 19:07:29 +00:00
Christopher Faylor
5f3cb291b1
* Makefile.common: Add bupdir2 to reference above the i686-pc-cygwin directory.
2000-08-24 19:05:38 +00:00
Christopher Faylor
0ad10c0f96
* Makefile.in: Add dumper.exe target and associated mechanisms for building it.
...
* dumper.cc: New file.
* dumper.h: New file.
* module_info.cc: New file.
* parse_pe.cc: New file.
2000-08-24 19:03:12 +00:00
Christopher Faylor
78b8497ba3
* include/cygwin/core_dump.h: New file, contains structures used in cygwin core
...
core files.
* include/sys/procfs.h: New file, needed to autoconfigure cygwin core dumps
support in bfd.
2000-08-24 18:39:27 +00:00
Christopher Faylor
5a41f96dbb
* environ.cc (parse_thing): nobinmode should force O_TEXT.
...
(regopt): Use correct path to find LOCAL_MACHINE registry options.
* fhandler.cc (fhandler_base::open): Set binary mode only when binmode ==
O_BINARY.
* pipe.cc (pipe): Pipe handling should rely on binmode not _fmode now that the
two are different.
2000-08-24 17:54:43 +00:00
Christopher Faylor
123469a0e9
* include/sys/cygwin.h (strace_printf_wrap): Force printing when
...
_STRACE_SYSTEM.
(strace_printf_wrap1): Ditto.
2000-08-24 17:23:35 +00:00
Christopher Faylor
d1be315740
* debug.h: Allow some debug defines for use in header files.
2000-08-24 16:33:03 +00:00
Christopher Faylor
f5589e4118
* dcrt0.cc (dll_crt0_1): Move exception list and constructor stuff earlier in
...
the process. Use new second argument to set_myself.
(cygwin_dll_init): Initialize exception list and constructor stuff here.
(_dll_crt0): And here. Also, deal with inherited pinfo shared memory region
from parent.
* pinfo.cc (set_myself): Accept a second argument signifying the a shared
memory region, passed from an execing parent.
(pinfo_init): Ditto.
* pinfo.h: Ditto.
* shared.h (child_info): Add a handle field to pass to child.
* spawn.cc (spawn_guts): Create a shared handle to pass to an execed child.
* winsup.h: Remove extraneous declaration.
2000-08-24 04:07:50 +00:00
Christopher Faylor
e1cf4ae80c
Revert previous erroneous checkin.
2000-08-23 14:56:28 +00:00
Christopher Faylor
c19e7ba723
* include/sys/cygwin.h: Protect class definitions.
2000-08-23 14:53:25 +00:00
Christopher Faylor
e136f5c0e0
* path.cc (symlink_info::check): Clear error on each iteration of extension
...
check.
2000-08-22 17:59:53 +00:00
Christopher Faylor
6d75cb08b3
* Makefile.in: Don't include '.d' file if there are none generated yet.
2000-08-22 15:25:25 +00:00
Christopher Faylor
d6483e830f
* include/sys/cygwin.h: Declare some thread classes.
...
* include/mntent.h: Avoid declaring functions.
2000-08-22 15:12:29 +00:00
Christopher Faylor
bccd5e0d85
* winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files
...
only in sources which require them.
* Makefile.in: Generate dependencies with -MD option.
2000-08-22 05:10:20 +00:00
Christopher Faylor
9e2baf8dfa
* cygerrno.h: New file. Use this throughout whenever errno manipulation is
...
required.
* errno.cc: Use DWORD to hold Windows errors.
(geterrno_from_win_error): New function.
(seterrno_from_win_error): Use geterrno_from_win_error to convert supplied
windows error (suggested by Corinna Vinschen).
* path.cc (symlink_info): Add error element.
* path.cc (path_conv::check): Remove errno setting. Use new symlink_info errno
element to set path_conv error, where appropriate.
(symlink_info::check): Set error element rather than attempting to manipulate
errno. Add more checks for trailing / and /.. even though they are currently
useless. Avoid setting EINVAL.
* path.cc (normalize_posix_path): Correct check for trailing /.
2000-08-22 03:58:47 +00:00
Christopher Faylor
6b85369f82
Update copyright.
2000-08-21 18:27:38 +00:00
DJ Delorie
d3bff3131f
* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): hinstance,
...
not handle. (reverse of previous diff)
2000-08-21 18:15:50 +00:00
DJ Delorie
20ffb3ee16
* include/cygwin/cygwin_dll.h (DECLARE_CYGWIN_DLL): handle,
...
not hinstance.
2000-08-21 17:47:52 +00:00
Corinna Vinschen
5422433943
* include/winnt.h:Add enums for TokenRestrictedSids and TokenSessionId
...
to TOKEN_INFORMATION_CLASS type.
Add QUOTA_LIMITS type.
2000-08-19 00:20:00 +00:00
Christopher Faylor
6052f47178
* Makefile.in: hinfo.o -> dtable.o.
2000-08-18 20:01:04 +00:00
Christopher Faylor
25685bb107
* fhandler-tut.txt: hinfo -> dtable.
2000-08-18 19:52:31 +00:00
Christopher Faylor
dc999f678d
hinfo -> dtable
2000-08-18 19:51:02 +00:00
Corinna Vinschen
83eda97dff
* dtable.cc (dtable::dup2): Extend fdtab if newfd is out of current
...
allocated bounds.
2000-08-18 18:14:08 +00:00
Christopher Faylor
e48a8ed6ec
* mkvers.sh: Properly trap exit removal of temp file. Remove debugging
...
statement.
2000-08-12 05:48:51 +00:00
Christopher Faylor
84cf3d22e3
Correct order in include files.
2000-08-12 05:47:12 +00:00
Christopher Faylor
b2007749a8
* poll.cc: Make winsup.h the first include file, re 2000-08-02 change.
2000-08-12 05:39:41 +00:00
Christopher Faylor
e2ebe11776
* winsup.h: Split out dtable definitions into separate header file.
...
* dtable.h: New file.
* sigproc.h: Eliminate pinfo.h usage here. Use it in source files that need
it.
2000-08-12 05:35:42 +00:00
Christopher Faylor
3ee92b51d6
* Makefile.in: Use dtable.o rather than hinfo.o.
2000-08-12 05:09:27 +00:00
Christopher Faylor
9015e0fb8c
Rename hinfo -> dtable. Name the former dtable array 'fdtab'.
2000-08-12 04:48:44 +00:00
Corinna Vinschen
427b6d036e
* poll.cc: Allow any descriptor and any number of descriptors.
...
Allocate fd_set struct sdynamically.
2000-08-11 20:34:24 +00:00
Christopher Faylor
bbda7ca078
Fix premature use of fdtab.
2000-08-11 13:49:42 +00:00
Corinna Vinschen
e82d75cc2b
* poll.cc: Add bounds checking for file descriptors. Return POLLNVAL
...
if fd is invalid. Return POLLERR for each valid fd if cygwin_select
returned with error.
include/sys/poll.h: Change POLLERR comment according to above change.
2000-08-11 12:51:47 +00:00
Christopher Faylor
7b972f5da5
* syslog.cc (syslog): Use a less malloc-intensive method for allocating the
...
buffer. Also fix a buffer overrun.
2000-08-11 01:56:05 +00:00
Christopher Faylor
20eb1efd9d
DJ is sole setup maintainer now.
2000-08-10 23:51:25 +00:00
Christopher Faylor
37e7e1a3e5
Change comment.
2000-08-10 22:24:58 +00:00
Christopher Faylor
02b503c875
comment changes.
2000-08-10 22:22:09 +00:00
Christopher Faylor
9c20cc85aa
Minor change.
2000-08-10 22:04:38 +00:00
Christopher Faylor
da2a05da2a
Minor change.
2000-08-10 22:02:41 +00:00
Christopher Faylor
b6a0e444d9
Minor change.
2000-08-10 21:54:44 +00:00
Christopher Faylor
b5ae313ab5
* winsup.h: Change strchr inline for strange gcc problem.
...
* select.cc (select_stuff::wait): Bounds check w4 array.
2000-08-10 19:33:54 +00:00
Christopher Faylor
b58f5598cb
* dir.cc (readdir): Ensure that errno is *only* set when we've run out of
...
filenames.
* fhandler.cc (fhandler_disk_file::fstat): Use modern method for saving errno,
making it effective for the whole function.
2000-08-10 19:20:11 +00:00
Christopher Faylor
0072fdab86
* select.cc (allocfd_set): Zero allocated fd_set.
...
(cygwin_select): Move fd_set copying logic from ::wait to here. Use common
return through sell.poll.
(select_stuff::wait): Just return success or failure and let caller fill in
fd_set.
* pinfo.h (pinfo): Eliminate self-referential pointer to sidbuf since pinfo
structure exists at random locations now.
* fork.cc (fork): Use 'use_psid' element to control when the psid is relevant.
* shared.cc (sec_user): Ditto.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (internal_getlogin): Ditto.
* syscall.cc (seteuid): Ditto. Set use_psid element.
2000-08-09 02:33:47 +00:00
DJ Delorie
c51a2a8ba4
* fhandler_serial.cc (tcsendbreak): "sleeptime" argument to usleep()
...
must be in units of microseconds, not milliseconds.
2000-08-08 20:46:47 +00:00
Corinna Vinschen
5678e1954a
* include/userenv.h: New header file.
...
* lib/userenv.def: New stub for userenv.dll.
2000-08-08 20:00:35 +00:00
Christopher Faylor
0e882d4f29
* include/winuser.h: Correct PCWPSTRUCT typo.
...
(discovered by Axel Riese)
2000-08-08 14:30:54 +00:00
Christopher Faylor
709262970f
* include/cygwin/cygwin_dll.h: Remove extraneous (and incorrect) declarations.
2000-08-07 04:13:34 +00:00
Christopher Faylor
91892f50d9
* hinfo.cc (hinfo::find_unused_handle): Just check for table entry == NULL
...
since we are already bounds checked by default.
* thread.cc (ResourceLocks::Lock): Streamline this function since it is called
a lot.
(ReleaseResourceLock): Ditto.
2000-08-04 04:04:46 +00:00
Christopher Faylor
e5dd88116a
* select.cc (fhandler_console::select_read): Call set_cursor_maybe since select
...
may block and cursor may not be visible.
* select.cc (fhandler_console::select_write): Ditto.
* select.cc (fhandler_console::select_except): Ditto.
2000-08-04 01:33:33 +00:00
Christopher Faylor
14323f6a97
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Set length field
...
correctly when "need_nl".
2000-08-03 13:02:09 +00:00