conn.c (f012ee0c3db17469b492c2cf757226f3d7b1ebbc) | conn.c (44bf619d328827ce5eca6833fcd5c69f1592e578) |
---|---|
1/* 2 * Copyright 2016 Jeremy Allison 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 6 unchanged lines hidden (view full) --- 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 | 1/* 2 * Copyright 2016 Jeremy Allison 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 6 unchanged lines hidden (view full) --- 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 |
23/* 24 * Copyright 2019 Joyent, Inc. 25 */ 26 |
|
23#include <sys/param.h> 24#include <sys/types.h> 25#include <sys/stat.h> 26#include <sys/socket.h> 27#include <sys/un.h> 28#include <stdio.h> 29#include <unistd.h> 30#include <string.h> --- 78 unchanged lines hidden (view full) --- 109 /* start worker */ 110 ret = pthread_create(NULL, NULL, server, (void *)asock); 111 if (ret == -1) { 112 fprintf(stderr, "%s - thread create fail %s\n", 113 __progname, strerror(errno)); 114 exit(1); 115 } 116 } | 27#include <sys/param.h> 28#include <sys/types.h> 29#include <sys/stat.h> 30#include <sys/socket.h> 31#include <sys/un.h> 32#include <stdio.h> 33#include <unistd.h> 34#include <string.h> --- 78 unchanged lines hidden (view full) --- 113 /* start worker */ 114 ret = pthread_create(NULL, NULL, server, (void *)asock); 115 if (ret == -1) { 116 fprintf(stderr, "%s - thread create fail %s\n", 117 __progname, strerror(errno)); 118 exit(1); 119 } 120 } |
117 118 exit(0); | |
119} 120 121/* 122 * This should be a place only root is allowed to write. 123 * The test will create and destroy this directory. 124 */ 125char testdir[100] = "/var/run/os-tests-sockfs"; 126struct sockaddr_un addr; --- 94 unchanged lines hidden --- | 121} 122 123/* 124 * This should be a place only root is allowed to write. 125 * The test will create and destroy this directory. 126 */ 127char testdir[100] = "/var/run/os-tests-sockfs"; 128struct sockaddr_un addr; --- 94 unchanged lines hidden --- |