From owner-p4-projects@FreeBSD.ORG Tue Jul 25 11:41:03 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 2D80B16A4E2; Tue, 25 Jul 2006 11:41:03 +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 E515616A4DA for ; Tue, 25 Jul 2006 11:41:02 +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 70FAA43D49 for ; Tue, 25 Jul 2006 11:41:02 +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 k6PBf2Vc041286 for ; Tue, 25 Jul 2006 11:41:02 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6PBf2TZ041283 for perforce@freebsd.org; Tue, 25 Jul 2006 11:41:02 GMT (envelope-from rdivacky@FreeBSD.org) Date: Tue, 25 Jul 2006 11:41:02 GMT Message-Id: <200607251141.k6PBf2TZ041283@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 102368 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: Tue, 25 Jul 2006 11:41:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=102368 Change 102368 by rdivacky@rdivacky_witten on 2006/07/25 11:40:32 Introduce mq_* functions. These are implemented just as wrappers around kmq_*. Affected files ... .. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_ipc.c#3 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#12 edit .. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_dummy.c#8 edit Differences ... ==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_ipc.c#3 (text+ko) ==== @@ -805,6 +805,42 @@ } } +int +linux_mq_open(struct thread *td, struct linux_mq_open_args *args) +{ + return kmq_open(td, (struct kmq_open_args *) args); +} + +int +linux_mq_unlink(struct thread *td, struct linux_mq_unlink_args *args) +{ + return kmq_unlink(td, (struct kmq_unlink_args *) args); +} + +int +linux_mq_timedsend(struct thread *td, struct linux_mq_timedsend_args *args) +{ + return kmq_timedsend(td, (struct kmq_timedsend_args *) args); +} + +int +linux_mq_timedreceive(struct thread *td, struct linux_mq_timedreceive_args *args) +{ + return kmq_timedreceive(td, (struct kmq_timedreceive_args *) args); +} + +int +linux_mq_notify(struct thread *td, struct linux_mq_notify_args *args) +{ + return kmq_notify(td, (struct kmq_notify_args *) args); +} + +int +linux_mq_getsetattr(struct thread *td, struct linux_mq_getsetattr_args *args) +{ + return kmq_setattr(td, (struct kmq_setattr_args *) args); +} + MODULE_DEPEND(linux, sysvmsg, 1, 1, 1); MODULE_DEPEND(linux, sysvsem, 1, 1, 1); MODULE_DEPEND(linux, sysvshm, 1, 1, 1); ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux.h#12 (text+ko) ==== @@ -815,4 +815,6 @@ #define LINUX_CLOCK_MONOTONIC_HR 5 typedef int l_timer_t; +typedef int l_mqd_t; + #endif /* !_I386_LINUX_LINUX_H_ */ ==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/linux_dummy.c#8 (text+ko) ==== @@ -81,12 +81,6 @@ DUMMY(mbind); DUMMY(get_mempolicy); DUMMY(set_mempolicy); -DUMMY(mq_open); -DUMMY(mq_unlink); -DUMMY(mq_timedsend); -DUMMY(mq_timedreceive); -DUMMY(mq_notify); -DUMMY(mq_getsetattr); DUMMY(kexec_load); DUMMY(waitid); DUMMY(add_key);