]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years ago * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen [Tue, 2 Jul 2002 09:40:07 +0000 (09:40 +0000)]
* include/cygwin/version.h: Bump API minor version.

22 years ago * security.cc (get_logon_server): Interpret a zero length
Corinna Vinschen [Tue, 2 Jul 2002 09:02:53 +0000 (09:02 +0000)]
* security.cc (get_logon_server): Interpret a zero length
domain as the local domain.
(get_group_sidlist): Add authenticated users SID to SYSTEM's group
list instead of SYSTEM itself.
(verify_token): Accept the primary group sid if it equals
the token user sid.

22 years ago * cygwin.din (__fpclassifyd): Add symbol.
Corinna Vinschen [Tue, 2 Jul 2002 08:44:54 +0000 (08:44 +0000)]
* cygwin.din (__fpclassifyd): Add symbol.
(__fpclassifyf): Ditto.
(__signbitd): Ditto.
(__signbitf): Ditto.

22 years ago * security.h (DONT_INHERIT): Eliminate definition.
Corinna Vinschen [Tue, 2 Jul 2002 08:11:15 +0000 (08:11 +0000)]
* security.h (DONT_INHERIT): Eliminate definition.
(INHERIT_ALL): Ditto.
(INHERIT_ONLY): Ditto.
* sec_acl.cc: Use appropriate defines from accctrl.h instead of the
above throughout.
* security.cc: Ditto.

22 years ago2002-07-02 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith [Tue, 2 Jul 2002 05:50:10 +0000 (05:50 +0000)]
2002-07-02  Danny Smith <dannysmith@users.sourceforge.net>

* include/commctrl.h (WC_*): Remove some duplicate defines.

2002-07-02  Ken Fitlike  <kenfitlike@hotmail.com>

* include/commctrl.h (WC_IPADDRESS[AW]): Add defines and
UNICODE mappings.
(IPM*): Add defines.
(IPN_*): Add defines.
(NMIPADDRESS): Add structure and typedefs.
(MAKEIPADDRESS): Add macro.
(MAKEIPRANGE): Add macro.
(FIRST_IPADDRESS): Add macro.
(SECOND_IPADDRESS): Add macro.
(THIRD_IPADDRESS): Add macro.
(FOURTH_IPADDRESS): Add macro.

22 years ago* syscalls.c (seteuid32): Return immediately if the program is not impersonated
Christopher Faylor [Tue, 2 Jul 2002 03:06:32 +0000 (03:06 +0000)]
* syscalls.c (seteuid32): Return immediately if the program is not impersonated
and both uid and gid are original.
(setegid32): Return immediately if the new gid is the current egid.

22 years ago* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch below.
Christopher Faylor [Tue, 2 Jul 2002 01:53:58 +0000 (01:53 +0000)]
* syscalls.cc (seteuid32): Fix incorrect placement of Pierre's patch below.

22 years ago* syscalls.cc (seteuid32): Fix incorrect use of system_printf.
Christopher Faylor [Tue, 2 Jul 2002 01:42:41 +0000 (01:42 +0000)]
* syscalls.cc (seteuid32): Fix incorrect use of system_printf.

22 years ago* autoload.cc (GetSecurityInfo): Define new autoload function.
Christopher Faylor [Tue, 2 Jul 2002 01:36:15 +0000 (01:36 +0000)]
* autoload.cc (GetSecurityInfo): Define new autoload function.
(RegQueryInfoKeyA): Ditto.
* fhandler.h (fhandler_virtual::fill_filebuf): Change return type to bool.
(fhandler_proc::fill_filebuf): Ditto.
(fhandler_registry::fill_filebuf): Ditto.
(fhandler_process::fill_filebuf): Ditto.
(fhandler_registry::value_name): Add new member.
(fhandler_registry::close): Add new method.
(fhandler_process::p): Remove member.
* fhandler_proc.cc (fhandler_proc::open): Add set_nohandle after calling
superclass method.  Check return value of fill_filebuf.
(fhandler_proc::fill_filebuf): Change return type to bool.  Add return
statement.
* fhandler_process.cc (fhandler_process::open): Add set_nohandle after calling
superclass method.  Remove references to p.  Check return value of
fill_filebuf.
(fhandler_process::fill_filebuf): Change return type to bool.  Don't use
dereference operator on p.  Add return statement.
(fhandler_process::format_process_stat): Fix typo.
* fhandler_registry.cc: Add static open_key declaration.
(fhandler_registry::exists): Assume path is already normalised.  Try opening
the path as a key in its own right first, before reverting to enumerating
subkeys and values of the parent key.
(fhandler_registry::fstat): Add additional code to return more relevant
information about the registry key/value.
(fhandler_registry::readdir): Explicitly set desired access when opening
registry key.  Remove output of buf from debug_printf format string.
(fhandler_registry::open): Use set_io_handle to store registry key handle.  Set
value_name member.  Move code to read a value from the registry to
fill_filebuf.  Add call to fill_filebuf.
(fhandler_registry::close): New method.
(fhandler_registry::fill_filebuf): Change return type to bool.  Add code to
read a value from registry.
(fhandler_registry::open_key): Make function static.  Use KEY_READ as desired
access unless this is the last path component.  Check the return value of
RegOpenKeyEx for an error instead of hKey.
* fhandler_virtual.cc (fhandler_virtual::lseek): Check the return value of
fill_filebuf.
(fhandler_virtual::open): Remove call to set_nohandle.
(fhandler_virtual::fill_filebuf): Change return type to bool.  Add return
statement.
* security.cc (get_nt_object_attribute): New function.
(get_object_attribute): New function.
* security.h (get_object_attribute): New function declaration.

