Christopher Faylor
26dd202b01
new how-to.
2002-02-11 02:25:42 +00:00
Christopher Faylor
909acaf679
* Makefile.in (DLL_OFILES): Consolidate object files.
2002-02-10 21:26:27 +00:00
Corinna Vinschen
b31c68c447
* child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc,
...
fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright.
2002-02-10 13:50:13 +00:00
Corinna Vinschen
de4e0d3001
* (child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h,
...
fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc,
fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h):
Change usage of uid_t to __uid16_t, gid_t to __gid16_t and
off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and
INVALID_SEEK instead casting -1 to the appropriate type.
* winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK.
* include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t
types. Don't declare acl functions when compiling Cygwin.
* include/cygwin/grp.h: Declare getgrgid() and getgrnam() with
correct types for internal usage.
2002-02-10 13:38:51 +00:00
Corinna Vinschen
39b553b8f0
* uinfo.cc (internal_getlogin): Try evaluating user by SID even if
...
ntsec is off.
(uinfo_init): Set primary group even if ntsec is off.
2002-02-10 11:15:56 +00:00
Corinna Vinschen
52296b850c
* include/cygwin/grp.h: New file.
...
* include/cygwin/stat.h: Ditto.
* include/cygwin/types.h: Add definitions for __off32_t,
__off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t,
__gid32_t and gid_t.
* include/sys/cygwin.h: Use correct uid and gid types.
2002-02-09 20:39:55 +00:00
Corinna Vinschen
ff86860ba6
* dtable.cc (dtable::dup2): Revert previous patch.
...
* fhandler.h: Ditto.
(fhandler_socket::recv): Define new method.
(fhandler_socket::send): Ditto.
* fhandler_socket.cc (fhandler_socket::recv): New method.
(fhandler_socket::send): Ditto.
(fhandler_socket::read): Call fhandler_socket::recv() now.
(fhandler_socket::write): Call fhandler_socket::send() now.
* net.cc (class wsock_event): Move definition to wsock_event.h.
(fdsock): Revert previous patch.
(cygwin_recv): Move implementation to fhandler_socket::recv().
(cygwin_send): Move implementation to fhandler_socket::send().
* wsock_event.h: New file.
2002-02-09 10:40:48 +00:00
Corinna Vinschen
d0672acc75
* net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
2002-02-09 09:01:18 +00:00
Corinna Vinschen
fae28904e9
* dtable.cc (dtable::dup2): Store fd for fhandler_socket.
...
* fhandler.h (fhandler_base::set_fd): New virtual method.
(fhandler_base::get_fd): Ditto.
(fhandler_socket::set_fd): Ditto.
(fhandler_socket::get_fd): Ditto.
* fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead
of native Winsock recv.
(fhandler_socket::write): Call cygwin_send instead of native Winsock
send.
* net.cc (fdsock): Store fd in fhandler_socket.
2002-02-08 11:54:10 +00:00
Corinna Vinschen
1f64102fa6
* net.cc (cygwin_getsockname): Fix handling of NULL sun_path.
2002-02-07 15:04:32 +00:00
Christopher Faylor
8e2deb48d6
add more words
2002-01-30 02:44:21 +00:00
Corinna Vinschen
562d97451a
* net.cc (getdomainname): Fix registry key for 9x systems, too.
2002-01-29 13:39:41 +00:00
Corinna Vinschen
94ee02fa05
* net.cc (getdomainname): Fix registry key for NT systems.
2002-01-29 13:23:09 +00:00
Christopher Faylor
494a66d9c5
* external.cc (cygwin_internal): Initialize various internal settings if
...
required to allow use of some things from user loaded DLL.
(CW_STRACE_ON): Add new feature.
(CW_CYGWIN_PID_TO_WINPID): Ditto.
* pinfo.cc (set_myself): Call "strace.hello" to initiate possible strace
session.
(pinfo::init): Guard against dereferencing uninitialized myself.
* sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal" received.
* strace.cc (strace::hello): New method.
* wincap.cc (wincapc::init): Avoid initializing if already initialized.
* wincap.h (wincapc::wincapc): New method.
* include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of {g,u}id_t if
required.
* strace.h (strace::hello): Declare new method.
2002-01-29 02:02:03 +00:00
Christopher Faylor
6616e6cf76
* include/sys/strace.h (_STRACE_ON): Define.
...
(_STRACE_OFF): Ditto.
2002-01-28 18:03:40 +00:00
Christopher Faylor
dfb4c34707
* speclib: Ensure that temporary def file is removed.
2002-01-24 21:39:09 +00:00
Christopher Faylor
3c07fbebf8
* speclib: Use rm -f to remove temp file just to quiet any potential warnings.
2002-01-23 18:46:19 +00:00
Corinna Vinschen
be6d8567eb
Supplement ChangeLog entry.
2002-01-23 18:37:58 +00:00
Corinna Vinschen
f6fc31e1a9
* security.cc (create_token): Use sec_user() to create
...
SECURITY_ATTRIBUTES structure for primary token.
2002-01-23 18:35:03 +00:00
Corinna Vinschen
adbd01afe4
* path.cc (symlink): Fix check for already existing file.
2002-01-23 16:50:17 +00:00
Christopher Faylor
aed69a5b0d
* cygmagic: Suppress error output when figuring out if sum takes an option.
2002-01-22 03:48:16 +00:00
Christopher Faylor
f3647dd7e6
* cygmagic: Attempt to figure out if sum takes an option.
2002-01-22 03:02:00 +00:00
Christopher Faylor
51076b7360
* Makefile.in (libpthread.a): Pass the assembler also.
...
(libm.a): Ditto.
(libc.a): Ditto.
* speclib: Specify the assembler to dlltool.
2002-01-22 01:40:11 +00:00
Christopher Faylor
0ac2abea6c
* include/cygwin/version.h: Bump DLL minor number.
2002-01-21 20:55:59 +00:00
Corinna Vinschen
28982aa871
Fix ChangeLog entry.
2002-01-21 20:52:33 +00:00
Corinna Vinschen
ac11ec8845
* grp.cc (getgrent): Don't return default gid entry when ntsec is on.
...
* syscalls.cc (setegid): Don't set primary group in process token.
2002-01-21 20:51:30 +00:00
Christopher Faylor
1c6577408e
Add newline at EOF.
2002-01-21 17:47:53 +00:00
Christopher Faylor
8ef47135dd
* speclib: Don't use /dev/null as DLL name. Just default to what's already in
...
.def file.
* exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code which
caused SIGCHLD to be ignored.
2002-01-21 17:42:08 +00:00
Christopher Faylor
07cc1f1fd8
* include/cygwin/version.h: Bump DLL minor number.
2002-01-21 03:36:16 +00:00
Christopher Faylor
385437d4c5
* syscalls.cc (regfree): Make dll_export.
2002-01-21 03:15:24 +00:00
Christopher Faylor
d7c16d8da3
* exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid when
...
detecting if we should actually handle CTRL-C.
2002-01-20 23:13:03 +00:00
Christopher Faylor
216109a824
* Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a is only
...
available in libstdc++-v3.
2002-01-20 03:39:36 +00:00
Christopher Faylor
9e73b3397b
* exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent doesn't
...
want it.
(sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough
information.
2002-01-19 23:57:45 +00:00
Christopher Faylor
5946622e72
* include/cygwin/version.h: Bump DLL minor number.
2002-01-19 23:06:28 +00:00
Christopher Faylor
994fe87b6e
* Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link.
...
* sigproc.cc (proc_exists): Change existence criteria.
* sync.h (new_muto): Add volatile to definition to avoid gcc optimization
problems.
2002-01-19 18:15:23 +00:00
Corinna Vinschen
df3af7731e
* include/cygwin/version.h: Bump API minor version to 51.
2002-01-19 16:17:59 +00:00
Corinna Vinschen
7d6be0d616
* cygwin.din: Add recvmsg and sendmsg.
...
* net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
* /usr/include/sys/socket.h: Add recvmsg and sendmsg.
2002-01-19 16:11:00 +00:00
Corinna Vinschen
2d3dab2ea5
* security.cc (create_token): Close processes token handle as soon
...
as it's not used anymore.
2002-01-19 16:06:11 +00:00
Corinna Vinschen
104c3be681
* Makefile.in: Add fnmatch.o to DLL_OFILES.
...
* cygwin.din: Add fnmatch export symbol.
* fnmatch.c: New file.
* include/fnmatch.h: Ditto.
* include/cygwin/version.h: Bump API minor version to 50.
2002-01-17 10:39:37 +00:00
Corinna Vinschen
9a7e156253
* path.cc (fchdir): Call chdir with full windows path.
2002-01-15 20:29:09 +00:00
Corinna Vinschen
7eddac1bc5
* dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1"
...
for file attributes throughout.
* fhandler.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* path.cc: Ditto.
* path.h: Ditto.
* syscalls.cc: Ditto.
* times.cc (utimes): Use path_conv::isdir() instead of explicit
GetFileAttributes() call.
2002-01-14 20:39:59 +00:00
Christopher Faylor
33ad2bf9d1
Add copyright stuff
2002-01-13 20:03:03 +00:00
Christopher Faylor
5daa0835e3
* dcrt0.cc (multiple_cygwin_problem): Clarify logic and make CYGWIN_MISMATCH_OK
...
more powerful.
2002-01-13 16:55:32 +00:00
Christopher Faylor
06486d9e55
* exceptions.cc (sig_handle): Accept a second argument indicating whether the
...
signal came from this process or not.
* sigproc.h: Reflect sig_handle arg change.
* signal.cc (kill_pgrp): Add sigframe info.
(abort): New function. Eliminates newlib function of same name.
* sigproc.cc (wait_sig): Pass "signal from this process" value as arg 2.
2002-01-11 02:24:06 +00:00
Corinna Vinschen
bb5225c236
* syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid
...
file parameter.
2002-01-10 13:24:28 +00:00
Christopher Faylor
c0a8e8d0f9
* exceptions.cc (early_stuff_init): Rename from misnamed set_console_handler.
...
(ctrl_c_handler): Attempt to work around potential signal duplication during
process startup.
(sig_handle): Ignore SIGINT when we're just an "exec stub".
* spawn.cc (spawn_guts): Store pid of spawned process in global for use by
ctrl_c_handler.
* dcrt0.cc (dll_crt0_1): Call renamed initialization function.
* winsup.h: Reflect function name change.
2002-01-10 03:21:27 +00:00
Corinna Vinschen
fe37dd79ec
* net.cc (cygwin_accept): Set sun_path for newly connected socket.
2002-01-09 20:57:55 +00:00
Christopher Faylor
cbf7a9eb4a
* Makefile.in: Add uninstall target.
2002-01-08 04:51:01 +00:00
Christopher Faylor
a2e12d0c37
* sigproc.cc (getsem): Clean up debugging output.
2002-01-07 22:18:36 +00:00
Christopher Faylor
4a08cbfefb
* sigproc.cc (getsem): Set errno when unable to create own semaphore.
...
Reorganize to make clearer that error should only come from initial creation of
process semaphore.
2002-01-07 16:47:12 +00:00