Mercurial > illumos > fmac
comparison usr/src/uts/common/syscall/lgrpsys.c @ 7887:f9ded24b041a
[fmac-discuss] [PATCH] Fix more cstyle issues
Fix more cstyle issues introduced by prior patches, in particular the
hasprocperm patch and the secctx patch.
uts/common/syscall/lgrpsys.c is still not clean with regard to
continuation indentation but the remaining warnings were not introduced
by our patches.
author | Stephen Smalley <sds@tycho.nsa.gov> |
---|---|
date | Fri, 17 Oct 2008 13:28:50 -0400 |
parents | e3677dd00778 |
children |
comparison
equal
deleted
inserted
replaced
7886:2b3705cc2d65 | 7887:f9ded24b041a |
---|---|
343 /* | 343 /* |
344 * Check to see whether caller has permission to set | 344 * Check to see whether caller has permission to set |
345 * affinity for LWP | 345 * affinity for LWP |
346 */ | 346 */ |
347 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), | 347 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), |
348 PROCESS__SETSCHED)) { | 348 PROCESS__SETSCHED)) { |
349 thread_unlock(t); | 349 thread_unlock(t); |
350 return (set_errno(EPERM)); | 350 return (set_errno(EPERM)); |
351 } | 351 } |
352 | 352 |
353 if (t->t_lgrp_affinity) | 353 if (t->t_lgrp_affinity) |
586 /* | 586 /* |
587 * Check to see whether caller has permission to set affinity for | 587 * Check to see whether caller has permission to set affinity for |
588 * thread | 588 * thread |
589 */ | 589 */ |
590 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), | 590 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), |
591 PROCESS__SETSCHED)) { | 591 PROCESS__SETSCHED)) { |
592 thread_unlock(t); | 592 thread_unlock(t); |
593 return (set_errno(EPERM)); | 593 return (set_errno(EPERM)); |
594 } | 594 } |
595 | 595 |
596 if (t->t_lgrp_affinity == NULL) { | 596 if (t->t_lgrp_affinity == NULL) { |
958 /* | 958 /* |
959 * Check to see whether caller has permission to set affinity for | 959 * Check to see whether caller has permission to set affinity for |
960 * thread | 960 * thread |
961 */ | 961 */ |
962 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), | 962 if (t->t_cid == 0 || !hasprocperm(t->t_cred, CRED(), |
963 PROCESS__SETSCHED)) { | 963 PROCESS__SETSCHED)) { |
964 thread_unlock(t); | 964 thread_unlock(t); |
965 return (set_errno(EPERM)); | 965 return (set_errno(EPERM)); |
966 } | 966 } |
967 | 967 |
968 home = lgrp_home_id(t); | 968 home = lgrp_home_id(t); |