]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years ago* autoload.h: Eliminate.
Christopher Faylor [Wed, 16 May 2001 05:07:51 +0000 (05:07 +0000)]
* autoload.h: Eliminate.
* autoload.cc: Pull in autoload.h.  Eliminate many macros.  Rewrite to avoid
necessity of initialization routines.  Just use a standard one.
(wsock_init): New function.  Moved from net.cc.
* net.cc (wsock_init): Move to autoload.cc.
(wsadata): Make global.
* dtable.cc (dtable::build_fhandler): Use more reliable method for checking if
net stuff has been loaded.

23 years ago * fork.cc (fork): Eliminate superfluous call to getuid().
Corinna Vinschen [Tue, 15 May 2001 19:23:31 +0000 (19:23 +0000)]
    * fork.cc (fork): Eliminate superfluous call to getuid().
        * security.h: New define `NO_SID'. Remove declarations of functions
        moved to methods into class cygsid.
        (class cygsid): Declare new methods `getfromstr', `get_sid',
        `getfrompw', `getfromgr', `get_rid', `get_uid', `get_gid', `string'
        and new constructors and operators =, == and !=.
        Declare new global cygsids `well_known_XXX_sid' substituting the
        corresponding `get_XXX_sid' functions. Remove declarations of
        these functions.
        * sec_helper.cc (well_known_admin_sid): New global variable.
        (well_known_system_sid): Ditto
        (well_known_creator_owner_sid): Ditto
        (well_known_world_sid): Ditto
        (cygsid::string): New method, substituting `convert_sid_to_string_sid'.
        (cygsid::get_sid): New method, substituting `get_sid'.
        (cygsid::getfromstr): New method, substituting
        `convert_string_sid_to_sid'.
        (cygsid::getfrompw): New method, substituting `get_pw_sid'.
        (cygsid::getfromgr): New method, substituting `get_gr_sid'.
        (cygsid::get_id): New method, substituting `get_id_from_sid'.
        (get_admin_sid): Eliminated.
        (get_system_sid): Ditto.
        (get_creator_owner_sid): Ditto.
        (get_world_sid): Ditto.
        * grp.cc: Use new cygsid methods and well known sids throughout.
        * registry.cc: Ditto.
        * sec_acl.cc: Ditto.
        * security.cc: Ditto.
        * shared.cc: Ditto.
        * syscalls.cc (seteuid): Ditto. Eliminate redundant conditional.
        * uinfo.cc (internal_getlogin): Ditto.
        * spawn.cc (spawn_guts) Revert previous patch.

23 years agoRemove definition of EM_MIPS_RS4_BE. The constant was never in active use
Nick Clifton [Tue, 15 May 2001 12:24:29 +0000 (12:24 +0000)]
Remove definition of EM_MIPS_RS4_BE.  The constant was never in active use
and is used otherwise by the ABI.

23 years agoFix MIPS disassembler so that it produces reassemblable code.
Nick Clifton [Tue, 15 May 2001 12:11:12 +0000 (12:11 +0000)]
Fix MIPS disassembler so that it produces reassemblable code.

23 years ago * winsup.api/winsup.exp: Force linking all tests against binmode.o.
Corinna Vinschen [Tue, 15 May 2001 10:03:01 +0000 (10:03 +0000)]
    * winsup.api/winsup.exp: Force linking all tests against binmode.o.

23 years ago * fhandler_socket.cc (fhandler_socket::ioctl): Convert s_addr
Corinna Vinschen [Tue, 15 May 2001 08:42:15 +0000 (08:42 +0000)]
    * fhandler_socket.cc (fhandler_socket::ioctl): Convert s_addr
        field to host byte order before comparing with INADDR_LOOPBACK.

23 years ago * autoload.cc: Add autoload statements for ws2_32 functions
Corinna Vinschen [Tue, 15 May 2001 08:15:54 +0000 (08:15 +0000)]
    * autoload.cc: Add autoload statements for ws2_32 functions
        `WSACloseEvent', `WSACreateEvent', `WSAGetOverlappedResult',
        `WSARecv', `WSARecvFrom', `WSASend', `WSASendTo' and `WSASetEvent',
        `WSAWaitForMultipleEvents'.
        * net.cc: Define wsock_evt.
        (wsock_event): New class.
        (cygwin_sendto): Use overlapped socket io if available.
        (cygwin_recvfrom): Ditto.
        (cygwin_recv): Ditto.
        (cygwin_send): Ditto.
        * security.cc (subauth): Set Win32 error to 0 to safely ask for the
        error code of dynamically loaded function `LsaRegisterLogonProcess'.

23 years ago* Makefile.common: Change method for finding current directory.
Christopher Faylor [Tue, 15 May 2001 05:11:55 +0000 (05:11 +0000)]
* Makefile.common: Change method for finding current directory.

