Date: Tue, 25 Jul 2006 11:41:02 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102368 for review Message-ID: <200607251141.k6PBf2TZ041283@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607251141.k6PBf2TZ041283>