mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's have
problems with. * path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple exec tests away from filesystem tests.
This commit is contained in:
parent
1698ff392a
commit
cbe5375437
@ -1,3 +1,11 @@
|
|||||||
|
2003-05-30 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* cygheap.cc (init_cheap): Temporarily remove inline that newer gcc's
|
||||||
|
have problems with.
|
||||||
|
|
||||||
|
* path.cc (path_conv::check): Rework has_acls logic slightly. Uncouple
|
||||||
|
exec tests away from filesystem tests.
|
||||||
|
|
||||||
2003-05-30 Corinna Vinschen <corinna@vinschen.de>
|
2003-05-30 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/sys/param.h: Add DEV_BSIZE.
|
* include/sys/param.h: Add DEV_BSIZE.
|
||||||
|
@ -47,7 +47,7 @@ extern "C" {
|
|||||||
static void __stdcall _cfree (void *ptr) __attribute__((regparm(1)));
|
static void __stdcall _cfree (void *ptr) __attribute__((regparm(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static void
|
static void
|
||||||
init_cheap ()
|
init_cheap ()
|
||||||
{
|
{
|
||||||
cygheap = (init_cygheap *) VirtualAlloc ((void *) &_cygheap_start, CYGHEAPSIZE, MEM_RESERVE, PAGE_NOACCESS);
|
cygheap = (init_cygheap *) VirtualAlloc ((void *) &_cygheap_start, CYGHEAPSIZE, MEM_RESERVE, PAGE_NOACCESS);
|
||||||
|
@ -608,9 +608,8 @@ sig_handle_tty_stop (int sig)
|
|||||||
|
|
||||||
myself->stopsig = sig;
|
myself->stopsig = sig;
|
||||||
/* See if we have a living parent. If so, send it a special signal.
|
/* See if we have a living parent. If so, send it a special signal.
|
||||||
* It will figure out exactly which pid has stopped by scanning
|
It will figure out exactly which pid has stopped by scanning
|
||||||
* its list of subprocesses.
|
its list of subprocesses. */
|
||||||
*/
|
|
||||||
if (my_parent_is_alive ())
|
if (my_parent_is_alive ())
|
||||||
{
|
{
|
||||||
pinfo parent (myself->ppid);
|
pinfo parent (myself->ppid);
|
||||||
|
@ -782,32 +782,32 @@ out:
|
|||||||
if (!fs.update (path))
|
if (!fs.update (path))
|
||||||
{
|
{
|
||||||
fs.root_dir[0] = '\0';
|
fs.root_dir[0] = '\0';
|
||||||
set_has_acls (false);
|
set_has_acls (false); // already implied but...
|
||||||
set_has_buggy_open (false);
|
set_has_buggy_open (false); // ditto
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
set_isdisk ();
|
set_isdisk ();
|
||||||
debug_printf ("root_dir(%s), this->path(%s), set_has_acls(%d)",
|
debug_printf ("root_dir(%s), this->path(%s), set_has_acls(%d)",
|
||||||
fs.root_dir, this->path, fs.flags & FS_PERSISTENT_ACLS);
|
fs.root_dir, this->path, fs.flags & FS_PERSISTENT_ACLS);
|
||||||
if (!allow_smbntsec && fs.is_remote_drive)
|
if (!(fs.flags & FS_PERSISTENT_ACLS) || (!allow_smbntsec && fs.is_remote_drive))
|
||||||
set_has_acls (false);
|
set_has_acls (false);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
set_has_acls (fs.flags & FS_PERSISTENT_ACLS);
|
set_has_acls (true);
|
||||||
if (exec_state () != dont_know_if_executable)
|
if (allow_ntsec && wincap.has_security ())
|
||||||
/* ok */;
|
|
||||||
else if (isdir ())
|
|
||||||
set_exec (1);
|
|
||||||
else if (issymlink () || issocket ()
|
|
||||||
|| allow_ntsec && wincap.has_security ())
|
|
||||||
set_exec (0);
|
set_exec (0);
|
||||||
|
|
||||||
}
|
}
|
||||||
/* Known file systems with buggy open calls. Further explanation
|
/* Known file systems with buggy open calls. Further explanation
|
||||||
in fhandler.cc (fhandler_disk_file::open). */
|
in fhandler.cc (fhandler_disk_file::open). */
|
||||||
set_has_buggy_open (strcmp (fs.name, "SUNWNFS") == 0);
|
set_has_buggy_open (strcmp (fs.name, "SUNWNFS") == 0);
|
||||||
}
|
}
|
||||||
|
if (exec_state () != dont_know_if_executable)
|
||||||
|
/* ok */;
|
||||||
|
else if (isdir ())
|
||||||
|
set_exec (1);
|
||||||
|
else if (issymlink () || issocket ())
|
||||||
|
set_exec (0);
|
||||||
}
|
}
|
||||||
if (issocket ())
|
if (issocket ())
|
||||||
devn = FH_SOCKET;
|
devn = FH_SOCKET;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user