newlib-cygwin/winsup/cygwin
Corinna Vinschen 8fbd574ef0 * cygwin.din (sem_unlink): Export.
* posix_ipc.cc: Include thread.h and semaphore.h.  Remove TODO
	comment.
	(ipc_names): Add max_len member.  Set to maximum length of the path
	before tacking on the prefix path.  Set prefix path for named semaphors
	to /dev/shm, as on Linux.
	(enum ipc_type_t): Change sem to semaphore to avoid name conflicts.
	(check_path): Detect empty paths.  Use ipc_names's max_len member.
	Use __small_sprintf to create full object path name.  Special case
	semaphores.
	(ipc_cond_init): Drop superfluous strcpy.
	(class ipc_flock): New class to simplify file locking in subsequent
	code.
	(struct mq_hdr): Raise size of mqh_uname to allow adding a unique
	LUID to the name.
	(mq_open): Fix formatting.  Create unique synchronization object names
	using AllocateLocallyUniqueId.
	(struct sem_finfo): New structure defining named semaphore file content.
	(sem_open): Move here.  Rework implementation to allow kernel
	persistent implementation of POSIX named semaphores.
	(_sem_close): Implement sem_close.
	(sem_close): Move here.  Just call _sem_close with do_close parameter
	set to true.
	(sem_unlink): New function.
	* pthread.cc (mangle_sem_name): Remove.
	(sem_open): Move to posix_ipc.cc.
	(sem_close): Ditto.
	* syscalls.cc (close_all_files): Call semaphore::terminate here.
	* thread.cc: Fix formatting.  Rearrange semaphore functions so that
	they are close together.
	(semaphore::semaphore): Rework to play nicely with new named semaphore
	implementation.
	(semaphore::_terminate): Call _sem_close if semaphore is a named
	semaphore.
	(semaphore::destroy): Don't destroy named semaphores.  Return EINVAL
	instead.
	(semaphore::close): Only destroy named semaphores.  Return EINVAL
	otherwise.
	(semaphore::open): Rework to play nicely with new named semaphore
	implementation.  Loop through existing semaphores to be able to
	return same sem_t pointer as a former call on the same named semaphore.
	(semaphore::getinternal): New function called from _sem_close.
	* thread.h (class List): Make mx and head public.
	(class semaphore): Fix formatting.  Align method declarations with
	implementation in thread.cc.  Add members used for named semaphores.
	(semaphore::terminate): New static method.
	* include/semaphore.h: Redefine SEM_FAILED.  Fix formatting.
	(sem_unlink): Add declaration.
	* include/cygwin/version.h: Bump API minor number.