23 years ago* errno.cc (_sys_errlist): Add missing commas.
Christopher Faylor [Mon, 14 May 2001 19:39:57 +0000 (19:39 +0000)]
* errno.cc (_sys_errlist): Add missing commas.

23 years ago2001-05-14 H.J. Lu <hjl@gnu.org>
H.J. Lu [Mon, 14 May 2001 16:40:49 +0000 (16:40 +0000)]
2001-05-14  H.J. Lu <hjl@gnu.org>

* config.if (libc_interface): Set to -libc6.2- for cross
compiling to Linux/glibc 2.2.

23 years ago * security.cc (subauth): Check if Secur32.dll could be loaded.
Corinna Vinschen [Mon, 14 May 2001 14:14:19 +0000 (14:14 +0000)]
    * security.cc (subauth): Check if Secur32.dll could be loaded.

23 years ago* path.cc (path_conv::check): Revert allow_ntsec check so that volume info is
Christopher Faylor [Mon, 14 May 2001 02:52:12 +0000 (02:52 +0000)]
* path.cc (path_conv::check): Revert allow_ntsec check so that volume info is
always retrieved and isdisk setting is properly set.

23 years agoFix formatting.
Christopher Faylor [Mon, 14 May 2001 02:49:56 +0000 (02:49 +0000)]
Fix formatting.

23 years ago* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a
Christopher Faylor [Sun, 13 May 2001 18:05:52 +0000 (18:05 +0000)]
* fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a
filehandle.

23 years ago * dir.cc (rmdir): Rearrange slightly to allow removing directories
Corinna Vinschen [Sat, 12 May 2001 16:24:05 +0000 (16:24 +0000)]
    * dir.cc (rmdir): Rearrange slightly to allow removing directories
        even when R/O attribute is set.

23 years agoCorrect cvtps2dq, movdq2q, movq2dq, and movq problems.
Alan Modra [Sat, 12 May 2001 09:52:39 +0000 (09:52 +0000)]
Correct cvtps2dq, movdq2q, movq2dq, and movq problems.

23 years ago* external.cc (fillout_pinfo): Use correct pids.
Christopher Faylor [Fri, 11 May 2001 21:01:44 +0000 (21:01 +0000)]
* external.cc (fillout_pinfo): Use correct pids.
* path.cc (mount_info::conv_to_win32_path): Correct test for whether to include
a slash.

23 years agomerge from gcc
DJ Delorie [Fri, 11 May 2001 20:22:28 +0000 (20:22 +0000)]
merge from gcc

23 years ago * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
Jakub Jelinek [Fri, 11 May 2001 12:36:47 +0000 (12:36 +0000)]
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.

* readelf.c (process_unwind): Print all unwind sections, not just
one.

