1996-07-25 22:56:11 +00:00
|
|
|
|
/* classes: h_files */
|
|
|
|
|
|
|
2001-08-31 11:17:06 +00:00
|
|
|
|
#ifndef SCM_FILESYS_H
|
|
|
|
|
|
#define SCM_FILESYS_H
|
|
|
|
|
|
|
|
|
|
|
|
/* Copyright (C) 1995,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
|
|
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-08-31 11:17:06 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
1996-07-25 22:56:11 +00:00
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
* Lesser General Public License for more details.
|
2001-08-31 11:17:06 +00:00
|
|
|
|
*
|
2003-04-05 19:15:35 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
*/
|
1999-12-16 03:46:42 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, filesys.h, fports.h, gc.h, gdbint.h, genio.h, gsubr.h,
hash.h, init.h, ioext.h, kw.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, objprop.h, options.h, pairs.h, ports.h,
posix.h, print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: #include "libguile/__scm.h", not
<libguile/__scm.h>. This allows 'gcc -MM' to determine which
dependencies are within libguile properly.
1996-09-05 21:19:08 +00:00
|
|
|
|
#include "libguile/__scm.h"
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API scm_t_bits scm_tc16_dir;
|
2001-01-24 00:02:43 +00:00
|
|
|
|
|
|
|
|
|
|
#define SCM_DIR_FLAG_OPEN (1L << 16)
|
|
|
|
|
|
|
2000-05-25 09:21:06 +00:00
|
|
|
|
#define SCM_DIRP(x) (!SCM_IMP (x) && (SCM_TYP16 (x) == scm_tc16_dir))
|
2001-01-24 00:02:43 +00:00
|
|
|
|
#define SCM_DIR_OPEN_P(x) (SCM_CELL_WORD_0 (x) & SCM_DIR_FLAG_OPEN)
|
2000-05-25 09:21:06 +00:00
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API SCM scm_chown (SCM object, SCM owner, SCM group);
|
|
|
|
|
|
SCM_API SCM scm_chmod (SCM object, SCM mode);
|
|
|
|
|
|
SCM_API SCM scm_umask (SCM mode);
|
|
|
|
|
|
SCM_API SCM scm_open_fdes (SCM path, SCM flags, SCM mode);
|
|
|
|
|
|
SCM_API SCM scm_open (SCM path, SCM flags, SCM mode);
|
|
|
|
|
|
SCM_API SCM scm_close (SCM fd_or_port);
|
|
|
|
|
|
SCM_API SCM scm_close_fdes (SCM fd);
|
|
|
|
|
|
SCM_API SCM scm_stat (SCM object);
|
|
|
|
|
|
SCM_API SCM scm_link (SCM oldpath, SCM newpath);
|
|
|
|
|
|
SCM_API SCM scm_rename (SCM oldname, SCM newname);
|
|
|
|
|
|
SCM_API SCM scm_delete_file (SCM str);
|
|
|
|
|
|
SCM_API SCM scm_mkdir (SCM path, SCM mode);
|
|
|
|
|
|
SCM_API SCM scm_rmdir (SCM path);
|
|
|
|
|
|
SCM_API SCM scm_directory_stream_p (SCM obj);
|
|
|
|
|
|
SCM_API SCM scm_opendir (SCM dirname);
|
|
|
|
|
|
SCM_API SCM scm_readdir (SCM port);
|
|
|
|
|
|
SCM_API SCM scm_rewinddir (SCM port);
|
|
|
|
|
|
SCM_API SCM scm_closedir (SCM port);
|
|
|
|
|
|
SCM_API SCM scm_chdir (SCM str);
|
|
|
|
|
|
SCM_API SCM scm_getcwd (void);
|
|
|
|
|
|
SCM_API SCM scm_select (SCM reads, SCM writes, SCM excepts, SCM secs, SCM msecs);
|
|
|
|
|
|
SCM_API SCM scm_fcntl (SCM object, SCM cmd, SCM value);
|
|
|
|
|
|
SCM_API SCM scm_fsync (SCM object);
|
|
|
|
|
|
SCM_API SCM scm_symlink (SCM oldpath, SCM newpath);
|
|
|
|
|
|
SCM_API SCM scm_readlink (SCM path);
|
|
|
|
|
|
SCM_API SCM scm_lstat (SCM str);
|
|
|
|
|
|
SCM_API SCM scm_copy_file (SCM oldfile, SCM newfile);
|
|
|
|
|
|
SCM_API SCM scm_dirname (SCM filename);
|
|
|
|
|
|
SCM_API SCM scm_basename (SCM filename, SCM suffix);
|
1998-07-30 14:44:09 +00:00
|
|
|
|
|
2001-11-02 00:19:12 +00:00
|
|
|
|
SCM_API void scm_init_filesys (void);
|
1996-07-25 22:56:11 +00:00
|
|
|
|
|
2001-08-31 11:17:06 +00:00
|
|
|
|
#endif /* SCM_FILESYS_H */
|
2000-03-19 19:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
|
c-file-style: "gnu"
|
|
|
|
|
|
End:
|
|
|
|
|
|
*/
|