22 years agotypo fix
Alan Modra [Mon, 1 Jul 2002 23:47:10 +0000 (23:47 +0000)]
typo fix

22 years ago* syscalls.c (seteuid32): Do not return an error when the token cannot be
Christopher Faylor [Mon, 1 Jul 2002 23:42:05 +0000 (23:42 +0000)]
* syscalls.c (seteuid32): Do not return an error when the token cannot be
created only because of a problem with the gid.

22 years agoRemove redundant entry.
DJ Delorie [Mon, 1 Jul 2002 23:18:33 +0000 (23:18 +0000)]
Remove redundant entry.

22 years agomerge from gcc:
DJ Delorie [Mon, 1 Jul 2002 23:12:32 +0000 (23:12 +0000)]
merge from gcc:

2002-07-01  Nathanael Nerode <neroden@gcc.gnu.org>

* Makefile.in: Eliminate 'apache' targets.
* configure.in: Eliminate 'apache' targets.

* configure.in: Eliminate redundant tests.  Reorganize.

* Makefile.in: Eliminate last reference to LIBGCC1_TEST.

* config-ml.in: Eliminate references to Cygnus configure.

* Makefile.in: Eliminate references to building emacs.

2002-07-01  Denis Chertykov  <denisc@overta.ru>

* configure.in: Add support for ip2k.

22 years ago* mount.cc (main): Ensure that mount_already_exists() also gets default flag
Christopher Faylor [Mon, 1 Jul 2002 20:54:35 +0000 (20:54 +0000)]
* mount.cc (main): Ensure that mount_already_exists() also gets default flag
that is passed to do_mount.
* cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and
"type" to use NULL flag.
(usage): Clean up usage output (more), accomodate new options.
(main): Add --dos and --mixed options; accomodate all output forms in --type.
Make UNIXy output default.

