| 2501 | }; |
| 2502 | #endif |
| 2503 | int |
| 2504 | sys_pathconf(struct thread *td, struct pathconf_args *uap) |
| 2505 | { |
| 2506 | long value; |
| 2507 | int error; |
| 2508 | |
| 2509 | error = kern_pathconf(td, uap->path, UIO_USERSPACE, uap->name, FOLLOW, |
| 2510 | &value); |
| 2511 | if (error == 0) |
| 2512 | td->td_retval[0] = value; |
| 2513 | return (error); |
| 2514 | } |
| 2515 | |
| 2516 | #ifndef _SYS_SYSPROTO_H_ |
| 2517 | struct lpathconf_args { |
nothing calls this directly
no test coverage detected