diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-01-29 22:08:46 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-01-29 22:08:46 +0000 |
commit | e88d3c0037882f7ae687f760110203fd81083421 (patch) | |
tree | a943c19b7e193a3bcc50dab644519dc3a9bfceb0 /sys/kern | |
parent | 32cf7735bdfdf1d426921ec6fd3a2dde493d74f9 (diff) |
Switch struct stat's timespec members to the names standardized in
POSIX 1003.1-2008, with compatibility macros for the names used in
previous version of OpenBSD. Update all the references in the
kernel to use the new, standard member names.
ok'ed by miod@, otto@; ports build test by naddy@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_pipe.c | 8 | ||||
-rw-r--r-- | sys/kern/uipc_usrreq.c | 8 | ||||
-rw-r--r-- | sys/kern/vfs_vnops.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index ffd6cf150b6..b704e181f58 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.54 2008/07/11 14:12:57 blambert Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.55 2009/01/29 22:08:45 guenther Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -683,9 +683,9 @@ pipe_stat(struct file *fp, struct stat *ub, struct proc *p) ub->st_blksize = pipe->pipe_buffer.size; ub->st_size = pipe->pipe_buffer.cnt; ub->st_blocks = (ub->st_size + ub->st_blksize - 1) / ub->st_blksize; - ub->st_atimespec = pipe->pipe_atime; - ub->st_mtimespec = pipe->pipe_mtime; - ub->st_ctimespec = pipe->pipe_ctime; + ub->st_atim = pipe->pipe_atime; + ub->st_mtim = pipe->pipe_mtime; + ub->st_ctim = pipe->pipe_ctime; ub->st_uid = fp->f_cred->cr_uid; ub->st_gid = fp->f_cred->cr_gid; /* diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index f8792708406..6e5f1c6c4d4 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.43 2008/05/23 15:51:12 thib Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.44 2009/01/29 22:08:45 guenther Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -257,9 +257,9 @@ uipc_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam, ((struct stat *) m)->st_dev = NODEV; if (unp->unp_ino == 0) unp->unp_ino = unp_ino++; - ((struct stat *) m)->st_atimespec = - ((struct stat *) m)->st_mtimespec = - ((struct stat *) m)->st_ctimespec = unp->unp_ctime; + ((struct stat *) m)->st_atim = + ((struct stat *) m)->st_mtim = + ((struct stat *) m)->st_ctim = unp->unp_ctime; ((struct stat *) m)->st_ino = unp->unp_ino; return (0); diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index c8fe70db9b1..39492c2d547 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_vnops.c,v 1.61 2009/01/24 23:25:17 thib Exp $ */ +/* $OpenBSD: vfs_vnops.c,v 1.62 2009/01/29 22:08:45 guenther Exp $ */ /* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */ /* @@ -393,9 +393,9 @@ vn_stat(struct vnode *vp, struct stat *sb, struct proc *p) sb->st_gid = va.va_gid; sb->st_rdev = va.va_rdev; sb->st_size = va.va_size; - sb->st_atimespec = va.va_atime; - sb->st_mtimespec = va.va_mtime; - sb->st_ctimespec = va.va_ctime; + sb->st_atim = va.va_atime; + sb->st_mtim = va.va_mtime; + sb->st_ctim = va.va_ctime; sb->st_blksize = va.va_blocksize; sb->st_flags = va.va_flags; sb->st_gen = va.va_gen; |