2007-02-20 15:48:04 +00:00
..
config/i386
include * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
lib * Makefile.in (DLL_OFILES): Add winf.o. 2006-04-12 15:53:22 +00:00
libc * libc/minires-os-if.c (write_record): Handle DNS_TYPE_SRV and 2007-02-09 10:09:21 +00:00
regex * cygtls.cc (_cygtls::handle_threadlist_exception): Make an error fatal. 2005-12-23 22:50:20 +00:00
regexp
CYGWIN_LICENSE * CYGWIN_LICENSE: Fix web pages and contact information. 2007-01-15 12:19:01 +00:00
ChangeLog * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +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
ChangeLog-2004 * ChangeLog: Split and create ChangeLog-2004. 2005-01-11 12:48:34 +00:00
ChangeLog-2005 fix minor typo 2006-01-16 19:52:21 +00:00
ChangeLog-2006 * ChangeLog: Happy New Year. 2007-01-03 11:14:53 +00:00
Makefile.in * Makefile.in (DLL_OFILES): Add posix_ipc.o. 2007-02-14 10:06:46 +00:00
ROADMAP
acconfig.h
aclocal.m4 update to newer autoconf 2006-05-24 16:59:03 +00:00
analyze_sigfe * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
ansi.sgml minor cleanup 2004-12-05 02:30:20 +00:00
assert.cc
autoload.cc * autoload.cc (WSAIoctl): Define. 2007-01-21 22:54:05 +00:00
automode.c
binmode.c
child_info.h * child_info.h (child_info_spawn::__stdin): New element. 2006-12-11 18:55:29 +00:00
config.h.in white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
configure update to newer autoconf 2006-05-24 16:59:03 +00:00
configure.in * select.cc (start_thread_socket): Delay setting thread local exitsock until we 2006-05-24 03:39:29 +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 TODO comment. 2007-01-15 11:01:23 +00:00
cygheap.h * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf. 2007-01-24 10:50:47 +00:00
cyglsa.h * cyglsa.h: New header file. 2006-11-27 12:59:59 +00:00
cygmagic * cygmagic: Remove debugging cruft missed on 2005-05-21. 2005-05-30 00:54:01 +00:00
cygmalloc.h * cygmalloc.h (__set_ENOMEM): Declare. 2007-02-08 11:35:52 +00:00
cygserver.h * cygserver.h (CYGWIN_SERVER_VERSION_API): Bump. 2004-06-03 19:52:12 +00:00
cygserver_ipc.h
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::terminate_thread): In debugging output, use name of 2006-06-03 21:44:01 +00:00
cygthread.h Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
cygtls.cc 2006-07-25 Corinna Vinschen <corinna@vinschen.de> 2006-07-25 19:23:23 +00:00
cygtls.h 2006-07-25 Corinna Vinschen <corinna@vinschen.de> 2006-07-25 19:23:23 +00:00
cygwin-shilka
cygwin.din * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
cygwin.sc * cygheap.cc (_csbrk): Fix off-by-one error. 2007-01-12 19:40:20 +00:00
cygwin_version.h
dcrt0.cc Partially revert change from 2005-04-03, always running under an 2006-12-12 16:27:32 +00:00
debug.cc * pinfo.cc (_onreturn::~onreturn): Don't attempt to close a NULL handle. 2006-08-10 20:25:54 +00:00
debug.h * debug.h (ModifyHandle): Define new macro. 2006-05-25 05:40:51 +00:00
delqueue.cc
devices.cc * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
devices.h * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
devices.in * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
dir.cc * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
dlfcn.cc * dlfcn.cc (check_path_access): Call find_exec with FE_DLL option. 2006-01-31 21:49:39 +00:00
dll_init.cc * cygheap.cc (cygheap_fixup_in_child): Don't close parent handle here. Let the 2006-06-02 00:09:50 +00:00
dll_init.h * dcrt0.cc (do_global_dtors): Run DLL dtors. 2005-04-14 17:34:03 +00:00
dll_init.sgml
dllfixdbg * cygwin.sc: Make sure there's something in the cygheap. 2006-07-14 19:33:55 +00:00
dlmalloc.c remove keyword stuff 2004-05-12 16:21:18 +00:00
dlmalloc.h
dtable.cc * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
dtable.h * child_info.h (child_info_spawn::__stdin): New element. 2006-12-11 18:55:29 +00:00
dtable.sgml
environ.cc * environ.cc (subauth_id_init): Remove. 2006-12-12 19:18:56 +00:00
environ.h * environ.cc (env_win32_to_posix_path_list): Declare. 2006-08-02 15:11:48 +00:00
errno.cc * environ.cc (build_env): Don't put an empty environment variable into the 2006-09-07 20:42:53 +00:00
exceptions.cc * exceptions.cc (_cygtls::signal_exit): Only call myself.exit when when 2007-02-20 14:31:26 +00:00
exec.cc minor comment restructuring 2006-02-15 22:11:13 +00:00
external.cc * external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ. 2007-01-12 15:40:13 +00:00
external.sgml
fcntl.cc Reorganize header file inclusion throughout so that cygerrno.h comes first. 2005-01-12 22:40:46 +00:00
fhandler.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
fhandler.h * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
fhandler_clipboard.cc * cygheap.h (init_cygheap::manage_console_count): Declare new function. 2005-11-14 04:28:45 +00:00
fhandler_console.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
fhandler_disk_file.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
fhandler_dsp.cc * cygthread.cc (cygthread::terminate_thread): In debugging output, use name of 2006-06-03 21:44:01 +00:00
fhandler_fifo.cc GCC 4.1 fixes. 2006-07-17 19:30:30 +00:00
fhandler_floppy.cc * fhandler_floppy.cc (fhandler_dev_floppy::ioctl): Fix typo in lint 2006-07-18 12:56:37 +00:00
fhandler_mailslot.cc * fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K. 2007-01-04 09:17:55 +00:00
fhandler_mem.cc * fhandler_mem.cc (fhandler_dev_mem::open): Fix comment. 2006-12-06 16:33:03 +00:00
fhandler_netdrive.cc * fhandler_disk_file.cc (path_conv::hasgood_inode): Make inline. 2006-04-14 14:20:58 +00:00
fhandler_nodevice.cc
fhandler_proc.cc * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
fhandler_process.cc * fhandler_process.cc (format_process_stat): Use cygwin-derived start time even 2006-02-11 04:53:14 +00:00
fhandler_procnet.cc * autoload.cc (WSAIoctl): Define. 2007-01-21 22:54:05 +00:00
fhandler_random.cc Revert erroneous checkin. 2005-09-28 19:22:25 +00:00
fhandler_raw.cc * fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K. 2007-01-04 09:17:55 +00:00
fhandler_registry.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
fhandler_serial.cc * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support for 2007-02-05 12:32:23 +00:00
fhandler_socket.cc * fhandler_socket.cc (fhandler_socket::bind): Remove printing wrong 2007-02-20 09:48:31 +00:00
fhandler_tape.cc * cygheap.h (struct init_cygheap): Remove shared_h and mt_h members. 2006-07-26 15:59:39 +00:00
fhandler_termios.cc * dcrt0.cc (dll_crt0_0): Call tty_list::init_session here. 2006-06-03 20:32:07 +00:00
fhandler_tty.cc GCC 4.1 fixes. 2006-07-17 19:30:30 +00:00
fhandler_virtual.cc * include/cygwin/version.h: Bump API minor number to 151. 2006-01-21 02:24:17 +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
fork.cc * fork.cc (child_copy): Add missing Windows PID in debug output. 2007-01-12 15:26:02 +00:00
gcrt0.c
gendef * cygheap.cc (cygheap_fixup_in_child): Don't close parent handle here. Let the 2006-06-02 00:09:50 +00:00
gendevices * analyze_sigfe: New script. 2006-03-01 20:20:22 +00:00
gentls_offsets * sigproc.cc (no_signals_available): Detect hwait_sig == INVALID_HANDLE_VALUE. 2006-05-16 03:14:24 +00:00
glob.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
gmon.c
gmon.h
grp.cc Partially revert change from 2005-04-03, always running under an 2006-12-12 16:27:32 +00:00
heap.cc * cygheap.h (struct user_heap_info): Add slop member. 2006-10-31 18:41:16 +00:00
heap.h
hires.h * hires.h (hires_ms::initime_ms): Delete. 2005-12-07 22:28:49 +00:00
hookapi.cc * hookapi.cc: Add comment header 2006-07-06 17:16:37 +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
how-spawn-works.txt
how-to-debug-cygwin.txt Put an underscore in front of the "active" in "strace.active". 2006-05-28 21:39:37 +00:00
how-vfork-works.txt minor cleanup 2004-12-05 02:30:20 +00:00
init.cc * cygtls.cc (_cygtls::remove): Don't test for initialization since this 2006-05-17 03:36:14 +00:00
ioctl.cc * ioctl.cc (ioctl): Accommodate change in reported pty master device number. 2006-06-04 20:32:58 +00:00
ipc.cc
localtime.cc * libc: Add subdirectory. 2005-11-18 17:48:23 +00:00
lsearch.cc white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
malloc.cc * malloc.cc: Update to version 2.8.3. 2005-12-10 17:09:58 +00:00
malloc_wrapper.cc * cygmalloc.h (__set_ENOMEM): Declare. 2007-02-08 11:35:52 +00:00
mcount.c
misc-std.sgml
miscfuncs.cc * fhandler_proc.cc: Drop superfluous definition of _WIN32_WINNT. 2006-10-19 09:15:26 +00:00
mktemp.cc * mktemp.cc (_gettemp): Open temp files in binary mode. 2006-04-17 15:09:13 +00:00
mkvers.sh
mmap.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
mmap_helper.h * winsup.h: Turn on DEBUGGING by default for now. 2006-08-10 14:15:00 +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 * cygheap.h (struct init_cygheap): Remove shared_h and mt_h members. 2006-07-26 15:59:39 +00:00
net.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
netdb.cc
newsym white space and minor comment cleanup. 2005-05-02 03:50:11 +00:00
ntdll.h * autoload.cc (RtlAnsiStringToUnicodeString): Define. 2007-01-16 18:01:06 +00:00
ntea.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
passwd.cc Remove some more unneeded 'return;'s throughout. 2005-09-14 14:27:56 +00:00
path.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
path.h * Makefile.in (DLL_OFILES): Add fhandler_procnet.o. 2007-01-17 19:26:58 +00:00
path.sgml * path.sgml: Encode programming example with CDATA. 2004-12-31 01:13:28 +00:00
perprocess.h
pinfo.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
pinfo.h * dir.cc (mkdir): Check last path component for "..". 2006-11-30 10:17:24 +00:00
pipe.cc * child_info.h (child_info_spawn::__stdin): New element. 2006-12-11 18:55:29 +00:00
poll.cc * fhandler_socket.cc (fhandler_socket::recv_internal): Fix a problem 2006-07-31 14:27:56 +00:00
posix.sgml
posix_ipc.cc * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
profil.c
profil.h
pseudo-reloc.cc
pthread.cc * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
pwdgrp.h * sync.h (muto::initforce): Delete flawed implementation. 2005-04-05 06:04:57 +00:00
registry.cc * dir.cc (readdir_worker): Minor code cleanup. 2006-01-03 17:44:26 +00:00
registry.h * dir.cc (readdir_worker): Minor code cleanup. 2006-01-03 17:44:26 +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 * fhandler_proc.cc: Drop superfluous definition of _WIN32_WINNT. 2006-10-19 09:15:26 +00:00
sec_acl.cc * security.h (setacl): Add parameter for writability flag. 2007-01-07 12:44:10 +00:00
sec_helper.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
security.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
security.h * security.h (pop_thread_privilege): Revert to previous state, not 2007-01-24 12:14:54 +00:00
select.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +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 * child_info.h (child_info_spawn::__stdin): New element. 2006-12-11 18:55:29 +00:00
shared.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
shared_info.h * child_info.h (child_info_spawn::__stdin): New element. 2006-12-11 18:55:29 +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 * signal.cc (signal): Set sa_mask to sig. 2006-07-04 23:57:43 +00:00
sigproc.cc Remove extraneous whitespace. 2007-02-20 00:16:18 +00:00
sigproc.h * sigproc.cc (waitq_head): Don't initialize to zero. 2006-07-14 00:50:55 +00:00
smallprint.c * dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf. 2006-10-27 10:41:51 +00:00
sortdin * sortdin: Ignore all leading underscores when deriving a sort key. 2006-07-05 16:06:50 +00:00
spawn.cc * spawn.cc (spawn_guts): Don't set cwd for non-Cygwin child processes 2007-01-18 21:28:36 +00:00
speclib
stackdump.sgml Update Makefile to use xmlto 2004-12-27 19:03:56 +00:00
strace.cc add copyright 2006-01-02 02:57:54 +00:00
string.h
strsep.cc
strsig.cc
sync.cc Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
sync.h * exceptions.cc (_cygtls::signal_exit): Only call myself.exit when when 2007-02-20 14:31:26 +00:00
syscalls.cc * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
sysconf.cc * Makefile.in (DLL_OFILES): Add posix_ipc.o. 2007-02-14 10:06:46 +00:00
syslog.cc white space 2006-05-28 15:50:14 +00:00
termios.cc * termios.cc: Change include order to accomodate change to sys/ioctl.h. 2006-12-06 19:44:07 +00:00
textmode.c
textreadmode.c
thread.cc * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
thread.h * cygwin.din (sem_unlink): Export. 2007-02-20 15:48:04 +00:00
timer.cc revert erroneous checkin 2006-02-20 02:06:37 +00:00
times.cc * times.cc (clock_getres): Use correct conversion from milliseconds to 2006-02-11 00:06:50 +00:00
tlsoffsets.h 2006-07-25 Corinna Vinschen <corinna@vinschen.de> 2006-07-25 19:23:23 +00:00
tty.cc 2006-07-25 Corinna Vinschen <corinna@vinschen.de> 2006-07-25 19:23:23 +00:00
tty.h * cygheap.h (struct init_cygheap): Remove shared_h and mt_h members. 2006-07-26 15:59:39 +00:00
tz_posixrules.h
uinfo.cc Partially revert change from 2005-04-03, always running under an 2006-12-12 16:27:32 +00:00
uname.cc * uname.cc (uname): Concatenate a "-WOW64" to utsname's sysname 2006-01-13 14:00:10 +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 * net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6 2007-02-01 15:54:40 +00:00
wincap.h * net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6 2007-02-01 15:54:40 +00:00
window.cc Change process_lock to lock_process throughout. Change all calls to new 2005-10-17 23:27:00 +00:00
winf.cc * spawn.cc (spawn_guts): Revert patch which treated derived cygwin programs 2006-04-13 01:37:00 +00:00
winf.h * winf.h (MAXCYGWINCMDLEN): Set down size to 30000 or suffer fork errors. 2006-05-29 15:51:18 +00:00
wininfo.h GCC 4.1 fixes. 2006-07-17 19:30:30 +00:00
winsup.h * exceptions.cc (_cygtls::signal_exit): Only call myself.exit when when 2007-02-20 14:31:26 +00:00
winver.rc