22 years ago* fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode.
Christopher Faylor [Mon, 1 Jul 2002 19:03:26 +0000 (19:03 +0000)]
* fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode.
* fhandler_console.cc (fhandler_console::open): *Really* force binary mode
rather than make it optional.
* fhandler_proc.cc (fhandler_proc::open): Ditto.
* fhandler_process.cc (fhandler_process::open): Ditto.
* fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::open): Ditto.
* fhandler_registry.cc (fhandler_registry::open): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* fhandler_virtual.cc (fhandler_virtual::open): Ditto.
* fhandler_windows.cc (fhandler_windows::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
* net.cc (fdsock): Ditto.
* path.cc (set_flags): Add more debugging.

22 years agoinclude/elf:
Jason Thorpe [Mon, 1 Jul 2002 16:43:38 +0000 (16:43 +0000)]
include/elf:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* Rename EF_* to EF_VAX_*.

bfd:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
to EF_VAX_*.

binutils:

2002-07-01  Matt Thomas  <matt@3am-software.com>

* readelf.c: Include "elf/vax.h".
(guess_is_rela): Move EM_VAX from unknown to RELA case.
(dump_relocations): Handle VAX relocations.
(get_machine_flags): Handle VAX machine flags.

22 years ago* debug.cc (threads): Avoid initialization.
Christopher Faylor [Mon, 1 Jul 2002 16:37:46 +0000 (16:37 +0000)]
* debug.cc (threads): Avoid initialization.
* uinfo.cc (cygheap_user::ontherange): (from Corinna Vinschen) Actually make
below changes work.

22 years ago* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
Christopher Faylor [Mon, 1 Jul 2002 15:50:02 +0000 (15:50 +0000)]
* uinfo.cc (cygheap_user::ontherange): Make cygwin root the last resort for
HOMEPATH/HOMEDRIVE for consistency with HOME.

22 years ago * shared.cc (sec_none): Move to sec_helper.cc.
Corinna Vinschen [Mon, 1 Jul 2002 14:31:28 +0000 (14:31 +0000)]
* shared.cc (sec_none): Move to sec_helper.cc.
(sec_none_nih): Ditto.
(sec_all): Ditto.
(sec_all_nih): Ditto.
(get_null_sd): Ditto.
(sec_acl): Ditto.
(__sec_user): Ditto.
* sec_helper.cc (sec_none): Move from shared.cc to here.
(sec_none_nih): Ditto.
(sec_all): Ditto.
(sec_all_nih): Ditto.
(get_null_sd): Ditto.
(sec_acl): Ditto.
(__sec_user): Ditto.

22 years ago * bfdlink.h (struct bfd_sym_chain): Declare.
Alan Modra [Mon, 1 Jul 2002 08:04:47 +0000 (08:04 +0000)]
* bfdlink.h (struct bfd_sym_chain): Declare.
(struct bfd_link_info): Add gc_sym_list.  Formatting fixes.

22 years ago* uinfo.cc (cygheap_user::ontherange): Potentially set HOME from existing
Christopher Faylor [Mon, 1 Jul 2002 03:57:17 +0000 (03:57 +0000)]
* uinfo.cc (cygheap_user::ontherange): Potentially set HOME from existing
homepath and homedrive cygheap_user fields (not currently used yet).  Set HOME
to / if no other alternative.
(cygheap_user::test_uid): Simplify.

22 years agowhite space
Christopher Faylor [Mon, 1 Jul 2002 02:36:04 +0000 (02:36 +0000)]
white space

22 years ago* environ.cc (parse_options): Use setenv to potentially replace CYGWIN value on
Christopher Faylor [Mon, 1 Jul 2002 02:11:30 +0000 (02:11 +0000)]
* environ.cc (parse_options): Use setenv to potentially replace CYGWIN value on
export.  Fixes broken behavior since November 2000 changes.
(regopt): Return indication of whether or not something has been parsed from
the registry.
(environ_init): Only attempt to export CYGWIN variable when values were set
from the registry.  It is exported automatically otherwise.

22 years ago* fhandler.h (fhandler_process::pid): New field.
Christopher Faylor [Sun, 30 Jun 2002 23:02:58 +0000 (23:02 +0000)]
* fhandler.h (fhandler_process::pid): New field.
(fhandler_process::fstat): Remove unneeded array.  Set pid element.
(fhandler_process::open): Ditto.
(fhandler_process::fill_filebuf): Handle case where 'p' field is NULL.

22 years ago* fhandler.h (fhandler_process::p): New field.
Christopher Faylor [Sun, 30 Jun 2002 17:05:48 +0000 (17:05 +0000)]
* fhandler.h (fhandler_process::p): New field.
(fhandler_process:fill_filebuf): Revert to same definition as virtual in parent
class.
(fhandler_process::open): Fill out p field rather than passing as an argument.
(fhandler_process::fill_filebuf): Use p pointer rather than argument.

22 years ago * security.cc (extract_nt_dom_user): Check for all buffer overflows.
Corinna Vinschen [Sun, 30 Jun 2002 13:08:59 +0000 (13:08 +0000)]
* security.cc (extract_nt_dom_user): Check for all buffer overflows.
Call LookupAccountSid after trying to get domain & user from passwd.
(get_group_sidlist): Obtain the domain and user by calling
extract_nt_dom_user instead of LookupAccountSid.

22 years ago* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
Christopher Faylor [Sat, 29 Jun 2002 23:45:07 +0000 (23:45 +0000)]
* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.

22 years ago* autoload.cc (NetGetDCName): Change to make this an optional load function.
Christopher Faylor [Sat, 29 Jun 2002 22:05:30 +0000 (22:05 +0000)]
* autoload.cc (NetGetDCName): Change to make this an optional load function.
* cygheap.h (cygheap_user::logsrv): Return NULL when operation fails.
(cygheap_user::winname): Ditto.
(cygheap_user::domain): Ditto.
* uinfo.cc (cygheap_user::env_logsrv): Save results in temp variable.
(cygheap_user::env_userprofile): Ditto.

22 years ago* environ.cc (spenv::retrieve): Detect return of env_dontadd from cygheap_user
Christopher Faylor [Sat, 29 Jun 2002 17:26:13 +0000 (17:26 +0000)]
* environ.cc (spenv::retrieve): Detect return of env_dontadd from cygheap_user
methods.
(build_env): Avoid incrementing environment pointer if not actually adding to
the environment.  That could result in garbage in the environment table.  Be
more defensive when reallocing envblock.

22 years ago* uinfo.cc (cygheap_user::test_uid): Return NULL or further tests are sorta
Christopher Faylor [Sat, 29 Jun 2002 06:50:17 +0000 (06:50 +0000)]
* uinfo.cc (cygheap_user::test_uid): Return NULL or further tests are sorta
useless.
(cygheap_user::env_domain): Recalculate if name is missing.

22 years ago* environ.cc (spenv::from_cygheap): Still need to take setuid into
Christopher Faylor [Sat, 29 Jun 2002 06:40:19 +0000 (06:40 +0000)]
* environ.cc (spenv::from_cygheap): Still need to take setuid into
consideration.

22 years ago* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where no
Christopher Faylor [Sat, 29 Jun 2002 03:14:12 +0000 (03:14 +0000)]
* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where no
domain or username is "SYSTEM".

22 years ago* cygheap.h (cygheap_user): Reorg to accommodate environment caching.
Christopher Faylor [Sat, 29 Jun 2002 02:36:08 +0000 (02:36 +0000)]
* cygheap.h (cygheap_user): Reorg to accommodate environment caching.
(cygheap_user::logsrv): New method.
(cygheap_user::winname): Ditto.
(cygheap_user::domain): Ditto.
(cygheap_user::test_uid): Ditto.
* cygheap.cc (cygheap_user::set_name): Reflect name "pwinname" name change.
* environ.cc (getwinenveq): New function.
(spenv::from_cygheap): Change arguments.
(spenv::retrieve): Ditto for call.  Use getwinenveq to retrieve info from
environment.  Always return value from cygwin environment, if it exists.
* environ.h (getwinenveq): Declare.
* uinfo.cc (cygheap_user::ontherange): Use logsrv() rather than env_logsrv().
(cygheap_user::test_uid): Define new method.
(cygheap_user::env_logsrv): Accept environment arguments.  Use test_uid to find
info.
(cygheap_user::env_domain): Ditto.
(cygheap_user::env_userprofile): Ditto.
(cygheap_user::env_homepath): Ditto.
(cygheap_user::env_homedrive): Ditto.
(cygheap_user::env_name): Ditto.

22 years ago * libm/mathfp/sf_pow.c (powf): Change k from int to float.
Thomas Fitzsimmons [Fri, 28 Jun 2002 15:32:45 +0000 (15:32 +0000)]
* libm/mathfp/sf_pow.c (powf): Change k from int to float.

22 years ago2002-06-27 Benjamin Kosnik <bkoz@redhat.com>
Jeff Johnston [Thu, 27 Jun 2002 23:58:38 +0000 (23:58 +0000)]
2002-06-27  Benjamin Kosnik  <bkoz@redhat.com>

        * libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C.
        * libc/include/time.h: Same.
        * libc/include/string.h: Same.
        * libc/include/stdlib.h: Same.
        * libc/include/signal.h: Same.
        * libc/include/setjmp.h: Same.
        * libc/include/math.h: Same.
        * libc/include/locale.h: Same.
        * libc/include/ctype.h: Same.
        * libc/include/machine/setjmp.h: Same.
        * libc/include/_ansi.h (_BEGIN_STD_C): Add.
        (_END_STD_C): Add.

22 years ago2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 27 Jun 2002 22:48:05 +0000 (22:48 +0000)]
2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/_types.h: Define _ssize_t as int if int is
        32-bits, otherwise define it as long.
        * libc/include/sys/types.h: Include <_ansi.h> and <sys/_types.h>
        and define ssize_t as _ssize_t.
        * libc/reent/readr.c: Change return type to _ssize_t.
        * libc/reent/writer.c: Ditto.
        * libc/sys/linux/Makefile.am: Add aio.c.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/aio.c: New file.
        * libc/sys/linux/sys/cdefs.h: Add __restrict_arr definition.
        * libm/common/fdlibm.h: Undef __P before defining it.

