- u.u_ofile[n]->f_count++;
- if(!isvfork && u.u_vrpages[n])
- u.u_ofile[n]->f_inode->i_vfdcnt++;
+#ifdef UCBIPC
+ if (u.u_pofile[n] & ISPORT)
+ u.u_oport[n]->pt_count++;
+ else {
+#endif
+ u.u_ofile[n]->f_count++;
+ if(!isvfork && u.u_vrpages[n])
+ u.u_ofile[n]->f_inode->i_vfdcnt++;
+#ifdef UCBIPC
+ }
+#endif UCBIPC