summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * sem.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER.Christopher Faylor2003-11-213-1/+10
| | | | | * shm.cc: Ditto. * msg.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER.
* * msg.cc: Always include signal.h to handle SIGSYS raise when !USE_SERVER.Christopher Faylor2003-11-212-0/+5
|
* 2003-11-21 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-212-8/+22
| | | | | | * libc/stdio/vfscanf.c (__svfscanf_r)[!_NO_LONGDBL]: Don't use _strtold routine for processing floats and doubles since it is not as fast as _strtod_r.
* * Makefile.in (install): Explicitely create directories. InstallCorinna Vinschen2003-11-213-2/+223
| | | | | README to $(prefix)/share/doc/Cygwin. * README: New file.
* * cygserver.cc (print_usage): Fix scrambled output.Corinna Vinschen2003-11-212-1/+5
|
* 2003-11-20 Dhananjay Deshpande <dhananjayd@kpitcummins.com>Jeff Johnston2003-11-206-5/+82
| | | | | | | | | | * libc/machine/h8300/defines.h : Correct pointer register defines for normal mode. * libc/machine/h8300/memcpy.S : Use add/sub instead of adds/subs for normal mode. * libc/machine/h8300/reg_memcpy.S : Likewise. * libc/machine/h8300/reg_memset.S : Likewise. * libc/machine/h8300/strcmp.S : Likewise.
* * cygserver-config: Slightly modify printed message.Corinna Vinschen2003-11-202-4/+5
|
* * configure.in: Make --use-server the default.Christopher Faylor2003-11-203-12/+12
| | | | * configure: Regenerate.
* * configure.in: Make --use-server the default. Remove powerpc target.Christopher Faylor2003-11-203-19/+18
| | | | * configure: Regenerate.
* * winsup.api/msgtest.c (main): Revert to use the SIGSYS signal handler.Corinna Vinschen2003-11-204-27/+9
| | | | | * winsup.api/semtest.c (main): Ditto. * winsup.api/shmtest.c (main): Ditto.
* * msg.cc (msgctl): Raise SIGSYS if call not available.Corinna Vinschen2003-11-204-0/+47
| | | | | | | | | | | | | (msgget): Ditto. (msgrcv): Ditto. (msgsnd): Ditto. * sem.cc (semctl): Ditto. (semget): Ditto. (semop): Ditto. * shm.cc (shmat): Ditto. (shmctl): Ditto. (shmget): Ditto. (shmdt): Ditto.
* * Makefile.in (install): Install cygserver-config script to bindir.Corinna Vinschen2003-11-203-2/+220
| | | | * cygserver-config: New script.
* 2003-11-19 Nicholas Wourms <nwourms@netscape.net>Jeff Johnston2003-11-191-1/+1
| | | | | | | * configure.host: Enable positional arguments for printf family for Cygwin. * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous pointer reference for quad_ptr_t.
* * Makefile.tpl (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.DJ Delorie2003-11-193-2/+9
| | | | * Makefile.in: Regenerate.
* * winsup.api/msgtest.c: New file derived from FreeBSD, testingCorinna Vinschen2003-11-194-0/+1020
| | | | | | XSI Message Queue support. * winsup.api/semtest.c: Ditto, testing XSI Semaphore support. * winsup.api/shmtest.c: Ditto, testing XSI Shared Memory support.
* * Makefile.in: Add rules to build ipcrm and ipcs.Corinna Vinschen2003-11-194-1/+1061
| | | | | * ipcrm.c: New file. * ipcs.c: New file.
* * cygserver.h (client_request::request_code_t): AddCorinna Vinschen2003-11-1924-904/+1799
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Don't use safe_new but new throughout. Fix copyright datesCorinna Vinschen2003-11-1927-1368/+5656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2003-11-19 Nicholas Wourms <nwourms@netscape.net>Jeff Johnston2003-11-192-1/+8
| | | | | | | * configure.host: Enable positional arguments for printf family for Cygwin. * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove extraneous pointer reference for quad_ptr_t.
* 2003-11-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-192-2/+4
| | | | * libc/stdio/scanf.c: Don't include local.h more than once.
* * dtable.cc (build_fh_pc): Resurrect accidentally removedCorinna Vinschen2003-11-192-0/+8
| | | | DEV_CYGDRIVE_MAJOR case.
* Revert most of last check in to ChangeLog. It duplicatedCorinna Vinschen2003-11-191-1237/+0
| | | | accidentally a big bunch of old entries.
* * config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"Maciej W. Rozycki2003-11-182-0/+6
| | | | | | | | | | | | | | | for loading addresses using CALL relocations. Don't emit CALL relocations when a base register is used. * gas/mips/lca-svr4pic.d: New test for the "lca" macro. * gas/mips/lca-xgot.d: Likewise. * gas/mips/lca.s: Source for the new tests. * gas/mips/mips.exp: Run the new tests. * opcode/mips.h: Define new enum members, M_LCA_AB and M_DLCA_AB. * mips-opc.c (mips_builtin_opcodes): Handle new macros: "lca" and "dlca".
* 2003-11-18 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2003-11-184-0/+15
| | | | | | * libc/include/sys/fcntl.h: Declare _open64. * libc/include/sys/stat.h: Declare _fstat64. * libc/include/sys/unistd.h: Declare _lseek64.
* * fhandler.cc (fhandler_base::lseek): Include high order offsetCorinna Vinschen2003-11-172-0/+8
| | | | bits in return value.
* * libc/include/stdlib.h (getprogname): Declare for Cygwin.Corinna Vinschen2003-11-172-0/+11
| | | | (setprogname): Ditto.
* * bsdlib.cc (getprogname): New function.Corinna Vinschen2003-11-174-1/+33
| | | | | | (setprogname): New funtion. * cygwin.din: Export getprogname and setprogname. * include/cygwin/version.h: Bumb API version number.
* * include/limits.h: Revert unsanctioned changes below.Christopher Faylor2003-11-154-4/+10
| | | | | * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
* Add Tab control macroManu B2003-11-152-0/+5
|
* 2003-11-11 Robert Collins <rbtcollins@hotmail.com>Robert Collins2003-11-1441-151/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ron Parker <rdparker@butlermfg.com> * bsdlib.cc: Update throughout to use CYG_MAX_PATH rather than MAX_PATH. * cygheap.h: Ditto. * dcrt0.cc: Ditto. * delqueue.cc: Ditto. * dlfcn.cc: Ditto. * dll_init.cc: Ditto. * dll_init.h: Ditto. * dtable.cc: Ditto. * environ.cc: Ditto. * environ.h: Ditto. * exceptions.cc: Ditto. * external.cc: Ditto. * fhandler_disk_file.cc: Ditto. * fhandler_proc.cc: Ditto. * fhandler_process.cc: Ditto. * fhandler_raw.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_socket.cc: Ditto. * fhandler_virtual.cc: Ditto. * miscfuncs.cc: Ditto. * mmap.cc: Ditto. * netdb.cc: Ditto. * path.cc: Ditto. * path.h: Ditto. * pinfo.cc: Ditto. * pinfo.h: Ditto. * pthread.cc: Ditto. * registry.cc: Ditto. * shared.cc: Ditto. * shared_info.h: Ditto. * smallprint.c: Ditto. * spawn.cc: Ditto. * strace.cc: Ditto. * syscalls.cc: Ditto. * thread.h: Ditto. * uinfo.cc: Ditto. * winsup.h: Ditto. * include/limits.h: Ditto. * include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
* * mkgroup.c: Avoid compiler warnings throughout.Corinna Vinschen2003-11-144-15/+1258
| | | | | * mkpasswd.c: Ditto. * passwd.c: Ditto.
* Add new field to disassemble_info structure: symbol_is_valid() and use it toNick Clifton2003-11-142-3/+28
| | | | skip displaying arm elf mapping symbols in disassembly output.
* * dtable.cc (build_fh_pc): Use DEV_SERIAL_MAJOR to catch all serial ports.Christopher Faylor2003-11-142-9/+9
| | | | Remove redundant FH_CYGDRIVE case since it is handled by DEV_CYGDRIVE_MAJOR.
* minor adjustments to Elfyn's contribution.David Starks-Browning2003-11-132-11/+10
|
* Apply Elfyn's patches as supplied in ↵David Starks-Browning2003-11-133-16/+14
| | | | <http://cygwin.com/ml/cygwin-patches/2003-q3/msg00156.html>.
* 2003-11-13 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith2003-11-135-3/+48
| | | | | | | | | | | | | | | * include/shlobj.h (ILAppendID, ILClone, ILCloneFirst, ILCombine, ILFindChild, ILFindLastID, ILFree, ILGetNext, ILGetSize, ILIsEqual, ILIsParent, ILLoadFromStream, ILRemoveLastID, ILSaveToStream): Add prototypes. * lib/shell32.def: Add stubs. * include/commctrl.h (ListView_FindItem): Add type cast to avoid compiler warnings. 2003-11-13 Hans Leidekker <hans@it.vu.nl> * include/winbase.h (WIN32_STREAM_ID): Correct typedef.
* * thread.cc (pthread::exit): Cleanup on thread exit.Thomas Pfaff2003-11-112-0/+10
| | | | | (__reent_t::init_clib): Set thread local clib __cleanup var appropriately.
* 2003-11-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-102-5/+10
| | | | | * libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts to use (Ebits + 1) which accounts for the sign-bit.
* * miscfuncs.cc (low_priority_sleep): Make a "C" function.Christopher Faylor2003-11-103-2/+7
| | | | * winsup.h (low_priority_sleep): Revert previous change to declaration.
* * winsup.h (low_priority_sleep): Fix declaration to avoid linkerCorinna Vinschen2003-11-102-1/+6
| | | | warning.
* * thread.cc (__reent_t::init_clib): Set thread local clibThomas Pfaff2003-11-102-0/+6
| | | | __sdidinit var appropriately.
* * syscalls.cc (ftruncate64): Log length as long long.Corinna Vinschen2003-11-082-5/+10
| | | | | (logout): Erase ut_host. Don't write wtmp entry. Return 1 only if matching utmp entry has been found, 0 otherwise.
* * external.cc (cygwin_internal): Add CW_GET_UID_FROM_SID andCorinna Vinschen2003-11-084-2/+28
| | | | | | | CW_GET_GID_FROM_SID handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID.
* 2003-11-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-0711-12/+128
| | | | | | | | | | | | | | | | | | | | * configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux x86 build. * iconvdata/Makefile.am: Make dependent on newlib's configure.host and set up default flags to pass to aclocal. * iconvdata/Makefile.in: Regenerated. * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam, and getpwuid routines. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/getlogin.c: New stub file to allow x86-linux applications to link with newlib's shared libc library. * libc/sys/linux/getpwnam.c: Ditto. * libc/sys/linux/getpwuid.c: Ditto. * libc/sys/linux/sys/types.h: Include <features.h> and supply types that were formerly supplied by /usr/include/linux/types.h with kernel types. * testsuite/newlib.wctype/twctype.c: Fix testcase to properly test _ELIX_LEVEL macro.
* * cygpath.cc (main): Allow multiple pathnames on command line.Corinna Vinschen2003-11-072-22/+17
|
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Reorganize to handleChristopher Faylor2003-11-071-0/+5
| | | | freeing of memory on error condition.
* * cygthread.cc (cygthread::freerange): Set inuse count. Avoid setting ev fromChristopher Faylor2003-11-073-27/+45
| | | | | | | 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.
* 2003-11-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-072-2/+7
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be referring to _NO_LONGLONG macro.
* 2003-11-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-0638-37/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/linux/linuxthreads/td_init.c: Replace function name in LOG() macro so this will compile on gcc 3.4 and up. * libc/sys/linux/linuxthreads/td_log.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_delete.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_enable_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_addr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_nthreads.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_ph.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_get_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_id2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_map_lwp2thr.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_new.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_reset_stats.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_setconcurrency.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_thr_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_ta_tsd_iter.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_clear_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbresume.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_dbsuspend.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_enable.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_event_getmsg.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_get_info.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_getxregsize.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_set_event.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setfpregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setgregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setprio.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setsigpending.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_setxregs.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_sigsetmask.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_tsd.c: Ditto. * libc/sys/linux/linuxthreads/td_thr_validate.c: Ditto.
* * Missing patch to cygwin.din.Corinna Vinschen2003-11-061-0/+8
|