diff options
| author | 2009-01-29 22:08:45 +0000 | |
|---|---|---|
| committer | 2009-01-29 22:08:45 +0000 | |
| commit | 4044e99f272942e1232630a17df045c3ce34c154 (patch) | |
| tree | 74571b2271fa92bb31dd0edbfcb39dc5c7641add /sys/kern/sys_pipe.c | |
| parent | Implement "smtpctl show stats"; ok gilles@ (diff) | |
| download | wireguard-openbsd-4044e99f272942e1232630a17df045c3ce34c154.tar.xz wireguard-openbsd-4044e99f272942e1232630a17df045c3ce34c154.zip | |
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/sys_pipe.c')
| -rw-r--r-- | sys/kern/sys_pipe.c | 8 |
1 files changed, 4 insertions, 4 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; /* |
