subr_log.c (fdafd315ad0d0f28a11b9fb4476a9ab059c62b92) subr_log.c (ef9ffb8594eee294334ced627755bf5b46b48f9f)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

69 .d_poll = logpoll,
70 .d_kqfilter = logkqfilter,
71 .d_name = "log",
72};
73
74static int logkqread(struct knote *note, long hint);
75static void logkqdetach(struct knote *note);
76
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

69 .d_poll = logpoll,
70 .d_kqfilter = logkqfilter,
71 .d_name = "log",
72};
73
74static int logkqread(struct knote *note, long hint);
75static void logkqdetach(struct knote *note);
76
77static struct filterops log_read_filterops = {
77static const struct filterops log_read_filterops = {
78 .f_isfd = 1,
79 .f_attach = NULL,
80 .f_detach = logkqdetach,
81 .f_event = logkqread,
82};
83
84static struct logsoftc {
85 int sc_state; /* see above for possibilities */

--- 221 unchanged lines hidden ---
78 .f_isfd = 1,
79 .f_attach = NULL,
80 .f_detach = logkqdetach,
81 .f_event = logkqread,
82};
83
84static struct logsoftc {
85 int sc_state; /* see above for possibilities */

--- 221 unchanged lines hidden ---