uipc_mqueue.c (7e857dd14fe7f42f5b46af4904f84915215d8987) uipc_mqueue.c (e76d823b81edf1f8bcbdbe1143d2c0030c8bc299)
1/*-
2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 242 unchanged lines hidden (view full) ---

251
252/*
253 * kqueue filters
254 */
255static void filt_mqdetach(struct knote *kn);
256static int filt_mqread(struct knote *kn, long hint);
257static int filt_mqwrite(struct knote *kn, long hint);
258
1/*-
2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 242 unchanged lines hidden (view full) ---

251
252/*
253 * kqueue filters
254 */
255static void filt_mqdetach(struct knote *kn);
256static int filt_mqread(struct knote *kn, long hint);
257static int filt_mqwrite(struct knote *kn, long hint);
258
259struct filterops mq_rfiltops =
260 { 1, NULL, filt_mqdetach, filt_mqread };
261struct filterops mq_wfiltops =
262 { 1, NULL, filt_mqdetach, filt_mqwrite };
259struct filterops mq_rfiltops = {
260 .f_isfd = 1,
261 .f_detach = filt_mqdetach,
262 .f_event = filt_mqread,
263};
264struct filterops mq_wfiltops = {
265 .f_isfd = 1,
266 .f_detach = filt_mqdetach,
267 .f_event = filt_mqwrite,
268};
263
264/*
265 * Initialize fileno bitmap
266 */
267static void
268mqfs_fileno_init(struct mqfs_info *mi)
269{
270 struct unrhdr *up;

--- 2246 unchanged lines hidden ---
269
270/*
271 * Initialize fileno bitmap
272 */
273static void
274mqfs_fileno_init(struct mqfs_info *mi)
275{
276 struct unrhdr *up;

--- 2246 unchanged lines hidden ---