22 years agoAdd missing entry.
Christopher Faylor [Thu, 27 Jun 2002 20:45:54 +0000 (20:45 +0000)]
Add missing entry.

22 years ago* cygheap.cc (cfree_and_set): New function.
Christopher Faylor [Thu, 27 Jun 2002 20:44:27 +0000 (20:44 +0000)]
* cygheap.cc (cfree_and_set): New function.
(cygheap_user::set_name): Use cfree_and_set to reset members.
* cygheap.h (cygheap_user): Delete static members.
(cygheap_user::puserprof): New member.
(cfree_and_set): Declare.
* dcrt0.cc (almost_null): Define.
* winsup.h (almost_null): Declare.
* syscalls.cc (cfree_and_set): Remove unused variable.
* uinfo.cc (cygheap_user::homepath_env_buf): Eliminate.
(cygheap_user::homedrive_env_buf): Ditto.
(cygheap_user::userprofile_env_buf): Ditto.
(cygheap_user::ontherange): YA change to try to preserve existing HOMEPATH and
HOMEDRIVE.  Return almost_null values when variables should not actually exist.
(cygheap_user::env_logsrv): Ditto.
(cygheap_user::env_domain): Ditto.
(cygheap_user::env_userprofile): Ditto.

22 years ago * libm/mathfp/s_pow.c (pow): Fix checks on variable k. Add
Thomas Fitzsimmons [Thu, 27 Jun 2002 20:41:49 +0000 (20:41 +0000)]
* libm/mathfp/s_pow.c (pow): Fix checks on variable k.  Add
exponent_is_even_int variable.  Handle case where x is
negative, and y is an odd integer.
* libm/mathfp/sf_pow.c (powf): Likewise.

22 years ago * libm/mathfp/er_lgamma.c: Remove __kernel references.
Thomas Fitzsimmons [Thu, 27 Jun 2002 20:25:57 +0000 (20:25 +0000)]
* libm/mathfp/er_lgamma.c: Remove __kernel references.
* libm/mathfp/erf_lgamma.c: Likewise.
* libm/mathfp/s_tgamma.c: Likewise.
* libm/mathfp/sf_tgamma.c: Likewise.

22 years ago2002-06-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 27 Jun 2002 20:09:26 +0000 (20:09 +0000)]
2002-06-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Add new clock routines.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/clock_getres.c: New file.
        * libc/sys/linux/clock_gettime.c: Ditto.
        * libc/sys/linux/clock_settime.c: Ditto.
        * libc/sys/linux/hp-timing.h: Ditto.
        * libc/sys/linux/libc-internal.h: Ditto.
        * libc/sys/linux/sysconf.c: Fix typo.
        * libc/sys/linux/include/time.h: New file.
        * libc/sys/linux/machine/hp-timing.h: New file.
        * libc/sys/linux/machine/i386/Makefile.am: Add new files.
        * libc/sys/linux/machine/i386/Makefile.in: Regenerated.
        * libc/sys/linux/machine/i386/get_clockfreq.c: New file.
        * libc/sys/linux/machine/i386/hp-timing.c: Ditto.
        * libc/sys/linux/machine/i386/hp-timing.h: Ditto.
        * libc/sys/linux/sys/linux_time.h: Ditto.
        * libc/sys/linux/sys/time.h: Remove include of <linux/time.h> and
        replace with <sys/linux_time.h>.

22 years ago Delete extraneous comment from my previous change.
Conrad Scott [Thu, 27 Jun 2002 20:08:33 +0000 (20:08 +0000)]
Delete extraneous comment from my previous change.

22 years ago * dcrt0.cc (dll_crt0_1): Let __progname point to the applications
Corinna Vinschen [Thu, 27 Jun 2002 16:01:38 +0000 (16:01 +0000)]
* dcrt0.cc (dll_crt0_1): Let __progname point to the applications
basename.  Move eliminating ".exe" suffix from argv[0] so that it
always also affects __progname.

22 years ago* thread.cc (pthread::create): Added trace printf to get CreateThread
Christopher Faylor [Thu, 27 Jun 2002 14:19:30 +0000 (14:19 +0000)]
* thread.cc (pthread::create): Added trace printf to get CreateThread
LastError.

