| 2429 | } |
| 2430 | |
| 2431 | int |
| 2432 | sys_kmq_notify(struct thread *td, struct kmq_notify_args *uap) |
| 2433 | { |
| 2434 | struct sigevent ev, *evp; |
| 2435 | int error; |
| 2436 | |
| 2437 | if (uap->sigev == NULL) { |
| 2438 | evp = NULL; |
| 2439 | } else { |
| 2440 | error = copyin(uap->sigev, &ev, sizeof(ev)); |
| 2441 | if (error != 0) |
| 2442 | return (error); |
| 2443 | evp = &ev; |
| 2444 | } |
| 2445 | return (kern_kmq_notify(td, uap->mqd, evp)); |
| 2446 | } |
| 2447 | |
| 2448 | static void |
| 2449 | mqueue_fdclose(struct thread *td, int fd, struct file *fp) |
no test coverage detected