X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FUKERNEL%2Fosi_machdep.h;h=27667eba618483aa3f0ab49374b01f08a610e650;hp=96e8cb5491c56f1d37d7b64bb9fbf5fb7bf4b078;hb=eccd4b9778014c36a4b3af6d9e80194066bd2195;hpb=a5c3dfe99fa1831e3b416e89f52a03fd1cf9f73d diff --git a/src/afs/UKERNEL/osi_machdep.h b/src/afs/UKERNEL/osi_machdep.h index 96e8cb5..27667eb 100644 --- a/src/afs/UKERNEL/osi_machdep.h +++ b/src/afs/UKERNEL/osi_machdep.h @@ -83,4 +83,14 @@ extern int afs_suser(afs_ucred_t *credp); #define osi_curcred() get_user_struct()->u_cred #define osi_procname(procname, size) strncpy(procname, "(unknown)", size) + +static_inline void +osi_GetTime(osi_timeval32_t *atv) +{ + struct timeval now; + gettimeofday(&now, NULL); + atv->tv_sec = now.tv_sec; + atv->tv_usec = now.tv_usec; +} + #endif /* _OSI_MACHDEP_H_ */