22 years ago * mmap.cc (list::match): Check using pagesize aligned size.
Corinna Vinschen [Thu, 27 Jun 2002 13:01:35 +0000 (13:01 +0000)]
* mmap.cc (list::match): Check using pagesize aligned size.

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Force
Christopher Faylor [Thu, 27 Jun 2002 03:06:44 +0000 (03:06 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Force
FindFirstFile on first file of directory when asking for x:\ .

22 years ago* cygheap.cc (cygheap_user::set_name): Correct thinko in below change.
Christopher Faylor [Thu, 27 Jun 2002 02:29:57 +0000 (02:29 +0000)]
* cygheap.cc (cygheap_user::set_name): Correct thinko in below change.

22 years ago* cygheap.cc (cygheap_user::set_name): Avoid clearing things when just setting
Christopher Faylor [Wed, 26 Jun 2002 19:39:05 +0000 (19:39 +0000)]
* cygheap.cc (cygheap_user::set_name): Avoid clearing things when just setting
name to itself or during first time initialization.
* environ.cc (check_case_init): Make case insensitive.

22 years ago * fhandler.h (fhandler_socket::bind): Add method definition.
Corinna Vinschen [Wed, 26 Jun 2002 19:25:09 +0000 (19:25 +0000)]
* fhandler.h (fhandler_socket::bind): Add method definition.
(fhandler_socket::connect): Ditto.
(fhandler_socket::listen): Ditto.
(fhandler_socket::accept): Ditto.
(fhandler_socket::getsockname): Ditto.
(fhandler_socket::getpeername): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::shutdown): Ditto.
* fhandler_socket.cc (get_inet_addr): Move here from net.cc.
(fhandler_socket::bind): New method.
(fhandler_socket::connect): Ditto.
(fhandler_socket::listen): Ditto.
(fhandler_socket::accept): Ditto.
(fhandler_socket::getsockname): Ditto.
(fhandler_socket::getpeername): Ditto.
(fhandler_socket::recvfrom): Ditto.
(fhandler_socket::recvmsg): Ditto.
(fhandler_socket::sendto): Ditto.
(fhandler_socket::sendmsg): Ditto.
(fhandler_socket::shutdown): Ditto.
* net.cc: Various formatting cleanups throughout.
(get_inet_addr): Move to fhandler_socket.cc.
(cygwin_bind): Move base functionality to appropriate fhandler_socket
method.
(cygwin_connect): Ditto.
(cygwin_listen): Ditto.
(cygwin_accept): Ditto.
(cygwin_getsockname): Ditto.
(cygwin_getpeername): Ditto.
(cygwin_recvfrom): Ditto.
(cygwin_recvmsg): Ditto.
(cygwin_sendto): Ditto.
(cygwin_sendmsg): Ditto.
(cygwin_shutdown): Ditto.

22 years agold:
Joern Rennecke [Wed, 26 Jun 2002 15:42:34 +0000 (15:42 +0000)]
ld:
        * emulparams/shelf.sh (STACK_ADDR): Don't define.
        (OTHER_SECTIONS): Define.
        * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
        (OTHER_SECTIONS): Undef.
newlib:
        * libc/sys/sh/crt0.S: Remove vestigial .section directive.
gcc:
        * config/sh/crt1.asm: remove _stack label definition
        and sentinel value.

22 years ago * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
Corinna Vinschen [Wed, 26 Jun 2002 14:59:22 +0000 (14:59 +0000)]
    * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.

22 years ago* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and it's not
Christopher Faylor [Wed, 26 Jun 2002 05:37:29 +0000 (05:37 +0000)]
* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and it's not
cygwin info.

22 years ago* autoload (noload): Avoid clobbering bx register.
Christopher Faylor [Wed, 26 Jun 2002 05:29:41 +0000 (05:29 +0000)]
* autoload (noload): Avoid clobbering bx register.
* environ.cc (codepage_init): Use case insensitive match.
* fhandler_console.cc (cp_get_internal): Delete.
(con_to_str): Use get_cp to derive code page.
(str_to_con): Ditto.
* miscfuncs.cc (get_cp): New function.
(sys_wcstombs): New function.  Converted from macro.
(sys_mbstowcs): Ditto.
* winsup.h: Reflect above changes.

22 years ago* winsup.h: Minor cleanup.
Christopher Faylor [Wed, 26 Jun 2002 04:21:01 +0000 (04:21 +0000)]
* winsup.h: Minor cleanup.
* path.h (path_conv::[]): New operator.
* syscalls.cc (_link): Use path_conv operators rather than methods, where
appropriate.  Minor white space cleanup.
* include/cygwin/version.h: Bump DLL minor number.
* dcrt0.cc (sm): Make NO_COPY.

22 years ago * include/winbase.h (FILE_FLAG_FIRST_PIPE_INSTANCE): Add constant.
Conrad Scott [Tue, 25 Jun 2002 21:16:46 +0000 (21:16 +0000)]
* include/winbase.h (FILE_FLAG_FIRST_PIPE_INSTANCE): Add constant.

22 years ago2002-06-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
Danny Smith [Tue, 25 Jun 2002 21:05:19 +0000 (21:05 +0000)]
2002-06-26  Casper S. Hornstrup  <chorns@users.sourceforge.net>

* include/winbase.h (WINBASEAPI): Don't define if prior
definition.

* include/winioctl.h (PARTITION_FAT32, PARTITION_FAT32_XINT13,
PARTITION_XINT13, PARTITION_XINT13_EXTENDED, PARTITION_LDM,
PARTITION_UNIX): Add defines.
(PDRIVE_LAYOUT_INFORMATION): Add typedef.
(IsRecognizedPartition): Also check for PARTITION_FAT32,
PARTITION_FAT32_XINT13 and PARTITION_XINT13.
(IsContainerPartition): Add macro.

22 years ago2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 25 Jun 2002 18:17:25 +0000 (18:17 +0000)]
2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/Makefile.am: Consolidate additional items under
        ADD_OBJS.
        * libc/sys/linux/Makefile.in: Regenerated.