* config/tc-ia64.c (special_linkonce_name): New.
(make_unw_section): Map .gnu.linkonce.t.FOO text section into
.gnu.linkonce.ia64unw{,i}.FOO.
(ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
(dot_endp): Add comment about it.

* elf/ia64.h (ELF_STRING_ia64_unwind_once): Define.
(ELF_STRING_ia64_unwind_info_once): Define.

* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
.gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
output sections.
* emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.

23 years ago* exceptions.cc (handle_exceptions): Don't print message when executing from a
Christopher Faylor [Fri, 11 May 2001 05:11:12 +0000 (05:11 +0000)]
* exceptions.cc (handle_exceptions): Don't print message when executing from a
cygwin program.

23 years agoChristopher Faylor <cgf@redhat.com>
Christopher Faylor [Fri, 11 May 2001 03:27:22 +0000 (03:27 +0000)]
Christopher Faylor <cgf@redhat.com>
* environ.cc (winenv): Always add SYSTEMDRIVE and SYSYEMROOT to win32-style
environment if they don't already exist.

23 years agoremove erroneous header.
Christopher Faylor [Wed, 9 May 2001 20:22:35 +0000 (20:22 +0000)]
remove erroneous header.

23 years ago* path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths
Christopher Faylor [Wed, 9 May 2001 18:59:10 +0000 (18:59 +0000)]
* path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths
including `:' or `\'.

23 years ago* fhandler.h (fhandler_termios::echo_erase): Declare new method.
Christopher Faylor [Wed, 9 May 2001 18:53:55 +0000 (18:53 +0000)]
* fhandler.h (fhandler_termios::echo_erase): Declare new method.
* fhandler_termios.cc (fhandler_termios::echo_erase): New method for echoing
erase characters.
(fhandler_termios::line_edit): Check the echo flag before echoing control
characters (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>).

23 years ago* include/pthread.h: Remove C++ comment.
Christopher Faylor [Wed, 9 May 2001 14:45:47 +0000 (14:45 +0000)]
* include/pthread.h: Remove C++ comment.

23 years ago* cygheap.cc (_cfree): Add regparm attribute.
Christopher Faylor [Tue, 8 May 2001 15:16:49 +0000 (15:16 +0000)]
* cygheap.cc (_cfree): Add regparm attribute.
(_crealloc): Ditto.
* dcrt0.cc (dll_crt0_1): Default to always checking for executable for now.
* dtable.cc (dtable::not_open): Move method.
* dtable.h (dtable): Here.
* exceptions.cc (ctrl_c_handler): Don't expect process group leader to handle a
signal if it doesn't exist.
* fhandler.h (fhandler_base): Make openflags protected.
* localtime.c (tzsetwall): Check for __CYGWIN__ as well as __WIN32__.
* path.cc (path_conv::check): Add some comments.  Change strcat to assignment.
* lib/_cygwin_S_IEXEC.cc (_cygwin_bob__): Eliminate.
* fhandler_tty.cc (fhandler_console::dup): Set controlling terminal if
necessary.
* fhandler_tty.cc (fhandler_tty_slave::dup): Ditto.

23 years agomerge from gcc
DJ Delorie [Tue, 8 May 2001 14:34:36 +0000 (14:34 +0000)]
merge from gcc

23 years agoFix typo.
Christopher Faylor [Tue, 8 May 2001 14:06:55 +0000 (14:06 +0000)]
Fix typo.

23 years ago* include/sys/file.h: Revert special X_OK usage. Just make it a constant.
Christopher Faylor [Tue, 8 May 2001 01:36:50 +0000 (01:36 +0000)]
* include/sys/file.h: Revert special X_OK usage.  Just make it a constant.

23 years ago* libc/include/sys/stat.h: Revert March 3, Cygwin change.
Christopher Faylor [Tue, 8 May 2001 01:15:06 +0000 (01:15 +0000)]
* libc/include/sys/stat.h: Revert March 3, Cygwin change.
* libc/include/sys/Ditto.h: Ditto.

23 years agomerge from gcc
DJ Delorie [Mon, 7 May 2001 16:19:25 +0000 (16:19 +0000)]
merge from gcc

23 years ago * external.h: Fix typo.
Alan Modra [Mon, 7 May 2001 09:18:52 +0000 (09:18 +0000)]
* external.h: Fix typo.
* mips.h: Add/Extend many comments with reference to the MIPS ELF64
spec v. 2.4, available at e.g.
ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps.
(EF_MIPS_UCODE): Define.
(EF_MIPS_OPTIONS_FIRST): Define.
(EF_MIPS_ARCH_ASE): Define.
(EF_MIPS_ARCH_ASE_MDMX): Define.
(EF_MIPS_ARCH_ASE_M16): Define.
(SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32.
(SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64.
(SHF_MIPS_NODUPES): Define.
(ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro.
(ELF64_MIPS_R_TYPE3): Likewise.
(ELF64_MIPS_R_TYPE2): Likewise.
(ELF64_MIPS_R_TYPE): Likewise.
(OHW_R10KLDL): Define.

23 years agoSun May 6 17:05:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 6 May 2001 22:23:43 +0000 (22:23 +0000)]
Sun May  6 17:05:00 2001  Robert Collins <rbtcollins@hotmail.com>
* thread.h (pthread_cond): New element cond_access to allow atomic broadcasts.
* thread.cc (pthread_cond::pthread_cond): Initialise cond_access.
(pthread_cond::~pthread_cond): Destroy cond_access.
(pthread_cond::Broadcast): Use cond_access.
(pthread_cond::Signal): Use cond_access.
(pthread_cond_wait): Use cond_access.
(pthread_cond_timedwait): Use cond_access.

23 years ago* string.h (cygwin_strchr): Make 'static inline' so that things will still work
Christopher Faylor [Sun, 6 May 2001 16:00:23 +0000 (16:00 +0000)]
* string.h (cygwin_strchr): Make 'static inline' so that things will still work
when optimized.

23 years ago* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
Christopher Faylor [Sat, 5 May 2001 05:07:20 +0000 (05:07 +0000)]
* exceptions.cc (handle_exceptions): Vastly increase test for exception loop
guard variable.

23 years ago* configure.in: Fix typo.
Christopher Faylor [Sat, 5 May 2001 04:18:16 +0000 (04:18 +0000)]
* configure.in: Fix typo.
* configure: Regenerate.

23 years ago* exceptions.cc (stack_info): Add some controls.
Christopher Faylor [Sat, 5 May 2001 02:44:36 +0000 (02:44 +0000)]
* exceptions.cc (stack_info): Add some controls.
(stack_info::init): Add extra arguments to control method of initialization..
If we have a known good frame, set things up so that this frame is not skipped
the first time through.  Record whether caller cares about arguments or not.
(stack_info::walk): Don't store arguments if they're unwanted.
(stackdump): Add isexception parameter for use when called by exception
handler.
(cygwin_stackdump): Accomodate extra argument to stackdump.
(handle_exceptions): Ditto.
(sig_handle): Ditto.
(interrupt_on_return): Accomodate extra arguments to stack walk initialization.

23 years ago* localtime.c: Revert exclusion of windows.h.
Christopher Faylor [Sat, 5 May 2001 01:07:03 +0000 (01:07 +0000)]
* localtime.c: Revert exclusion of windows.h.

23 years agooops.
Christopher Faylor [Fri, 4 May 2001 21:09:47 +0000 (21:09 +0000)]
oops.

23 years ago* string.h: Fix last-minute typo.
Christopher Faylor [Fri, 4 May 2001 21:06:13 +0000 (21:06 +0000)]
* string.h: Fix last-minute typo.

23 years agoRevert much of previous erroneous checkin. Add ChangeLog entry.
Christopher Faylor [Fri, 4 May 2001 21:02:15 +0000 (21:02 +0000)]
Revert much of previous erroneous checkin.  Add ChangeLog entry.

* pinfo.h: Correctly set __SIGOFFSET.
* path.cc (hash_path_name): Avoid calling library functions for simple copying
of characters.
* shortcut.c: Use WIN32_LEAN_AND_MEAN.
* smallprint.c: Ditto.
* environ.cc (getwinenv): Minor clarity fix.
* localtime.c: No need to include windows.h
* string.h: New file.

23 years ago* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
Christopher Faylor [Fri, 4 May 2001 20:39:38 +0000 (20:39 +0000)]
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.

23 years ago2001-05-04 Earnie Boyd <earnie@users.sourceforge.net>
Jeff Johnston [Fri, 4 May 2001 17:23:18 +0000 (17:23 +0000)]
2001-05-04  Earnie Boyd  <earnie@users.sourceforge.net>

        * libc/string/strrchr.c: Use strchr for the speed improvements.

23 years ago* fhandler_socket.cc (set_connect_secret): Use /dev/urandom to
Egor Duda [Fri, 4 May 2001 16:30:18 +0000 (16:30 +0000)]
* fhandler_socket.cc (set_connect_secret): Use /dev/urandom to
generate secret cookie.

23 years ago* configure.in: Make subauth configuration optional.
Christopher Faylor [Fri, 4 May 2001 15:27:56 +0000 (15:27 +0000)]
* configure.in: Make subauth configuration optional.
* configure: Regenerate.

23 years ago Initial release of the Cygwin subauthentication DLL.
Corinna Vinschen [Fri, 4 May 2001 13:19:37 +0000 (13:19 +0000)]
    Initial release of the Cygwin subauthentication DLL.
        * ChangeLog: New file.
        * Makefile.in: Ditto.
        * configure: Ditto. Generated from configure.in.
        * configure.in: Ditto.
        * cygsuba.c: Ditto.
        * cygsuba.din: Ditto.

23 years ago * subauth: New subdirectory.
Corinna Vinschen [Fri, 4 May 2001 13:18:51 +0000 (13:18 +0000)]
    * subauth: New subdirectory.
        * configure.in: Add subauth to the list of subdirectories.
        * configure: Regenerated from configure.in.

23 years agoAssorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.
Alan Modra [Fri, 4 May 2001 11:10:53 +0000 (11:10 +0000)]
Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq.

23 years ago* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
Christopher Faylor [Thu, 3 May 2001 20:42:28 +0000 (20:42 +0000)]
* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
arguments.
(pthread_cleanup_pop): Ditto.

23 years ago* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
Alexandre Oliva [Thu, 3 May 2001 20:31:54 +0000 (20:31 +0000)]
* configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable
libgcj.

23 years ago * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'
Corinna Vinschen [Thu, 3 May 2001 16:18:51 +0000 (16:18 +0000)]
    * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started'
        for clearness.

23 years ago* exceptions.cc (handle_exceptions): Break out of "loop" if the debugger
Christopher Faylor [Thu, 3 May 2001 15:00:38 +0000 (15:00 +0000)]
* exceptions.cc (handle_exceptions): Break out of "loop" if the debugger
doesn't seem to be attaching to our process.

23 years ago * autoload.cc: Use new definition of LoadDLLinitfunc throughout.
Corinna Vinschen [Thu, 3 May 2001 09:35:08 +0000 (09:35 +0000)]
    * autoload.cc: Use new definition of LoadDLLinitfunc throughout.
        Redefine wrapper for wsock32.dll and ws2_32.dll.
        (std_dll_init): New function.
        * autoload.h: Rename LoadDLLinitfunc to LoadDLLinitfuncdef.
        Add new defines LoadDLLinitfunc and LoadDLLstdfunc.
        * net.cc (wsock_init): Add guard variable handling. Take care
        to call WSAStartup only once. Load WSAStartup without using
        autoload wrapper to eliminate recursion.  Eliminate FIONBIO
        and srandom stuff.

23 years ago2001-05-01 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 1 May 2001 18:18:25 +0000 (18:18 +0000)]
2001-05-01  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/findfp (__sinit)[HAVE_FCNTL]: For platforms that have
        real file systems, let __smakebuf() determine if line buffering
        should be used for stdout.

23 years ago* mkpasswd.c (enum_users): Use /bin/bash as the default shell.
Christopher Faylor [Tue, 1 May 2001 14:50:54 +0000 (14:50 +0000)]
* mkpasswd.c (enum_users): Use /bin/bash as the default shell.
(main): Ditto.

23 years ago* path.cc (mount_info::conv_to_win32_path): More path tweaking.
Christopher Faylor [Tue, 1 May 2001 05:26:06 +0000 (05:26 +0000)]
* path.cc (mount_info::conv_to_win32_path): More path tweaking.

23 years ago* path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid a
Christopher Faylor [Tue, 1 May 2001 04:45:19 +0000 (04:45 +0000)]
* path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid a
SIGSEGV.  Avoid double backslashes in middle of filename.

23 years ago* path.cc (mkrelpath): New function.
Christopher Faylor [Tue, 1 May 2001 02:03:10 +0000 (02:03 +0000)]
* path.cc (mkrelpath): New function.
(mount_info::conv_to_win32_path): Eliminate now-unneeded relative path name arg
and processing.
(path_conv::check): Accomodate relative path names again.  Accomodate one extra
argument in mount_info::conv_to_win32_path.  Tack trailing slash on end of
relative path as a side effect, like before.
* shared_info.h (mount_info::conv_to_win32_path): Reflect new argument
ordering.

23 years ago * autoload.cc: Add LoadDLLinitfunc for secur32.dll.
Corinna Vinschen [Mon, 30 Apr 2001 21:19:42 +0000 (21:19 +0000)]
    * autoload.cc: Add LoadDLLinitfunc for secur32.dll.
        Add LoadDLLfuncEx statements for AllocateLocallyUniqueId@4,
        DuplicateTokenEx@24, LsaNtStatusToWinError@4,
        LsaDeregisterLogonProcess@4, LsaFreeReturnBuffer@4,
        LsaLogonUser@56, LsaLookupAuthenticationPackage@12,
        LsaRegisterLogonProcess@12,
        * environ.cc: Add extern declaration for `subauth_id'.
        (subauth_id_init): New function for setting `subauth_id'.
        (struct parse_thing): Add entry for `subauth_id'.
        * fork.cc (fork_parent): Call `RevertToSelf' and
        `ImpersonateLoggedOnUser' instead of `seteuid'.
        * security.cc: Define global variable `subauth_id'.
        (extract_nt_dom_user): New function.
        (cygwin_logon_user): Call `extract_nt_dom_user' now.
        (str2lsa): New static function.
        (str2buf2lsa): Ditto.
        (str2buf2uni): Ditto.
        (subauth): Ditto.
        * security.h: Add prototype for `subauth'.
        * spawn.cc (spawn_guts): Use cygheap->user.token only if impersonated.
        Use `cygsid' type. Remove impersonation before allowing access to
        workstation/desktop to everyone. Call `RevertToSelf' and
        `ImpersonateLoggedOnUser' instead of `seteuid'.
        * syscalls.cc (seteuid): Rearranged to allow using subauthentication
        to retrieve user tokens when needed.

23 years ago * uinfo.cc (internal_getlogin): Formatting change.
Corinna Vinschen [Mon, 30 Apr 2001 18:27:24 +0000 (18:27 +0000)]
    * uinfo.cc (internal_getlogin): Formatting change.

23 years ago * grp.cc: Eliminate MAX_DOMAIN_NAME define.
Corinna Vinschen [Mon, 30 Apr 2001 18:21:48 +0000 (18:21 +0000)]
    * grp.cc: Eliminate MAX_DOMAIN_NAME define.
        (read_etc_group): Substitute MAX_DOMAIN_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * passwd.cc (parse_pwd): Don't force pw_name to be lower case.
        * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN,
        MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout.
        (lookup_name): Slight cleanup.
        * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN.
        * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and
        DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS.
        * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN.
        * thread.h: Ditto.
        * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN.
        Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and
        MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.

23 years ago* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
Christopher Faylor [Mon, 30 Apr 2001 16:52:53 +0000 (16:52 +0000)]
* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
syntax unless parsing tail of path component.  Stop parsing path when we reach
the 'root' of the path.  Correctly copy tail to path component.

23 years ago* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
Christopher Faylor [Mon, 30 Apr 2001 03:09:19 +0000 (03:09 +0000)]
* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
(init_exceptions): Just use init_exception_handler.
(open_stackdumpfile): New function.
(stack_info::first_time): Eliminate.
(stack_info::init): Set up fields to avoid "first_time" consideration.
(stack_info::walk): Remove "first_time" consideration.
(stackdump): Change arguments to accept initial frame pointer and open stack
file flag.
(stack): Eliminate.
(cygwin_stackdump): Use stackdump() rather than stack().
(try_to_debug): Remove all synchronization logic.  Just keep looping in
exception handler until debugger notices us.  Return 1 if successfully started
debugger.
(handle_exceptions): Just return if we know that we're debugging.  Reorganize
to avoid creating a stackdump file if we are starting a debugger.  Return from
exception handler if debugger started successfully.
(sig_handle): Create a stackdump only if debugger wasn't started.
* winsup.h (try_to_debug): Add an argument.

23 years ago* path.cc (symlink_info::check): Remove extra arguments, move functionality
Christopher Faylor [Mon, 30 Apr 2001 01:46:31 +0000 (01:46 +0000)]
* path.cc (symlink_info::check): Remove extra arguments, move functionality
back to path_conv::check.  Clear symlink bit from pflags argument before
detecting if this is a symlink.
(path_conv::check): Convert posix path here instead of symlink_info::check.
Only grab volflags when using ntsec.
(symlink_info::check_case): Just replace appropriate part of input path.

23 years agominor formatting changes.
Christopher Faylor [Sun, 29 Apr 2001 02:54:36 +0000 (02:54 +0000)]
minor formatting changes.

23 years ago* passwd.cc (ttymnam): New function.
Christopher Faylor [Sun, 29 Apr 2001 02:32:18 +0000 (02:32 +0000)]
* passwd.cc (ttymnam): New function.
(main): Use ttynam() to report name of tty.

23 years agoThroughout, change 'tty_attached' to 'real_tty_attached', for clarity.
Christopher Faylor [Sat, 28 Apr 2001 23:48:28 +0000 (23:48 +0000)]
Throughout, change 'tty_attached' to 'real_tty_attached', for clarity.
Throughout, change 'OutputStopped' to 'output_stopped', for consistency.
* dtable.cc (stdio_init): Set controlling tty if not set by stdio opens.
* exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is
associated with the process.
(Suggested by Tim Baker <dbaker@direct.ca>)
* external.cc (fillout_pinfo): Return actual tty number for ctty.
* fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is
allocated.  Accept flags input from open().
(set_console_ctty): New function.
(fhandler_console::open): Pass flags to get_tty_stuff and rely on this function
to set the ctty, if appropriate.
* fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class.
* fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access
set_ctty().
* tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h.
(tty_min): Add set_ctty class here.
* include/sys/cygwin.h (TTY_CONSOLE): New home here.
* path.cc (symlink_info): Make contents an actual buffer.  Pass more flags to
case_check.
(path_conv::check): Reorganize to do parsing based on posix path rather than
native path.
(symlink_info::check): Expect posix path as input.  Translate to native path
here.  Accept path_conv flags.  Stop parsing if not a symlink regardless of
whether previous path was a symlink.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Apr 2001 21:59:44 +0000 (21:59 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Apr 2001 20:43:42 +0000 (20:43 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdlib.h: Add prototype for _strtod_r.

23 years ago* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
Christopher Faylor [Fri, 27 Apr 2001 18:50:59 +0000 (18:50 +0000)]
* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib.
* sigproc.h (sig_send): Add exception parameter to sig_send.
* sigproc.cc (sig_send): Ditto.  Use it when setting frame info.
* exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.

23 years agoAdd openRISC support in opcodes
Nick Clifton [Fri, 27 Apr 2001 13:33:26 +0000 (13:33 +0000)]
Add openRISC support in opcodes

23 years ago * winsup.api/mmaptest04.c: Take care for binmode explicitely.
Corinna Vinschen [Fri, 27 Apr 2001 10:46:49 +0000 (10:46 +0000)]
    * winsup.api/mmaptest04.c: Take care for binmode explicitely.

23 years ago* tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking.
Egor Duda [Fri, 27 Apr 2001 06:27:28 +0000 (06:27 +0000)]
* tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking.
* fhandler_tty.cc (fhandler_pty_master::accept_input): If pipe buffer
is full, give slave a chance to read data.

23 years ago * security.cc (alloc_sd): Add unrelated ACCESS_ALLOWED_ACE behind
Corinna Vinschen [Thu, 26 Apr 2001 09:21:33 +0000 (09:21 +0000)]
    * security.cc (alloc_sd): Add unrelated ACCESS_ALLOWED_ACE behind
        the `everyone' ACE.

23 years ago* configure.in (noconfigdirs): Don't reset it from scratch in the
Alexandre Oliva [Thu, 26 Apr 2001 05:42:15 +0000 (05:42 +0000)]
* configure.in (noconfigdirs): Don't reset it from scratch in the
target case; only append to it.

23 years ago* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
Alexandre Oliva [Thu, 26 Apr 2001 05:32:29 +0000 (05:32 +0000)]
* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
sparc-*-solaris2.8]: Disable ${libgcj}.

23 years ago* configure.in (libgcj_saved): Copy from $libgcj.
Alexandre Oliva [Wed, 25 Apr 2001 21:41:21 +0000 (21:41 +0000)]
* configure.in (libgcj_saved): Copy from $libgcj.
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.

23 years ago* sigproc.h [sigthread]: Add exception field.
Christopher Faylor [Wed, 25 Apr 2001 19:11:37 +0000 (19:11 +0000)]
* sigproc.h [sigthread]: Add exception field.
[sigframe::~sigframe]: Clear exception field.
[sigframe::set]: Set exception field from caller.
* sigproc.cc (sig_send): Set exception field when frame pointer is passed in.
* exceptions.cc (interrupt_on_return): Always treat exception as interruptible.

23 years ago* cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_r
Egor Duda [Wed, 25 Apr 2001 16:18:43 +0000 (16:18 +0000)]
* cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_r
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 39

23 years ago* include/cygwin/version.h: Bump minor version number.
Christopher Faylor [Wed, 25 Apr 2001 14:59:49 +0000 (14:59 +0000)]
* include/cygwin/version.h: Bump minor version number.
* childinfo.h: Bump child structure magic number.

23 years ago * uinfo.cc (internal_getlogin): Return pointer to struct passwd.
Corinna Vinschen [Wed, 25 Apr 2001 12:54:21 +0000 (12:54 +0000)]
    * uinfo.cc (internal_getlogin): Return pointer to struct passwd.
        (uinfo_init): Accommodate the above change.
        * syscalls.cc (seteuid): Ditto.

23 years ago * autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16.
Corinna Vinschen [Wed, 25 Apr 2001 09:43:25 +0000 (09:43 +0000)]
    * autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16.
        * cygheap.cc: Include security.h.
        * grp.cc (internal_getgrent): New function.
        (getgroups): Rearranged using `internal_getgrent' and the new
        `cygsid' class.
        * passwd.cc (internal_getpwent): New function.
        * sec_acl.cc: Use new `cygsid' class throughout.
        (acl_access): Use `internal_getgrent' instead of `getgrent'.
        * sec_helper.cc: Use new `cygsid' class throughout.
        (get_id_from_sid): Use `internal_getgrent' instead of `getgrent'.
        Use `internal_getpwent' instead of `getpwent'.
        * security.cc: Use new `cygsid' class throughout.
        * security.h: Move `MAX_SID_LEN' from winsup.h to here.
        Add extern declarations for `internal_getgrent' and `internal_getpwent'.
        (class cygsid): New class.
        * shared.cc (sec_user): Use new `cygsid' class.
        * syscalls.cc (seteuid): Try to set owner to user and primary group to
        current group in impersonation token before performing impersonation.
        (setegid): Try to set primary group in process token to the new group
        if ntsec is on.
        * uinfo.cc (internal_getlogin): Use new `cygsid' class.
        Try to set owner to user and primary group to current group in process
        token if the process has been started from a non cygwin process.
        (uinfo_init): Set primary group only if the process has been started
        from a non cygwin process.
        * winsup.h: Move define for `MAX_SID_LEN' to security.h.

23 years ago * fhandler_dsp.cc: Improved handling of 8 bit playback modes.
Corinna Vinschen [Wed, 25 Apr 2001 07:26:54 +0000 (07:26 +0000)]
    * fhandler_dsp.cc: Improved handling of 8 bit playback modes.
        Put in mock support for SNDCTL_DSP_SETFRAGMENT.

23 years ago* lib/Makefile.in: Install libraries in /usr/lib/w32api when building for
Christopher Faylor [Wed, 25 Apr 2001 03:51:06 +0000 (03:51 +0000)]
* lib/Makefile.in: Install libraries in /usr/lib/w32api when building for
cygwin.

23 years ago2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
Jeff Johnston [Tue, 24 Apr 2001 22:09:21 +0000 (22:09 +0000)]
2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu

        * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
        * libc/stdio/vprintf.c (_vprintf_r): new function
        * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
        * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.
        * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
        * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.

23 years ago * passwd.cc (getpwnam_r): Add pw_passwd handling as well.
Corinna Vinschen [Tue, 24 Apr 2001 21:52:57 +0000 (21:52 +0000)]
    * passwd.cc (getpwnam_r): Add pw_passwd handling as well.
        (getpwuid_r): Ditto.

23 years ago * passwd.cc (getpwnam_r): Use correct offsets into buffer.
Corinna Vinschen [Tue, 24 Apr 2001 21:45:20 +0000 (21:45 +0000)]
    * passwd.cc (getpwnam_r): Use correct offsets into buffer.
        Copy pw_gecos field as well.
        (getpwuid_r): Ditto.

23 years ago* include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.
Christopher Faylor [Tue, 24 Apr 2001 20:20:01 +0000 (20:20 +0000)]
* include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.

23 years ago* sparc.h: Fix typo.
DJ Delorie [Tue, 24 Apr 2001 18:32:27 +0000 (18:32 +0000)]
* sparc.h: Fix typo.

23 years ago* dlmalloc.c: New file. Port of Doug Lea's malloc
Egor Duda [Tue, 24 Apr 2001 15:25:31 +0000 (15:25 +0000)]
* dlmalloc.c: New file. Port of Doug Lea's malloc
* dlmalloc.h: Ditto.
* Makefile.in: Add support for MALLOC_DEBUG
* config.h.in: Ditto.
* winsup.h: Ditto.
* configure.in: Add --enable-malloc-debugging option.
* configure: Regenerate.
* debug.h: Include declarations for debugging malloc.
* tty.cc (grantpt): Fix definition.
(unlockpt): Ditto.

23 years agoAdd OpenRISC support
Nick Clifton [Tue, 24 Apr 2001 15:08:16 +0000 (15:08 +0000)]
Add OpenRISC support

23 years ago* include/winsock2.h: Protect some more newlib defines when compiling cygwin
Christopher Faylor [Tue, 24 Apr 2001 03:41:37 +0000 (03:41 +0000)]
* include/winsock2.h: Protect some more newlib defines when compiling cygwin

23 years agoRemove trailing underscore from fhandler_base and friends, throughout.
Christopher Faylor [Tue, 24 Apr 2001 02:07:58 +0000 (02:07 +0000)]
Remove trailing underscore from fhandler_base and friends, throughout.
* fhandler.h (fhandler_base::set_open_status): New method.  Stores original
open status.
(fhandler_base::get_open_status): New method.  Retrieves original open status.
(fhandler_base::reset_to_open_binmode): New method.
* fhandler.cc (fhandler_base::open): Save open status.
(fhandler_base::init): Ditto.
* fhandler_clipboard.cc (fhandler_clipboard::open): Ditto.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_dsp.cc (fhandler_dsp::open): Ditto.
* fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_dev_random.cc (fhandler_dev_random::open): Ditto.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tty_master.cc (fhandler_tty_master::open): Ditto.
* fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto.
* syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open
state.
* fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when
converting from deciseconds to milliseconds.

23 years ago* fhandler.h (fhandler_base::clear_r_binary): New method.
Christopher Faylor [Mon, 23 Apr 2001 17:29:33 +0000 (17:29 +0000)]
* fhandler.h (fhandler_base::clear_r_binary): New method.
(fhandler_base::clear_w_binary): New method.
* syscalls.cc (setmode): Accept 0 as mode value.  Resets text/binary behavior
for fd to default.

23 years ago* include/winsock.h: Protect some more newlib defines when compiling cygwin.
Christopher Faylor [Mon, 23 Apr 2001 17:19:24 +0000 (17:19 +0000)]
* include/winsock.h: Protect some more newlib defines when compiling cygwin.

23 years ago* net.cc [errmap]: Add '0' condition.
Christopher Faylor [Mon, 23 Apr 2001 16:46:30 +0000 (16:46 +0000)]
* net.cc [errmap]: Add '0' condition.
(find_winsock_errno): Don't translate no error to EPERM.

23 years ago2001-04-23 Bo Thorsen <bo@suse.de>
Andreas Jaeger [Mon, 23 Apr 2001 08:00:14 +0000 (08:00 +0000)]
2001-04-23  Bo Thorsen  <bo@suse.de>

* x86-64.h: Add vtable support.

2001-04-23  Bo Thorsen  <bo@suse.de>

* elf64-x86-64.c: Add c++ vtable hack.
Small whitespace and comment changes.

23 years agospacing changes.
Christopher Faylor [Mon, 23 Apr 2001 02:56:19 +0000 (02:56 +0000)]
spacing changes.

23 years ago* include/cygwin/version.h: Bump Cygwin version and API version.
Christopher Faylor [Mon, 23 Apr 2001 00:48:23 +0000 (00:48 +0000)]
* include/cygwin/version.h: Bump Cygwin version and API version.

23 years agoMon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 22 Apr 2001 23:59:15 +0000 (23:59 +0000)]
Mon Apr 23  9:27:00 2001  Robert Collins <rbtcollins@hotmail.com>

       * thread.cc (MTinterface::Init): Always initialise per process variables.

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