* Create a new process decriptor for the process that refers to it. */
| 234 | * Create a new process decriptor for the process that refers to it. |
| 235 | */ |
| 236 | int |
| 237 | procdesc_falloc(struct thread *td, struct file **resultfp, int *resultfd, |
| 238 | int flags, struct filecaps *fcaps) |
| 239 | { |
| 240 | int fflags; |
| 241 | |
| 242 | fflags = 0; |
| 243 | if (flags & PD_CLOEXEC) |
| 244 | fflags = O_CLOEXEC; |
| 245 | |
| 246 | return (falloc_caps(td, resultfp, resultfd, fflags, fcaps)); |
| 247 | } |
| 248 | |
| 249 | /* |
| 250 | * Initialize a file with a process descriptor. |