summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-04 06:53:46 +0000
committerTim Potter <tpot@samba.org>1999-04-04 06:53:46 +0000
commit2cda53ba68782061ec3d48fcbc0580c9701dfbfb (patch)
tree7af0ffc1c5f02769c3a6f6762be8c710ae1c8916
parentbbff2fad2f5e0be672bc43c7f3941f58782b7353 (diff)
downloadsamba-2cda53ba68782061ec3d48fcbc0580c9701dfbfb.tar.gz
samba-2cda53ba68782061ec3d48fcbc0580c9701dfbfb.tar.bz2
samba-2cda53ba68782061ec3d48fcbc0580c9701dfbfb.zip
#ifdef'ed out functions obsoleted by VFS:
dos_opendir dos_readdirname dos_file_exist Added warning comments to dos_mkdir() as it's used in client code. (This used to be commit 666afcdf1d794959ea0de75205bb8024c95753b8)
-rw-r--r--source3/lib/doscalls.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/source3/lib/doscalls.c b/source3/lib/doscalls.c
index b213ed81cd..2098b5e350 100644
--- a/source3/lib/doscalls.c
+++ b/source3/lib/doscalls.c
@@ -52,18 +52,23 @@ int dos_open(char *fname,int flags,mode_t mode)
}
/*******************************************************************
- Opendir() wrapper that calls dos_to_unix.
+ Opendir() wrapper that calls dos_to_unix. Should use the
+ vfs_ops->opendir() function instead.
********************************************************************/
+#if 0
DIR *dos_opendir(char *dname)
{
return(opendir(dos_to_unix(dname,False)));
}
+#endif
/*******************************************************************
- Readdirname() wrapper that calls unix_to_dos.
+ Readdirname() wrapper that calls unix_to_dos. Should use the
+ vfs_readdirname() function instead.
********************************************************************/
+#if 0
char *dos_readdirname(DIR *p)
{
char *dname = readdirname(p);
@@ -74,6 +79,7 @@ char *dos_readdirname(DIR *p)
unix_to_dos(dname, True);
return(dname);
}
+#endif
/*******************************************************************
A stat() wrapper that calls dos_to_unix.
@@ -94,7 +100,9 @@ int dos_lstat(char *fname,SMB_STRUCT_STAT *sbuf)
}
/*******************************************************************
- Mkdir() that calls dos_to_unix.
+ Mkdir() that calls dos_to_unix. Don't use this call unless you
+ really want to access a file on disk. Use the vfs_ops.mkdir()
+ function instead.
********************************************************************/
int dos_mkdir(char *dname,mode_t mode)
@@ -266,13 +274,15 @@ char *dos_getwd(char *unix_path)
}
/*******************************************************************
- Check if a DOS file exists.
+ Check if a DOS file exists. Use vfs_file_exist function instead.
********************************************************************/
+#if 0
BOOL dos_file_exist(char *fname,SMB_STRUCT_STAT *sbuf)
{
return file_exist(dos_to_unix(fname, False), sbuf);
}
+#endif
/*******************************************************************
Check if a DOS directory exists.