Displaying 3 results from an estimated 3 matches for "smbc_close".
Did you mean:
smb2_close
2016 Oct 28
0
Samba and BTRFS server-side copy
...d,
GVfsJob *job,
const char *from_uri,
const char *to_uri)
{
SMBCFILE *from_file, *to_file;
char buffer[4096];
size_t buffer_size;
ssize_t res;
char *p;
gboolean succeeded;
smbc_open_fn smbc_open;
smbc_read_fn smbc_read;
smbc_write_fn smbc_write;
smbc_close_fn smbc_close;
from_file = NULL;
to_file = NULL;
succeeded = FALSE;
smbc_open = smbc_getFunctionOpen (backend->smb_context);
smbc_read = smbc_getFunctionRead (backend->smb_context);
smbc_write = smbc_getFunctionWrite (backend->smb_context);
smbc_close = smbc_getFunction...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, 27 Oct 2016 16:57:13 -0700, Jeremy Allison <jra at samba.org>
wrote :
> On Fri, Oct 28, 2016 at 01:42:35AM +0200, Saint Germain via samba
> wrote:
> > On Thu, 27 Oct 2016 16:27:05 -0700, Jeremy Allison <jra at samba.org>
> > > if you see any of these then it happened.
> >
> > Ok I understand how to check that it happened, but how can I make
2007 May 10
2
programming libsmbclient
...((fd = smbc_open(pSmbPath, O_RDONLY, 0)) < 0)
{
perror("smbc_open");
return 1;
}
do
{
ret = smbc_read(fd, buffer, sizeof(buffer));
savedErrno = errno;
if (ret > 0) fwrite(buffer, 1, ret, stdout);
} while (ret > 0);
smbc_close(fd);
if (ret < 0)
{
errno = savedErrno;
perror("read");
return 1;
}
return 0;
}
------------------------------------------------------------------------------
the tail of the trace:
Server connect ok: //regis/dossier: 0x8050508
write_socke...