| 1807 | } |
| 1808 | |
| 1809 | static int |
| 1810 | kern_funlinkat_ex(struct thread *td, int dfd, const char *path, int fd, |
| 1811 | int flag, enum uio_seg pathseg, ino_t oldinum) |
| 1812 | { |
| 1813 | |
| 1814 | if ((flag & ~AT_REMOVEDIR) != 0) |
| 1815 | return (EINVAL); |
| 1816 | |
| 1817 | if ((flag & AT_REMOVEDIR) != 0) |
| 1818 | return (kern_frmdirat(td, dfd, path, fd, UIO_USERSPACE, 0)); |
| 1819 | |
| 1820 | return (kern_funlinkat(td, dfd, path, fd, UIO_USERSPACE, 0, 0)); |
| 1821 | } |
| 1822 | |
| 1823 | #ifndef _SYS_SYSPROTO_H_ |
| 1824 | struct unlinkat_args { |
no test coverage detected