• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/examples/libsmbclient/smbwrapper/

Lines Matching refs:client_fd

57 int smbw_ref(int client_fd, Ref_Count_Type type, ...)
62 client_fd -= SMBC_BASE_FD;
68 return ++smbw_ref_count[client_fd];
71 return --smbw_ref_count[client_fd];
74 return smbw_ref_count[client_fd];
77 return (smbw_ref_count[client_fd] = va_arg(ap, int));
373 int client_fd;
392 client_fd = smbc_creat(path, mode);
394 client_fd = smbc_open(path, flags, mode);
397 if (client_fd < 0) {
402 smbw_fd_map[smbw_fd] = client_fd;
403 smbw_ref(client_fd, SMBW_RCT_Increment);
416 int client_fd;
425 client_fd = smbw_fd_map[smbw_fd];
427 if ((old_ofs = smbc_lseek(client_fd, 0, SEEK_CUR)) < 0 ||
428 smbc_lseek(client_fd, ofs, SEEK_SET) < 0) {
432 if ((ret = smbc_read(client_fd, buf, count)) < 0) {
434 (void) smbc_lseek(client_fd, old_ofs, SEEK_SET);
447 int client_fd;
449 client_fd = smbw_fd_map[smbw_fd];
451 return smbc_read(client_fd, buf, count);
461 int client_fd;
463 client_fd = smbw_fd_map[smbw_fd];
465 return smbc_write(client_fd, buf, count);
474 int client_fd;
482 client_fd = smbw_fd_map[smbw_fd];
484 if ((old_ofs = smbc_lseek(client_fd, 0, SEEK_CUR)) < 0 ||
485 smbc_lseek(client_fd, ofs, SEEK_SET) < 0) {
489 if ((ret = smbc_write(client_fd, buf, count)) < 0) {
491 (void) smbc_lseek(client_fd, old_ofs, SEEK_SET);
504 int client_fd;
506 client_fd = smbw_fd_map[smbw_fd];
508 if (smbw_ref(client_fd, SMBW_RCT_Decrement) > 0) {
514 return smbc_close(client_fd);
651 int client_fd;
654 client_fd = smbw_fd_map[smbw_fd];
656 ret = smbc_lseek(client_fd, offset, whence);
660 smbw_fd, client_fd,
799 int client_fd;
806 client_fd = smbw_fd_map[smbw_fd];
807 return smbc_fsetxattr(client_fd, name, value, size, flags);
848 int client_fd;
855 client_fd = smbw_fd_map[smbw_fd];
856 return smbc_fgetxattr(client_fd, name, value, size);
890 int client_fd;
897 client_fd = smbw_fd_map[smbw_fd];
898 return smbc_fremovexattr(client_fd, name);
925 int client_fd;
927 client_fd = smbw_fd_map[smbw_fd];
928 return smbc_flistxattr(client_fd, list, size);