]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
9 years agomerge from gcc
DJ Delorie [Wed, 5 Nov 2014 18:23:19 +0000 (18:23 +0000)]
merge from gcc

9 years ago * lib/atexit.c (atexit): Check for being linked into the executable.
Corinna Vinschen [Wed, 5 Nov 2014 16:26:18 +0000 (16:26 +0000)]
* lib/atexit.c (atexit): Check for being linked into the executable.
If so, call __cxa_atexit with NULL DSO handle.  Explain why.
* lib/dso_handle.c: New file providing fallback __dso_handle.

9 years ago * new-features.xml (ov-new1.7.33): Document xdr and atexit.
Corinna Vinschen [Wed, 5 Nov 2014 09:56:09 +0000 (09:56 +0000)]
* new-features.xml (ov-new1.7.33): Document xdr and atexit.

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 5 Nov 2014 09:53:50 +0000 (09:53 +0000)]
*** empty log message ***

9 years ago * Makefile.in (NEW_FUNCTIONS): Add atexit to be not exported.
Corinna Vinschen [Wed, 5 Nov 2014 09:48:00 +0000 (09:48 +0000)]
* Makefile.in (NEW_FUNCTIONS): Add atexit to be not exported.
* lib/atexit.c (atexit): New, statically linkable version of atexit.
* dcrt0.cc (cygwin_atexit): Add comment to mark this function as old
entry point.  Indiscriminately check for DSO of function pointer for
all functions, if checking for DSO of return address fails on x86_64.
Change comment accordingly.

9 years ago * Makefile.in (NEW_FUNCTIONS): Define target-independent. Add target
Corinna Vinschen [Wed, 5 Nov 2014 09:28:01 +0000 (09:28 +0000)]
* Makefile.in (NEW_FUNCTIONS): Define target-independent.  Add target
dependent stuff afterwards.  Globally define timezone and all xdr
symbols as non-exported from libcygwin.a.

9 years agoAdd accidentally missing patch
Corinna Vinschen [Mon, 3 Nov 2014 16:29:03 +0000 (16:29 +0000)]
Add accidentally missing patch

9 years ago * cygheap.cc: Fix formatting.
Corinna Vinschen [Mon, 3 Nov 2014 15:30:59 +0000 (15:30 +0000)]
* cygheap.cc: Fix formatting.

9 years ago * mkgroup.c (enum_local_groups): Don't generate leading separator char
Corinna Vinschen [Mon, 3 Nov 2014 14:54:43 +0000 (14:54 +0000)]
* mkgroup.c (enum_local_groups): Don't generate leading separator char
for builtin accounts.

9 years ago * ntsec.xml: Fix typo.
Corinna Vinschen [Thu, 30 Oct 2014 17:22:09 +0000 (17:22 +0000)]
* ntsec.xml: Fix typo.

9 years ago * uinfo.cc (cygheap_user::ontherange): Don't mention /etc/passwd.
Corinna Vinschen [Thu, 30 Oct 2014 16:07:04 +0000 (16:07 +0000)]
* uinfo.cc (cygheap_user::ontherange): Don't mention /etc/passwd.

9 years ago2014-10-29 Jon Turney <jon.turney@dronecode.org.uk>
Jon TURNEY [Thu, 30 Oct 2014 11:25:17 +0000 (11:25 +0000)]
2014-10-29  Jon Turney  <jon.turney@dronecode.org.uk>

        * libc/include/string.h: Correct guard for strcasecmp().

9 years agoRemove accidentally added Change Log entry
Corinna Vinschen [Wed, 29 Oct 2014 15:23:31 +0000 (15:23 +0000)]
Remove accidentally added Change Log entry

9 years agoFix copyright date
Corinna Vinschen [Wed, 29 Oct 2014 11:31:05 +0000 (11:31 +0000)]
Fix copyright date

9 years ago * libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
Corinna Vinschen [Wed, 29 Oct 2014 11:06:42 +0000 (11:06 +0000)]
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.

