stand.h (87632) | stand.h (90868) |
---|---|
1/* 2 * Copyright (c) 1998 Michael Smith. 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 --- 9 unchanged lines hidden (view full) --- 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 * | 1/* 2 * Copyright (c) 1998 Michael Smith. 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 --- 9 unchanged lines hidden (view full) --- 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/libstand/stand.h 87632 2001-12-11 00:04:28Z jhb $ | 26 * $FreeBSD: head/lib/libstand/stand.h 90868 2002-02-18 20:35:27Z mike $ |
27 * From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $ 28 */ 29 30/*- 31 * Copyright (c) 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without --- 331 unchanged lines hidden (view full) --- 366extern int ischar(void); 367extern void putchar(int); 368extern int devopen(struct open_file *, const char *, const char **); 369extern int devclose(struct open_file *f); 370extern void panic(const char *, ...) __dead2; 371extern struct fs_ops *file_system[]; 372extern struct devsw *devsw[]; 373 | 27 * From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $ 28 */ 29 30/*- 31 * Copyright (c) 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without --- 331 unchanged lines hidden (view full) --- 366extern int ischar(void); 367extern void putchar(int); 368extern int devopen(struct open_file *, const char *, const char **); 369extern int devclose(struct open_file *f); 370extern void panic(const char *, ...) __dead2; 371extern struct fs_ops *file_system[]; 372extern struct devsw *devsw[]; 373 |
374/* 375 * Expose byteorder(3) functions. 376 */ 377#define htonl(x) __htonl(x) 378#define htons(x) __htons(x) 379#define ntohl(x) __ntohl(x) 380#define ntohs(x) __ntohs(x) 381 382extern uint32_t htonl(uint32_t); 383extern uint16_t htons(uint16_t); 384extern uint32_t ntohl(uint32_t); 385extern uint16_t ntohs(uint16_t); 386 |
|
374#if 0 375 376static inline void * 377malloc_debug(size_t size, const char *file, int line) 378{ 379 void *p; 380 printf("%s:%d malloc(%ld)", file, line, size); 381 p = malloc(size); --- 15 unchanged lines hidden --- | 387#if 0 388 389static inline void * 390malloc_debug(size_t size, const char *file, int line) 391{ 392 void *p; 393 printf("%s:%d malloc(%ld)", file, line, size); 394 p = malloc(size); --- 15 unchanged lines hidden --- |