22 years ago2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 25 Jun 2002 18:05:31 +0000 (18:05 +0000)]
2002-06-25  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/sethostname.c: New file.
        * libc/sys/linux/Makefile.am: Add sethostname.c support.
        * libc/sys/linux/Makefile.in: Regenerated.

22 years ago * syscalls.cc (chown): Convert uid to 32 bit.
Corinna Vinschen [Tue, 25 Jun 2002 08:06:29 +0000 (08:06 +0000)]
* syscalls.cc (chown): Convert uid to 32 bit.
(lchown): Ditto.
(fchown): Ditto.

22 years ago2002-06-25 Ken Fitlike <kenfitlike@hotmail.com>
Danny Smith [Tue, 25 Jun 2002 03:26:21 +0000 (03:26 +0000)]
2002-06-25  Ken Fitlike  <kenfitlike@hotmail.com>

* include/commctrl.h: (CBEIF_*): Add defines.
(CBEN_*): Add defines and UNICODE mappings
(WC_COMBOBOXEX[AW]): Add defines and UNICODE mappings.
(CBEMAXSTRLEN): Add define.
(COMBOBOXEXITEM[AW]): Add structures and typedefs.
(NMCOMBOBOXEX[AW]): Add structures and typedefs.
(NMCBEDRAGBEGIN[AW]): Add structure and typedefs.
(NMCBEENDEDIT[AW]): Add structure and typedefs.

22 years agoUpdate from Joshua Daniel Franklin
Christopher Faylor [Tue, 25 Jun 2002 01:16:23 +0000 (01:16 +0000)]
Update from Joshua Daniel Franklin

22 years agomerge from gcc
DJ Delorie [Tue, 25 Jun 2002 01:03:52 +0000 (01:03 +0000)]
merge from gcc

22 years agoFix typo in latest change to libc/machine/sh - new file should be strlen.S.
Jeff Johnston [Tue, 25 Jun 2002 00:02:32 +0000 (00:02 +0000)]
Fix typo in latest change to libc/machine/sh - new file should be strlen.S.

22 years ago * libc/search/db_local.h: New file.
Thomas Fitzsimmons [Mon, 24 Jun 2002 23:05:08 +0000 (23:05 +0000)]
* libc/search/db_local.h: New file.
* libc/include/db.h: Remove.
* libc/search/Makefile.am (LIB_SOURCES): Add db_local.h.
* libc/search/hash.c (MIN,MAX): Add macros.  Change <db.h> to
"db_local.h".
* libc/search/hash_bigkey.c: Likewise.
* libc/search/hash_buf.c: Likewise.
* libc/search/hash_func.c: Likewise.
* libc/search/hash_log2.c: Likewise.
* libc/search/hash_page.c: Likewise.

22 years ago2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 24 Jun 2002 21:46:06 +0000 (21:46 +0000)]
2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/gethostname.c: Change name to __gethostname and
        add gethostname alias.

22 years ago* dtable.cc (dtable::find_unused_handle): Avoid coercion.
Christopher Faylor [Mon, 24 Jun 2002 21:14:04 +0000 (21:14 +0000)]
* dtable.cc (dtable::find_unused_handle): Avoid coercion.

22 years ago * libc/machine/sh/strcpy.S: New file.
Joern Rennecke [Mon, 24 Jun 2002 20:30:08 +0000 (20:30 +0000)]
* libc/machine/sh/strcpy.S: New file.
* libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
* libc/machine/sh/Makefile.am: Regenerate.

22 years agoFix typos.
Jeff Johnston [Mon, 24 Jun 2002 20:09:40 +0000 (20:09 +0000)]
Fix typos.

22 years ago* dtable.cc (fhandler_base::dup2): Cleanup. Ensure that lock is turned off in
Christopher Faylor [Mon, 24 Jun 2002 20:05:52 +0000 (20:05 +0000)]
* dtable.cc (fhandler_base::dup2): Cleanup.  Ensure that lock is turned off in
error condition.

22 years ago2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 24 Jun 2002 20:03:38 +0000 (20:03 +0000)]
2002-06-24  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/math.h: Remove <sys/types.h>.
        (__dmath): Use __ULong instead of _uint32_t.
        * libc/include/sys/reent.h: If long or int is not 32-bits,
        include <sys/types.h> to get definitions for _int32_t and _uint32_t.
        * libc/stdlib/mprec.h: Include <sys/types.h> to get integer defs.
        * libm/common/fdlibm.h: Ditto.

22 years ago2002-06-24 Ben Elliston <bje@redhat.com>
Ben Elliston [Mon, 24 Jun 2002 17:41:28 +0000 (17:41 +0000)]
2002-06-24  Ben Elliston  <bje@redhat.com>

* configure.in (host_tools): Remove cgen.

* Makefile.in (all-cgen): Remove; runs from its source directory.
(check-cgen, install-cgen, clean-cgen): Likewise.
(all-opcodes): No not depend on all-cgen.
(all-sim): Likewise.

22 years agomerge from gcc
DJ Delorie [Mon, 24 Jun 2002 17:39:28 +0000 (17:39 +0000)]
merge from gcc

22 years ago * libc/include/ndbm.h: Remove.
Thomas Fitzsimmons [Mon, 24 Jun 2002 17:35:37 +0000 (17:35 +0000)]
* libc/include/ndbm.h: Remove.
* libc/search/ndbm.c: Remove.

22 years ago2002-06-24 WATANABE Hirofumi <eban@os.rim.or.jp>
Thomas Fitzsimmons [Mon, 24 Jun 2002 15:59:38 +0000 (15:59 +0000)]
2002-06-24  WATANABE Hirofumi <eban@os.rim.or.jp>

