separate the load-compiled path from the load path
[bpt/guile.git] / libguile / filesys.h
CommitLineData
0f2d19dd
JB
1/* classes: h_files */
2
b29058ff
DH
3#ifndef SCM_FILESYS_H
4#define SCM_FILESYS_H
5
102dbb6f 6/* Copyright (C) 1995,1997,1998,1999,2000,2001, 2006, 2008 Free Software Foundation, Inc.
b29058ff 7 *
73be1d9e
MV
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
b29058ff 12 *
73be1d9e 13 * This library is distributed in the hope that it will be useful,
0f2d19dd 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
73be1d9e
MV
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
b29058ff 17 *
73be1d9e
MV
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
92205699 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
73be1d9e 21 */
d3a6bc94 22
0f2d19dd
JB
23\f
24
b4309c3c 25#include "libguile/__scm.h"
0f2d19dd
JB
26
27\f
28
33b001fd 29SCM_API scm_t_bits scm_tc16_dir;
30ea841d
DH
30
31#define SCM_DIR_FLAG_OPEN (1L << 16)
32
47457e8a 33#define SCM_DIRP(x) (!SCM_IMP (x) && (SCM_TYP16 (x) == scm_tc16_dir))
30ea841d 34#define SCM_DIR_OPEN_P(x) (SCM_CELL_WORD_0 (x) & SCM_DIR_FLAG_OPEN)
47457e8a 35
0f2d19dd 36\f
0f2d19dd 37
33b001fd
MV
38SCM_API SCM scm_chown (SCM object, SCM owner, SCM group);
39SCM_API SCM scm_chmod (SCM object, SCM mode);
40SCM_API SCM scm_umask (SCM mode);
41SCM_API SCM scm_open_fdes (SCM path, SCM flags, SCM mode);
42SCM_API SCM scm_open (SCM path, SCM flags, SCM mode);
43SCM_API SCM scm_close (SCM fd_or_port);
44SCM_API SCM scm_close_fdes (SCM fd);
45SCM_API SCM scm_stat (SCM object);
46SCM_API SCM scm_link (SCM oldpath, SCM newpath);
47SCM_API SCM scm_rename (SCM oldname, SCM newname);
48SCM_API SCM scm_delete_file (SCM str);
49SCM_API SCM scm_mkdir (SCM path, SCM mode);
50SCM_API SCM scm_rmdir (SCM path);
51SCM_API SCM scm_directory_stream_p (SCM obj);
52SCM_API SCM scm_opendir (SCM dirname);
53SCM_API SCM scm_readdir (SCM port);
54SCM_API SCM scm_rewinddir (SCM port);
55SCM_API SCM scm_closedir (SCM port);
56SCM_API SCM scm_chdir (SCM str);
57SCM_API SCM scm_getcwd (void);
58SCM_API SCM scm_select (SCM reads, SCM writes, SCM excepts, SCM secs, SCM msecs);
59SCM_API SCM scm_fcntl (SCM object, SCM cmd, SCM value);
60SCM_API SCM scm_fsync (SCM object);
61SCM_API SCM scm_symlink (SCM oldpath, SCM newpath);
62SCM_API SCM scm_readlink (SCM path);
63SCM_API SCM scm_lstat (SCM str);
64SCM_API SCM scm_copy_file (SCM oldfile, SCM newfile);
65SCM_API SCM scm_dirname (SCM filename);
66SCM_API SCM scm_basename (SCM filename, SCM suffix);
6a738a25 67
102dbb6f 68SCM_INTERNAL void scm_init_filesys (void);
0f2d19dd 69
b29058ff 70#endif /* SCM_FILESYS_H */
89e00824
ML
71
72/*
73 Local Variables:
74 c-file-style: "gnu"
75 End:
76*/