newlib/winsup/cygwin
Corinna Vinschen 8b00a766ff * autoload.cc: Never load wsock32.dll. Load all wsock32 function
from ws2_32.  Rearrange symbol order accordingly.  None of the ws2_32
	functions is optional right now.
	(wsadata): Move from net.cc here.  Define NO_COPY.
	(wsock_init): Drop unused symbols ws2_32_handle and wsock32_handle.
	(load_wsock32): Remove.
	(WSACleanup): Remove.
	* fhandler_socket.cc: Drop Winsock 1 accommodations throughout.
	(fhandler_socket::readv): Accomodate new POSIX style struct msghdr.
	(fhandler_socket::writev): Ditto.
	(fhandler_socket::recvmsg): Ditto. Handle "old" applications using
	former struct msghdr correctly.
	* net.cc: Drop Winsock 1 accommodations throughout.
	(wsadata): Move definition to autoload.cc.
	(set_socket_inheritance): Remove.
	(convert_ws1_ip_optname): New static function to convert Winsock1
	IPPROTO_IP option values into Winsock2 IPPROTO_IP option values.
	(cygwin_setsockopt): Remove wrong and incomplete cleartext printing
	of optname.  For "old" applications, convert optname from Winsock1
	to Winsock2 values before using them.  Add comment to describe the
	IP_TOS weirdness on W2K and above.
	(cygwin_getsockopt): Remove wrong and incomplete cleartext printing
	of optname.  For "old" applications, convert optname from Winsock1
	to Winsock2 values before using them.
	* select.cc (start_thread_socket): Forget about winsock2_active.
	* winsup.h (wsock32_handle): Remove declaration.
	(ws2_32_handle): Ditto.
	(netapi32_handle): Ditto.
	(wsadata): Ditto.
	(winsock2_active): Remove definition.
	* include/cygwin/socket.h: Change formatting slightly.
	(socklen_t): Move definition up in file.
	(struct msghdr): Convert to POSIX style.
	(struct cmsghdr): New type.
	(CMSG_ALIGN): New macro.
	(CMSG_LEN): Ditto.
	(CMSG_SPACE): Ditto.
	(CMSG_FIRSTHDR): Ditto.
	(CMSG_NXTHDR): Ditto.
	(CMSG_DATA): Ditto.
	(SCM_RIGHTS): Ditto.
	(struct OLD_msghdr): Define old msghdr structure for Cygwin internal
	purposes.
	(MSG_TRUNC): New macro.
	(MSG_CTRUNC): Ditto.
	(IP_OPTIONS): Redefine IPPROTO_IP option values to Winsock2 values.
	Keep Winsock1 values for Cygwin internal purposes.
	* include/cygwin/version.h: Bump API minor version.
	(CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR): Define to check for
	applications using old struct msghdr.
	(CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES): Define to check for
	applications using old Winsock1 IPPROTO_IP values.
