11.1Snia/*- 21.1Snia * Copyright (c) 2017 Baptiste Daroussin <bapt@FreeBSD.org> 31.1Snia * All rights reserved. 41.1Snia * 51.1Snia * Redistribution and use in source and binary forms, with or without 61.1Snia * modification, are permitted provided that the following conditions 71.1Snia * are met: 81.1Snia * 1. Redistributions of source code must retain the above copyright 91.1Snia * notice, this list of conditions and the following disclaimer 101.1Snia * in this position and unchanged. 111.1Snia * 2. Redistributions in binary form must reproduce the above copyright 121.1Snia * notice, this list of conditions and the following disclaimer in the 131.1Snia * documentation and/or other materials provided with the distribution. 141.1Snia * 151.1Snia * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 161.1Snia * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 171.1Snia * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 181.1Snia * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 191.1Snia * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 201.1Snia * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 211.1Snia * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 221.1Snia * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 231.1Snia * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 241.1Snia * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 251.1Snia */ 261.1Snia 271.1Snia#include <sys/event.h> 281.1Snia 291.1Sniastruct pr { 301.1Snia int ostdout; 311.1Snia int kq; 321.1Snia struct kevent *e; 331.1Snia}; 341.1Snia 351.1Sniastruct pr *start_pr(char *file1, char *file2); 361.1Sniavoid stop_pr(struct pr *); 37