MCPcopy Create free account
hub / github.com/F-Stack/f-stack / freebsd11_cvtnstat

Function freebsd11_cvtnstat

freebsd/kern/vfs_syscalls.c:2425–2446  ·  view source on GitHub ↗

* Implementation of the NetBSD [l]stat() functions. */

Source from the content-addressed store, hash-verified

2423 * Implementation of the NetBSD [l]stat() functions.
2424 */
2425void
2426freebsd11_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_
2449struct freebsd11_nstat_args {

Callers 3

freebsd11_nfstatFunction · 0.85
freebsd11_nstatFunction · 0.85
freebsd11_nlstatFunction · 0.85

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected