test-fdset.c revision 106ecd769d57116ad81efdea2c27557fba062138
/***
This file is part of systemd
Copyright 2014 Ronny Chevalier
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <fcntl.h>
#include <unistd.h>
#include "fdset.h"
#include "util.h"
#include "macro.h"
static void test_fdset_new_fill(void) {
int fd = -1;
char name[] = "/tmp/test-fdset_new_fill.XXXXXX";
}
static void test_fdset_put_dup(void) {
int copyfd = -1;
char name[] = "/tmp/test-fdset_put_dup.XXXXXX";
}
static void test_fdset_cloexec(void) {
int fd = -1;
int flags = -1;
char name[] = "/tmp/test-fdset_cloexec.XXXXXX";
}
static void test_fdset_close_others(void) {
int fd = -1;
int copyfd = -1;
int flags = -1;
char name[] = "/tmp/test-fdset_close_others.XXXXXX";
}
}