1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

build: Remove sys_telldir wrapper

This commit is contained in:
Andrew Bartlett 2012-03-28 13:05:21 +11:00
parent 900473a45b
commit ecc822faf8
4 changed files with 2 additions and 12 deletions

View File

@ -338,7 +338,6 @@ int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len);
int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OFF_T len);
void kernel_flock(int fd, uint32 share_mode, uint32 access_mask);
SMB_STRUCT_DIR *sys_fdopendir(int fd);
long sys_telldir(SMB_STRUCT_DIR *dirp);
void sys_rewinddir(SMB_STRUCT_DIR *dirp);
int sys_closedir(SMB_STRUCT_DIR *dirp);
int sys_mknod(const char *path, mode_t mode, SMB_DEV_T dev);

View File

@ -633,15 +633,6 @@ SMB_STRUCT_DIR *sys_fdopendir(int fd)
#endif
}
/*******************************************************************
A telldir wrapper.
********************************************************************/
long sys_telldir(SMB_STRUCT_DIR *dirp)
{
return (long)telldir(dirp);
}
/*******************************************************************
A rewinddir wrapper.
********************************************************************/

View File

@ -480,7 +480,7 @@ onefs_telldir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp)
if (!lp_parm_bool(SNUM(handle->conn), PARM_ONEFS_TYPE,
PARM_USE_READDIRPLUS, PARM_USE_READDIRPLUS_DEFAULT))
{
return sys_telldir(dirp);
return telldir(dirp);
}
/* Retrieve state based off DIR handle */

View File

@ -394,7 +394,7 @@ static long vfswrap_telldir(vfs_handle_struct *handle, SMB_STRUCT_DIR *dirp)
{
long result;
START_PROFILE(syscall_telldir);
result = sys_telldir(dirp);
result = telldir(dirp);
END_PROFILE(syscall_telldir);
return result;
}