diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-09 10:25:30 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-09 10:25:30 +0000 |
| commit | 90fb336860fa6b1b93b0db1f02cf7f73e3577c57 (patch) | |
| tree | 3579751b072f88b9e4c864c92dfb4ddf11087cf2 | |
| parent | 0510491458ce47578cbb3fe66bbed3e2d9fac9e4 (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_stats.c | 4 | ||||
| -rw-r--r-- | sys/i386/linux/linux_stats.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index dc9090bfcfce..8e9db81a3fdb 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_stats.c,v 1.9 1997/11/06 19:29:04 phk Exp $ + * $Id: linux_stats.c,v 1.10 1999/05/06 18:44:28 peter Exp $ */ #include <sys/param.h> @@ -74,7 +74,7 @@ newstat_copyout(struct stat *buf, void *ubuf) { struct linux_newstat tbuf; - tbuf.stat_dev = (buf->st_dev & 0xff) | ((buf->st_dev & 0xff00)<<10); + tbuf.stat_dev = minor(buf->st_dev) | (major(buf->st_dev) << 10); tbuf.stat_ino = buf->st_ino; tbuf.stat_mode = buf->st_mode; tbuf.stat_nlink = buf->st_nlink; diff --git a/sys/i386/linux/linux_stats.c b/sys/i386/linux/linux_stats.c index dc9090bfcfce..8e9db81a3fdb 100644 --- a/sys/i386/linux/linux_stats.c +++ b/sys/i386/linux/linux_stats.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_stats.c,v 1.9 1997/11/06 19:29:04 phk Exp $ + * $Id: linux_stats.c,v 1.10 1999/05/06 18:44:28 peter Exp $ */ #include <sys/param.h> @@ -74,7 +74,7 @@ newstat_copyout(struct stat *buf, void *ubuf) { struct linux_newstat tbuf; - tbuf.stat_dev = (buf->st_dev & 0xff) | ((buf->st_dev & 0xff00)<<10); + tbuf.stat_dev = minor(buf->st_dev) | (major(buf->st_dev) << 10); tbuf.stat_ino = buf->st_ino; tbuf.stat_mode = buf->st_mode; tbuf.stat_nlink = buf->st_nlink; |