9 years ago * cygheap.cc (init_cygheap::init_installation_root): Create content of
Corinna Vinschen [Wed, 29 Oct 2014 10:40:47 +0000 (10:40 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Create content of
installation_dir as non-prefixed path, if possible.

9 years ago * setfacl.c (setfacl): Fix bracketing in expression.
Corinna Vinschen [Wed, 29 Oct 2014 10:24:49 +0000 (10:24 +0000)]
* setfacl.c (setfacl): Fix bracketing in expression.

9 years ago * ntsec.xml (ntsec-mapping-caching): Describe service dependencies
Corinna Vinschen [Wed, 29 Oct 2014 10:09:41 +0000 (10:09 +0000)]
* ntsec.xml (ntsec-mapping-caching): Describe service dependencies
in terms of cygserver.

9 years ago * common.din (__cxa_atexit): Define as cygwin__cxa_atexit.
Corinna Vinschen [Wed, 29 Oct 2014 09:56:18 +0000 (09:56 +0000)]
* common.din (__cxa_atexit): Define as cygwin__cxa_atexit.
* dcrt0.cc (cygwin__cxa_atexit): New function.  Explain what we do.

9 years agomerge from gcc
DJ Delorie [Tue, 28 Oct 2014 23:25:21 +0000 (23:25 +0000)]
merge from gcc

9 years ago * xidepend: Make PDF file dependent on the same input files as the
Corinna Vinschen [Tue, 28 Oct 2014 11:01:32 +0000 (11:01 +0000)]
* xidepend: Make PDF file dependent on the same input files as the
HTML file of the same name to trigger automatic rebuild of PDFs on
source file changes as well.

9 years ago * cygwinenv.xml: Change default setting of dosfilewarning.
Corinna Vinschen [Tue, 28 Oct 2014 10:47:38 +0000 (10:47 +0000)]
* cygwinenv.xml: Change default setting of dosfilewarning.
* new-features.xml (ov-new1.7.33): Document aforementioned change.

9 years ago * globals.cc (dos_file_warning): Set to false by default.
Corinna Vinschen [Tue, 28 Oct 2014 10:44:49 +0000 (10:44 +0000)]
* globals.cc (dos_file_warning): Set to false by default.
* path.cc (warn_msdos): Make static.  Drop test for dos_file_warning.
(path_conv::check): Check for dos_file_warning here to avoid a function
call in the default case.

9 years ago * ntsec.xml: Fix Solaris doc URLs.
Corinna Vinschen [Tue, 28 Oct 2014 09:45:45 +0000 (09:45 +0000)]
* ntsec.xml: Fix Solaris doc URLs.

9 years ago * ntsec.xml: Try to make an expression less ambiguous.
Corinna Vinschen [Tue, 28 Oct 2014 09:03:50 +0000 (09:03 +0000)]
* ntsec.xml: Try to make an expression less ambiguous.

9 years agomerge from gcc
DJ Delorie [Tue, 28 Oct 2014 00:02:00 +0000 (00:02 +0000)]
merge from gcc

9 years ago * dcrt0.cc (cygwin_atexit): Add workaround for broken atexit calls
Corinna Vinschen [Mon, 27 Oct 2014 21:19:40 +0000 (21:19 +0000)]
* dcrt0.cc (cygwin_atexit): Add workaround for broken atexit calls
in __gcc_register_frame of DLLs built with gcc-4.8.3-3.

9 years ago * libc/include/sys/unistd.h (sethostname): Declare if
Corinna Vinschen [Mon, 27 Oct 2014 14:35:46 +0000 (14:35 +0000)]
* libc/include/sys/unistd.h (sethostname): Declare if
requested.

9 years ago * dlfcn.cc (dlopen): Drop patch accommodating SetDllDiretory from
Corinna Vinschen [Mon, 27 Oct 2014 13:13:54 +0000 (13:13 +0000)]
* dlfcn.cc (dlopen): Drop patch accommodating SetDllDiretory from
2014-10-14.

9 years ago * ntsec.xml: More language fixes.
Corinna Vinschen [Mon, 27 Oct 2014 12:35:41 +0000 (12:35 +0000)]
* ntsec.xml: More language fixes.

9 years ago * new-features.xml (ov-new1.7.33): Document empty $PATH handling.
Corinna Vinschen [Mon, 27 Oct 2014 11:35:15 +0000 (11:35 +0000)]
* new-features.xml (ov-new1.7.33): Document empty $PATH handling.

9 years ago * cygheap.cc (cygheap_fixup_in_child): Drop call to set_dll_dir.
Corinna Vinschen [Mon, 27 Oct 2014 11:33:53 +0000 (11:33 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Drop call to set_dll_dir.
(init_cygheap::init_installation_root): Set installation_dir_len.
(setup_cygheap): Drop call to set_dll_dir.
* cygheap.h (struct init_cygheap): Add installation_dir_len member.
(init_cygheap::set_dll_dir): Remove.
* environ.cc (win_env::add_cache): Use stpcpy for speed.
(posify_maybe): Use tmp_pathbuf buffer instead of stack.
(raise_envblock): New function to resize Windows environment block.
(build_env): Fix indentation.  Call raise_envblock function.  Check if
$PATH exists and is non-empty.  If not, add PATH variable with Cygwin
installation directory as content to Windows environment.  Explain why.

* uinfo.cc (cygheap_pwdgrp::_nss_init): Fill UNICODE_STRING members
on the fly.  Drop call to RtlInitUnicodeString.
(pwdgrp::check_file): Ditto.

9 years ago*** empty log message ***
Corinna Vinschen [Mon, 27 Oct 2014 10:36:22 +0000 (10:36 +0000)]
*** empty log message ***

9 years ago * new-features.xml (ov-new1.7.33): Fix paragraph order.
Corinna Vinschen [Mon, 27 Oct 2014 10:35:52 +0000 (10:35 +0000)]
* new-features.xml (ov-new1.7.33): Fix paragraph order.

9 years ago * highlights.xml: Rearrange itemizedlist markup slightly.
Corinna Vinschen [Mon, 27 Oct 2014 10:34:17 +0000 (10:34 +0000)]
* highlights.xml: Rearrange itemizedlist markup slightly.
* new-features.xml (ov-new1.7.33): Add setfacl -b option.
* utils.xml (setfacl): Ditto.

9 years ago * setfacl.c (usage): Add -b to require options.
Corinna Vinschen [Mon, 27 Oct 2014 10:28:13 +0000 (10:28 +0000)]
* setfacl.c (usage): Add -b to require options.

9 years ago * setfacl.c (action_t): Add DeleteAll value.
Corinna Vinschen [Mon, 27 Oct 2014 10:25:02 +0000 (10:25 +0000)]
* setfacl.c (action_t): Add DeleteAll value.
(delacl): New function to remove all ACL entries not representing POSIX
permissions.
(setfacl): Rearrange conditional expression into switch statement.
Add DeleteAll case.
(usage): Add and describe -b option.
(longopts): Add --remove-all option.
(opts): Add -b option.
(main): Handle -b option.

9 years ago * fhandler_socket.cc (fhandler_socket::af_local_connect): Drop
Corinna Vinschen [Sun, 26 Oct 2014 18:47:24 +0000 (18:47 +0000)]
* fhandler_socket.cc (fhandler_socket::af_local_connect): Drop
setting connect_state to connect_credxchg.
(fhandler_socket::af_local_accept): Ditto.
(fhandler_socket::recv_internal): Drop ill-advised connect_state check.
Add comment so as not to repeat the exercise.
* fhandler.h (enum conn_state): Drop now unneeded connect_credxchg
state.

9 years agoFix typo
Corinna Vinschen [Sun, 26 Oct 2014 10:29:25 +0000 (10:29 +0000)]
Fix typo

9 years ago*** empty log message ***
Corinna Vinschen [Fri, 24 Oct 2014 19:16:11 +0000 (19:16 +0000)]
*** empty log message ***

9 years agoFix typo
Corinna Vinschen [Fri, 24 Oct 2014 19:14:49 +0000 (19:14 +0000)]
Fix typo

9 years ago * fhandler_proc.cc (format_proc_cygdrive): Fix symlink path if cygdrive
Corinna Vinschen [Fri, 24 Oct 2014 19:08:55 +0000 (19:08 +0000)]
* fhandler_proc.cc (format_proc_cygdrive): Fix symlink path if cygdrive
is "/".

9 years agofix typo
Corinna Vinschen [Fri, 24 Oct 2014 16:44:38 +0000 (16:44 +0000)]
fix typo

9 years ago * gendef (sigdelayed): 64 bit only: Fix seh_pushreg statements in
Corinna Vinschen [Fri, 24 Oct 2014 15:04:10 +0000 (15:04 +0000)]
* gendef (sigdelayed): 64 bit only: Fix seh_pushreg statements in
prologue.

9 years ago * gendef (sigdelayed): 64 bit only: Push CPU flags before aligning
Corinna Vinschen [Fri, 24 Oct 2014 13:40:02 +0000 (13:40 +0000)]
* gendef (sigdelayed): 64 bit only: Push CPU flags before aligning
stack to avoid changing flag values.

9 years ago * ntsec.xml: More language and typo fixes.
Corinna Vinschen [Fri, 24 Oct 2014 10:35:31 +0000 (10:35 +0000)]
* ntsec.xml: More language and typo fixes.

9 years ago * ntsec.xml: Fix language.
Corinna Vinschen [Thu, 23 Oct 2014 15:31:58 +0000 (15:31 +0000)]
* ntsec.xml: Fix language.

9 years ago2014-10-22 Tim Harder <radhermit@gmail.com>
DJ Delorie [Thu, 23 Oct 2014 01:49:49 +0000 (01:49 +0000)]
2014-10-22  Tim Harder  <radhermit@gmail.com>
* msp430/Makefile.in: respect DESTDIR during install

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 20:04:50 +0000 (20:04 +0000)]
*** empty log message ***

9 years ago * Makefile.in: Create install targets.
Corinna Vinschen [Wed, 22 Oct 2014 20:04:42 +0000 (20:04 +0000)]
* Makefile.in: Create install targets.
(cygwin-ug-net/cygwin-ug-net.pdf): Create subdir to allow building PDF
even if subdir is missing.
(cygwin-api/cygwin-api.pdf): Ditto.
* configure.ac: Add AC_PROG_INSTALL rule.
* configure: Regenerate.
* new-features.xml (ov-new1.7.33): Add installation of docs.

9 years ago * posix.xml (std-gnu): Add ffsl, ffsll, quotactl.
Corinna Vinschen [Wed, 22 Oct 2014 19:29:33 +0000 (19:29 +0000)]
* posix.xml (std-gnu): Add ffsl, ffsll, quotactl.
(std-notes): Add restrictions of quotactl.

9 years ago* new-features.xml (ov-new1.7.33): Document stime.
Yaakov Selkowitz [Wed, 22 Oct 2014 19:18:50 +0000 (19:18 +0000)]
* new-features.xml (ov-new1.7.33): Document stime.
* posix.xml (std-deprec): Add stime.

9 years ago* common.din (stime): Export.
Yaakov Selkowitz [Wed, 22 Oct 2014 19:03:02 +0000 (19:03 +0000)]
* common.din (stime): Export.
* times.cc (stime): New function.
* include/cygwin/time.h (stime): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 09:04:23 +0000 (09:04 +0000)]
*** empty log message ***

9 years ago * new-features.xml (ov-new1.7.33): s/Linux/glibc.
Corinna Vinschen [Wed, 22 Oct 2014 09:03:50 +0000 (09:03 +0000)]
* new-features.xml (ov-new1.7.33): s/Linux/glibc.

9 years ago * new-features.xml (ov-new1.7.33): Update to current state.
Corinna Vinschen [Wed, 22 Oct 2014 08:33:37 +0000 (08:33 +0000)]
* new-features.xml (ov-new1.7.33): Update to current state.

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 08:32:07 +0000 (08:32 +0000)]
*** empty log message ***

9 years ago*** empty log message ***
Corinna Vinschen [Wed, 22 Oct 2014 08:12:45 +0000 (08:12 +0000)]
*** empty log message ***

9 years ago * sec_auth.cc (get_user_groups): Remove experimental exception handler
Corinna Vinschen [Tue, 21 Oct 2014 19:17:09 +0000 (19:17 +0000)]
* sec_auth.cc (get_user_groups): Remove experimental exception handler
added 2014-09-05.
(get_user_local_groups): Ditto.

9 years ago * cygcheck.cc (CYGLSA64_DLL): Remove unused macro.
Corinna Vinschen [Tue, 21 Oct 2014 10:59:40 +0000 (10:59 +0000)]
* cygcheck.cc (CYGLSA64_DLL): Remove unused macro.
(dump_sysinfo): If COMSPEC isn't set in the MSVCRT environment, set it.
Explain why.

9 years agoFix typo
Corinna Vinschen [Mon, 20 Oct 2014 16:38:19 +0000 (16:38 +0000)]
Fix typo

9 years ago * fhandler_serial.cc: Revert debug code accidentally checked in on
Corinna Vinschen [Mon, 20 Oct 2014 14:30:35 +0000 (14:30 +0000)]
* fhandler_serial.cc: Revert debug code accidentally checked in on
2014-08-18.

9 years ago*** empty log message ***
Corinna Vinschen [Mon, 20 Oct 2014 13:19:58 +0000 (13:19 +0000)]
*** empty log message ***

9 years ago * path.cc (symlink_info::check): Set error from status code if opening
Corinna Vinschen [Mon, 20 Oct 2014 10:29:30 +0000 (10:29 +0000)]
* path.cc (symlink_info::check): Set error from status code if opening
the parent directory failed, but keep special case for root dirs.

9 years ago * libc/time/gmtime_r.c (gmtime_r): Remove dead code.
Corinna Vinschen [Mon, 20 Oct 2014 07:30:17 +0000 (07:30 +0000)]
* libc/time/gmtime_r.c (gmtime_r): Remove dead code.

9 years ago * cygheap.cc (cygheap_fixup_in_child): Call set_dll_dir.
Corinna Vinschen [Fri, 17 Oct 2014 14:36:59 +0000 (14:36 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Call set_dll_dir.
(init_cygheap::init_installation_root): Just memmove contents of
installation_root instead of calling GetModuleFileNameW again.
Copy installation_root to installation_dir before stripping of
"bin" dir.  Don't call SetDllDirectory here.  Explain what we do.
(setup_cygheap): New function taking over initial cygheap setup
from memory_init.  Additionally call set_dll_dir.
* cygheap.h (struct init_cygheap): Add installation_dir member.
(init_cygheap::set_dll_dir): Define.
(setup_cygheap): Declare.
* dcrt0.cc: Throughout drop parameter from memory_init call.
(dll_crt0_0): Call setup_cygheap prior to memory_init.
* dlfcn.cc (dlopen): Change comment to point to the right function.
* shared.cc (memory_init): Drop parameter.  Drop cygheap setup.
* shared_info.h (memory_init): Change declaration accordingly.

9 years agofix typo
Corinna Vinschen [Fri, 17 Oct 2014 13:47:48 +0000 (13:47 +0000)]
fix typo

9 years ago * cygtls.h (__try): Define __l_endtry as block-local label in 32 bit
Corinna Vinschen [Fri, 17 Oct 2014 08:34:51 +0000 (08:34 +0000)]
* cygtls.h (__try): Define __l_endtry as block-local label in 32 bit
case as well.

9 years ago*** empty log message ***
Corinna Vinschen [Fri, 17 Oct 2014 08:33:37 +0000 (08:33 +0000)]
*** empty log message ***

9 years ago * Makefile.in (DLL_OFILES): Add quotactl.o.
Corinna Vinschen [Fri, 17 Oct 2014 08:19:27 +0000 (08:19 +0000)]
* Makefile.in (DLL_OFILES): Add quotactl.o.
* common.din (quotactl): Export.
* ntdll.h: Define FILE_FS_CONTROL_INFORMATION::FileSystemControlFlags
flag values.
(struct _FILE_FS_CONTROL_INFORMATION): Define.
(struct _FILE_GET_QUOTA_INFORMATION): Define.
(typedef struct _FILE_QUOTA_INFORMATION): Define.
(NtQueryObject): Use PVOID rather than VOID*.
(NtQueryVolumeInformationFile): Ditto.
(NtQueryQuotaInformationFile): Declare.
(NtSetQuotaInformationFile): Declare.
(NtSetVolumeInformationFile): Declare.
* quotactl.cc: New file implementing quotactl().
* include/sys/mount.h (BLOCK_SIZE): Define.
(BLOCK_SIZE_BITS): Define.
* include/sys/quota.h: New header.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * Makefile.in (DLL_OFILES): Rearrange with one file per line.
Corinna Vinschen [Thu, 16 Oct 2014 15:40:09 +0000 (15:40 +0000)]
* Makefile.in (DLL_OFILES): Rearrange with one file per line.

9 years ago * fhandler_proc.cc (format_proc_partitions): Extend output to print
Corinna Vinschen [Thu, 16 Oct 2014 15:35:10 +0000 (15:35 +0000)]
* fhandler_proc.cc (format_proc_partitions): Extend output to print
the windows mount points the device is mounted on.

9 years ago * libc/unix/getcwd.c (getcwd): Close directory also in case of an error.
Corinna Vinschen [Thu, 16 Oct 2014 15:00:59 +0000 (15:00 +0000)]
* libc/unix/getcwd.c (getcwd): Close directory also in case of an error.

9 years agomerge from gcc
DJ Delorie [Wed, 15 Oct 2014 21:12:58 +0000 (21:12 +0000)]
merge from gcc

9 years ago * fhandler_socket.cc (fhandler_socket::connect): Don't change state
Corinna Vinschen [Tue, 14 Oct 2014 19:43:09 +0000 (19:43 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Don't change state
on WSAEALREADY error.  Change comment accordingly.

9 years ago * cygheap.cc (init_cygheap::init_installation_root): Install Cygwin's
Corinna Vinschen [Tue, 14 Oct 2014 19:14:33 +0000 (19:14 +0000)]
* cygheap.cc (init_cygheap::init_installation_root): Install Cygwin's
installation dir as DLL search path, instead of ".".
* cygheap.h (class cwdstuff): Add parameter names in function
declarations for readability.
(cwdstuff::get): Ad inline implementation fetching the CWD as wide char
string.
* dlfcn.cc (dlopen): Add searching for dependent DLLs in DLL
installation dir or CWD, if all else failed.
Add comment to explain scenarios this is accommodating.

9 years ago * fhandler_socket.cc (fhandler_socket::connect): Init connect_state to
Corinna Vinschen [Tue, 14 Oct 2014 19:08:27 +0000 (19:08 +0000)]
* fhandler_socket.cc (fhandler_socket::connect): Init connect_state to
connect_pending only on unconnected socket.  Set connect_state to
connected on WSAEISCONN error.  Set connect_state to connect_failed
on any other error except WSAEWOULDBLOCK if connect is still pending.
Add lots of comment to explain why all of the above.

9 years agomerge from gcc
DJ Delorie [Tue, 14 Oct 2014 18:02:03 +0000 (18:02 +0000)]
merge from gcc

9 years ago * net.cc (cygwin_setsockopt): Drop redundant test for AF_LOCAL and
Corinna Vinschen [Mon, 13 Oct 2014 08:18:18 +0000 (08:18 +0000)]
* net.cc (cygwin_setsockopt): Drop redundant test for AF_LOCAL and
SOCK_STREAM in SO_PEERCRED case, as in the original patch.

9 years ago * dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
Corinna Vinschen [Sun, 12 Oct 2014 19:14:07 +0000 (19:14 +0000)]
* dlfcn.cc (gfpod_helper): Only check for POSIX dir separator, same as
in get_full_path_of_dll.

9 years ago * dlfcn.cc (set_dl_error): Drop useless __stdcall.
Corinna Vinschen [Sun, 12 Oct 2014 19:03:52 +0000 (19:03 +0000)]
* dlfcn.cc (set_dl_error): Drop useless __stdcall.
(check_path_access): Ditto.  Drop FE_CWD from call to find_exec.
(gfpod_helper): Call path_conv::check for all paths containing a dir
separator to more closely follow the Linux search algorithm.
(get_full_path_of_dll): Drop useless __stdcall.
(dlopen): Simplify RTLD_NOLOAD case by calling GetModuleHandleEx
instead of GetModuleHandle/LoadLibrary.

9 years ago Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
Corinna Vinschen [Sat, 11 Oct 2014 18:28:04 +0000 (18:28 +0000)]
Add setsockopt(sd, SOL_SOCKET, SO_PEERCRED, NULL, 0) to disable
initial handshake on AF_LOCAL sockets.
* fhandler.h (class fhandler_socket): Add no_getpeereid status flag.
(fhandler_socket::af_local_set_no_getpeereid): New prototype.
* fhandler_socket.cc (fhandler_socket::af_local_connect): Skip handshake
if no_getpeereid is set.  Add debug output.
(fhandler_socket::af_local_accept): Likewise.
(fhandler_socket::af_local_set_no_getpeereid): New function.
(fhandler_socket::af_local_copy): Copy no_getpeereid.
(fhandler_socket::getpeereid): Fail if no_getpeereid is set.
* net.cc (cygwin_setsockopt): Add SO_PEERCRED for AF_LOCAL/SOCK_STREAM
sockets.  Add comment to explain why we need it.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * fhandler_socket.cc (fhandler_socket::af_local_connect): Drop outdated
Corinna Vinschen [Sat, 11 Oct 2014 16:37:29 +0000 (16:37 +0000)]
* fhandler_socket.cc (fhandler_socket::af_local_connect): Drop outdated
comment.
(fhandler_socket::evaluate_events): Only set connect_state and call
af_local_connect if connect_state is connect_pending.  Explain why.
Drop redundant test for socket family and type.
(fhandler_socket::connect): Extend comment.

9 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Handle
Corinna Vinschen [Sat, 11 Oct 2014 12:14:29 +0000 (12:14 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Handle
connect_state and af_local_connect connect call here, once, independent
of FD_CONNECT being requested.  Add comment to explain why.
(fhandler_socket::connect): Drop connect_state handling and calling
af_local_connect.  Move remaining AF_LOCAL stuff prior  to calling
::connect and explain why.  Simplify error case.
* poll.cc (poll): Handle connect state independently of POLLOUT being
requested for the descriptor to allow setting POLLIN if connect failed.
Add comment.
* select.cc (set_bits): Drop connect_state and AF_LOCAL handling here.

9 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Slightly
Corinna Vinschen [Sat, 11 Oct 2014 10:50:36 +0000 (10:50 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Slightly
rearrange code.  Rephrase a comment.

9 years ago * dlfcn.cc (dlopen): Disable old 32 bit code on 64 bit.
Corinna Vinschen [Fri, 10 Oct 2014 15:29:18 +0000 (15:29 +0000)]
* dlfcn.cc (dlopen): Disable old 32 bit code on 64 bit.
* dcrt0.cc (check_sanity_and_sync): Ditto.
* dll_init.cc (dll_dllcrt0_1): Fix typo in comment.

9 years ago * libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.
Corinna Vinschen [Fri, 10 Oct 2014 14:43:19 +0000 (14:43 +0000)]
* libc/include/_ansi.h: _LONG_LONG_TYPE definition removed.
* libc/include/math.h: _LONG_LONG_TYPE replaced by "long long".
Guards for C99 and C++11 functions fixed.
* libc/include/stdlib.h: Guards for C99 and C++11 functions fixed.

9 years ago * fhandler_procsys.cc (fhandler_procsys::readdir): Just test
Corinna Vinschen [Thu, 9 Oct 2014 17:45:27 +0000 (17:45 +0000)]
* fhandler_procsys.cc (fhandler_procsys::readdir): Just test
ObjectTypeName for object types rather than calling lstat to avoid
performance hit.
* globals.cc (ro_u_natdir): Define.
(ro_u_natsyml): Define.
(ro_u_natdev): Define.

9 years ago2014-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Thu, 9 Oct 2014 15:57:50 +0000 (15:57 +0000)]
2014-10-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>

        * libc/include/stdint.h: Include <sys/_intsup.h>.
        (__STDINT_EXP): Delete.
        (__have_long32): Likewise.
        (__have_long64): Likewise.
        (__have_longlong64): Likewise.
        * libc/include/sys/_intsup.h: New file.
        (__STDINT_EXP): Move from libc/include/stdint.h.
        (__have_long32): Likewise.
        (__have_long64): Likewise.
        (__have_longlong64): Likewise.
        * libc/include/inttypes.h: Include <sys/_intsup.h>.
        (__INTTYPES_EXP): Delete and use __STDINT_EXP() instead.

9 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type
Corinna Vinschen [Thu, 9 Oct 2014 13:32:59 +0000 (13:32 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set d_type
for virtual directories.

9 years ago * fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.
Corinna Vinschen [Thu, 9 Oct 2014 13:24:37 +0000 (13:24 +0000)]
* fhandler_proc.cc (fhandler_proc::readdir): Set dirent d_type.
* fhandler_process.cc (fhandler_process::readdir): Ditto.
* fhandler_procnet.cc (fhandler_procnet::readdir): Ditto.
* fhandler_procsys.cc (fhandler_procsys::readdir): Ditto.
* fhandler_procsysvipc.cc (fhandler_procsysvipc::readdir): Ditto.
*  fhandler_virtual.h (virt_ftype_to_dtype): Define new inline function
to generate dirent d_type from virtual_ftype_t.

9 years ago * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
Corinna Vinschen [Thu, 9 Oct 2014 12:24:56 +0000 (12:24 +0000)]
* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
comparison
* libc/string/memchr.c (memchr): Ditto.
* libc/string/memrchr.c (memrchr): Ditto.
* libc/string/memset.c: (memset): Ditto.
* libc/string/rawmemchr.c (rawmemchr): Ditto.
* libc/string/local.h (__locale_cjk_lang): Fix "function declaration
isn't a prototype" warning.
* libc/string/strcasestr.c (strcasestr): Ditto.
* libc/string/u_strerr.c (_user_strerror): Fix "unused parameter"
warnings.
* libc/string/rawmemchr.c (rawmemchr): Fix comment type
"// ..." -> "/* ... */".

9 years agoAdd accidentally missing ChangeLog for latest change.
Corinna Vinschen [Thu, 9 Oct 2014 08:31:34 +0000 (08:31 +0000)]
Add accidentally missing ChangeLog for latest change.

9 years ago2014-10-08 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Wed, 8 Oct 2014 22:29:52 +0000 (22:29 +0000)]
2014-10-08  Steve Ellcey  <sellcey@mips.com>

* newlib/libc/machine/mips/strcmp.c: Remove.
* newlib/libc/machine/mips/strcmp.S: New.
* newlib/libc/machine/mips/Makefile.am (lib_a_SOURCES):
Replace strcmp.c with strcmp.S
* newlib/libc/machine/mips/Makefile.in: Regenerate.

9 years ago * libc/include/string.h (ffsl): Declare as GNU function.
Corinna Vinschen [Wed, 8 Oct 2014 21:04:59 +0000 (21:04 +0000)]
* libc/include/string.h (ffsl): Declare as GNU function.
(ffsll): Ditto.

9 years ago * common.din (ffsl): Export.
Corinna Vinschen [Wed, 8 Oct 2014 21:03:40 +0000 (21:03 +0000)]
* common.din (ffsl): Export.
(ffsll): Export.
* syscalls.cc (ffs): Implement using GCC intrinsic.
(ffsl): Ditto.
(ffsll): Ditto.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

9 years ago * syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.
Corinna Vinschen [Wed, 8 Oct 2014 16:34:31 +0000 (16:34 +0000)]
* syscall.cc (ffs): Fix crash of ffs (0x80000000) on 64 bit.

9 years ago * fhandler_process.cc (format_process_statm): Fix output of dirty
Corinna Vinschen [Wed, 8 Oct 2014 15:25:52 +0000 (15:25 +0000)]
* fhandler_process.cc (format_process_statm): Fix output of dirty
pages.  Add linefeed.

9 years agoFix typo
Corinna Vinschen [Wed, 8 Oct 2014 14:41:44 +0000 (14:41 +0000)]
Fix typo

9 years agomerge from gcc
DJ Delorie [Sun, 28 Sep 2014 17:46:07 +0000 (17:46 +0000)]
merge from gcc

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