diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-15 06:41:08 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-15 06:41:08 -0700 |
commit | bc9ba2ccd70756b9c2c006bf8a357b38d198aee2 (patch) | |
tree | 6f7373910fe0aee7575f274d4ba0c9759f630b98 /ftw.h | |
parent | b1e62b22783b3fb3b32ccfae2f41c08433190538 (diff) | |
download | txr-bc9ba2ccd70756b9c2c006bf8a357b38d198aee2.tar.gz txr-bc9ba2ccd70756b9c2c006bf8a357b38d198aee2.tar.bz2 txr-bc9ba2ccd70756b9c2c006bf8a357b38d198aee2.zip |
Adding ftw function.
* Makefile (ftw.o): Add to OBJS-y conditionally.
* configure (have_ftw): New variable. New configure test
for nftw.
(gen_config_make): Set up have_ftw make variable.
* ftw.c, ftw.h: New files.
* lib.c (init): Call ftw_init, if compiled in.
* txr.1: Documented.
Diffstat (limited to 'ftw.h')
-rw-r--r-- | ftw.h | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +/* Copyright 2016 + * Kaz Kylheku <kaz@kylheku.com> + * Vancouver, Canada + * All rights reserved. + * + * Redistribution of this software in source and binary forms, with or without + * modification, is permitted provided that the following two conditions are met. + * + * Use of this software in any manner constitutes agreement with the disclaimer + * which follows the two conditions. + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE + * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DAMAGES, HOWEVER CAUSED, + * AND UNDER ANY THEORY OF LIABILITY, ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +val ftw_wrap(val dirpath, val fn, val nopenfd, val flags); +void ftw_init(void); + |