* Implementation of the NetBSD [l]stat() functions. */
| 2423 | * Implementation of the NetBSD [l]stat() functions. |
| 2424 | */ |
| 2425 | void |
| 2426 | freebsd11_cvtnstat(struct stat *sb, struct nstat *nsb) |
| 2427 | { |
| 2428 | |
| 2429 | bzero(nsb, sizeof(*nsb)); |
| 2430 | nsb->st_dev = sb->st_dev; |
| 2431 | nsb->st_ino = sb->st_ino; |
| 2432 | nsb->st_mode = sb->st_mode; |
| 2433 | nsb->st_nlink = sb->st_nlink; |
| 2434 | nsb->st_uid = sb->st_uid; |
| 2435 | nsb->st_gid = sb->st_gid; |
| 2436 | nsb->st_rdev = sb->st_rdev; |
| 2437 | nsb->st_atim = sb->st_atim; |
| 2438 | nsb->st_mtim = sb->st_mtim; |
| 2439 | nsb->st_ctim = sb->st_ctim; |
| 2440 | nsb->st_size = sb->st_size; |
| 2441 | nsb->st_blocks = sb->st_blocks; |
| 2442 | nsb->st_blksize = sb->st_blksize; |
| 2443 | nsb->st_flags = sb->st_flags; |
| 2444 | nsb->st_gen = sb->st_gen; |
| 2445 | nsb->st_birthtim = sb->st_birthtim; |
| 2446 | } |
| 2447 | |
| 2448 | #ifndef _SYS_SYSPROTO_H_ |
| 2449 | struct freebsd11_nstat_args { |
no test coverage detected