BOOL cli_close(struct cli_state *cli, int fnum);
BOOL cli_lock(struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
BOOL cli_unlock(struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout);
-int cli_read(struct cli_state *cli, int fnum, char *buf, uint32 offset, uint16 size);
-int cli_write(struct cli_state *cli, int fnum, char *buf, uint32 offset, uint16 size);
+size_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size);
+size_t cli_write(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size);
BOOL cli_getattrE(struct cli_state *cli, int fd,
int *attr, uint32 *size,
time_t *c_time, time_t *a_time, time_t *m_time);
/****************************************************************************
read from a file
****************************************************************************/
-int cli_read(struct cli_state *cli, int fnum, char *buf, uint32 offset, uint16 size)
+size_t cli_read(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size)
{
char *p;
int total=0;
/****************************************************************************
write to a file
****************************************************************************/
-int cli_write(struct cli_state *cli, int fnum, char *buf, uint32 offset, uint16 size)
+size_t cli_write(struct cli_state *cli, int fnum, char *buf, off_t offset, size_t size)
{
char *p;
int total=0;
Things that I have tried and do seem to work include:
emacs, tar, ls, cmp, cp, rsync, du, cat, rm, mv, less, more, wc, head,
- tail, bash, tcsh, mkdir, rmdir
+ tail, bash, tcsh, mkdir, rmdir, vim, xedit
things that I know don't work:
- vi (I don't know why this is)
anything executing from the share
anything that uses mmap
-
If you want to help with the development of this code then join the
samba-technical mailing list.
struct smbw_file *file;
int ret;
- DEBUG(4,("%s\n", __FUNCTION__));
+ DEBUG(4,("%s %d\n", __FUNCTION__, (int)count));
smbw_busy++;