* libc/stdio/fseek.c (fseek): Fix braces.

22 years ago * uinfo.cc (internal_getlogin): Set myself->uid and myself->gid instead
Corinna Vinschen [Mon, 24 Jun 2002 15:40:57 +0000 (15:40 +0000)]
* uinfo.cc (internal_getlogin): Set myself->uid and myself->gid instead
of user.real_uid and user.real_gid.
(uinfo_init): Evaluate orig_uid and real_uid from myself->uid.  Ditto
for gid.

22 years ago* security.cc (get_group_sidlist): Add pw argument and use pw->pw_name in call
Christopher Faylor [Mon, 24 Jun 2002 13:01:50 +0000 (13:01 +0000)]
* security.cc (get_group_sidlist): Add pw argument and use pw->pw_name in call
to get_supplementary_group_sidlist.
(create_token): Add pw argument and use it in call to get_group_sidlist.
* security.h: Add pw argument in declaration of create_token.
* syscalls.cc (seteuid32): Add pw argument in call to create_token.

22 years ago * ntsec.sgml: Clean up text for examples of /etc/passwd and /etc/group.
Corinna Vinschen [Mon, 24 Jun 2002 09:30:02 +0000 (09:30 +0000)]
* ntsec.sgml: Clean up text for examples of /etc/passwd and /etc/group.
Add examples with SIDs.  Warn about changing them crudely.

22 years ago * include/objidl.h (struct tagPROPVARIANT): Kill obsolete
Danny Smith [Mon, 24 Jun 2002 04:51:34 +0000 (04:51 +0000)]
* include/objidl.h (struct tagPROPVARIANT): Kill obsolete
union member _VARIANT_BOOL bool.

22 years ago* include/winioctl.h (FILE_SPECIAL_ACCESS): Add define.
Danny Smith [Mon, 24 Jun 2002 02:49:47 +0000 (02:49 +0000)]
* include/winioctl.h (FILE_SPECIAL_ACCESS): Add define.

22 years ago2002-06-24 Casper S. Hornstrup <chorns@users.sourceforge.net>
Danny Smith [Mon, 24 Jun 2002 02:46:38 +0000 (02:46 +0000)]
2002-06-24  Casper S. Hornstrup  <chorns@users.sourceforge.net>

* include/winnt.h (PCCHAR, FCHAR, FSHORT, FLONG,
PLUID_AND_ATTRIBUTES,PSECURITY_IMPERSONATION_LEVEL,
PSID_AND_ATTRIBUTES, PTOKEN_TYPE, PTOKEN_STATISTICS):
Add typedefs.
(CCHAR): Correct typedef.
(PROCESS_SET_SESSIONID, SECURITY_*,SECTION_MAP_EXECUTE):
Add defines.

* README.w32api: Correct spelling error.

22 years ago* fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes.
Christopher Faylor [Mon, 24 Jun 2002 02:23:14 +0000 (02:23 +0000)]
* fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes.
* fhandler_socket.cc (fhandler_socket.cc::fstat): Set S_IFSOCK.

22 years ago* lib/_cygwin_S_IEXEC.cc: Remove obsolete file.
Christopher Faylor [Mon, 24 Jun 2002 02:08:41 +0000 (02:08 +0000)]
* lib/_cygwin_S_IEXEC.cc: Remove obsolete file.

22 years agoUse cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout.
Christopher Faylor [Sun, 23 Jun 2002 22:56:58 +0000 (22:56 +0000)]
Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout.
* sys/ipc.h: Remove.
* sys/shm.h: Remove.
* cygwin_ipc.h: New file.
* cygwin_shm.h: New file.

22 years ago* cygwin.sc: Add recent changes from ld sources.
Christopher Faylor [Sun, 23 Jun 2002 18:55:23 +0000 (18:55 +0000)]
* cygwin.sc: Add recent changes from ld sources.
* winsup.h: Move #ifdef EXPCGF code into "winbase.h".
* winbase.h: #ifdef EXPCGF code moved here from "winsup.h".

22 years ago2002-06-12 Thomas Pfaff <tpfaff@gmx.net>
Robert Collins [Sun, 23 Jun 2002 07:36:21 +0000 (07:36 +0000)]
2002-06-12  Thomas Pfaff  <tpfaff@gmx.net>

* thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to
cleanup_stack.
* thread.cc (pthread::pthread): Ditto.
(pthread::create): Fixed mutex verification.
(pthread::push_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
Mutex calls removed, used InterlockedExchangePointer instead.
(pthread::pop_cleanup_handler): Renamed cleanup_handlers to
cleanup_stack.
(pthread::pop_all_cleanup_handlers): Ditto.
(__pthread_once): Check state first and return if already done.
(__pthread_join): DEADLOCK test reverted to __pthread_equal
call.
(__pthread_detach): Unlock mutex before deletion.

22 years ago* Makefile.in (cygrun.exe): Move -lgcc where it will do some good.
Christopher Faylor [Sat, 22 Jun 2002 02:56:56 +0000 (02:56 +0000)]
* Makefile.in (cygrun.exe): Move -lgcc where it will do some good.

22 years ago* Makefile.in (cygrun.exe): Use -lgcc when linking.
Christopher Faylor [Sat, 22 Jun 2002 02:50:01 +0000 (02:50 +0000)]
* Makefile.in (cygrun.exe): Use -lgcc when linking.

22 years ago* configure.in: Fix AIX configury bug.
DJ Delorie [Fri, 21 Jun 2002 22:20:17 +0000 (22:20 +0000)]
* configure.in: Fix AIX configury bug.

22 years ago * libc/time/strftime.c (strftime): Add %e format specifier.
Corinna Vinschen [Fri, 21 Jun 2002 20:04:40 +0000 (20:04 +0000)]
* libc/time/strftime.c (strftime): Add %e format specifier.

22 years ago * libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
Thomas Fitzsimmons [Fri, 21 Jun 2002 19:09:50 +0000 (19:09 +0000)]
* libc/search/hash.h (LITTLE_ENDIAN, BIG_ENDIAN): Define if not
previously defined.

22 years ago2002-06-21 Richard Earnshaw (rearnsha@arm.com)
Jeff Johnston [Fri, 21 Jun 2002 18:44:09 +0000 (18:44 +0000)]
2002-06-21  Richard Earnshaw  (rearnsha@arm.com)

        * libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
        (BYTE_ORDER): Define as appropriate for the target.

22 years ago2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 21 Jun 2002 18:40:50 +0000 (18:40 +0000)]
2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/config.h[__linux__]: Set _READ_WRITE_RETURN_TYPE
        to _ssize_t.
        * libc/sys/linux/io.c (read, write): Change to return ssize_t.

