2 Unix SMB/CIFS implementation.
3 SMB wrapper functions - definitions
4 Copyright (C) Andrew Tridgell 1998
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #define SMBW_PREFIX "/smb/"
25 #define SMBW_DUMMY "/dev/null"
27 #define SMBW_CLI_FD 512
28 #define SMBW_MAX_OPEN 8192
30 #define SMBW_FILE_MODE (S_IFREG | 0444)
31 #define SMBW_DIR_MODE (S_IFDIR | 0555)
34 struct smbw_server
*next
, *prev
;
52 struct smbw_file
*next
, *prev
;
53 struct smbw_filedes
*f
;
55 struct smbw_server
*srv
;
59 struct smbw_dir
*next
, *prev
;
61 int offset
, count
, malloced
;
62 struct smbw_server
*srv
;
63 struct file_info
*list
;
67 typedef void (*smbw_get_auth_data_fn
)(char *server
, char *share
,
68 char **workgroup
, char **username
,