46c6a3e8eb* configure.in: Avoid using cygserver unless hosting on cygwin.
Christopher Faylor
2003-11-24 17:03:50 +0000
3ad60fc808* include/winnt.h (PAGE_*): Group defines together. Change constants to hex notation.
Danny Smith
2003-11-23 20:29:02 +0000
4b1bc69287white space
Christopher Faylor
2003-11-23 17:55:37 +0000
95b1156144* Makefile.in: Make cygserver depending on cygwin.
Corinna Vinschen
2003-11-23 09:02:26 +0000
0af8d6110b* sigproc.cc (sig_send): Correct below checkin. Use thisframe.call_signal_handler.
Christopher Faylor
2003-11-23 05:42:47 +0000
0670609d12* sigproc.cc (proc_exists): A zombie process does not exist. (sig_send): Improve debugging output. Wait for pipe to be created before trying to send to it. Call call_signal_handler_now if sending a signal to myself.
Christopher Faylor
2003-11-23 05:34:00 +0000
c026d84209* msg.cc (client_request_msg::serve): Add default case to msgop switch. * sem.cc (client_request_sem::serve): Add default case to semop switch. * shm.cc (client_request_shm::serve): Add default case to shmop switch.
Corinna Vinschen
2003-11-22 22:37:13 +0000
876083f32e* dcrt0.cc (check_sanity_and_sync): Correct api major version check so that newer dlls will work with older apps but not vice versa.
Christopher Faylor
2003-11-22 17:22:59 +0000
759a097e722003-11-21 Artem B. Bityuckiy <mail_lists@mail.ru>
Jeff Johnston
2003-11-22 01:07:24 +0000
ef7acb98aa* sem.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER. * shm.cc: Ditto. * msg.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER.
Christopher Faylor
2003-11-21 22:22:08 +0000
bfa2e9cbb1* msg.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER.
Christopher Faylor
2003-11-21 22:21:05 +0000
4f6149d6f02003-11-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-21 20:48:49 +0000
4bd6628553* Makefile.in (install): Explicitely create directories. Install README to $(prefix)/share/doc/Cygwin. * README: New file.
Corinna Vinschen
2003-11-21 18:10:49 +0000
e545df31d5* Makefile.in: Add rules to build ipcrm and ipcs. * ipcrm.c: New file. * ipcs.c: New file.
Corinna Vinschen
2003-11-19 18:50:52 +0000
a6df500f7d* cygserver.h (client_request::request_code_t): Add CYGSERVER_REQUEST_MSG and CYGSERVER_REQUEST_SEM. (admininstrator_group_sid): Add extern declaration. * cygserver_ipc.h: Rewrite. * cygserver_msg.h: New file. * cygserver_sem.h: New file. * cygserver_shm.h: More or less rewrite. * cygwin.din: Add msgctl, msgget, msgrcv, msgsnd, semctl, semget and semop. * msg.cc: Rewrite. * safe_memory.h: Remove. * sem.cc: Rewrite. * shm.cc: Rewrite. * include/cygwin/ipc.h: Use appropriate guard. (struct ipc_perm): Add seq. (IPCID_TO_IX): New define from BSD. (IPCID_TO_SEQ): Ditto. (IXSEQ_TO_IPCID): Ditto. (IPC_R): Ditto. (IPC_W): Ditto. (IPC_M): Ditto. * include/cygwin/msg.h: Use appropriate guard. #ifdef _KERNEL all stuff not explicitely defined by SUSv3. Use signed types in structs to match types used in BSD. (msgqnum_t): Define unsigned. (msglen_t): Ditto. (struct msqid_ds): Add msg_first and msg_last. (struct msginfo): Remove msgpool. Add msgssz and msgseg. * include/cygwin/sem.h: Use appropriate guard. #ifdef _KERNEL all stuff not explicitely defined by SUSv3. Use signed types in structs to match types used in BSD. (SEM_UNDO): Define appropriately. (struct semid_ds): Add sem_base. (struct seminfo): Add semmap and semusz. (SEM_A): New define from BSD. (SEM_R): Ditto. (SEM_ALLOC): Ditto. (union semun): Define. * include/cygwin/shm.h: Use appropriate guard. #ifdef _KERNEL all stuff not explicitely defined by SUSv3. Use signed types in structs to match types used in BSD. (SHMLBA): Define using cygwin_internal(CW_GET_SHMLBA) call. (struct shmid_ds): Add shm_internal. (struct shm_info): Rename shm_ids to used_ids as in BSD. Add define for shm_ids. * include/cygwin/sysproto.h: New file. * include/cygwin/version.h: Bump API minor number. * include/sys/ipc.h: New file. * include/sys/msg.h: New file. * include/sys/queue.h: New file from BSD. * include/sys/sem.h: New file. * include/sys/shm.h: New file. * include/sys/sysproto.h: New file.
Corinna Vinschen
2003-11-19 18:50:23 +0000
282113ba89Don't use safe_new but new throughout. Fix copyright dates throughout. * Makefile.in: Accomodate all new files and name changes. Add a *.d dependency. (sbindir): Add. (etcdir): Drop in favor of more appropriate sysconfdir definition. (sysconfdir): Add. (CXXFLAGS): Add -MMD flag. Add SYSCONFDIR definition. (.SUFFIXES): Add. (install): Add action items. (libclean): New target. (fullclean): Ditto. * bsd_helper.cc: New file. * bsd_helper.h: Ditto. * bsd_log.cc: Ditto. * bsd_log.h: Ditto. * bsd_mutex.cc: Ditto. * bsd_mutex.h: Ditto. * client.cc: Rearrange to build as less as possible if __INSIDE_CYGWIN__. (client_request::handle_request): Add Message Queue and Semaphore handling. * cygserver.cc: Rearrange to build as less as possible if __INSIDE_CYGWIN__. Use new debug/log/panic logging functions. (DEF_CONFIG_FILE): New definition for configuration file. Use throughout. (getfunc): Remove. (__cygserver__printf): Remove. (client_request_attach_tty::serve): Return error if impersonation fails. (print_usage): Pump up help message. (print_version): Add output of default configuration file. (main): Accommodate new options. Allow overwrite of threading options from config file. Call several new initialization functions. Drop printing dots. Don't define SIGHANDLE inline. * cygserver.conf: New file. * cygserver_process.h: Rename to process.h. * cygserver_transport.h: Rename to transport.h. * cygserver_transport_pipes.h: Rename to transport_pipes.h. * cygserver_transport_sockets.h: Rename to transport_sockets.h. * msg.cc: Rewrite. * sem.cc: Rewrite. * shm.cc: Rewrite. * sysv_msg.cc: New file, derived from FreeBSD version 1.52. * sysv_sem.cc: New file, derived from FreeBSD version 1.66. * sysv_shm.cc: New file, derived from FreeBSD version 1.89. * threaded_queue.cc: Rearrange to build as less as possible if __INSIDE_CYGWIN__. * transport.cc (transport_layer_base::impersonate_client): Define bool. (transport_layer_base::revert_to_self): Ditto. * transport.h (transport_layer_base::impersonate_client): Declare bool. (transport_layer_base::revert_to_self): Ditto. * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Don't call init_security. (init_security): Remove. (transport_layer_pipes::accept): Use global sec_all_nih. (transport_layer_pipes::connect): Ditto. (transport_layer_pipes::impersonate_client): Define bool. (transport_layer_pipes::revert_to_self): Ditt. * transport_pipes.h (transport_layer_pipes::impersonate_client): Declare bool. (transport_layer_pipes::revert_to_self): Ditto. * woutsup.h: Include bsd compatibility headers. (SIGHANDLE): Add definition. (__cygserver__printf): Remove definition. (__noop_printf): Ditto. (debug_printf): Define using debug. (syscall_printf): Define using log. (system_printf): Ditto. Drop all other _printf definitions.
Corinna Vinschen
2003-11-19 18:49:41 +0000
64cfc6f2132003-11-19 Nicholas Wourms <nwourms@netscape.net>
Jeff Johnston
2003-11-19 17:07:36 +0000
e1dc8171ae2003-11-19 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-19 16:57:51 +0000
7326e3ffd9Revert most of last check in to ChangeLog. It duplicated accidentally a big bunch of old entries.
Corinna Vinschen
2003-11-19 10:11:46 +0000
94e46ecf9e* config/tc-mips.c (macro): Handle new macros: "lca" and "dlca" for loading addresses using CALL relocations. Don't emit CALL relocations when a base register is used.
Maciej W. Rozycki
2003-11-18 21:22:56 +0000
a472290f3e2003-11-18 Corinna Vinschen <corinna@vinschen.de>
Jeff Johnston
2003-11-18 19:17:17 +0000
8f4dfcaa1f* fhandler.cc (fhandler_base::lseek): Include high order offset bits in return value.
Corinna Vinschen
2003-11-17 22:18:42 +0000
6e17cee57b* bsdlib.cc (getprogname): New function. (setprogname): New funtion. * cygwin.din: Export getprogname and setprogname. * include/cygwin/version.h: Bumb API version number.
Corinna Vinschen
2003-11-17 17:25:59 +0000
530393d7cfAdd new field to disassemble_info structure: symbol_is_valid() and use it to skip displaying arm elf mapping symbols in disassembly output.
Nick Clifton
2003-11-14 15:12:43 +0000
22ec16a830* dtable.cc (build_fh_pc): Use DEV_SERIAL_MAJOR to catch all serial ports. Remove redundant FH_CYGDRIVE case since it is handled by DEV_CYGDRIVE_MAJOR.
Christopher Faylor
2003-11-14 01:37:23 +0000
d15d293f97minor adjustments to Elfyn's contribution.
David Starks-Browning
2003-11-13 22:23:59 +0000
cbae1342512003-11-13 Martin Fuchs <martin-fuchs@gmx.net>
Danny Smith
2003-11-13 09:43:08 +0000
068834a10f* thread.cc (pthread::exit): Cleanup on thread exit. (__reent_t::init_clib): Set thread local clib __cleanup var appropriately.
Thomas Pfaff
2003-11-11 19:10:47 +0000
030441fc692003-11-10 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-10 21:36:38 +0000
8398809e7d* miscfuncs.cc (low_priority_sleep): Make a "C" function. * winsup.h (low_priority_sleep): Revert previous change to declaration.
Christopher Faylor
2003-11-10 21:28:02 +0000
182d0e28a7* fhandler_disk_file.cc (fhandler_disk_file::opendir): Reorganize to handle freeing of memory on error condition.
Christopher Faylor
2003-11-07 18:22:26 +0000
ef4d65ba95* cygthread.cc (cygthread::freerange): Set inuse count. Avoid setting ev from h as h would be NULL at this point. (cygthread::operator new): Issue debugging info when overflowing the thread pool. (cygthread::cygthread): Set ev from h here after h has been initialized.
Christopher Faylor
2003-11-07 18:21:05 +0000
2985521f842003-11-07 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-07 16:01:17 +0000
dcad6a899a2003-11-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-06 22:58:52 +0000
03c8f22f77* Missing patch to cygwin.din.
Corinna Vinschen
2003-11-06 21:36:17 +0000
6ef3b76be2* syscalls.cc (getshmlba): New function. * external.cc (cygwin_internal): Add CW_GET_SHMLBA handling. * mmap.cc (mmap64): Call getshmlba to evaluate granularity. * winsup.h (getshmlba): Add declaration. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_SHMLBA.
Corinna Vinschen
2003-11-06 14:33:16 +0000
fad5aef860* winsup.h: Declare access_worker.
Christopher Faylor
2003-11-06 13:58:45 +0000
9f9d1ce63bFix 'the the' typo
Nick Clifton
2003-11-06 11:58:58 +0000
80ab7cb41f* include/cygwin/types.h: Fix preprocessor guards for vm_offset_t and vm_size_t. Add typedef for vm_object_t.
Corinna Vinschen
2003-11-06 10:46:49 +0000
d6250437a3* ppc.h (R_PPC_RELAX32PC): Define.
Alan Modra
2003-11-06 02:57:08 +0000
d2ffac097d2003-11-05 Jeff Johnston <jjohnstn@redhat.com> Artem B. Bityuckiy <mail_lists@mail.ru>
Jeff Johnston
2003-11-06 00:50:57 +0000
da2d12279b2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-11-06 00:46:59 +0000
d417aec908* fhandler_disk_file.cc (fhandler_disk_file::opendir): Detect attempt to open a directory which lacks read privileges.
Christopher Faylor
2003-11-05 16:53:55 +0000
1be28abadfEntry "Where is the su command?" -> "Why doesn't su work?"
David Starks-Browning
2003-11-04 22:05:31 +0000
bcd06214e1* external.cc (cygwin_internal): Add CW_GET_POSIX_SECURITY_ATTRIBUTE handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_POSIX_SECURITY_ATTRIBUTE.
Corinna Vinschen
2003-11-04 15:48:19 +0000
c35391d0d2* net.cc (dup_ent): Use IsBadStringPtr for alignment checks. Don't use a known bad pointer.
Christopher Faylor
2003-11-04 13:15:47 +0000
02bd05e386* passwd.c (PrintPW): Turn around meaning printed for "Password not required" option to be in line with Windows meaning. (main): Use more appropriate 1008 option when calling NetUserSetInfo to change flag values.
Corinna Vinschen
2003-11-04 10:54:47 +0000
1f4e5e1571* passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h). (version): Bump version number to 1.5. (longopts): Add -c, -C, -e, -E, -p, -P options. (opts): Ditto. (PrintPW): Print values of UF_PASSWD_CANT_CHANGE and UF_DONT_EXPIRE_PASSWD flags. Slightly reformat output. Don't suppress correct system password settings just because the account has admin privileges. (usage): Define as "noreturn" function. Restructure and rephrase output. Accomodate new options. (print_version): Fix copyright dates. (main): Accomodate new options for setting UF_PASSWD_CANT_CHANGE, UF_DONT_EXPIRE_PASSWD and UF_PASSWD_NOTREQD settings.
Corinna Vinschen
2003-11-04 10:30:35 +0000
dff017b292* net.cc (dup_ent): Move Win 95 misalignment recogition before trying to evaluate string length.
Corinna Vinschen
2003-11-03 21:43:32 +0000
79c5244017* sim-frv.h: New file.
Kevin Buettner
2003-11-01 01:33:25 +0000
f796413184* thread.cc (pthread::thread_init_wrapper): Initialize exception handling.
Thomas Pfaff
2003-10-31 20:47:14 +0000
c6e0f665bcRename pthread::running to pthread::valid throughout.
Thomas Pfaff
2003-10-31 20:42:56 +0000
d3f6bd13cb* include/stdint.h: Prevent signed->unsigned conversion for 32 and 64 bit min value constants.
Corinna Vinschen
2003-10-29 08:43:10 +0000
7825ed016f* path.cc (dot_special_chars): New global variable. (special_name): Make files ending in "." special. (fnunmunge): Allow encoded ".". (mount_item::fnmunge): Handle trailing ".".
Christopher Faylor
2003-10-29 01:15:12 +0000
a4666b3d1b* include/stdint.h: Duplicate below effort for rest of *64_*.
Christopher Faylor
2003-10-28 16:03:52 +0000
61c4ca410f* include/stdint.h: Correctly define INT64_MAX.
Christopher Faylor
2003-10-28 15:13:06 +0000
b19cda7bab* include/math.h: Guard ISO C99 additions with __cplusplus not __GLIBCPP__.
Danny Smith
2003-10-27 23:51:37 +0000
7cba834bf2* thread.h (fast_mutex::init): Initialize lock_counter.
Thomas Pfaff
2003-10-27 21:12:42 +0000
bfe5ae413f2003-10-27 Bernardo Innocenti <bernie@develer.com>
Jeff Johnston
2003-10-27 20:03:10 +0000
072339664d* cygwin.din: Add sem_close, sem_getvalue, sem_open and sem_timedwait. * pthread.cc (+mangle_sem_name): New function. (sem_open): Ditto. (sem_close: Ditto. (sem_timedwait): Ditto. (sem_getvalue): Ditto. * thread.cc (semaphore::semaphore): Rearrange member initialization. Use appropriate security attribute for process shared semaphores. (semaphore::semaphore): New constructor for named semaphores. (semaphore::~semaphore): Care for semaphore name. (semaphore::_post): Accomodate failing ReleaseSemaphore. Use value returned by ReleaseSemaphore vor currentvalue. (semaphore::_getvalue): New method. (semaphore::_timedwait): Ditto. (semaphore::_fixup_after_fork): Rearrange. Don't fail for process shared semaphores. (semaphore::open): New method. (semaphore::timedwait): Ditto. (semaphore::post): Fix return value. Set errno appropriately. (semaphore::getvalue): New method. * thread.h (class semaphore): Add prototypes for open, getvalue, timedwait, _getvalue, _timedwait. Add prototypes for new constructor. Add name member. * include/semaphore.h: Add prototypes for sem_open, sem_close, sem_timedwait and sem_getvalue. include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2003-10-27 11:48:29 +0000
13d5cc4020Remove file that was supposed to have disappeared a month ago.
Christopher Faylor
2003-10-26 01:09:06 +0000
504678827a* path.cc (normalize_posix_path): Test runs of more than two dots for being a run of only dots. Let it pass if not.
Corinna Vinschen
2003-10-25 16:12:45 +0000
28194e813eRename native_mutex to fast_mutex throughout. Rename pthread_key::save_key_to_buffer to pthread_key::_fixup_before_fork throughout. Rename pthread_key::recreate_key_from_buffer to pthread_key::_fixup_after_fork throughout.
Thomas Pfaff
2003-10-24 19:34:47 +0000
2b7dcf79ae* fhandler.cc (fhandler_base::fcntl): Don't clobber O_APPEND when both O_NONBLOCK/O_NDELAY are set for F_SETFL.
Corinna Vinschen
2003-10-24 12:11:20 +0000
f49c14a197* fhandler_proc.cc (format_proc_partitions): Use new device code to get major and minor device numbers. Fix size evaluation.
Corinna Vinschen
2003-10-23 08:54:00 +0000