22 years ago2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 21 Jun 2002 18:29:23 +0000 (18:29 +0000)]
2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdio.h (__getline, __getdelim): New prototypes.
        * libc/include/time.h [HAVE_GETDATE](getdate, getdate_r): Ditto.
        [HAVE_GETDATE](getdate_err): New error code.
        * libc/stdio/Makefile.am: Add support for getline.c and getdelim.c.
        * libc/stdio/Makefile.in: Regenerated.
        * libc/stdio/getdelim.c: New file.
        * libc/stdio/getline.c: Ditto.
        * libc/sys/linux/Makefile.am: Add support for getdate.c, getdate_err.c
        and ntp_gettime.c.  Also add AM_CFLAGS to point to libc/stdio.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/getdate.c: New file.
        * libc/sys/linux/getdate_err.c: Ditto.
        * libc/sys/linux/ntp_gettime.c: Ditto.
        * libc/sys/linux/time.c (adjtimex, ntp_adjtime): New functions.
        * libc/sys/linux/sys/stdio.h (getline, getdelim): New macros.

22 years ago2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 21 Jun 2002 18:15:56 +0000 (18:15 +0000)]
2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/math.h: Add <sys/types.h> to get _uint32_t definition.
        * libc/include/machine/types.h: Skip __off_t, __pid_t, and
        __loff_t definitions if special _HAVE_SYSTYPES macro defined.
        * libc/include/sys/config.h: Removed _uint*, _int* definitions.
        * libc/include/sys/param.h: Remove i386 case which is handled
        by default case.
        (BIG_ENDIAN, LITTLE_ENDIAN): Protect
        definitions in case they are already defined.
        (BYTE_ORDER): Add default case using _IEEE_BIG_ENDIAN and
        _IEEE_LITTLE_ENDIAN flags.
        * libc/include/sys/reent.h: Change __uint32_t references to
        use _ULong instead.
        (_REENT_GETDATE_REENT_P): New macro.
        * libc/include/sys/types.h (__int16_t, __uint16_t): Added.
        (__int32_t, __uint32_t, __int64_t, __uint64_t): Ditto.
        * libc/search/hash.h: Add default setting of BYTE_ORDER,
        LITTLE_ENDIAN, and BIG_ENDIAN, if not already defined.
        * libc/sys/linux/sys/types.h: Include <sys/_types.h>.  Define
        ssize_t based on _ssize_t.  Remove __socklen_t, __uintptr_t,
        pid_t, off_t, loff_t, caddr_t, and daddr_t type
        definitions which are done by subsequent glibc headers.
        Add macro definitions to prevent subsequent header files from
        defining pid_t, off_t, ssize_t, and key_t.  Move uintptr_t and
        intptr_t to after glibc definitions of types they are based on.

22 years ago* what.texinfo: Fix typo.
Christopher Faylor [Fri, 21 Jun 2002 15:28:06 +0000 (15:28 +0000)]
* what.texinfo: Fix typo.

22 years ago2002-06-21 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 21 Jun 2002 15:26:47 +0000 (15:26 +0000)]
2002-06-21  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/errno.h: Protect from multiple inclusion.

22 years ago * syscalls.cc (stat64_to_stat32): Correctly evaluate st_rdev.
Corinna Vinschen [Fri, 21 Jun 2002 15:01:19 +0000 (15:01 +0000)]
* syscalls.cc (stat64_to_stat32): Correctly evaluate st_rdev.
(fstat64): Set st_rdev to same value as st_dev.
(stat_worker): Ditto.

22 years ago * security.cc (alloc_sd): Carefully check owner_sid again after trying
Corinna Vinschen [Fri, 21 Jun 2002 12:57:19 +0000 (12:57 +0000)]
* security.cc (alloc_sd): Carefully check owner_sid again after trying
SIDs from cygheap.

22 years ago * security.cc (alloc_sd): Remove unnecessary retrieval of owner name.
Corinna Vinschen [Fri, 21 Jun 2002 12:37:51 +0000 (12:37 +0000)]
* security.cc (alloc_sd): Remove unnecessary retrieval of owner name.
Check uid for current user first and use SIDs from cygheap if so.
Set errno to EINVAL if user SID isn't retrievable.  Just print user SID
as debug output.
Don't bail out if group SID isn't retrievable.  Change debug output
appropriately.

22 years agoSet correct value for ADP_Stopped_RunTimeError
Nick Clifton [Fri, 21 Jun 2002 06:55:37 +0000 (06:55 +0000)]
Set correct value for ADP_Stopped_RunTimeError

This page took 0.07023 seconds and 5 git commands to generate.