Annotation of src/usr.bin/file/file.h, Revision 1.29
1.29 ! nicm 1: /* $OpenBSD: file.h,v 1.28 2015/04/27 13:48:06 nicm Exp $ */
1.25 nicm 2:
1.16 tedu 3: /*
1.25 nicm 4: * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
5: *
6: * Permission to use, copy, modify, and distribute this software for any
7: * purpose with or without fee is hereby granted, provided that the above
8: * copyright notice and this permission notice appear in all copies.
9: *
10: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14: * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
15: * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
16: * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.16 tedu 17: */
1.1 deraadt 18:
1.25 nicm 19: #ifndef FILE_H
20: #define FILE_H
1.19 chl 21:
1.25 nicm 22: /* Bytes to read if can't use the whole file. */
23: #define FILE_READ_SIZE (256 * 1024)
1.27 nicm 24:
25: /* User to drop privileges to in child process. */
1.28 nicm 26: #define FILE_USER "_file"
1.29 ! nicm 27:
! 28: /* sandbox.c */
! 29: int sandbox_fork(const char *);
1.16 tedu 30:
1.25 nicm 31: /* text.c */
32: const char *text_get_type(const void *, size_t);
33: const char *text_try_words(const void *, size_t, int);
1.3 millert 34:
1.25 nicm 35: #endif /* FILE_H */