aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mqueue.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-03-01 06:29:34 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-03-01 06:29:34 +0000
commit61d3a4efc24f240ff5625b9220aa441ed82c2fae (patch)
tree84881d2d3de0a8e85455bb39906451578c7b8991 /sys/kern/uipc_mqueue.c
parentb8211fabf16d20aea72153fa96fc8690a8719761 (diff)
downloadsrc-61d3a4efc24f240ff5625b9220aa441ed82c2fae.tar.gz
src-61d3a4efc24f240ff5625b9220aa441ed82c2fae.zip
Let kernel POSIX timer code and mqueue code to use integer as a resource
handle, the timer_t and mqd_t types will be a pointer which userland will define it.
Notes
Notes: svn path=/head/; revision=156134
Diffstat (limited to 'sys/kern/uipc_mqueue.c')
-rw-r--r--sys/kern/uipc_mqueue.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index 46af2e97a914..a6587d5e40df 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -1893,7 +1893,7 @@ notifier_remove(struct proc *p, struct mqueue *mq, int fd)
* Syscall to open a message queue
*/
int
-mq_open(struct thread *td, struct mq_open_args *uap)
+kmq_open(struct thread *td, struct kmq_open_args *uap)
{
char path[MQFS_NAMELEN + 1];
struct mq_attr attr, *pattr;
@@ -2007,7 +2007,7 @@ mq_open(struct thread *td, struct mq_open_args *uap)
* Syscall to unlink a message queue
*/
int
-mq_unlink(struct thread *td, struct mq_unlink_args *uap)
+kmq_unlink(struct thread *td, struct kmq_unlink_args *uap)
{
char path[MQFS_NAMELEN+1];
struct mqfs_node *pn;
@@ -2083,7 +2083,7 @@ getmq_write(struct thread *td, int fd, struct file **fpp,
* Syscall
*/
int
-mq_setattr(struct thread *td, struct mq_setattr_args *uap)
+kmq_setattr(struct thread *td, struct kmq_setattr_args *uap)
{
struct mqueue *mq;
struct file *fp;
@@ -2120,7 +2120,7 @@ mq_setattr(struct thread *td, struct mq_setattr_args *uap)
* Syscall
*/
int
-mq_timedreceive(struct thread *td, struct mq_timedreceive_args *uap)
+kmq_timedreceive(struct thread *td, struct kmq_timedreceive_args *uap)
{
struct mqueue *mq;
struct file *fp;
@@ -2141,7 +2141,7 @@ mq_timedreceive(struct thread *td, struct mq_timedreceive_args *uap)
* Syscall
*/
int
-mq_timedsend(struct thread *td, struct mq_timedsend_args *uap)
+kmq_timedsend(struct thread *td, struct kmq_timedsend_args *uap)
{
struct mqueue *mq;
struct file *fp;
@@ -2161,7 +2161,7 @@ mq_timedsend(struct thread *td, struct mq_timedsend_args *uap)
* Syscall
*/
int
-mq_notify(struct thread *td, struct mq_notify_args *uap)
+kmq_notify(struct thread *td, struct kmq_notify_args *uap)
{
struct sigevent ev;
struct filedesc *fdp;
@@ -2471,12 +2471,12 @@ static struct vfsops mqfs_vfsops = {
.vfs_statfs = mqfs_statfs,
};
-SYSCALL_MODULE_HELPER(mq_open);
-SYSCALL_MODULE_HELPER(mq_setattr);
-SYSCALL_MODULE_HELPER(mq_timedsend);
-SYSCALL_MODULE_HELPER(mq_timedreceive);
-SYSCALL_MODULE_HELPER(mq_notify);
-SYSCALL_MODULE_HELPER(mq_unlink);
+SYSCALL_MODULE_HELPER(kmq_open);
+SYSCALL_MODULE_HELPER(kmq_setattr);
+SYSCALL_MODULE_HELPER(kmq_timedsend);
+SYSCALL_MODULE_HELPER(kmq_timedreceive);
+SYSCALL_MODULE_HELPER(kmq_notify);
+SYSCALL_MODULE_HELPER(kmq_unlink);
VFS_SET(mqfs_vfsops, mqueuefs, VFCF_SYNTHETIC);
MODULE_VERSION(mqueuefs, 1);