Home
last modified time | relevance | path

Searched refs:new_policy (Results 1 – 20 of 20) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
D4-1.c23 int old_policy, new_policy, test_policy; in main() local
38 new_policy = (old_policy == SCHED_FIFO) ? SCHED_RR : SCHED_FIFO; in main()
41 max_prio = sched_get_priority_max(new_policy); in main()
44 (param.sched_priority = sched_get_priority_min(new_policy)) : in main()
47 result = sched_setscheduler(0, new_policy, &param); in main()
61 test_policy == new_policy) { in main()
D17-2.c34 int old_priority, old_policy, new_policy; in main() local
66 new_policy = sched_getscheduler(getpid()); in main()
67 if (new_policy == -1) { in main()
72 if (old_policy == new_policy && old_priority == param.sched_priority) { in main()
80 if (new_policy != old_policy) { in main()
D15-1.c33 int new_policy, policy, result; in main() local
39 new_policy = (sched_getscheduler(getpid()) == SCHED_FIFO) ? in main()
59 param.sched_priority = sched_get_priority_min(new_policy); in main()
60 if (sched_setscheduler(getpid(), new_policy, &param) == -1) { in main()
77 if (policy == new_policy) { in main()
D17-4.c33 int max_priority, old_priority, old_policy, new_policy; in main() local
62 new_policy = sched_getscheduler(getpid()); in main()
63 if (new_policy == -1) { in main()
68 if (old_policy == new_policy && old_priority == param.sched_priority) { in main()
77 if (new_policy != old_policy) { in main()
D17-3.c34 int old_priority, old_policy, new_policy; in main() local
65 new_policy = sched_getscheduler(getpid()); in main()
66 if (new_policy == -1) { in main()
71 if (old_policy == new_policy && old_priority == param.sched_priority) { in main()
79 if (new_policy != old_policy) { in main()
D22-1.c33 int new_policy, policy, result; in main() local
44 new_policy = (sched_getscheduler(getpid()) == SCHED_FIFO) ? in main()
47 param.sched_priority = sched_get_priority_min(new_policy); in main()
48 if (sched_setscheduler(getpid(), new_policy, &param) == -1) { in main()
82 if (policy == new_policy) { in main()
D17-7.c33 int max_priority, old_priority, old_policy, new_policy, policy; in main() local
80 new_policy = sched_getscheduler(getpid()); in main()
81 if (new_policy == -1) { in main()
86 if (old_policy == new_policy && old_priority == param.sched_priority) { in main()
94 if (new_policy != old_policy) { in main()
D17-6.c63 int max_priority, old_priority, old_policy, new_policy, policy; in main() local
103 new_policy = sched_getscheduler(getpid()); in main()
104 if (new_policy == -1) { in main()
109 if (old_policy == new_policy && old_priority == param.sched_priority) { in main()
117 if (new_policy != old_policy) { in main()
D17-1.c48 int old_priority, old_policy, new_policy; in main() local
91 new_policy = sched_getscheduler(getpid()); in main()
92 if (new_policy == -1) { in main()
98 if (old_policy == new_policy && in main()
105 if (new_policy != old_policy) { in main()
D16-1.c27 int result, old_policy, new_policy; in main() local
37 new_policy = (old_policy == SCHED_FIFO) ? SCHED_RR : SCHED_FIFO; in main()
39 param.sched_priority = sched_get_priority_max(new_policy); in main()
40 result = sched_setscheduler(0, new_policy, &param); in main()
D17-5.c38 int old_priority, old_policy, new_policy; in main() local
73 new_policy = rc; in main()
75 if (old_policy != new_policy) { in main()
77 old_policy, new_policy); in main()
/third_party/libsoup/libsoup/
Dsoup-hsts-enforcer-db.c255 SoupHSTSPolicy *new_policy) in soup_hsts_enforcer_db_changed() argument
262 (new_policy && soup_hsts_policy_is_session_policy (new_policy))) in soup_hsts_enforcer_db_changed()
270 if (old_policy && !new_policy) { in soup_hsts_enforcer_db_changed()
279 if (new_policy && new_policy->expires) { in soup_hsts_enforcer_db_changed()
282 expires = (gulong)soup_date_to_time_t (new_policy->expires); in soup_hsts_enforcer_db_changed()
284 new_policy->domain, in soup_hsts_enforcer_db_changed()
285 new_policy->domain, in soup_hsts_enforcer_db_changed()
286 new_policy->max_age, in soup_hsts_enforcer_db_changed()
288 new_policy->include_subdomains); in soup_hsts_enforcer_db_changed()
Dsoup-hsts-enforcer.c267 SoupHSTSPolicy *new_policy) in soup_hsts_enforcer_replace_policy() argument
274 g_assert (!soup_hsts_policy_is_expired (new_policy)); in soup_hsts_enforcer_replace_policy()
276 domain = soup_hsts_policy_get_domain (new_policy); in soup_hsts_enforcer_replace_policy()
277 is_session_policy = soup_hsts_policy_is_session_policy (new_policy); in soup_hsts_enforcer_replace_policy()
285 g_hash_table_replace (policies, g_strdup (domain), soup_hsts_policy_copy (new_policy)); in soup_hsts_enforcer_replace_policy()
286 if (!soup_hsts_policy_equal (old_policy, new_policy)) in soup_hsts_enforcer_replace_policy()
287 soup_hsts_enforcer_changed (hsts_enforcer, old_policy, new_policy); in soup_hsts_enforcer_replace_policy()
Dsoup-hsts-enforcer.h50 SoupHSTSPolicy *new_policy);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/
D2-1.c36 int new_policy; in thread_func() local
42 rc = pthread_getschedparam(self, &new_policy, &param); in thread_func()
47 if (new_policy == policy) { in thread_func()
D2-2.c42 int new_policy; in thread_func() local
48 rc = pthread_getschedparam(self, &new_policy, &param); in thread_func()
53 if (new_policy == old_policy) { in thread_func()
/third_party/openssl/crypto/ts/
Dts_req_utils.c81 ASN1_OBJECT *new_policy; in TS_REQ_set_policy_id() local
85 new_policy = OBJ_dup(policy); in TS_REQ_set_policy_id()
86 if (new_policy == NULL) { in TS_REQ_set_policy_id()
91 a->policy_id = new_policy; in TS_REQ_set_policy_id()
Dts_rsp_utils.c70 ASN1_OBJECT *new_policy; in TS_TST_INFO_set_policy_id() local
74 new_policy = OBJ_dup(policy); in TS_TST_INFO_set_policy_id()
75 if (new_policy == NULL) { in TS_TST_INFO_set_policy_id()
80 a->policy_id = new_policy; in TS_TST_INFO_set_policy_id()
/third_party/boost/boost/math/special_functions/
Dcbrt.hpp117 …typedef typename policies::normalise<Policy, policies::digits2<new_prec::value> >::type new_policy; in cbrt_imp() typedef
122 …T eps = (new_prec::value > 3) ? policies::get_epsilon<T, new_policy>() : ldexp(T(1), -2 - tools::d… in cbrt_imp()
/third_party/python/Lib/test/test_email/
Dtest_policy.py46 new_policy = email.policy.EmailPolicy() variable in PolicyAPITests
60 new_policy: make_defaults(policy_defaults, {}),
64 policies[new_policy]['header_factory'] = new_policy.header_factory