Current Path : /usr/src/tools/regression/sbin/dhclient/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/tools/regression/sbin/dhclient/fake.c |
/* $FreeBSD: release/9.1.0/tools/regression/sbin/dhclient/fake.c 230597 2012-01-26 19:46:13Z dumbbell $ */ #include <setjmp.h> #include <stdarg.h> #include <stdio.h> #include "dhcpd.h" extern jmp_buf env; void error(char *fmt, ...) { va_list ap; va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); longjmp(env, 1); } int warning(char *fmt, ...) { int ret; va_list ap; va_start(ap, fmt); ret = vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); /* * The original warning() would return "ret" here. We do this to * check warnings explicitely. */ longjmp(env, 1); } int note(char *fmt, ...) { int ret; va_list ap; va_start(ap, fmt); ret = vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); return ret; } void bootp(struct packet *packet) { } void dhcp(struct packet *packet) { }