stub.c (67671) | stub.c (84225) |
---|---|
1/*- 2 * Copyright (c) 2000 Brian Fundakowski Feldman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. | 1/*- 2 * Copyright (c) 2000 Brian Fundakowski Feldman 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. |
25 * 26 * $FreeBSD: head/lib/libutil/stub.c 67671 2000-10-27 01:19:02Z green $ | |
27 */ 28 | 25 */ 26 |
27#include <sys/cdefs.h> 28__FBSDID("$FreeBSD: head/lib/libutil/stub.c 84225 2001-09-30 22:35:07Z dillon $"); 29 |
|
29#include <stdio.h> 30#include <stdlib.h> 31 32/* 33 * Stub out what's in -lcrypt. 34 */ 35 36#pragma weak crypt_set_format 37int 38crypt_set_format(const char *f) { 39 40 if (getenv("CRYPT_DEBUG") != NULL) 41 fprintf(stderr, "crypt_set_format: eek, stub called!\n"); 42 return (0); 43} | 30#include <stdio.h> 31#include <stdlib.h> 32 33/* 34 * Stub out what's in -lcrypt. 35 */ 36 37#pragma weak crypt_set_format 38int 39crypt_set_format(const char *f) { 40 41 if (getenv("CRYPT_DEBUG") != NULL) 42 fprintf(stderr, "crypt_set_format: eek, stub called!\n"); 43 return (0); 44} |