diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tdb/tools/tdbtorture.c | 1 | ||||
-rw-r--r-- | source4/ntvfs/cifs/vfs_cifs.c | 2 | ||||
-rw-r--r-- | source4/ntvfs/ipc/vfs_ipc.c | 2 | ||||
-rw-r--r-- | source4/ntvfs/nbench/vfs_nbench.c | 10 | ||||
-rw-r--r-- | source4/ntvfs/ntvfs.h | 2 | ||||
-rw-r--r-- | source4/ntvfs/ntvfs_generic.c | 4 | ||||
-rw-r--r-- | source4/ntvfs/ntvfs_interface.c | 12 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 2 | ||||
-rw-r--r-- | source4/ntvfs/simple/vfs_simple.c | 2 | ||||
-rw-r--r-- | source4/ntvfs/unixuid/vfs_unixuid.c | 8 | ||||
-rw-r--r-- | source4/smb_server/reply.c | 12 | ||||
-rw-r--r-- | source4/torture/torture.c | 1 |
12 files changed, 30 insertions, 28 deletions
diff --git a/source4/lib/tdb/tools/tdbtorture.c b/source4/lib/tdb/tools/tdbtorture.c index 6471aec3ad..e90a967138 100644 --- a/source4/lib/tdb/tools/tdbtorture.c +++ b/source4/lib/tdb/tools/tdbtorture.c @@ -22,6 +22,7 @@ #include "includes.h" #include "system/time.h" +#include "system/wait.h" #endif diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c index 39befebae5..535b529a63 100644 --- a/source4/ntvfs/cifs/vfs_cifs.c +++ b/source4/ntvfs/cifs/vfs_cifs.c @@ -829,7 +829,7 @@ NTSTATUS ntvfs_cifs_init(void) ops.chkpath = cvfs_chkpath; ops.qpathinfo = cvfs_qpathinfo; ops.setpathinfo = cvfs_setpathinfo; - ops.open = cvfs_open; + ops.openfile = cvfs_open; ops.mkdir = cvfs_mkdir; ops.rmdir = cvfs_rmdir; ops.rename = cvfs_rename; diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index 6b6dc97003..a0604a9d08 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -719,7 +719,7 @@ NTSTATUS ntvfs_ipc_init(void) ops.chkpath = ipc_chkpath; ops.qpathinfo = ipc_qpathinfo; ops.setpathinfo = ipc_setpathinfo; - ops.open = ipc_open; + ops.openfile = ipc_open; ops.mkdir = ipc_mkdir; ops.rmdir = ipc_rmdir; ops.rename = ipc_rename; diff --git a/source4/ntvfs/nbench/vfs_nbench.c b/source4/ntvfs/nbench/vfs_nbench.c index 8820279584..eef407638b 100644 --- a/source4/ntvfs/nbench/vfs_nbench.c +++ b/source4/ntvfs/nbench/vfs_nbench.c @@ -280,7 +280,7 @@ static NTSTATUS nbench_setpathinfo(struct ntvfs_module_context *ntvfs, /* open a file */ -static void nbench_open_send(struct smbsrv_request *req) +static void nbench_openfile_send(struct smbsrv_request *req) { union smb_open *io = req->async_states->private_data; @@ -306,12 +306,12 @@ static void nbench_open_send(struct smbsrv_request *req) PASS_THRU_REP_POST(req); } -static NTSTATUS nbench_open(struct ntvfs_module_context *ntvfs, - struct smbsrv_request *req, union smb_open *io) +static NTSTATUS nbench_openfile(struct ntvfs_module_context *ntvfs, + struct smbsrv_request *req, union smb_open *io) { NTSTATUS status; - PASS_THRU_REQ(ntvfs, req, open, io, (ntvfs, req, io)); + PASS_THRU_REQ(ntvfs, req, openfile, io, (ntvfs, req, io)); return status; } @@ -874,7 +874,7 @@ NTSTATUS ntvfs_nbench_init(void) ops.chkpath = nbench_chkpath; ops.qpathinfo = nbench_qpathinfo; ops.setpathinfo = nbench_setpathinfo; - ops.open = nbench_open; + ops.openfile = nbench_openfile; ops.mkdir = nbench_mkdir; ops.rmdir = nbench_rmdir; ops.rename = nbench_rename; diff --git a/source4/ntvfs/ntvfs.h b/source4/ntvfs/ntvfs.h index 04e9b871c7..5e7088018b 100644 --- a/source4/ntvfs/ntvfs.h +++ b/source4/ntvfs/ntvfs.h @@ -51,7 +51,7 @@ struct ntvfs_ops { struct smbsrv_request *req, union smb_fileinfo *st); NTSTATUS (*setpathinfo)(struct ntvfs_module_context *ntvfs, struct smbsrv_request *req, union smb_setfileinfo *st); - NTSTATUS (*open)(struct ntvfs_module_context *ntvfs, + NTSTATUS (*openfile)(struct ntvfs_module_context *ntvfs, struct smbsrv_request *req, union smb_open *oi); NTSTATUS (*mkdir)(struct ntvfs_module_context *ntvfs, struct smbsrv_request *req, union smb_mkdir *md); diff --git a/source4/ntvfs/ntvfs_generic.c b/source4/ntvfs/ntvfs_generic.c index 835011437f..8eaa3cf1b2 100644 --- a/source4/ntvfs/ntvfs_generic.c +++ b/source4/ntvfs/ntvfs_generic.c @@ -156,7 +156,7 @@ NTSTATUS ntvfs_map_open_openx(struct smbsrv_request *req, io2->generic.in.file_attr = io->openx.in.file_attrs; io2->generic.in.fname = io->openx.in.fname; - status = ntvfs->ops->open(ntvfs, req, io2); + status = ntvfs->ops->openfile(ntvfs, req, io2); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -285,7 +285,7 @@ NTSTATUS ntvfs_map_open(struct smbsrv_request *req, union smb_open *io, DEBUG(9,("ntvfs_map_open(OPEN): mapped flags=0x%x to access_mask=0x%x and share_access=0x%x\n", io->openold.in.flags, io2->generic.in.access_mask, io2->generic.in.share_access)); - status = ntvfs->ops->open(ntvfs, req, io2); + status = ntvfs->ops->openfile(ntvfs, req, io2); if (!NT_STATUS_IS_OK(status)) { return status; } diff --git a/source4/ntvfs/ntvfs_interface.c b/source4/ntvfs/ntvfs_interface.c index 7ba1c0d6be..95c01a0b50 100644 --- a/source4/ntvfs/ntvfs_interface.c +++ b/source4/ntvfs/ntvfs_interface.c @@ -77,13 +77,13 @@ NTSTATUS ntvfs_setpathinfo(struct smbsrv_request *req, union smb_setfileinfo *st return ntvfs->ops->setpathinfo(ntvfs, req, st); } -NTSTATUS ntvfs_open(struct smbsrv_request *req, union smb_open *oi) +NTSTATUS ntvfs_openfile(struct smbsrv_request *req, union smb_open *oi) { struct ntvfs_module_context *ntvfs = req->tcon->ntvfs_ctx->modules; - if (!ntvfs->ops->open) { + if (!ntvfs->ops->openfile) { return NT_STATUS_NOT_IMPLEMENTED; } - return ntvfs->ops->open(ntvfs, req, oi); + return ntvfs->ops->openfile(ntvfs, req, oi); } NTSTATUS ntvfs_mkdir(struct smbsrv_request *req, union smb_mkdir *md) @@ -360,13 +360,13 @@ NTSTATUS ntvfs_next_setpathinfo(struct ntvfs_module_context *ntvfs, return ntvfs->next->ops->setpathinfo(ntvfs->next, req, st); } -NTSTATUS ntvfs_next_open(struct ntvfs_module_context *ntvfs, +NTSTATUS ntvfs_next_openfile(struct ntvfs_module_context *ntvfs, struct smbsrv_request *req, union smb_open *oi) { - if (!ntvfs->next || !ntvfs->next->ops->open) { + if (!ntvfs->next || !ntvfs->next->ops->openfile) { return NT_STATUS_NOT_IMPLEMENTED; } - return ntvfs->next->ops->open(ntvfs->next, req, oi); + return ntvfs->next->ops->openfile(ntvfs->next, req, oi); } NTSTATUS ntvfs_next_mkdir(struct ntvfs_module_context *ntvfs, diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index 8dc87b160d..7ebea2ea9a 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -213,7 +213,7 @@ NTSTATUS ntvfs_posix_init(void) ops.chkpath = pvfs_chkpath; ops.qpathinfo = pvfs_qpathinfo; ops.setpathinfo = pvfs_setpathinfo; - ops.open = pvfs_open; + ops.openfile = pvfs_open; ops.mkdir = pvfs_mkdir; ops.rmdir = pvfs_rmdir; ops.rename = pvfs_rename; diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index c84483ea23..4df0bc9782 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -961,7 +961,7 @@ NTSTATUS ntvfs_simple_init(void) ops.chkpath = svfs_chkpath; ops.qpathinfo = svfs_qpathinfo; ops.setpathinfo = svfs_setpathinfo; - ops.open = svfs_open; + ops.openfile = svfs_open; ops.mkdir = svfs_mkdir; ops.rmdir = svfs_rmdir; ops.rename = svfs_rename; diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c index 296dadcfe4..9c74c12f91 100644 --- a/source4/ntvfs/unixuid/vfs_unixuid.c +++ b/source4/ntvfs/unixuid/vfs_unixuid.c @@ -469,12 +469,12 @@ static NTSTATUS unixuid_setpathinfo(struct ntvfs_module_context *ntvfs, /* open a file */ -static NTSTATUS unixuid_open(struct ntvfs_module_context *ntvfs, - struct smbsrv_request *req, union smb_open *io) +static NTSTATUS unixuid_openfile(struct ntvfs_module_context *ntvfs, + struct smbsrv_request *req, union smb_open *io) { NTSTATUS status; - PASS_THRU_REQ(ntvfs, req, open, (ntvfs, req, io)); + PASS_THRU_REQ(ntvfs, req, openfile, (ntvfs, req, io)); return status; } @@ -760,7 +760,7 @@ NTSTATUS ntvfs_unixuid_init(void) ops.chkpath = unixuid_chkpath; ops.qpathinfo = unixuid_qpathinfo; ops.setpathinfo = unixuid_setpathinfo; - ops.open = unixuid_open; + ops.openfile = unixuid_openfile; ops.mkdir = unixuid_mkdir; ops.rmdir = unixuid_rmdir; ops.rename = unixuid_rename; diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index 1ffd55bf3f..8c20b2bb72 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -443,7 +443,7 @@ void reply_open(struct smbsrv_request *req) req->async_states->private_data = oi; /* call backend */ - req->async_states->status = ntvfs_open(req, oi); + req->async_states->status = ntvfs_openfile(req, oi); REQ_ASYNC_TAIL; } @@ -519,7 +519,7 @@ void reply_open_and_X(struct smbsrv_request *req) req->async_states->private_data = oi; /* call the backend */ - req->async_states->status = ntvfs_open(req, oi); + req->async_states->status = ntvfs_openfile(req, oi); REQ_ASYNC_TAIL; } @@ -570,7 +570,7 @@ void reply_mknew(struct smbsrv_request *req) req->async_states->private_data = oi; /* call the backend */ - req->async_states->status = ntvfs_open(req, oi); + req->async_states->status = ntvfs_openfile(req, oi); REQ_ASYNC_TAIL; } @@ -624,7 +624,7 @@ void reply_ctemp(struct smbsrv_request *req) req->async_states->private_data = oi; /* call the backend */ - req->async_states->status = ntvfs_open(req, oi); + req->async_states->status = ntvfs_openfile(req, oi); REQ_ASYNC_TAIL; } @@ -1423,7 +1423,7 @@ void reply_printopen(struct smbsrv_request *req) req->async_states->private_data = oi; /* call backend */ - req->async_states->status = ntvfs_open(req, oi); + req->async_states->status = ntvfs_openfile(req, oi); REQ_ASYNC_TAIL; } @@ -2300,7 +2300,7 @@ void reply_ntcreate_and_X(struct smbsrv_request *req) req->async_states->private_data = io; /* call the backend */ - req->async_states->status = ntvfs_open(req, io); + req->async_states->status = ntvfs_openfile(req, io); REQ_ASYNC_TAIL; } diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 62b69ea8fb..4ff2fd9287 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -22,6 +22,7 @@ #include "lib/cmdline/popt_common.h" #include "libcli/raw/libcliraw.h" #include "system/time.h" +#include "system/wait.h" int torture_nprocs=4; int torture_numops=100; |