summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-273-1/+34
| | | | | * libc/include/stdlib.h (_atoi_r): New prototype. * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-274-3/+41
| | | | | | * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes. * libc/stdlib/atol.c (_atol_r): New reentrant function. * libc/stdlib/atoll.c (_atoll_r): Ditto.
* 2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-11-278-8/+311
| | | | | | | | | | | | | Jeff Johnston <jjohnstn@redhat.com> * libc/include/stdlib.h (lldiv_t): New type. (atoll, llabs, lldiv): New prototypes. * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv. * libc/stdlib/stdlib.tex: Ditto. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atoll.c: New file. * libc/stdlib/llabs.c: Ditto. * libc/stdlib/lldiv.c: Ditto.
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-272-1/+32
| | | | | * COPYING.NEWLIB: Add license info for long long routines added to stdlib.
* 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>Danny Smith2003-11-272-1/+8
| | | | * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
* * lib/vfw32.def: Remove, replacing with ...Danny Smith2003-11-276-58/+91
| | | | | | | | | | | | * lib/msvfw32.def: New file. * lib/avicap32.def: New file. * lib/avifil32.def: New file. * lib/vfw32.mri: New file. * Makefile.in: (MRI_FILES, MIMPLIBS): New vars for import libs with multiple dll's. (LIBS): Add MIMPLIBS. (DISTFILES): Add MRI_FILES. (libvfw32.a): Build using mri script.
* * cygserver.cc (main): Move call to ipcinit() up before installingCorinna Vinschen2003-11-263-6/+12
| | | | | | any threads. * sysv_sem.cc: Update to FreeBSD version 1.67. (seminit): Initialize semaphore sequence numbers to 0.
* * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a inCorinna Vinschen2003-11-262-1/+9
| | | | | the parallel cygwin dir. (cygserver.exe): Depend on and link against $CYGWIN_LIB.
* 2003-11-26 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2003-11-264-1/+12
| | | | | | * libc/include/fcntl.h: Declare syscalls only when building newlib. * libc/include/unistd.h: Ditto. * libc/include/stat.h: Ditto. Also declare struct stat64.
* * mkgroup.c (main): Print "root" group with local admins group sidCorinna Vinschen2003-11-262-0/+13
| | | | and gid 0.
* * sec_helper.cc (set_process_privilege): Rename restore_priv toCorinna Vinschen2003-11-262-8/+18
| | | | | | | priv_luid. * sec_helper.cc (set_process_privilege): Call LookupPrivilegeValue before opening the token.
* * dir.cc (mkdir): Use local security_descriptor. CallCorinna Vinschen2003-11-2611-116/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | set_security_attribute appropriately. * external.cc (cygwin_internal): Ditto. * fhandler.cc (fhandler_base::open): Ditto. * fhandler_socket.cc (fhandler_socket::bind): Ditto. * path.cc (symlink_worker): Ditto. * sec_acl.cc (setacl): Ditto. Call read_sd appropriately. (getace): Ditto. * sec_helper.cc (security_descriptor::malloc): New method. (security_descriptor::realloc): New method. (security_descriptor::free): New method. * security.cc (read_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. Allocate the security_descriptor buffer according to size returned by a call to GetFileSecurity. Return buffer size on success. (write_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (get_nt_attribute): Use local security_descriptor. (get_nt_object_attribute): Ditto in case of type == SE_REGISTRY_KEY. Allocate security_descriptor buffer according to size returned by a call to RegGetKeySecurity. (alloc_sd): Make static. Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. (set_security_attribute): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (set_nt_attribute): Use local security_descriptor. (check_file_access): Ditto. * security.h: Add class security_descriptor. (read_sd): Change declaration to get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (write_sd): Ditto. (set_security_attribute): Ditto. (alloc_sd): Remove declaration. * thread.cc (semaphore::semaphore): Use local security_descriptor. Call set_security_attribute appropriately.
* * sec_acl.h (getace): Use FILE_*_BITS as permission mask.Corinna Vinschen2003-11-264-12/+24
| | | | | | | * security.cc (get_attribute_from_acl): Ditto. * security.h (FILE_READ_BITS): Define to match also GENERIC bits. (FILE_WRITE_BITS): Ditto. (FILE_EXEC_BITS): Ditto.
* * Makefile.in (CXXFLAGS): Remove duplicate options handled in Makefile.common.Christopher Faylor2003-11-262-1/+6
|
* more white spaceChristopher Faylor2003-11-251-5/+5
|
* more white spaceChristopher Faylor2003-11-251-2/+3
|
* more white spaceChristopher Faylor2003-11-251-4/+3
|
* more white spaceChristopher Faylor2003-11-251-1/+1
|
* * thread.cc: Minor whitespace cleanup. Remove some obsolete code.Christopher Faylor2003-11-252-17/+7
|
* * winsup.api/known_bugs.tcl: Remove lseek10 since mknod now works.Christopher Faylor2003-11-252-1/+5
|
* * dtable.cc (build_fh_name): Set error in dummy fhandler when one is notedChristopher Faylor2003-11-253-1/+10
| | | | | during path_conv. * fhandler.h (fhandler_base::set_error): New method.
* 2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-11-242-1/+6
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format specifier to use ch instead of *fmt.
* * configure.in: Avoid using cygserver unless hosting on cygwin.Christopher Faylor2003-11-243-47/+53
|
* * include/winnt.h (PAGE_*): Group defines together. ChangeDanny Smith2003-11-232-10/+15
| | | | constants to hex notation.
* white spaceChristopher Faylor2003-11-231-1/+1
|
* * Makefile.in: Make cygserver depending on cygwin.Corinna Vinschen2003-11-232-0/+6
|
* * sigproc.cc (sig_send): Correct below checkin. UseChristopher Faylor2003-11-232-1/+6
| | | | thisframe.call_signal_handler.
* * sigproc.cc (proc_exists): A zombie process does not exist.Christopher Faylor2003-11-232-7/+22
| | | | | | (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.
* * msg.cc (client_request_msg::serve): Add default case to msgop switch.Corinna Vinschen2003-11-224-0/+18
| | | | | * sem.cc (client_request_sem::serve): Add default case to semop switch. * shm.cc (client_request_shm::serve): Add default case to shmop switch.
* * dcrt0.cc (check_sanity_and_sync): Correct api major version check so thatChristopher Faylor2003-11-222-2/+7
| | | | newer dlls will work with older apps but not vice versa.
* 2003-11-21 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-11-222-16/+42
| | | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R, get_arg): Move mb-specific code within checks for MB_CAPABLE. For non-mb-capable platforms, use simple byte logic.
* * 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.