Deleted Added
full compact
stand.h (39665) stand.h (39672)
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 * $Id: stand.h,v 1.4 1998/09/18 23:00:57 msmith Exp $
26 * $Id: stand.h,v 1.5 1998/09/26 01:42:39 msmith Exp $
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

--- 175 unchanged lines hidden (view full) ---

210extern off_t lseek(int, off_t, int);
211extern int stat(const char *, struct stat *);
212
213extern void srandom(u_long seed);
214extern u_long random(void);
215
216/* imports from stdlib, locally modified */
217extern long strtol(const char *, char **, int);
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

--- 175 unchanged lines hidden (view full) ---

210extern off_t lseek(int, off_t, int);
211extern int stat(const char *, struct stat *);
212
213extern void srandom(u_long seed);
214extern u_long random(void);
215
216/* imports from stdlib, locally modified */
217extern long strtol(const char *, char **, int);
218extern char * strerror(int err);
218extern char *optarg; /* getopt(3) external variables */
219extern int optind, opterr, optopt;
220extern int getopt(int, char * const [], const char *);
221
222/* pager.c */
223extern void pager_open(void);
224extern void pager_close(void);
225extern int pager_output(const char *lines);

--- 72 unchanged lines hidden (view full) ---

298
299/*
300 * Machine dependent functions and data, must be provided or stubbed by
301 * the consumer
302 */
303extern int getchar(void);
304extern int ischar(void);
305extern void putchar(int);
219extern char *optarg; /* getopt(3) external variables */
220extern int optind, opterr, optopt;
221extern int getopt(int, char * const [], const char *);
222
223/* pager.c */
224extern void pager_open(void);
225extern void pager_close(void);
226extern int pager_output(const char *lines);

--- 72 unchanged lines hidden (view full) ---

299
300/*
301 * Machine dependent functions and data, must be provided or stubbed by
302 * the consumer
303 */
304extern int getchar(void);
305extern int ischar(void);
306extern void putchar(int);
306extern int devopen(struct open_file *, const char *, char **);
307extern int devopen(struct open_file *, const char *, const char **);
307extern int devclose(struct open_file *f);
308extern void panic(const char *, ...) __dead2;
309extern struct fs_ops *file_system[];
310extern struct devsw *devsw[];
311
308extern int devclose(struct open_file *f);
309extern void panic(const char *, ...) __dead2;
310extern struct fs_ops *file_system[];
311extern struct devsw *devsw[];
312
313#if 0
314
315static inline void *
316malloc_debug(size_t size, const char *file, int line)
317{
318 void *p;
319 printf("%s:%d malloc(%ld)", file, line, size);
320 p = malloc(size);
321 printf("=%p\n", p);
322 return p;
323}
324
325static inline void
326free_debug(void *p, const char *file, int line)
327{
328 printf("%s:%d free(%p)\n", file, line, p);
329 free(p);
330}
331
332#define malloc(x) malloc_debug(x, __FILE__, __LINE__)
333#define free(x) free_debug(x, __FILE__, __LINE__)
334
335#endif