add ukfs_utimes() and ukfs_lutimes()

from Arnaud Ysmal
This commit is contained in:
pooka 2008-07-07 09:07:18 +00:00
parent 1a7f1d4a4e
commit 37d1079aad
2 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukfs.c,v 1.29 2008/07/01 13:09:44 pooka Exp $ */
/* $NetBSD: ukfs.c,v 1.30 2008/07/07 09:07:18 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -532,3 +532,18 @@ ukfs_lchflags(struct ukfs *ukfs, const char *filename, u_long flags)
STDCALL(ukfs, rump_sys_lchflags(filename, flags, &rv));
}
int
ukfs_utimes(struct ukfs *ukfs, const char *filename, const struct timeval *tptr)
{
STDCALL(ukfs, rump_sys_utimes(filename, tptr, &rv));
}
int
ukfs_lutimes(struct ukfs *ukfs, const char *filename,
const struct timeval *tptr)
{
STDCALL(ukfs, rump_sys_lutimes(filename, tptr, &rv));
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ukfs.h,v 1.10 2008/07/01 13:09:44 pooka Exp $ */
/* $NetBSD: ukfs.h,v 1.11 2008/07/07 09:07:18 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -84,6 +84,11 @@ int ukfs_lchown(struct ukfs *, const char *, uid_t, gid_t);
int ukfs_chflags(struct ukfs *, const char *, u_long);
int ukfs_lchflags(struct ukfs *, const char *, u_long);
int ukfs_utimes(struct ukfs *, const char *,
const struct timeval *);
int ukfs_lutimes(struct ukfs *, const char *,
const struct timeval *);
struct mount *ukfs_getmp(struct ukfs *);
struct vnode *ukfs_getrvp(struct ukfs *);