From owner-p4-projects@FreeBSD.ORG Sun Aug 13 11:42:49 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 417F416A5CB; Sun, 13 Aug 2006 11:42:48 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A409716A575 for ; Sun, 13 Aug 2006 11:42:48 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E05443D46 for ; Sun, 13 Aug 2006 11:42:48 +0000 (GMT) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7DBgm2j003977 for ; Sun, 13 Aug 2006 11:42:48 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7DBglLV003974 for perforce@freebsd.org; Sun, 13 Aug 2006 11:42:47 GMT (envelope-from rdivacky@FreeBSD.org) Date: Sun, 13 Aug 2006 11:42:47 GMT Message-Id: <200608131142.k7DBglLV003974@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 103752 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 11:42:49 -0000 http://perforce.freebsd.org/chv.cgi?CH=103752 Change 103752 by rdivacky@rdivacky_witten on 2006/08/13 11:42:29 Remove usage of linux_timespec and use l_timespec instead. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_time.c#3 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#16 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_time.c#3 (text+ko) ==== @@ -58,21 +58,21 @@ #include #endif -static void native_to_linux_timespec(struct linux_timespec *, +static void native_to_linux_timespec(struct l_timespec *, struct timespec *); static void linux_to_native_timespec(struct timespec *, - struct linux_timespec *); + struct l_timespec *); static int linux_to_native_clockid(clockid_t *, clockid_t); static void -native_to_linux_timespec(struct linux_timespec *ltp, struct timespec *ntp) +native_to_linux_timespec(struct l_timespec *ltp, struct timespec *ntp) { ltp->tv_sec = ntp->tv_sec; ltp->tv_nsec = ntp->tv_nsec; } static void -linux_to_native_timespec(struct timespec *ntp, struct linux_timespec *ltp) +linux_to_native_timespec(struct timespec *ntp, struct l_timespec *ltp) { ntp->tv_sec = ltp->tv_sec; ntp->tv_nsec = ltp->tv_nsec; @@ -101,7 +101,7 @@ int linux_clock_gettime(struct thread *td, struct linux_clock_gettime_args *args) { - struct linux_timespec lts; + struct l_timespec lts; int error; clockid_t nwhich = 0; /* XXX: GCC */ struct timespec tp; @@ -123,7 +123,7 @@ linux_clock_settime(struct thread *td, struct linux_clock_settime_args *args) { struct timespec ts; - struct linux_timespec lts; + struct l_timespec lts; int error; clockid_t nwhich = 0; /* XXX: GCC */ @@ -144,7 +144,7 @@ linux_clock_getres(struct thread *td, struct linux_clock_getres_args *args) { struct timespec ts; - struct linux_timespec lts; + struct l_timespec lts; int error; clockid_t nwhich = 0; /* XXX: GCC */ @@ -168,7 +168,7 @@ linux_clock_nanosleep(struct thread *td, struct linux_clock_nanosleep_args *args) { struct timespec *rmtp; - struct linux_timespec lrqts, lrmts; + struct l_timespec lrqts, lrmts; struct timespec rqts, rmts; int error; ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#16 (text+ko) ==== @@ -816,12 +816,6 @@ #define EMUL_LOCKED 1 #define EMUL_UNLOCKED 0 -typedef long linux_time_t; -struct linux_timespec { - linux_time_t tv_sec; /* seconds */ - long tv_nsec; /* nanoseconds */ -}; - #define LINUX_CLOCK_REALTIME 0 #define LINUX_CLOCK_MONOTONIC 1 #define LINUX_CLOCK_PROCESS_CPUTIME_ID 2