Displaying 12 results from an estimated 12 matches for "oldmask".
Did you mean:
old_mask
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...rgv, path, idx);
+ /* NOTREACHED */
+ }
+
+ vforked = 0;
+ sigclearmask();
+ forkparent(jp, n, FORK_FG, pid);
+
+ return jp;
+}
+
/*
* Wait for job to finish.
*
@@ -1105,7 +1152,7 @@ static int dowait(int block, struct job *jp)
STATIC int
waitproc(int block, int *status)
{
- sigset_t mask, oldmask;
+ sigset_t oldmask;
int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG;
int err;
@@ -1119,8 +1166,7 @@ waitproc(int block, int *status)
if (err || (err = -!block))
break;
- sigfillset(&mask);
- sigprocmask(SIG_SETMASK, &mask, &oldmask);
+ sigblockall(&oldmask);...
2003 Sep 10
1
Patch for auto-creating home directories
...rc/master/mail-process.c.orig Wed Sep 10 10:14:04 2003
--- ./src/master/mail-process.c Wed Sep 10 12:16:06 2003
***************
*** 95,100 ****
--- 95,136 ----
return str_c(str);
}
+ static int create_directories(const char *directory, mode_t mask) + {
+ char *chunk, *slash, *path;
+ mode_t oldmask;
+ int result;
+
+ if (mkdir(directory, 0777) == 0 || errno == EEXIST)
+ return TRUE;
+
+ if (errno != ENOENT)
+ return FALSE;
+
+ path = t_strdup_noconst(directory);
+
+ oldmask = umask(mask);
+
+ for (chunk = path; (slash = strchr(chunk, '/')); chunk = slash + 1) {
+
+ if (sla...
2019 Jan 25
0
[klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
...--- a/usr/dash/jobs.c
+++ b/usr/dash/jobs.c
@@ -647,7 +647,7 @@ out:
return retval;
sigout:
- retval = 128 + pendingsigs;
+ retval = 128 + pending_sig;
goto out;
}
@@ -1146,7 +1146,7 @@ waitproc(int block, int *status)
sigfillset(&mask);
sigprocmask(SIG_SETMASK, &mask, &oldmask);
- while (!gotsigchld && !pendingsigs)
+ while (!gotsigchld && !pending_sig)
sigsuspend(&oldmask);
sigclearmask();
diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c
index c47fdbf8..fc14dc4b 100644
--- a/usr/dash/miscbltin.c
+++ b/usr/dash/miscbltin.c
@@ -207...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
...--- a/usr/dash/jobs.c
+++ b/usr/dash/jobs.c
@@ -647,7 +647,7 @@ out:
return retval;
sigout:
- retval = 128 + pendingsigs;
+ retval = 128 + pending_sig;
goto out;
}
@@ -1146,7 +1146,7 @@ waitproc(int block, int *status)
sigfillset(&mask);
sigprocmask(SIG_SETMASK, &mask, &oldmask);
- while (!gotsigchld && !pendingsigs)
+ while (!gotsigchld && !pending_sig)
sigsuspend(&oldmask);
sigclearmask();
diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c
index c47fdbf8..fc14dc4b 100644
--- a/usr/dash/miscbltin.c
+++ b/usr/dash/miscbltin.c
@@ -207...
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Only clear gotsigchld when waiting for everything
...ock, int *status)
@@ -1145,13 +1116,10 @@ waitproc(int block, int *status)
#endif
do {
- gotsigchld = 0;
err = wait3(status, flags, NULL);
- if (err || !block)
+ if (err || (err = -!block))
break;
- block = 0;
-
sigfillset(&mask);
sigprocmask(SIG_SETMASK, &mask, &oldmask);
@@ -1159,6 +1127,8 @@ waitproc(int block, int *status)
sigsuspend(&oldmask);
sigclearmask();
+
+ err = 0;
} while (gotsigchld);
return err;
2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
...di = 4583440, sc_esi = 4583424, sc_ebp =
1078935716, sc_esp = 1078935700, sc_ebx = 1074829380, sc_edx = 4583424,
sc_ecx = 3117568, sc_eax = 14, sc_trapno = 14, sc_err = 4, sc_eip =
1074344288, sc_cs = 35, __csh = 0, sc_eflags = 66050, esp_at_signal =
1078935700, sc_ss = 43, __ssh = 0, i387 = 0, oldmask = 0, cr2 =
4583436}) at signal_i386.c:882
#3 <signal handler called>
#4 find_entry_by_id (dir=0x45f000, id=14, root=0x45f000) at
pe_resource.c:83
#5 0x4009322e in find_entry_by_nameW (dir=0x45f000, name=0xe,
root=0x45f000)
at pe_resource.c:115
#6 0x400934b4 in PE_FindResourceW (hm...
2007 Nov 02
0
[cpfreq][PATCH][2/2] Linux support for the architectural pstate driver
...ith_pending_wait(data))
goto out;
- khz = find_khz_freq_from_fid(data->currfid);
+ if (cpu_family == CPU_HW_PSTATE)
+ khz = find_khz_freq_from_pstate(data->powernow_table, data->currpstate);
+ else
+ khz = find_khz_freq_from_fid(data->currfid);
out:
set_cpus_allowed(current, oldmask);
diff -r d827dfc6593e kernel/cpu.c
--- a/kernel/cpu.c Thu Nov 01 09:07:45 2007 -0600
+++ b/kernel/cpu.c Fri Nov 02 16:41:22 2007 -0500
@@ -48,7 +48,10 @@ EXPORT_SYMBOL_GPL(lock_cpu_hotplug);
void unlock_cpu_hotplug(void)
{
+/* cpufreq lock-takers fixed in mainline; shut up until dom0 kernel ca...
2007 Aug 29
39
[PATCH] 1/2: cpufreq/PowerNow! in Xen: Time and platform changes
...REQ
+/*
+ * cpufreq scaling handling
+ */
+static int time_cpufreq_notifier(struct notifier_block *nb, unsigned long val,
+ void *data)
+{
+ struct cpufreq_freqs *freq = data;
+ struct vcpu_time_info *info = &vcpu_info(freq->cpu)->time;
+ struct xen_platform_op op;
+ cpumask_t oldmask;
+ unsigned int cpu;
+
+ if (cpu_has(&cpu_data[freq->cpu], X86_FEATURE_CONSTANT_TSC))
+ return 0;
+
+ if (val == CPUFREQ_PRECHANGE)
+ return 0;
+
+ /* change the frequency inside the hypervisor */
+ oldmask = current->cpus_allowed;
+ set_cpus_allowed(current, cpumask_of_cpu(freq->cpu...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in:
https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html
Rich.
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...les.
+ *)
"report file system disk space usage (human readable)",
"\
This command runs the C<df -h> command to report disk space used
@@ -2821,8 +2821,8 @@ It is just a convenient wrapper around C<guestfs_mknod>.");
("umask", (RInt "oldmask", [Int "mask"]), 137, [],
[], (* XXX umask is one of those stateful things that we should
- * reset between each test.
- *)
+ * reset between each test.
+ *)
"set file mode creation mask (umask)",
"\
This function sets the mask used for creat...
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files.
Rich.
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.