2 Unix SMB/Netbios implementation.
4 SMB wrapper functions - definitions
5 Copyright (C) Andrew Tridgell 1998
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #define SMBW_PREFIX "/smb/"
23 #define SMBW_DUMMY "/dev/null"
25 #define SMBW_CLI_FD 512
26 #define SMBW_MAX_OPEN 8192
28 #define SMBW_FILE_MODE (S_IFREG | 0444)
29 #define SMBW_DIR_MODE (S_IFDIR | 0555)
31 #define SMBW_PWD_ENV "PWD"
35 struct smbw_server *next, *prev;
50 struct smbw_file *next, *prev;
51 struct smbw_filedes *f;
53 struct smbw_server *srv;
57 struct smbw_dir *next, *prev;
59 int offset, count, malloced;
60 struct smbw_server *srv;
61 struct file_info *list;