diff options
author | Volker Lendecke <vl@samba.org> | 2015-10-12 15:57:34 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-10-13 01:23:07 +0200 |
commit | 258ce91f3175196610b9db98c409749d33123038 (patch) | |
tree | 122ffefda3e88d4b7de2de864afa2fabc66bff45 /source3 | |
parent | 0ef9c67b56a0b493ed06f9a64ac2bc2233041aee (diff) | |
download | samba-258ce91f3175196610b9db98c409749d33123038.tar.gz |
lib: Move sys_rw* to lib/util
genrand.c will require it soon
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
33 files changed, 32 insertions, 325 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 9e598ac4d0b..c7c63560848 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -23,7 +23,7 @@ #include "serverid.h" #include "ctdbd_conn.h" #include "system/select.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" #include "lib/util/iov_buf.h" #include "messages.h" diff --git a/source3/lib/recvfile.c b/source3/lib/recvfile.c index 403d5e892e8..e1eb241d7bd 100644 --- a/source3/lib/recvfile.c +++ b/source3/lib/recvfile.c @@ -25,7 +25,7 @@ #include "includes.h" #include "system/filesys.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" /* Do this on our own in TRANSFER_BUF_SIZE chunks. * It's safe to make direct syscalls to lseek/write here diff --git a/source3/lib/sys_rw.c b/source3/lib/sys_rw.c deleted file mode 100644 index 6d8f149f1ce..00000000000 --- a/source3/lib/sys_rw.c +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Unix SMB/CIFS implementation. - * Samba system utilities - * Copyright (C) Andrew Tridgell 1992-1998 - * Copyright (C) Jeremy Allison 1998-2005 - * Copyright (C) Timur Bakeyev 2005 - * Copyright (C) Bjoern Jacke 2006-2007 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "replace.h" -#include "system/filesys.h" -#include "lib/sys_rw.h" - -/******************************************************************* -A read wrapper that will deal with EINTR/EWOULDBLOCK -********************************************************************/ - -ssize_t sys_read(int fd, void *buf, size_t count) -{ - ssize_t ret; - - do { - ret = read(fd, buf, count); - } while (ret == -1 && (errno == EINTR || errno == EAGAIN || - errno == EWOULDBLOCK)); - - return ret; -} - -/******************************************************************* -A write wrapper that will deal with EINTR/EWOULDBLOCK. -********************************************************************/ - -ssize_t sys_write(int fd, const void *buf, size_t count) -{ - ssize_t ret; - - do { - ret = write(fd, buf, count); - } while (ret == -1 && (errno == EINTR || errno == EAGAIN || - errno == EWOULDBLOCK)); - - return ret; -} - -/******************************************************************* -A writev wrapper that will deal with EINTR. -********************************************************************/ - -ssize_t sys_writev(int fd, const struct iovec *iov, int iovcnt) -{ - ssize_t ret; - - do { - ret = writev(fd, iov, iovcnt); - } while (ret == -1 && (errno == EINTR || errno == EAGAIN || - errno == EWOULDBLOCK)); - - return ret; -} - -/******************************************************************* -A pread wrapper that will deal with EINTR -********************************************************************/ - -ssize_t sys_pread(int fd, void *buf, size_t count, off_t off) -{ - ssize_t ret; - - do { - ret = pread(fd, buf, count, off); - } while (ret == -1 && errno == EINTR); - return ret; -} - -/******************************************************************* -A write wrapper that will deal with EINTR -********************************************************************/ - -ssize_t sys_pwrite(int fd, const void *buf, size_t count, off_t off) -{ - ssize_t ret; - - do { - ret = pwrite(fd, buf, count, off); - } while (ret == -1 && errno == EINTR); - return ret; -} diff --git a/source3/lib/sys_rw.h b/source3/lib/sys_rw.h deleted file mode 100644 index ee1584e904f..00000000000 --- a/source3/lib/sys_rw.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Unix SMB/CIFS implementation. - * Samba system utilities - * Copyright (C) Andrew Tridgell 1992-1998 - * Copyright (C) Jeremy Allison 1998-2005 - * Copyright (C) Timur Bakeyev 2005 - * Copyright (C) Bjoern Jacke 2006-2007 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __LIB_SYS_RW_H__ -#define __LIB_SYS_RW_H__ - -#include <unistd.h> - -struct iovec; - -ssize_t sys_read(int fd, void *buf, size_t count); -ssize_t sys_write(int fd, const void *buf, size_t count); -ssize_t sys_writev(int fd, const struct iovec *iov, int iovcnt); -ssize_t sys_pread(int fd, void *buf, size_t count, off_t off); -ssize_t sys_pwrite(int fd, const void *buf, size_t count, off_t off); - -#endif diff --git a/source3/lib/sys_rw_data.c b/source3/lib/sys_rw_data.c deleted file mode 100644 index e3f934de6a1..00000000000 --- a/source3/lib/sys_rw_data.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Unix SMB/CIFS implementation. - * Samba system utilities - * Copyright (C) Andrew Tridgell 1992-1998 - * Copyright (C) Jeremy Allison 1998-2005 - * Copyright (C) Timur Bakeyev 2005 - * Copyright (C) Bjoern Jacke 2006-2007 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "replace.h" -#include "system/filesys.h" -#include "lib/sys_rw_data.h" -#include "lib/sys_rw.h" -#include "lib/util/iov_buf.h" - -/**************************************************************************** - Write all data from an iov array - NB. This can be called with a non-socket fd, don't add dependencies - on socket calls. -****************************************************************************/ - -ssize_t write_data_iov(int fd, const struct iovec *orig_iov, int iovcnt) -{ - ssize_t to_send; - ssize_t thistime; - size_t sent; - struct iovec iov_copy[iovcnt]; - struct iovec *iov; - - to_send = iov_buflen(orig_iov, iovcnt); - if (to_send == -1) { - errno = EINVAL; - return -1; - } - - thistime = sys_writev(fd, orig_iov, iovcnt); - if ((thistime <= 0) || (thistime == to_send)) { - return thistime; - } - sent = thistime; - - /* - * We could not send everything in one call. Make a copy of iov that - * we can mess with. - */ - - memcpy(iov_copy, orig_iov, sizeof(struct iovec) * iovcnt); - iov = iov_copy; - - while (sent < to_send) { - bool ok; - - ok = iov_advance(&iov, &iovcnt, thistime); - if (!ok) { - errno = EIO; - return -1; - } - - thistime = sys_writev(fd, iov, iovcnt); - if (thistime <= 0) { - break; - } - sent += thistime; - } - - return sent; -} - -/**************************************************************************** - Write data to a fd. - NB. This can be called with a non-socket fd, don't add dependencies - on socket calls. -****************************************************************************/ - -ssize_t write_data(int fd, const void *buffer, size_t n) -{ - struct iovec iov; - - iov.iov_base = discard_const_p(void, buffer); - iov.iov_len = n; - return write_data_iov(fd, &iov, 1); -} - -/* - * Blocking read n bytes from a fd - */ - -ssize_t read_data(int fd, void *buffer, size_t n) -{ - ssize_t nread; - - nread = 0; - - while (nread < n) { - ssize_t ret; - ret = sys_read(fd, ((char *)buffer) + nread, n - nread); - if (ret <= 0) { - return ret; - } - nread += ret; - } - - return nread; -} diff --git a/source3/lib/sys_rw_data.h b/source3/lib/sys_rw_data.h deleted file mode 100644 index bda3795d051..00000000000 --- a/source3/lib/sys_rw_data.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Unix SMB/CIFS implementation. - * Samba system utilities - * Copyright (C) Andrew Tridgell 1992-1998 - * Copyright (C) Jeremy Allison 1998-2005 - * Copyright (C) Timur Bakeyev 2005 - * Copyright (C) Bjoern Jacke 2006-2007 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#ifndef __LIB_SYS_RW_DATA_H__ -#define __LIB_SYS_RW_DATA_H__ - -#include <unistd.h> - -struct iovec; - -ssize_t write_data_iov(int fd, const struct iovec *iov, int iovcnt); -ssize_t write_data(int fd, const void *buffer, size_t n); -ssize_t read_data(int fd, void *buffer, size_t n); - -#endif diff --git a/source3/lib/util.c b/source3/lib/util.c index 2ac4dbddf64..f6335756a4f 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -30,8 +30,8 @@ #include "messages.h" #include "libcli/security/security.h" #include "serverid.h" -#include "lib/sys_rw.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw.h" +#include "lib/util/sys_rw_data.h" #include "lib/util/util_process.h" #ifdef HAVE_SYS_PRCTL_H diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c index a603f018870..5584d91d9f0 100644 --- a/source3/lib/util_file.c +++ b/source3/lib/util_file.c @@ -18,7 +18,7 @@ */ #include "includes.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" /** Load from a pipe into memory. diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index cb57f84a1f3..2939b4f1880 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -28,8 +28,8 @@ #include "../lib/util/tevent_unix.h" #include "../lib/util/tevent_ntstatus.h" #include "../lib/tsocket/tsocket.h" -#include "lib/sys_rw.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw.h" +#include "lib/util/sys_rw_data.h" const char *client_addr(int fd, char *addr, size_t addrlen) { diff --git a/source3/lib/util_transfer_file.c b/source3/lib/util_transfer_file.c index 91f4f6f7f2e..56539066eb1 100644 --- a/source3/lib/util_transfer_file.c +++ b/source3/lib/util_transfer_file.c @@ -22,7 +22,7 @@ #include <includes.h> #include "transfer_file.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" /**************************************************************************** Transfer some data between two fd's. diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c index 013d798dd03..27d21b61f00 100644 --- a/source3/libsmb/unexpected.c +++ b/source3/libsmb/unexpected.c @@ -22,7 +22,7 @@ #include "../lib/util/tevent_ntstatus.h" #include "lib/tsocket/tsocket.h" #include "libsmb/nmblib.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" static const char *nmbd_socket_dir(void) { diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 5b398b2e9e1..7fca3d1a6ec 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -26,8 +26,8 @@ #include "smbd/globals.h" #include "lib/async_req/async_sock.h" #include "lib/util/tevent_unix.h" -#include "lib/sys_rw.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw.h" +#include "lib/util/sys_rw_data.h" #include "lib/msghdr.h" #if !defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL) && !defined(HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS) diff --git a/source3/modules/vfs_aio_linux.c b/source3/modules/vfs_aio_linux.c index db5f075bac8..74ebb3c62f7 100644 --- a/source3/modules/vfs_aio_linux.c +++ b/source3/modules/vfs_aio_linux.c @@ -24,7 +24,7 @@ #include "smbd/smbd.h" #include "smbd/globals.h" #include "lib/util/tevent_unix.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #include <sys/eventfd.h> #include <libaio.h> diff --git a/source3/modules/vfs_aio_posix.c b/source3/modules/vfs_aio_posix.c index ef5f7067272..bca69b4d441 100644 --- a/source3/modules/vfs_aio_posix.c +++ b/source3/modules/vfs_aio_posix.c @@ -24,7 +24,7 @@ #include "smbd/smbd.h" #include "smbd/globals.h" #include "lib/util/tevent_unix.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #include <aio.h> /* The signal we'll use to signify aio done. */ diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c index e90e09a17fa..cb8b3280582 100644 --- a/source3/modules/vfs_cacheprime.c +++ b/source3/modules/vfs_cacheprime.c @@ -17,7 +17,7 @@ #include "includes.h" #include "smbd/smbd.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" /* Cache priming module. * diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 9ea630a25ae..bbe8cca97a9 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -32,7 +32,7 @@ #include "lib/util/tevent_unix.h" #include "lib/asys/asys.h" #include "lib/util/tevent_ntstatus.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_VFS diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 8393366857c..25a86c15314 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -29,7 +29,7 @@ #include "messages.h" #include "libcli/security/security.h" #include "../libcli/smb/smb2_create_ctx.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #include "lib/util/tevent_ntstatus.h" /* diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index a66887dbae3..cf8066eee10 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -43,7 +43,7 @@ #include "lib/util/tevent_unix.h" #include "lib/tevent/tevent_internal.h" #include "smbd/globals.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #define DEFAULT_VOLFILE_SERVER "localhost" diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c index c83d3124cc0..b67aad86b55 100644 --- a/source3/modules/vfs_preopen.c +++ b/source3/modules/vfs_preopen.c @@ -21,7 +21,7 @@ #include "includes.h" #include "system/filesys.h" #include "smbd/smbd.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" struct preopen_state; diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c index 0208cdeba4c..f5c39ad6d7c 100644 --- a/source3/modules/vfs_smb_traffic_analyzer.c +++ b/source3/modules/vfs_smb_traffic_analyzer.c @@ -29,7 +29,7 @@ #include "../librpc/gen_ndr/ndr_netlogon.h" #include "auth.h" #include "../lib/tsocket/tsocket.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" /* abstraction for the send_over_network function */ enum sock_type {INTERNET_SOCKET = 0, UNIX_DOMAIN_SOCKET}; diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c index 66e3674c63a..b4532fa4840 100644 --- a/source3/nmbd/asyncdns.c +++ b/source3/nmbd/asyncdns.c @@ -19,7 +19,7 @@ #include "includes.h" #include "nmbd/nmbd.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" /*************************************************************************** Add a DNS result to the name cache. diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 110711c40c2..756d67a896e 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -26,7 +26,7 @@ #include "printing.h" #include "printing/pcap.h" #include "librpc/gen_ndr/ndr_printcap.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #ifdef HAVE_CUPS #include <cups/cups.h> diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 4a2ffd17ca7..e7e6c6dbf71 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -36,7 +36,7 @@ #include "messages.h" #include "util_tdb.h" #include "lib/param/loadparm.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" extern struct current_user current_user; extern userdom_struct current_user_info; diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c index ad710bbb895..bfb7af6051b 100644 --- a/source3/rpc_server/samr/srv_samr_chgpasswd.c +++ b/source3/rpc_server/samr/srv_samr_chgpasswd.c @@ -54,7 +54,7 @@ #include "rpc_server/samr/srv_samr_util.h" #include "passdb.h" #include "auth.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #ifndef ALLOW_CHANGE_PASSWORD #if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID)) diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c index 8f4712404f4..78fb654cf8d 100644 --- a/source3/smbd/notify_inotify.c +++ b/source3/smbd/notify_inotify.c @@ -24,7 +24,7 @@ #include "includes.h" #include "../librpc/gen_ndr/notify.h" #include "smbd/smbd.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" #include <sys/inotify.h> diff --git a/source3/smbd/process.c b/source3/smbd/process.c index b491b313839..c99c75ebe87 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -39,7 +39,7 @@ #include "../libcli/security/dom_sid.h" #include "../libcli/security/security_token.h" #include "lib/id_cache.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" #include "serverid.h" #include "system/threads.h" diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b1b91e1d025..bebb789dfe7 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -43,7 +43,7 @@ #include "../lib/tsocket/tsocket.h" #include "lib/tevent_wait.h" #include "libcli/smb/smb_signing.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" /**************************************************************************** Ensure we check the path in *exactly* the same way as W2K for a findfirst/findnext diff --git a/source3/smbd/scavenger.c b/source3/smbd/scavenger.c index baf71d8b93e..ea0a894f2b1 100644 --- a/source3/smbd/scavenger.c +++ b/source3/smbd/scavenger.c @@ -26,7 +26,7 @@ #include "smbd/scavenger.h" #include "locking/proto.h" #include "lib/util/util_process.h" -#include "lib/sys_rw.h" +#include "lib/util/sys_rw.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_SCAVENGER diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 03cd54b1f92..89527f38748 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -26,7 +26,7 @@ #include "libcli/security/security.h" #include "../lib/util/tevent_ntstatus.h" #include "rpc_server/srv_pipe_hnd.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 914caf8e7dd..21d2dd25500 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -41,7 +41,7 @@ #include "util_tdb.h" #include "../libcli/smb/read_smb.h" #include "../libcli/smb/smbXcli_base.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" extern char *optarg; extern int optind; diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 9b871beda8e..906844877f2 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -22,7 +22,7 @@ #include "system/select.h" #include "../lib/util/select.h" #include "libsmb/nmblib.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw_data.h" #define SECURITY_MASK 0 #define SECURITY_SET 0 diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 213462ec108..17a89a7fd49 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -38,8 +38,8 @@ #include "messages.h" #include "../lib/util/tevent_unix.h" #include "lib/param/loadparm.h" -#include "lib/sys_rw.h" -#include "lib/sys_rw_data.h" +#include "lib/util/sys_rw.h" +#include "lib/util/sys_rw_data.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND diff --git a/source3/wscript_build b/source3/wscript_build index b08ac3e5600..be0b7e67d57 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -247,11 +247,6 @@ bld.SAMBA3_SUBSYSTEM('KRBCLIENT', source='libads/kerberos.c libads/ads_status.c', public_deps='krb5samba k5crypto gssapi LIBTSOCKET CLDAP LIBNMB') -bld.SAMBA3_LIBRARY('sys_rw', - source='lib/sys_rw.c lib/sys_rw_data.c', - deps='replace iov_buf', - private_library=True) - bld.SAMBA3_SUBSYSTEM('samba3util', source='''lib/system.c lib/sendfile.c |