aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-11-19 Don't use safe_new but new throughout. Fix copyright datesCorinna Vinschen27-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-192003-11-19 Nicholas Wourms <nwourms@netscape.net>Jeff Johnston2-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-192003-11-19 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-2/+4
* libc/stdio/scanf.c: Don't include local.h more than once.
2003-11-19 * dtable.cc (build_fh_pc): Resurrect accidentally removedCorinna Vinschen2-0/+8
DEV_CYGDRIVE_MAJOR case.
2003-11-19 Revert most of last check in to ChangeLog. It duplicatedCorinna Vinschen1-1237/+0
accidentally a big bunch of old entries.
2003-11-18* config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"Maciej W. Rozycki2-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-182003-11-18 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston4-0/+15
* libc/include/sys/fcntl.h: Declare _open64. * libc/include/sys/stat.h: Declare _fstat64. * libc/include/sys/unistd.h: Declare _lseek64.
2003-11-17 * fhandler.cc (fhandler_base::lseek): Include high order offsetCorinna Vinschen2-0/+8
bits in return value.
2003-11-17 * libc/include/stdlib.h (getprogname): Declare for Cygwin.Corinna Vinschen2-0/+11
(setprogname): Ditto.
2003-11-17 * bsdlib.cc (getprogname): New function.Corinna Vinschen4-1/+33
(setprogname): New funtion. * cygwin.din: Export getprogname and setprogname. * include/cygwin/version.h: Bumb API version number.
2003-11-15* include/limits.h: Revert unsanctioned changes below.Christopher Faylor4-4/+10
* include/cygwin/config.h: Ditto. * include/sys/param.h: Ditto.
2003-11-15Add Tab control macroManu B2-0/+5
2003-11-142003-11-11 Robert Collins <rbtcollins@hotmail.com>Robert Collins41-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.
2003-11-14 * mkgroup.c: Avoid compiler warnings throughout.Corinna Vinschen4-15/+1258
* mkpasswd.c: Ditto. * passwd.c: Ditto.
2003-11-14Add new field to disassemble_info structure: symbol_is_valid() and use it toNick Clifton2-3/+28
skip displaying arm elf mapping symbols in disassembly output.
2003-11-14* dtable.cc (build_fh_pc): Use DEV_SERIAL_MAJOR to catch all serial ports.Christopher Faylor2-9/+9
Remove redundant FH_CYGDRIVE case since it is handled by DEV_CYGDRIVE_MAJOR.
2003-11-13minor adjustments to Elfyn's contribution.David Starks-Browning2-11/+10
2003-11-13Apply Elfyn's patches as supplied in ↵David Starks-Browning3-16/+14
<http://cygwin.com/ml/cygwin-patches/2003-q3/msg00156.html>.
2003-11-132003-11-13 Martin Fuchs <martin-fuchs@gmx.net>Danny Smith5-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.
2003-11-11* thread.cc (pthread::exit): Cleanup on thread exit.Thomas Pfaff2-0/+10
(__reent_t::init_clib): Set thread local clib __cleanup var appropriately.
2003-11-102003-11-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-5/+10
* libc/machine/powerpc/ufix64toa.c (_ufix64to_r): Fix shifts to use (Ebits + 1) which accounts for the sign-bit.
2003-11-10* miscfuncs.cc (low_priority_sleep): Make a "C" function.Christopher Faylor3-2/+7
* winsup.h (low_priority_sleep): Revert previous change to declaration.
2003-11-10 * winsup.h (low_priority_sleep): Fix declaration to avoid linkerCorinna Vinschen2-1/+6
warning.
2003-11-10* thread.cc (__reent_t::init_clib): Set thread local clibThomas Pfaff2-0/+6
__sdidinit var appropriately.
2003-11-08 * syscalls.cc (ftruncate64): Log length as long long.Corinna Vinschen2-5/+10
(logout): Erase ut_host. Don't write wtmp entry. Return 1 only if matching utmp entry has been found, 0 otherwise.
2003-11-08 * external.cc (cygwin_internal): Add CW_GET_UID_FROM_SID andCorinna Vinschen4-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-072003-11-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston11-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.
2003-11-07 * cygpath.cc (main): Allow multiple pathnames on command line.Corinna Vinschen2-22/+17
2003-11-07* fhandler_disk_file.cc (fhandler_disk_file::opendir): Reorganize to handleChristopher Faylor1-0/+5
freeing of memory on error condition.
2003-11-07* cygthread.cc (cygthread::freerange): Set inuse count. Avoid setting ev fromChristopher Faylor3-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-072003-11-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-2/+7
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix typos that should be referring to _NO_LONGLONG macro.
2003-11-062003-11-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston38-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.
2003-11-06 * Missing patch to cygwin.din.Corinna Vinschen1-0/+8
2003-11-06 * bsdlib.cc (_vwarnx): New function.Corinna Vinschen4-1/+123
(vwarn): Ditto. (vwarnx): Ditto. (warn): Ditto. (warnx): Ditto. (verr): Ditto. (verrx): Ditto. (err): Ditto. (errx): Ditto. * cygwin.din: Export above functions. * include/err.h: New file. * include/cygwin/version.h: Bump API minor number.
2003-11-06 * syscalls.cc (getshmlba): New function.Corinna Vinschen7-9/+28
* 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.
2003-11-06* winsup.h: Declare access_worker.Christopher Faylor2-1/+8
2003-11-06Fix 'the the' typoNick Clifton2-471/+467
2003-11-06 * include/cygwin/types.h: Fix preprocessor guards for vm_offset_t andCorinna Vinschen2-2/+12
vm_size_t. Add typedef for vm_object_t.
2003-11-06 * ppc.h (R_PPC_RELAX32PC): Define.Alan Modra2-6/+11
2003-11-062003-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-11/+119
Artem B. Bityuckiy <mail_lists@mail.ru> * libc/stdio/vfprintf.c (_VFPRINTF_R): Add support for %ls, %S, %lc, and %C format specifiers. (get_arg): Ditto. * libc/stdio/sprintf.c: Add documentation regarding new format specifiers added in vfprintf.c.
2003-11-062003-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-16/+29
* libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Numerous fixes to make code work as specified in standard.
2003-11-05* fhandler_disk_file.cc (fhandler_disk_file::opendir): Detect attempt to open aChristopher Faylor2-2/+12
directory which lacks read privileges.
2003-11-04Entry "Where is the su command?" -> "Why doesn't su work?"David Starks-Browning1-6/+9
2003-11-04 * external.cc (cygwin_internal): Add CW_GET_POSIX_SECURITY_ATTRIBUTECorinna Vinschen6-16/+42
handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_POSIX_SECURITY_ATTRIBUTE. * exceptions.cc (init_global_security): Move from here... * sec_helper.cc (init_global_security): ...to here.
2003-11-04* net.cc (dup_ent): Use IsBadStringPtr for alignment checks. Don't use a knownChristopher Faylor2-5/+9
bad pointer.
2003-11-04 * passwd.c (PrintPW): Turn around meaning printed for "Password notCorinna Vinschen2-11/+22
required" option to be in line with Windows meaning. (main): Use more appropriate 1008 option when calling NetUserSetInfo to change flag values.
2003-11-04 * passwd.c (UF_LOCKOUT): Remove (defined in lmaccess.h).Corinna Vinschen2-35/+134
(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.
2003-11-03 * net.cc (dup_ent): Move Win 95 misalignment recogition beforeCorinna Vinschen2-10/+20
trying to evaluate string length.
2003-11-01 * sim-frv.h: New file.Kevin Buettner2-0/+57
2003-10-31* thread.cc (pthread::thread_init_wrapper): Initialize exception handling.Thomas Pfaff2-0/+13