newlib/winsup
Corinna Vinschen e70fdfb99f * cygwin.din (dup3): Export.
(pipe2): Export.
	* dtable.cc (dtable::dup_worker): Take additional flags parameter.
	Handle O_CLOEXEC flag.
	(dtable::dup3): Rename from dup2.  Take additional flags parameter.
	Check for valid flags.  Drop check for newfd == oldfd.
	* dtable.h (dtable::dup_worker): Add flags parameter.
	(dtable::dup3): Rename from dup2.
	* fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case.
	* fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter.
	* fhandler.cc (fhandler_base::open): Use security attribute with
	inheritance according to setting of O_CLOEXEC flag.
	* fhandler_console.cc (fhandler_console::open): Ditto.
	* fhandler_fifo.cc (sec_user_cloexec): New inline function to
	create security attribute with inheritance according to setting of
	O_CLOEXEC flag.
	(fhandler_fifo::open): Call sec_user_cloexec to fetch security
	attribute.
	(fhandler_fifo::wait): Ditto.
	* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
	* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take
	additional flags parameter.  Use security attribute with inheritance
	according to setting of O_CLOEXEC flag.
	(fhandler_mailslot::open): Call get_object_attr with flags parameter.
	* fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec
	on real handles to accommodate O_CLOEXEC flag.
	* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
	* fhandler_tape.cc: Create mutex with inheritance according to setting
	of O_CLOEXEC flag.
	* pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC.
	 (fhandler_pipe::init): Simplify setting close_on_exec flag.
	(fhandler_pipe::open): Remove setting close_on_exec flag.
	(fhandler_pipe::create): Use security attribute with inheritance
	according to setting of O_CLOEXEC flag.
	(pipe2): New exported function.
	* posix_ipc.cc: Throughout, open backing files with O_CLOEXEC
	flag to follow POSIX semantics.
	* security.h (sec_none_cloexec): New define.
	* syscalls.cc (dup): Add missing extern "C" qualifier.  Accommodate
	renaming of dtable::dup2 to dtable::dup3.
	(dup2): Ditto.  Check newfd == oldfd here.
	(dup3): New function.  Check newfd == oldfd here.
	(open): Set close_on_exec flag according to O_CLOEXEC flag before
	calling fhandler->open.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
2010-01-14 18:46:02 +00:00
..
cygserver * Makefile.in (cygserver.exe): Link with -static to avoid linking 2009-11-16 08:50:07 +00:00
cygwin * cygwin.din (dup3): Export. 2010-01-14 18:46:02 +00:00
doc * cygwinenv.sgml (cygwinenv-implemented-options): Try to make 2010-01-12 16:40:53 +00:00
lsaauth Add DESTDIR functionality to Makefile.in's. 2009-02-24 02:11:14 +00:00
mingw 2009-11-29 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> 2009-11-28 06:07:27 +00:00
testsuite * Makefile.in: Use utils mingw front-end to generate non-cygwin binary. 2009-11-01 17:22:44 +00:00
utils * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too. 2010-01-11 12:13:55 +00:00
w32api 2009-20-10 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> 2009-11-21 05:26:02 +00:00
COPYING * CYGWIN_LICENSE: Restrict to v2. 2006-01-29 18:06:24 +00:00
CYGWIN_LICENSE * CYGWIN_LICENSE: New text. 2008-05-16 08:40:39 +00:00
ChangeLog winsup/ChangeLog: 2009-07-07 20:12:44 +00:00
Makefile.common winsup/ChangeLog: 2009-07-07 20:12:44 +00:00
Makefile.in Add DESTDIR functionality to Makefile.in's. 2009-02-24 02:11:14 +00:00
README Add top-level README 2006-01-27 05:37:13 +00:00
acinclude.m4 update to newer autoconf 2006-05-24 16:59:03 +00:00
aclocal.m4 * Makefile.in: Make installation of CYGWIN_LICENSE configurable. 2006-08-30 13:05:46 +00:00
configure ChangeLog: 2009-01-21 17:14:39 +00:00
configure.in ChangeLog: 2009-01-21 17:14:39 +00:00

README

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Cygwin documentation is available on the net at http://cygwin.com
You might especially be interested in

http://cygwin.com/faq/faq.programming.html#faq.programming.building-cygwin