summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* GNUify non-GNU formatted functions calls throughout.cygwin_daemoncvs/cygwin_daemonscottc2002-09-228-28/+28
|
* * cygserver_shm.cc (with_strerr): Remove macro.scottc2002-09-223-124/+28
| | | | | | | | | (server_shmmgr::segment_t::~segment_t): Remove calls to with_strerr. (server_shmmgr::segment_t::attach): Ditto. (server_shmmgr::new_segment): Ditto. * shm.cc (with_strerr): Remove macro. (client_shmmgr::shmdt): Remove calls to with_strerr. (client_shmmgr::attach): Ditto.
* Merged changes from HEADscottc2002-09-2244-238/+257
|
* * include/sys/ipc.h: Move to "include/cygwin/ipc.h".scottc2002-09-2110-238/+110
| | | | | | | | | | | | | * include/sys/msg.h: Move to "include/cygwin/msg.h". * include/sys/sem.h: Move to "include/cygwin/sem.h". * include/sys/shm.h: Move to "include/cygwin/shm.h". * include/cygwin/ipc.h: New file. * include/cygwin/msg.h: Ditto. * include/cygwin/sem.h: Ditto. * include/cygwin/shm.h: Ditto. * cygserver_shm.h: Update includes. * msg.cc: Ditto. * sem.cc: Ditto.
* Merged changes from HEADscottc2002-09-214-1/+153
|
* * safe_memory.h (safe_delete): Make a templated function.scottc2002-09-219-20/+41
| | | | | | | | | | | | | | | | * cygserver.cc (~server_request): Update use of safe_delete. (main): Ditto. * cygserver_client.cc (client_request::handle_request): Ditto. (client_request::make_request): Ditto. * cygserver_process.cc (~process_cleanup): Ditto. (process::remove): Ditto. (process::cleanup): Ditto. (process_cache::process): Ditto. * cygserver_shm.cc (server_shmmgr::segment_t::detach): Ditto. (server_shmmgr::delete_segment): Ditto. * shm.cc (client_shmmgr::shmdt): Ditto. * threaded_queue.cc (~threaded_queue): Ditto. (threaded_queue::worker_loop): Ditto.
* Merged changes from HEADscottc2002-09-214-266/+365
|
* Merged changes from HEADscottc2002-09-203-61/+99
|
* Remove trailing whitespace.scottc2002-09-205-5/+5
|
* Merged changes from HEADscottc2002-09-1911-59/+377
|
* Fix "corrupted" entries.scottc2002-09-191-2/+2
|
* Merged changes from HEADscottc2002-09-1920-112/+153
|
* Merged changes from HEADscottc2002-09-172-2/+9
|
* Merged changes from HEADscottc2002-09-174-37/+148
|
* Merged changes from HEADscottc2002-09-166-97/+333
|
* Merged changes from HEADscottc2002-09-126-7/+29
|
* Merged changes from HEADscottc2002-09-068-227/+199
|
* Merged changes from HEADscottc2002-09-044-113/+324
|
* Merged changes from HEADscottc2002-09-0311-122/+65
|
* Merged changes from HEADscottc2002-08-3012-130/+400
|
* Merged changes from HEADscottc2002-08-296-44/+100
|
* * safe_memory.h: Replace #include <new> with an explicitscottc2002-08-282-7/+14
| | | | | definition of the placement new operator. (safe_delete): Remove unnecessary ## operator.
* Merged changes from HEADscottc2002-08-288-5/+54
|
* Merged changes from HEADscottc2002-08-2710-44/+92
|
* Merged changes from HEADscottc2002-08-2610-201/+251
|
* Merged changes from HEADscottc2002-08-247-43/+72
|
* Merged changes from HEADscottc2002-08-1814-45/+153
|
* Fix bad merge.scottc2002-08-161-1/+0
|
* Merged changes from HEADscottc2002-08-1612-128/+5847
|
* Merged changes from HEADscottc2002-08-1216-283/+335
|
* Merged changes from HEADscottc2002-08-074-23/+33
|
* Merged changes from HEADscottc2002-08-0612-44/+256
|
* Merged changes from HEADscottc2002-08-027-17/+51
|
* Merged changes from HEADscottc2002-08-0115-289/+304
|
* Merged changes from HEADscottc2002-07-314-19/+39
|
* Merged changes from HEADscottc2002-07-3012-236/+472
|
* Merged changes from HEADscottc2002-07-298-22/+78
|
* * cygserver_shm.cc (class server_shmmgr): Remove `cleanup_t'scottc2002-07-283-41/+23
| | | | | | | | | | | | friend declaration. (cleanup_t::cleanup_t): Use the segment's shmid as the key rather than the segment pointer itself. (cleanup_t::segptr): Remove method. (cleanup_t::shmid): New method. (cleanup_t::cleanup): Update for new key value. (server_shmmgr::find (segment_t *)): Remove method. * include/cygwin/cygserver_process.h (cleanup_routine::key): Make method const.
* * include/cygwin/cygserver_process.hscottc2002-07-274-34/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (cleanup_routine::_key): New field. (cleanup_routine::cleanup_routine): Initialise new field with new argument. (cleanup_routine::operator==): New method. (cleanup_routine::cleanup): Make argument non-const. (process::is_active): New method. (process::remove): Ditto. (process::check_exit_code): Rename method. * cygserver_process.cc (process::add): Reorganize code. (process::remove): New method. (process::check_exit_code): Rename method. (process::cleanup): Use new `process::is_active' method. (process_cache::process): Ditto. (process_cache::sync_wait_array): Ditto. (process_cache::check_and_remove_process): Ditto. * cygserver_shm.cc (server_shmmgr): Make `cleanup_t' a friend. (segment_t::detach): Make argument non-const. Remove cleanup object from client if appropriate. (cleanup_t::_segptr): Remove field. (cleanup_t::cleanup_t): Initialise parent explicitly. Remove field. (cleanup_t::segptr): New method. (cleanup_t::cleanup): Add error checking and reporting. (server_shmmgr::shmdt): Make argument non-const. (server_shmmgr::find): New method.
* * cygserver.cc (client_request_shutdown::client_request_shutdown):scottc2002-07-274-4/+14
| | | | | | | | | Comment out verbose tracing statement. * cygserver_client.cc (client_request_get_version::client_request_get_version): Ditto. (client_request_attach_tty::client_request_attach_tty): Ditto. * cygserver_shm.cc (client_request_shm::client_request_shm): Ditto.
* * cygserver_transport_pipes.cc (transport_layer_pipes::listen):scottc2002-07-272-0/+8
| | | | Set `_is_listening_endpoint' appropriately.
* * include/cygwin/cygserver_transport.hscottc2002-07-278-105/+437
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (transport_layer_base::listen): Change return type. (transport_layer_base::connect): Ditto. * include/cygwin/cygserver_transport_pipes.h (transport_layer_pipes::listen): Change return type. (transport_layer_pipes::connect): Ditto. (transport_layer_pipes::_sec_none_nih): Remove unused field. (transport_layer_pipes::_is_listening_endpoint): New field. * cygserver_transport_pipes.cc: Synchronize with sockets code. (transport_layer_pipes::transport_layer_pipes): Initialise new field. Separate out asserts. (transport_layer_pipes::listen): Change return type. Add asserts. (transport_layer_pipes::accept): Add asserts. (transport_layer_pipes::read): Change conditional to an assert. Add assert. (transport_layer_pipes::write): Ditto. (transport_layer_pipes::connect): Change return type. Change conditional to an assert. Add asserts. Rationalize error code slightly. (transport_layer_pipes::impersonate_client): Add asserts. * include/cygwin/cygserver_transport_sockets.h (transport_layer_sockets::listen): Change return type. (transport_layer_sockets::connect): Ditto. (transport_layer_sockets::_addr): Change type of field. (transport_layer_sockets::_addr_len): Ditto. (transport_layer_sockets::_is_accepted_endpoint): New field. (transport_layer_sockets::_is_listening_endpoint): Ditto. * cygserver_transport_sockets.cc (MAX_CONNECT_RETRY): New constant. (transport_layer_sockets::transport_layer_sockets): Initialise new fields. Only initialise the socket address where necessary. (transport_layer_sockets::listen): Change return type. Rewrite. (transport_layer_sockets::accept): Add asserts. Add tracing statements. Use a local variable to hold the accepted address. (transport_layer_sockets::close): Add tracing statements. Unlink the UNIX domain socket file as appropriate. Close the socket cleanly. (transport_layer_sockets::read): Rewrite method. (transport_layer_sockets::write): Ditto. (transport_layer_sockets::connect): Change return type. Rewrite. * cygserver.cc (server_submission_loop::request_loop): Run the listening thread at high priority with special handling for shutdown. (main): Print the request error code rather than errno in shutdown request code. Install signal handlers with sigaction(2) to avoid setting SA_RESTART. Check value of the listen method call, now it has one. * cygserver_client.cc (client_request::make_request): Check new return value on connect method call.
* * include/cygwin/cygserver_transport_pipes.hscottc2002-07-275-110/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cygserver_transport_pipes::_sd): Rename field. (cygserver_transport_pipes::_sec_none_nih): Ditto. (cygserver_transport_pipes::_sec_all_nih): Ditto. (cygserver_transport_pipes::_pipe_name): Ditto. (cygserver_transport_pipes::_hPipe): Ditto. (cygserver_transport_pipes::_is_accepted_endpoint): Ditto. * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Rename fields. (transport_layer_pipes::init_security): Ditto. (transport_layer_pipes::listen): Ditto. (transport_layer_pipes::accept): Ditto. (transport_layer_pipes::close): Ditto. (transport_layer_pipes::read): Ditto. (transport_layer_pipes::write): Ditto. (transport_layer_pipes::connect): Ditto. (transport_layer_pipes::impersonate_client): Ditto. (transport_layer_pipes::revert_to_self): Ditto. * include/cygwin/cygserver_transport_sockets.h (cygserver_transport_sockets::_fd): Rename field. (cygserver_transport_sockets::_addr): Ditto. (cygserver_transport_sockets::_addr_len): Ditto. * cygserver_transport_sockets.cc (transport_layer_sockets::transport_layer_sockets): Rename fields. (transport_layer_sockets::listen): Ditto. (transport_layer_sockets::accept): Ditto. (transport_layer_sockets::close): Ditto. (transport_layer_sockets::read): Ditto. (transport_layer_sockets::write): Ditto. (transport_layer_sockets::connect): Ditto.
* * cygserver_shm.cc (with_strerr): Fix use of %p format.scottc2002-07-273-14/+22
| | | | | | | * shm.cc (client_shmmgr::shmat): Ditto. (client_shmmgr::shmctl): Ditto. (client_shmmgr::shmdt): Ditto. (client_shmmgr::attach): Ditto.
* Merged changes from HEADscottc2002-07-2613-29/+95
|
* Merged changes from HEADscottc2002-07-238-73/+265
|
* Re-indent etc.scottc2002-07-165-83/+100
|
* Merged changes from HEADscottc2002-07-148-29/+58
|
* .Christopher Faylor2002-07-142-2/+2
|
* * woutsup.h (system_printf): Remove extraneous semicolon from macro definition.Christopher Faylor2002-07-141-0/+5
|