• 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:smbw_fd

209 int smbw_fd(int smbw_fd)
213 return (smbw_fd >= 0 &&
214 smbw_fd < __FD_SETSIZE &&
215 smbw_fd_map[smbw_fd] >= SMBC_BASE_FD); /* minimum smbc_ fd */
374 int smbw_fd;
384 smbw_fd = (smbw_libc.open)(SMBW_DUMMY, O_WRONLY, 0200);
385 if (smbw_fd == -1) {
398 (* smbw_libc.close)(smbw_fd);
402 smbw_fd_map[smbw_fd] = client_fd;
404 return smbw_fd;
414 ssize_t smbw_pread(int smbw_fd, void *buf, size_t count, SMBW_OFF_T ofs)
425 client_fd = smbw_fd_map[smbw_fd];
445 ssize_t smbw_read(int smbw_fd, void *buf, size_t count)
449 client_fd = smbw_fd_map[smbw_fd];
459 ssize_t smbw_write(int smbw_fd, void *buf, size_t count)
463 client_fd = smbw_fd_map[smbw_fd];
471 ssize_t smbw_pwrite(int smbw_fd, void *buf, size_t count, SMBW_OFF_T ofs)
482 client_fd = smbw_fd_map[smbw_fd];
502 int smbw_close(int smbw_fd)
506 client_fd = smbw_fd_map[smbw_fd];
512 (* smbw_libc.close)(smbw_fd);
513 smbw_fd_map[smbw_fd] = -1;
521 int smbw_fcntl(int smbw_fd, int cmd, long arg)
647 SMBW_OFF_T smbw_lseek(int smbw_fd,
654 client_fd = smbw_fd_map[smbw_fd];
660 smbw_fd, client_fd,
670 int smbw_dup(int smbw_fd)
674 fd2 = (smbw_libc.dup)(smbw_fd);
679 smbw_fd_map[fd2] = smbw_fd_map[smbw_fd];
680 smbw_ref(smbw_fd_map[smbw_fd], SMBW_RCT_Increment);
688 int smbw_dup2(int smbw_fd, int fd2)
690 if ((* smbw_libc.dup2)(smbw_fd, fd2) != fd2) {
694 smbw_fd_map[fd2] = smbw_fd_map[smbw_fd];
695 smbw_ref(smbw_fd_map[smbw_fd], SMBW_RCT_Increment);
793 int smbw_fsetxattr(int smbw_fd,
806 client_fd = smbw_fd_map[smbw_fd];
843 int smbw_fgetxattr(int smbw_fd,
855 client_fd = smbw_fd_map[smbw_fd];
887 int smbw_fremovexattr(int smbw_fd,
897 client_fd = smbw_fd_map[smbw_fd];
921 int smbw_flistxattr(int smbw_fd,
927 client_fd = smbw_fd_map[smbw_fd];