Lines Matching defs:error
363 int indx, error;
389 error = copyinstr(uap->name, (void *)pnbuf, MAXPATHLEN, &pathlen);
390 if (error) {
395 error = ENAMETOOLONG;
405 error = EINVAL;
409 error = EINVAL;
425 error = pshm_cache_search(&pinfo, &nd, &pcache);
427 if (error == ENOENT) {
429 error = EINVAL;
433 if (!error) {
440 error = EINVAL;
450 error = falloc(p, &nfp, &indx, vfs_context_current());
451 if (error )
469 error = EEXIST;
478 error = ENOSPC;
494 error = mac_posixshm_check_create(kauth_cred_get(), nameptr);
495 if (error) {
505 error = ENOENT;
511 if ((error = mac_posixshm_check_open(
517 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) {
526 error = ENOENT;
531 error = ENOENT;
535 if ((error = mac_posixshm_check_open(
542 if ( (error = pshm_access(pinfo, fmode, kauth_cred_get(), p)) ) {
549 error = EINVAL;
561 error = ENOSPC;
572 error = ENOSPC;
580 if ( (error = pshm_cache_add(pinfo, &nd, pcp)) ) {
618 return (error);
633 int error;
655 error = mac_posixshm_check_truncate(kauth_cred_get(), pinfo, size);
656 if (error) {
658 return(error);
703 int error;
713 error = mac_posixshm_check_stat(kauth_cred_get(), pinfo);
714 if (error) {
716 return(error);
798 int error;
839 error = mac_posixshm_check_mmap(kauth_cred_get(), pinfo, prot, flags);
840 if (error) {
842 return(error);
905 int error=0;
922 error = copyinstr(uap->name, (void *)pnbuf, MAXPATHLEN, &pathlen);
923 if (error) {
928 error = ENAMETOOLONG;
938 error = EINVAL;
942 error = EINVAL;
958 error = pshm_cache_search(&pinfo, &nd, &pcache);
960 if (error == ENOENT) {
962 error = EINVAL;
966 if (!error) {
968 error = EINVAL;
975 error = EINVAL;
981 error = 0;
985 error = mac_posixshm_check_unlink(kauth_cred_get(), pinfo, nameptr);
986 if (error) {
1019 error = 0;
1022 return (error);
1029 int error=0;
1060 return (error);
1067 int error;
1070 error = pshm_close(((struct pshmnode *)fg->fg_data));
1072 return(error);