2005-10-17 21:22:18 +00:00
..
config/i386 * gendef (stabilize_sig_stack): New function. 2004-02-18 20:48:38 +00:00
include * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
lib * lib/libcmain.c (main): Properly deal with quoted first argument. 2004-12-09 21:28:32 +00:00
libc * ftw.c: Include winsup.h. 2005-08-08 13:39:56 +00:00
regex white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
regexp
CYGWIN_LICENSE
ChangeLog * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
ChangeLog-1995 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1996 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1997 white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003 fix typo 2004-01-20 03:11:39 +00:00
ChangeLog-2004 * ChangeLog: Split and create ChangeLog-2004. 2005-01-11 12:48:34 +00:00
Makefile.in Check in previously ChangeLoged entry. 2005-10-17 03:20:20 +00:00
ROADMAP
acconfig.h * exceptions.cc (set_signal_mask): Redefine to not pass by address. Report 2003-12-23 16:26:31 +00:00
ansi.sgml minor cleanup 2004-12-05 02:30:20 +00:00
assert.cc
autoload.cc * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
automode.c
binmode.c
child_info.h * child_info. (CURR_CHILD_INFO_MAGIC): Refresh. 2005-08-11 16:13:30 +00:00
config.h.in white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
configure * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
configure.in * dllfixdbg: New perl script. 2005-08-08 02:27:43 +00:00
cpuid.h * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it 2004-05-28 19:50:07 +00:00
crt0.c * crt0.cc: Remove PPC considerations. 2005-09-29 14:28:22 +00:00
ctype.cc * include/ctype.h: New file. 2005-03-23 17:11:24 +00:00
cxx.cc * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
cygerrno.h * cygerrno.h (geterrno_from_win_error): Change declaration to default to using 2005-08-20 06:19:55 +00:00
cygheap.cc * cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely 2005-09-27 19:04:38 +00:00
cygheap.h * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
cygmagic * cygmagic: Remove debugging cruft missed on 2005-05-21. 2005-05-30 00:54:01 +00:00
cygmalloc.h * cygmalloc.h (MSPACES): Define. This dropped through the cracks after the 2005-07-28 17:03:34 +00:00
cygserver.h * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump. 2004-06-03 19:52:12 +00:00
cygserver_ipc.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
cygserver_msg.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_sem.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygserver_shm.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
cygthread.cc * cygthread.cc (cygthread::operator new): Just use getenv() to look for 2005-09-21 19:29:50 +00:00
cygthread.h Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
cygtls.cc white space 2005-08-12 02:39:13 +00:00
cygtls.h * cygtls.h (struct _cygtls::thread_handle): Remove/revert. 2005-09-23 15:18:22 +00:00
cygwin-shilka * cygwin-shilka: Remove '#line directives' or suffer debugging oddities. Use 2003-09-27 05:35:02 +00:00
cygwin.din * cygwin.din: Correct readdir_r typo. 2005-08-28 17:30:34 +00:00
cygwin.sc * cygwin.sc: Use simpler method to align .cygheap. 2005-08-08 13:53:05 +00:00
cygwin_version.h
dcrt0.cc * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
debug.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
debug.h Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
delqueue.cc 2003-11-11 Robert Collins <rbtcollins@hotmail.com> 2003-11-14 23:40:06 +00:00
devices.cc * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
devices.h * cygheap.h (cygheap_types): Add HEAP_COMMUNE. 2005-08-24 04:38:39 +00:00
devices.in * dcrt0.cc (do_exit): Rely on sigproc_terminate to set exit_state 2005-09-13 17:08:54 +00:00
dir.cc * dir.cc (mkdir): Abandon use of PC_WRITABLE. 2005-10-12 20:38:38 +00:00
dlfcn.cc white space 2005-08-12 02:39:13 +00:00
dll_init.cc * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.h * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
dllfixdbg * cygwin.sc: Use simpler method to align .cygheap. 2005-08-08 13:53:05 +00:00
dlmalloc.c remove keyword stuff 2004-05-12 16:21:18 +00:00
dlmalloc.h * include/cygwin/version.h: Bump DLL minor number to 8. 2004-01-20 19:36:35 +00:00
dtable.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
dtable.h * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
dtable.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
environ.cc * environ.cc (build_env): Use "kilo"bytes not "mega"bytes. Return immediately 2005-09-16 20:12:12 +00:00
environ.h * environ.h (win_env::immediate): Declare new field. 2005-03-30 15:54:28 +00:00
errno.cc * errno.cc (errmap): Map ERROR_SEEK and ERROR_SECTOR_NOT_FOUND. 2005-09-26 15:27:15 +00:00
exceptions.cc * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
exec.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
external.cc white space 2005-08-12 02:39:13 +00:00
external.sgml 2004-01-12 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 2004-02-22 23:21:20 +00:00
fcntl.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
fhandler.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler.h * fhandler.h (class fhandler_dev_raw): Delete current_position and 2005-09-28 19:33:18 +00:00
fhandler_clipboard.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_console.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_disk_file.cc * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Convert an 2005-10-12 12:54:34 +00:00
fhandler_dsp.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_fifo.cc Change name from commune_recv to commune_process throughout. Change name from 2005-09-28 22:56:47 +00:00
fhandler_floppy.cc * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Use 2005-09-30 10:54:45 +00:00
fhandler_mailslot.cc white space 2005-08-12 02:39:13 +00:00
fhandler_mem.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_netdrive.cc * cygerrno.h (geterrno_from_win_error): Change declaration to default to using 2005-08-20 06:19:55 +00:00
fhandler_nodevice.cc * fhandler_nodevice.cc (fhandler_nodevice::open): Assume that errno has already 2004-03-27 18:01:04 +00:00
fhandler_proc.cc * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock. 2005-10-02 00:13:41 +00:00
fhandler_process.cc * cygheap.h (cygheap_types): Add HEAP_COMMUNE. 2005-08-24 04:38:39 +00:00
fhandler_random.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_raw.cc * fhandler.h (class fhandler_dev_raw): Delete current_position and 2005-09-28 19:33:18 +00:00
fhandler_registry.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler_serial.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_socket.cc * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
fhandler_tape.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_termios.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
fhandler_tty.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_virtual.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_windows.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
fhandler_zero.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
flock.cc * fcntl.cc (fcntl_worker): Remove static storage class. 2003-12-03 09:55:42 +00:00
fork.cc * fork.cc (frok::parent): Simplify error messages. Don't issue an error when 2005-09-30 00:18:30 +00:00
gcrt0.c
gendef * cygtls.h (__ljfault): Declare. 2005-08-28 23:26:23 +00:00
gendevices white space 2005-02-13 18:17:29 +00:00
gentls_offsets Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
glob.c * glob.c: (glob0): New local variable `limit`. Use in calls to glob1 2005-06-18 19:04:25 +00:00
gmon.c
gmon.h
grp.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
heap.cc * heap.cc (heap_init): Revert 2005-09-11 patch as it seems to inexplicably 2005-09-14 18:30:21 +00:00
heap.h
hires.h * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
hookapi.cc * hookapi.cc (hook_or_detect_cygwin): Correct inverted test for whether to 2005-09-28 20:20:57 +00:00
how-autoload-works.txt white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
how-cygheap-works.txt
how-cygtls-works.txt * dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. Comment 2005-06-04 02:11:50 +00:00
how-fhandlers-work.txt
how-signals-work.txt minor cleanup 2004-03-14 05:35:19 +00:00
how-spawn-works.txt
how-to-debug-cygwin.txt fix breakpoint example 2005-05-06 21:09:35 +00:00
how-vfork-works.txt minor cleanup 2004-12-05 02:30:20 +00:00
init.cc * dcrt0.cc (getstack): New function. 2005-09-28 15:18:49 +00:00
ioctl.cc Eliminate use of sigframe and sigthread throughout. 2003-11-28 20:55:59 +00:00
ipc.cc
localtime.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
lsearch.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
malloc.cc * cygmalloc.h (MSPACES): Define. This dropped through the cracks after the 2005-07-28 17:03:34 +00:00
malloc_wrapper.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc * winsup.h (create_pipe): Declare new function. 2005-08-19 14:56:48 +00:00
mktemp.cc Add top comment 2005-05-25 03:43:58 +00:00
mkvers.sh update copyright 2004-02-04 22:40:50 +00:00
mmap.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
msg.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
mtinfo.h * mtinfo.h (mtinfo_drive::error): Fix argument bug in debug_printf call. 2005-08-22 16:12:01 +00:00
net.cc * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
netdb.cc 2003-11-11 Robert Collins <rbtcollins@hotmail.com> 2003-11-14 23:40:06 +00:00
newsym white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntdll.h Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
ntea.cc * mmap.cc (mmap64): Avoid compiler warning. 2005-05-18 17:23:17 +00:00
passwd.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
path.cc * dir.cc (mkdir): Abandon use of PC_WRITABLE. 2005-10-12 20:38:38 +00:00
path.h * dir.cc (mkdir): Abandon use of PC_WRITABLE. 2005-10-12 20:38:38 +00:00
path.sgml * path.sgml: Encode programming example with CDATA. 2004-12-31 01:13:28 +00:00
perprocess.h
pinfo.cc * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
pinfo.h * cygheap.h (class process_lock): New class. 2005-10-03 17:23:54 +00:00
pipe.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
poll.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
posix.sgml
profil.c
profil.h
pseudo-reloc.cc
pthread.cc * pthread.cc (mangle_sem_name): Use cygheap->shared_prefix instead 2005-09-27 20:34:19 +00:00
pwdgrp.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
registry.cc * cygheap.cc (cygheap_init): Accomodate set_process_privilege change. 2005-04-03 13:06:43 +00:00
registry.h 2004-12-03 Pierre Humblet <pierre.humblet@ieee.org> 2004-12-03 02:00:37 +00:00
resource.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
rmsym
scandir.cc * fhandler_clipboard.cc (fhandler_dev_clipboard::write): Never set 2005-03-01 11:51:29 +00:00
sched.cc Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
sec_acl.cc * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
sec_helper.cc Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
security.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
security.h Change foo (void) to foo () for all c++ functions throughout. Remove all 2005-07-05 03:16:46 +00:00
select.cc * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
select.h * debug.h (console_printf): Define for non-debugging condition. 2004-02-09 04:04:24 +00:00
sem.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
shared.cc * cygheap.cc (cygheap_init): Add GLOBAL_PRIV to hProcToken explicitely 2005-09-27 19:04:38 +00:00
shared.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
shared_info.h * path.cc (normalize_posix_path): Keep two leading slashes 2005-08-26 15:11:06 +00:00
shm.cc Replace valid memory checks with new myfault class "exception handling", almost 2005-07-03 02:40:30 +00:00
signal.cc * exceptions.cc (handle_exceptions): Just si_code to SI_KERNEL first and let it 2005-09-26 14:51:48 +00:00
sigproc.cc * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock. 2005-10-02 00:13:41 +00:00
sigproc.h * cygtls.h (struct _cygtls::thread_handle): Remove/revert. 2005-09-23 15:18:22 +00:00
smallprint.c * child_info.h (fork_info): Use different method to alias variable. 2005-03-19 21:45:15 +00:00
spawn.cc * spawn.cc (av::fixup): Just blindly run any file if it has a .bat or .cmd 2005-09-20 18:32:23 +00:00
speclib * speclib: Use correct EOF marker. Ensure that directory is actually deleted 2003-11-28 20:51:11 +00:00
stackdump.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
strace.cc * strace.cc (strace::vsprntf): Avoid printing a zero pid. 2005-09-27 18:54:32 +00:00
string.h
strsep.cc
strsig.cc * Makefile.in (DLL_OFILES): Add strsig.o. 2004-02-03 21:59:27 +00:00
sync.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
sync.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
syscalls.cc * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock. 2005-10-02 00:13:41 +00:00
sysconf.cc * cygerrno.h (__seterrno_from_nt_status): Define. Always set Win32 2005-04-13 16:41:33 +00:00
syslog.cc * syslog.cc (try_connect_syslogd): Add priority parameter. Use writev 2005-10-11 16:28:08 +00:00
termios.cc * fhandler_serial.cc (fhandler_serial::tcgetattr): Just zero c_cflag here 2005-09-09 03:00:34 +00:00
textmode.c
textreadmode.c * Makefile.in (EXTRALIBS): Add libtextreadmode.a. 2004-04-06 14:22:43 +00:00
thread.cc * thread.h: Revert patch from 2005-09-05. 2005-09-06 19:22:54 +00:00
thread.h * thread.h: Revert patch from 2005-09-05. 2005-09-06 19:22:54 +00:00
timer.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
times.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
tlsoffsets.h * tlsoffsets.h: Regenerate. 2005-09-23 19:24:03 +00:00
tty.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
tty.h Change the name "title_mutex" to "tty_mutex" throughout. 2004-05-17 15:27:56 +00:00
tz_posixrules.h
uinfo.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
uname.cc * uname.cc (uname): Disable use of GetNativeSystemInfo. 2005-10-03 09:24:42 +00:00
wait.cc Change pthread::cancelable_wait to just cancelable_wait, throughout. 2005-06-09 05:11:51 +00:00
winbase.h * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES and 2005-06-07 19:31:42 +00:00
wincap.cc * fhandler.h (class fhandler_dev_raw): Delete current_position and 2005-09-28 19:33:18 +00:00
wincap.h * fhandler.h (class fhandler_dev_raw): Delete current_position and 2005-09-28 19:33:18 +00:00
window.cc * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
wininfo.h * sync.h (muto::operator int): New operator. 2005-04-05 04:31:00 +00:00
winsup.h * autoload.cc: Never load wsock32.dll. Load all wsock32 function 2005-10-17 21:22:18 +00:00
winver.rc