diff options
-rw-r--r-- | lib/libc/sys/stat.2 | 6 | ||||
-rw-r--r-- | sys/sys/stat.h | 4 | ||||
-rw-r--r-- | usr.bin/kdump/ktrstruct.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2 index 428086c3848..ba973017fe1 100644 --- a/lib/libc/sys/stat.2 +++ b/lib/libc/sys/stat.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: stat.2,v 1.41 2014/08/22 23:05:15 krw Exp $ +.\" $OpenBSD: stat.2,v 1.42 2014/11/20 18:44:10 krw Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)stat.2 8.3 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: August 22 2014 $ +.Dd $Mdocdate: November 20 2014 $ .Dt STAT 2 .Os .Sh NAME @@ -142,7 +142,7 @@ struct stat { struct timespec st_ctim; /* time of last file status change */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ - u_int32_t st_blksize;/* optimal blocksize for I/O */ + blksize_t st_blksize;/* optimal blocksize for I/O */ u_int32_t st_flags; /* user defined flags for file */ u_int32_t st_gen; /* file generation number */ }; diff --git a/sys/sys/stat.h b/sys/sys/stat.h index fc8b6393efc..8dd006565a0 100644 --- a/sys/sys/stat.h +++ b/sys/sys/stat.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stat.h,v 1.25 2014/08/22 23:05:15 krw Exp $ */ +/* $OpenBSD: stat.h,v 1.26 2014/11/20 18:44:10 krw Exp $ */ /* $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $ */ /*- @@ -64,7 +64,7 @@ struct stat { #endif /* __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE */ off_t st_size; /* file size, in bytes */ blkcnt_t st_blocks; /* blocks allocated for file */ - u_int32_t st_blksize; /* optimal blocksize for I/O */ + blksize_t st_blksize; /* optimal blocksize for I/O */ u_int32_t st_flags; /* user defined flags for file */ u_int32_t st_gen; /* file generation number */ #if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE diff --git a/usr.bin/kdump/ktrstruct.c b/usr.bin/kdump/ktrstruct.c index 6d7fc99005b..09e303cbd71 100644 --- a/usr.bin/kdump/ktrstruct.c +++ b/usr.bin/kdump/ktrstruct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ktrstruct.c,v 1.6 2014/10/13 03:46:33 guenther Exp $ */ +/* $OpenBSD: ktrstruct.c,v 1.7 2014/11/20 18:44:10 krw Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -197,7 +197,7 @@ ktrstat(const struct stat *statp) print_timespec(&statp->st_mtim, 0); printf(", ctime="); print_timespec(&statp->st_ctim, 0); - printf(", size=%lld, blocks=%lld, blksize=%u, flags=0x%x, gen=0x%x", + printf(", size=%lld, blocks=%lld, blksize=%d, flags=0x%x, gen=0x%x", statp->st_size, statp->st_blocks, statp->st_blksize, statp->st_flags, statp->st_gen); printf(" }\n"); |