1*6fa5bf08SBaptiste Daroussin /*- 2*6fa5bf08SBaptiste Daroussin * Copyright (c) 2017 Baptiste Daroussin <bapt@FreeBSD.org> 3*6fa5bf08SBaptiste Daroussin * All rights reserved. 4*6fa5bf08SBaptiste Daroussin * 5*6fa5bf08SBaptiste Daroussin * Redistribution and use in source and binary forms, with or without 6*6fa5bf08SBaptiste Daroussin * modification, are permitted provided that the following conditions 7*6fa5bf08SBaptiste Daroussin * are met: 8*6fa5bf08SBaptiste Daroussin * 1. Redistributions of source code must retain the above copyright 9*6fa5bf08SBaptiste Daroussin * notice, this list of conditions and the following disclaimer 10*6fa5bf08SBaptiste Daroussin * in this position and unchanged. 11*6fa5bf08SBaptiste Daroussin * 2. Redistributions in binary form must reproduce the above copyright 12*6fa5bf08SBaptiste Daroussin * notice, this list of conditions and the following disclaimer in the 13*6fa5bf08SBaptiste Daroussin * documentation and/or other materials provided with the distribution. 14*6fa5bf08SBaptiste Daroussin * 15*6fa5bf08SBaptiste Daroussin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 16*6fa5bf08SBaptiste Daroussin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17*6fa5bf08SBaptiste Daroussin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18*6fa5bf08SBaptiste Daroussin * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 19*6fa5bf08SBaptiste Daroussin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20*6fa5bf08SBaptiste Daroussin * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21*6fa5bf08SBaptiste Daroussin * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22*6fa5bf08SBaptiste Daroussin * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23*6fa5bf08SBaptiste Daroussin * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24*6fa5bf08SBaptiste Daroussin * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25*6fa5bf08SBaptiste Daroussin */ 26*6fa5bf08SBaptiste Daroussin 27*6fa5bf08SBaptiste Daroussin #include <sys/event.h> 28*6fa5bf08SBaptiste Daroussin 29*6fa5bf08SBaptiste Daroussin struct pr { 30*6fa5bf08SBaptiste Daroussin int ostdout; 31*6fa5bf08SBaptiste Daroussin int kq; 32*6fa5bf08SBaptiste Daroussin struct kevent *e; 33*6fa5bf08SBaptiste Daroussin }; 34*6fa5bf08SBaptiste Daroussin 35*6fa5bf08SBaptiste Daroussin struct pr *start_pr(char *file1, char *file2); 36*6fa5bf08SBaptiste Daroussin void stop_pr(struct pr *); 37