fd                 68 examples/libsmbclient/smbwrapper/smbw.h int smbw_fd(int fd);
fd                 74 examples/libsmbclient/smbwrapper/smbw.h ssize_t smbw_pread(int fd, void *buf, size_t count, SMBW_OFF_T ofs);
fd                 75 examples/libsmbclient/smbwrapper/smbw.h ssize_t smbw_read(int fd, void *buf, size_t count);
fd                 76 examples/libsmbclient/smbwrapper/smbw.h ssize_t smbw_write(int fd, void *buf, size_t count);
fd                 77 examples/libsmbclient/smbwrapper/smbw.h ssize_t smbw_pwrite(int fd, void *buf, size_t count, SMBW_OFF_T ofs);
fd                 78 examples/libsmbclient/smbwrapper/smbw.h int smbw_close(int fd);
fd                 79 examples/libsmbclient/smbwrapper/smbw.h int smbw_fcntl(int fd, int cmd, long arg);
fd                 89 examples/libsmbclient/smbwrapper/smbw.h int smbw_dup(int fd);
fd                 90 examples/libsmbclient/smbwrapper/smbw.h int smbw_dup2(int fd, int fd2);
fd                 97 examples/libsmbclient/smbwrapper/smbw.h int smbw_dir_fstat(int fd, SMBW_stat *st);
fd                 98 examples/libsmbclient/smbwrapper/smbw.h int smbw_dir_close(int fd);
fd                 99 examples/libsmbclient/smbwrapper/smbw.h int smbw_getdents(unsigned int fd, SMBW_dirent *dirp, int count);
fd                104 examples/libsmbclient/smbwrapper/smbw.h int smbw_fchdir(int fd);
fd                158 examples/libsmbclient/smbwrapper/smbw.h int smbw_fstat(int fd, SMBW_stat *st);
fd                423 examples/libsmbclient/smbwrapper/wrapper.c static int closex(int fd, int (* f)(int fd))
fd                425 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                426 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_close(fd);
fd                429 examples/libsmbclient/smbwrapper/wrapper.c         return (* f)(fd);
fd                432 examples/libsmbclient/smbwrapper/wrapper.c static int fcntlx(int fd, int cmd, long arg, int (* f)(int, int, long))
fd                434 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                435 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_fcntl(fd, cmd, arg);
fd                438 examples/libsmbclient/smbwrapper/wrapper.c         return (* f)(fd, cmd, arg);
fd                441 examples/libsmbclient/smbwrapper/wrapper.c static int getdentsx(int fd, struct dirent *external, unsigned int count, int (* f)(int, struct dirent *, unsigned int))
fd                443 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                463 examples/libsmbclient/smbwrapper/wrapper.c 		ret = smbw_getdents(fd, internal, internal_count);
fd                475 examples/libsmbclient/smbwrapper/wrapper.c         return (* f)(fd, external, count);
fd                478 examples/libsmbclient/smbwrapper/wrapper.c static off_t lseekx(int fd,
fd                493 examples/libsmbclient/smbwrapper/wrapper.c         if (smbw_fd(fd)) {
fd                494 examples/libsmbclient/smbwrapper/wrapper.c 		return (off_t) smbw_lseek(fd, offset, whence);
fd                497 examples/libsmbclient/smbwrapper/wrapper.c         ret = (* f)(fd, offset, whence);
fd                501 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                508 examples/libsmbclient/smbwrapper/wrapper.c static off64_t lseek64x(int fd,
fd                523 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd))
fd                524 examples/libsmbclient/smbwrapper/wrapper.c 		ret = smbw_lseek(fd, offset, whence);
fd                526 examples/libsmbclient/smbwrapper/wrapper.c                 ret = (* f)(fd, offset, whence);
fd                530 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                537 examples/libsmbclient/smbwrapper/wrapper.c static ssize_t readx(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t))
fd                539 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                540 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_read(fd, buf, count);
fd                543 examples/libsmbclient/smbwrapper/wrapper.c         return (* f)(fd, buf, count);
fd                546 examples/libsmbclient/smbwrapper/wrapper.c static ssize_t writex(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t))
fd                548 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                549 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_write(fd, buf, count);
fd                552 examples/libsmbclient/smbwrapper/wrapper.c         return (* f)(fd, buf, count);
fd                613 examples/libsmbclient/smbwrapper/wrapper.c ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
fd                617 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                618 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_pread(fd, buf, size, ofs);
fd                621 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.pread)(fd, buf, size, ofs);
fd                624 examples/libsmbclient/smbwrapper/wrapper.c ssize_t pread64(int fd, void *buf, size_t size, off64_t ofs)
fd                628 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                629 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_pread(fd, buf, size, (off_t) ofs);
fd                632 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.pread64)(fd, buf, size, ofs);
fd                635 examples/libsmbclient/smbwrapper/wrapper.c ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs)
fd                639 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                640 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_pwrite(fd, (void *) buf, size, ofs);
fd                643 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.pwrite)(fd, (void *) buf, size, ofs);
fd                646 examples/libsmbclient/smbwrapper/wrapper.c ssize_t pwrite64(int fd,  const void *buf, size_t size, off64_t ofs)
fd                650 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                651 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_pwrite(fd, (void *) buf, size, (off_t) ofs);
fd                654 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.pwrite64)(fd, (void *) buf, size, ofs);
fd                675 examples/libsmbclient/smbwrapper/wrapper.c int close(int fd)
fd                678 examples/libsmbclient/smbwrapper/wrapper.c         return closex(fd, smbw_libc.close);
fd                681 examples/libsmbclient/smbwrapper/wrapper.c int __close(int fd)
fd                684 examples/libsmbclient/smbwrapper/wrapper.c         return closex(fd, smbw_libc.__close);
fd                687 examples/libsmbclient/smbwrapper/wrapper.c int _close(int fd)
fd                690 examples/libsmbclient/smbwrapper/wrapper.c         return closex(fd, smbw_libc._close);
fd                693 examples/libsmbclient/smbwrapper/wrapper.c int fchdir(int fd)
fd                696 examples/libsmbclient/smbwrapper/wrapper.c 	return smbw_fchdir(fd);
fd                699 examples/libsmbclient/smbwrapper/wrapper.c int __fchdir(int fd)
fd                702 examples/libsmbclient/smbwrapper/wrapper.c 	return fchdir(fd);
fd                705 examples/libsmbclient/smbwrapper/wrapper.c int _fchdir(int fd)
fd                708 examples/libsmbclient/smbwrapper/wrapper.c 	return fchdir(fd);
fd                711 examples/libsmbclient/smbwrapper/wrapper.c int fcntl (int fd, int cmd, ...)
fd                721 examples/libsmbclient/smbwrapper/wrapper.c         return fcntlx(fd, cmd, arg, smbw_libc.fcntl);
fd                724 examples/libsmbclient/smbwrapper/wrapper.c int __fcntl(int fd, int cmd, ...)
fd                734 examples/libsmbclient/smbwrapper/wrapper.c         return fcntlx(fd, cmd, arg, smbw_libc.__fcntl);
fd                737 examples/libsmbclient/smbwrapper/wrapper.c int _fcntl(int fd, int cmd, ...)
fd                747 examples/libsmbclient/smbwrapper/wrapper.c         return fcntlx(fd, cmd, arg, smbw_libc._fcntl);
fd                750 examples/libsmbclient/smbwrapper/wrapper.c int getdents(int fd, struct dirent *dirp, unsigned int count)
fd                753 examples/libsmbclient/smbwrapper/wrapper.c         return getdentsx(fd, dirp, count, smbw_libc.getdents);
fd                756 examples/libsmbclient/smbwrapper/wrapper.c int __getdents(int fd, struct dirent *dirp, unsigned int count)
fd                759 examples/libsmbclient/smbwrapper/wrapper.c         return getdentsx(fd, dirp, count, smbw_libc.__getdents);
fd                762 examples/libsmbclient/smbwrapper/wrapper.c int _getdents(int fd, struct dirent *dirp, unsigned int count)
fd                765 examples/libsmbclient/smbwrapper/wrapper.c         return getdentsx(fd, dirp, count, smbw_libc._getdents);
fd                768 examples/libsmbclient/smbwrapper/wrapper.c int getdents64(int fd, struct dirent64 *external, unsigned int count)
fd                771 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                789 examples/libsmbclient/smbwrapper/wrapper.c 		ret = smbw_getdents(fd, internal, count);
fd                801 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.getdents64)(fd, external, count);
fd                804 examples/libsmbclient/smbwrapper/wrapper.c off_t lseek(int fd, off_t offset, int whence)
fd                808 examples/libsmbclient/smbwrapper/wrapper.c         ret = lseekx(fd, offset, whence, smbw_libc.lseek);
fd                812 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                819 examples/libsmbclient/smbwrapper/wrapper.c off_t __lseek(int fd, off_t offset, int whence)
fd                823 examples/libsmbclient/smbwrapper/wrapper.c         ret = lseekx(fd, offset, whence, smbw_libc.__lseek);
fd                827 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                834 examples/libsmbclient/smbwrapper/wrapper.c off_t _lseek(int fd, off_t offset, int whence)
fd                838 examples/libsmbclient/smbwrapper/wrapper.c         ret = lseekx(fd, offset, whence, smbw_libc._lseek);
fd                842 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                849 examples/libsmbclient/smbwrapper/wrapper.c off64_t lseek64(int fd, off64_t offset, int whence)
fd                853 examples/libsmbclient/smbwrapper/wrapper.c         ret = lseek64x(fd, offset, whence, smbw_libc.lseek64);
fd                857 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                864 examples/libsmbclient/smbwrapper/wrapper.c off64_t __lseek64(int fd, off64_t offset, int whence)
fd                867 examples/libsmbclient/smbwrapper/wrapper.c         return lseek64x(fd, offset, whence, smbw_libc.__lseek64);
fd                870 examples/libsmbclient/smbwrapper/wrapper.c off64_t _lseek64(int fd, off64_t offset, int whence)
fd                874 examples/libsmbclient/smbwrapper/wrapper.c         ret = lseek64x(fd, offset, whence, smbw_libc._lseek64);
fd                878 examples/libsmbclient/smbwrapper/wrapper.c                        fd,
fd                885 examples/libsmbclient/smbwrapper/wrapper.c ssize_t read(int fd, void *buf, size_t count)
fd                888 examples/libsmbclient/smbwrapper/wrapper.c         return readx(fd, buf, count, smbw_libc.read);
fd                891 examples/libsmbclient/smbwrapper/wrapper.c ssize_t __read(int fd, void *buf, size_t count)
fd                894 examples/libsmbclient/smbwrapper/wrapper.c         return readx(fd, buf, count, smbw_libc.__read);
fd                897 examples/libsmbclient/smbwrapper/wrapper.c ssize_t _read(int fd, void *buf, size_t count)
fd                900 examples/libsmbclient/smbwrapper/wrapper.c         return readx(fd, buf, count, smbw_libc._read);
fd                903 examples/libsmbclient/smbwrapper/wrapper.c ssize_t write(int fd, const void *buf, size_t count)
fd                906 examples/libsmbclient/smbwrapper/wrapper.c         return writex(fd, (void *) buf, count, smbw_libc.write);
fd                909 examples/libsmbclient/smbwrapper/wrapper.c ssize_t __write(int fd, const void *buf, size_t count)
fd                912 examples/libsmbclient/smbwrapper/wrapper.c         return writex(fd, (void *) buf, count, smbw_libc.__write);
fd                915 examples/libsmbclient/smbwrapper/wrapper.c ssize_t _write(int fd, const void *buf, size_t count)
fd                918 examples/libsmbclient/smbwrapper/wrapper.c         return writex(fd, (void *) buf, count, smbw_libc._write);
fd                943 examples/libsmbclient/smbwrapper/wrapper.c int fchmod(int fd, mode_t mode)
fd                947 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                952 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fchmod)(fd, mode);
fd                966 examples/libsmbclient/smbwrapper/wrapper.c int fchown(int fd, uid_t owner, gid_t group)
fd                970 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd                975 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fchown)(fd, owner, group);
fd                995 examples/libsmbclient/smbwrapper/wrapper.c int __fxstat(int vers, int fd, struct stat *st)
fd                999 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1001 examples/libsmbclient/smbwrapper/wrapper.c 		int ret = smbw_fstat(fd, &statbuf);
fd               1006 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.__fxstat)(vers, fd, st);
fd               1065 examples/libsmbclient/smbwrapper/wrapper.c int fstat(int fd, struct stat *st)
fd               1069 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1071 examples/libsmbclient/smbwrapper/wrapper.c 		int ret = smbw_fstat(fd, &statbuf);
fd               1076 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fstat)(fd, st);
fd               1171 examples/libsmbclient/smbwrapper/wrapper.c int dup(int fd)
fd               1175 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1176 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_dup(fd);
fd               1179 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.dup)(fd);
fd               1303 examples/libsmbclient/smbwrapper/wrapper.c int __fxstat64(int ver, int fd, struct stat64 *st64)
fd               1307 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1309 examples/libsmbclient/smbwrapper/wrapper.c 		int ret = smbw_fstat(fd, &statbuf);
fd               1314 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.__fxstat64)(ver, fd, st64);
fd               1317 examples/libsmbclient/smbwrapper/wrapper.c int fstat64(int fd, struct stat64 *st64)
fd               1321 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1323 examples/libsmbclient/smbwrapper/wrapper.c 		int ret = smbw_fstat(fd, &statbuf);
fd               1328 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fstat64)(fd, st64);
fd               1359 examples/libsmbclient/smbwrapper/wrapper.c int _llseek(unsigned int fd,  unsigned  long  offset_high, unsigned  long  offset_low,  loff_t  *result, unsigned int whence)
fd               1363 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1364 examples/libsmbclient/smbwrapper/wrapper.c 		*result = lseek(fd, offset_low, whence);
fd               1368 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc._llseek)(fd, offset_high, offset_low, result, whence);
fd               1454 examples/libsmbclient/smbwrapper/wrapper.c int fsetxattr(int fd,
fd               1460 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1461 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_fsetxattr(fd, name, value, size, flags);
fd               1464 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fsetxattr)(fd, name, value, size, flags);
fd               1491 examples/libsmbclient/smbwrapper/wrapper.c int fgetxattr(int fd,
fd               1496 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1497 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_fgetxattr(fd, name, value, size);
fd               1500 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fgetxattr)(fd, name, value, size);
fd               1523 examples/libsmbclient/smbwrapper/wrapper.c int fremovexattr(int fd,
fd               1526 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1527 examples/libsmbclient/smbwrapper/wrapper.c 		return smbw_fremovexattr(fd, name);
fd               1530 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.fremovexattr)(fd, name);
fd               1555 examples/libsmbclient/smbwrapper/wrapper.c int flistxattr(int fd,
fd               1559 examples/libsmbclient/smbwrapper/wrapper.c 	if (smbw_fd(fd)) {
fd               1560 examples/libsmbclient/smbwrapper/wrapper.c                 return smbw_flistxattr(fd, list, size);
fd               1563 examples/libsmbclient/smbwrapper/wrapper.c         return (* smbw_libc.flistxattr)(fd, list, size);
fd                 77 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* write)(int fd, void *buf, size_t count);
fd                 84 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* pread)(int fd, void *buf, size_t size, off_t ofs);
fd                 85 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* pread64)(int fd, void *buf, size_t size, off64_t ofs);
fd                 86 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* pwrite)(int fd, void *buf, size_t size, off_t ofs);
fd                 87 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* pwrite64)(int fd, void *buf, size_t size, off64_t ofs);
fd                 88 examples/libsmbclient/smbwrapper/wrapper.h         int (* close)(int fd);
fd                 89 examples/libsmbclient/smbwrapper/wrapper.h         int (* __close)(int fd);
fd                 90 examples/libsmbclient/smbwrapper/wrapper.h         int (* _close)(int fd);
fd                 91 examples/libsmbclient/smbwrapper/wrapper.h         int (* fcntl)(int fd, int cmd, long arg);
fd                 92 examples/libsmbclient/smbwrapper/wrapper.h         int (* __fcntl)(int fd, int cmd, long arg);
fd                 93 examples/libsmbclient/smbwrapper/wrapper.h         int (* _fcntl)(int fd, int cmd, long arg);
fd                 94 examples/libsmbclient/smbwrapper/wrapper.h         int (* getdents)(int fd, struct dirent *dirp, unsigned int count);
fd                 95 examples/libsmbclient/smbwrapper/wrapper.h         int (* __getdents)(int fd, struct dirent *dirp, unsigned int count);
fd                 96 examples/libsmbclient/smbwrapper/wrapper.h         int (* _getdents)(int fd, struct dirent *dirp, unsigned int count);
fd                 97 examples/libsmbclient/smbwrapper/wrapper.h         int (* getdents64)(int fd, struct dirent64 *dirp, unsigned int count);
fd                 98 examples/libsmbclient/smbwrapper/wrapper.h         off_t (* lseek)(int fd, off_t offset, int whence);
fd                 99 examples/libsmbclient/smbwrapper/wrapper.h         off_t (* __lseek)(int fd, off_t offset, int whence);
fd                100 examples/libsmbclient/smbwrapper/wrapper.h         off_t (* _lseek)(int fd, off_t offset, int whence);
fd                101 examples/libsmbclient/smbwrapper/wrapper.h         off64_t (* lseek64)(int fd, off64_t offset, int whence);
fd                102 examples/libsmbclient/smbwrapper/wrapper.h         off64_t (* __lseek64)(int fd, off64_t offset, int whence);
fd                103 examples/libsmbclient/smbwrapper/wrapper.h         off64_t (* _lseek64)(int fd, off64_t offset, int whence);
fd                104 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* read)(int fd, void *buf, size_t count);
fd                105 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* __read)(int fd, void *buf, size_t count);
fd                106 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* _read)(int fd, void *buf, size_t count);
fd                107 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* __write)(int fd, void *buf, size_t count);
fd                108 examples/libsmbclient/smbwrapper/wrapper.h         ssize_t (* _write)(int fd, void *buf, size_t count);
fd                111 examples/libsmbclient/smbwrapper/wrapper.h         int (* fchmod)(int fd, mode_t mode);
fd                113 examples/libsmbclient/smbwrapper/wrapper.h         int (* fchown)(int fd, uid_t owner, gid_t group);
fd                117 examples/libsmbclient/smbwrapper/wrapper.h         int (* __fxstat)(int vers, int fd, struct stat *st);
fd                121 examples/libsmbclient/smbwrapper/wrapper.h         int (* fstat)(int fd, struct stat *st);
fd                129 examples/libsmbclient/smbwrapper/wrapper.h         int (* dup)(int fd);
fd                140 examples/libsmbclient/smbwrapper/wrapper.h         int (* __fxstat64)(int ver, int fd, struct stat64 *st64);
fd                141 examples/libsmbclient/smbwrapper/wrapper.h         int (* fstat64)(int fd, struct stat64 *st64);
fd                144 examples/libsmbclient/smbwrapper/wrapper.h         int (* _llseek)(unsigned int fd,  unsigned  long  offset_high, unsigned  long  offset_low,  loff_t  *result, unsigned int whence);
fd                191 examples/libsmbclient/smbwrapper/wrapper.h         int (* fchdir)(int fd);
fd                 14 examples/libsmbclient/testacl3.c     int             fd;
fd                113 examples/libsmbclient/testbrowse2.c     SMBCFILE		*fd;
fd                117 examples/libsmbclient/testbrowse2.c     if ((fd = smbc_getFunctionOpendir(ctx)(ctx, smb_path)) == NULL)
fd                119 examples/libsmbclient/testbrowse2.c     while((dirent = smbc_getFunctionReaddir(ctx)(ctx, fd)) != NULL){
fd                132 examples/libsmbclient/testbrowse2.c     smbc_getFunctionClose(ctx)(ctx, fd);
fd                 15 examples/libsmbclient/testfstatvfs.c     int             fd;
fd                 50 examples/libsmbclient/testfstatvfs.c             if ((fd = smbc_open(path, O_RDONLY, 0)) < 0)
fd                 58 examples/libsmbclient/testfstatvfs.c             if ((fd = smbc_opendir(path)) < 0)
fd                 65 examples/libsmbclient/testfstatvfs.c         ret = smbc_fstatvfs(fd, &statvfsbuf);
fd                 67 examples/libsmbclient/testfstatvfs.c         smbc_close(fd);
fd                 14 examples/libsmbclient/testread.c     int             fd;
fd                 44 examples/libsmbclient/testread.c         if ((fd = smbc_open(path, O_RDONLY, 0)) < 0)
fd                 52 examples/libsmbclient/testread.c             ret = smbc_read(fd, buffer, sizeof(buffer));
fd                 57 examples/libsmbclient/testread.c         smbc_close(fd);
fd                 50 examples/libsmbclient/testsmbc.c   int err, fd, dh1, dh2, dh3, dsize, dirc;
fd                120 examples/libsmbclient/testsmbc.c   fd = smbc_open(file, O_RDWR | O_CREAT | O_TRUNC, 0666);
fd                122 examples/libsmbclient/testsmbc.c   if (fd < 0) {
fd                136 examples/libsmbclient/testsmbc.c   err = smbc_write(fd, buff, sizeof(buff));
fd                150 examples/libsmbclient/testsmbc.c   err = smbc_lseek(fd, SEEK_SET, 0);
fd                163 examples/libsmbclient/testsmbc.c   err = smbc_read(fd, buff, sizeof(buff));
fd                176 examples/libsmbclient/testsmbc.c   err = smbc_fstat(fd, &st1);
fd                188 examples/libsmbclient/testsmbc.c   err = smbc_close(fd);
fd                212 examples/libsmbclient/testsmbc.c   fd = smbc_open(file, O_RDWR | O_CREAT, 0666);
fd                214 examples/libsmbclient/testsmbc.c   if (fd < 0) {
fd                223 examples/libsmbclient/testsmbc.c   err = smbc_close(fd);
fd                 17 examples/libsmbclient/teststat3.c         int             fd;
fd                 40 examples/libsmbclient/teststat3.c         if ((fd = smbc_open(pUrl, O_RDONLY, 0)) < 0)
fd                 46 examples/libsmbclient/teststat3.c         if (smbc_fstat(fd, &st2) < 0)
fd                 52 examples/libsmbclient/teststat3.c         smbc_close(fd);
fd                 15 examples/libsmbclient/teststatvfs.c     int             fd;
fd                 12 examples/libsmbclient/testtruncate.c     int             fd;
fd                 31 examples/libsmbclient/testtruncate.c     if ((fd = smbc_open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0)) < 0)
fd                 39 examples/libsmbclient/testtruncate.c     ret = smbc_write(fd, buffer, strlen(buffer));
fd                 41 examples/libsmbclient/testtruncate.c     smbc_close(fd);
fd                 57 examples/libsmbclient/testtruncate.c     if ((fd = smbc_open(argv[1], O_WRONLY, 0)) < 0)
fd                 63 examples/libsmbclient/testtruncate.c     ret = smbc_ftruncate(fd, 13);
fd                 65 examples/libsmbclient/testtruncate.c     smbc_close(fd);
fd                 14 examples/libsmbclient/testwrite.c     int             fd;
fd                 49 examples/libsmbclient/testwrite.c         if ((fd = smbc_open(path, O_WRONLY | O_CREAT | O_TRUNC, 0)) < 0)
fd                 57 examples/libsmbclient/testwrite.c         ret = smbc_write(fd, buffer, strlen(buffer));
fd                 59 examples/libsmbclient/testwrite.c         smbc_close(fd);
fd                139 examples/perfcounter/perf_writer_util.c     int fd;
fd                169 examples/perfcounter/perf_writer_util.c     fd = open("/dev/null", O_RDONLY);
fd                170 examples/perfcounter/perf_writer_util.c     if(fd != 0)
fd                172 examples/perfcounter/perf_writer_util.c 	dup2(fd, 0);
fd                173 examples/perfcounter/perf_writer_util.c 	close(fd);
fd                175 examples/perfcounter/perf_writer_util.c     fd = open("/dev/null", O_WRONLY);
fd                176 examples/perfcounter/perf_writer_util.c     if(fd != 1)
fd                178 examples/perfcounter/perf_writer_util.c 	dup2(fd, 1);
fd                179 examples/perfcounter/perf_writer_util.c 	close(fd);
fd                181 examples/perfcounter/perf_writer_util.c     fd = open("/dev/null", O_WRONLY);
fd                182 examples/perfcounter/perf_writer_util.c     if(fd != 2)
fd                184 examples/perfcounter/perf_writer_util.c 	dup2(fd, 2);
fd                185 examples/perfcounter/perf_writer_util.c 	close(fd);
fd                 52 examples/validchars/validchr.c   FILE		*fd;
fd                 70 examples/validchars/validchr.c       if ((fd=fopen(name, "w"))==0)
fd                 73 examples/validchars/validchr.c 	fclose(fd);
fd                 82 lib/async_req/async_sock.c 	int fd;
fd                 95 lib/async_req/async_sock.c 				   int fd, const void *buf, size_t len,
fd                106 lib/async_req/async_sock.c 	state->fd = fd;
fd                111 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_WRITE, async_send_handler,
fd                129 lib/async_req/async_sock.c 	state->sent = send(state->fd, state->buf, state->len, state->flags);
fd                149 lib/async_req/async_sock.c 	int fd;
fd                162 lib/async_req/async_sock.c 				   int fd, void *buf, size_t len, int flags)
fd                172 lib/async_req/async_sock.c 	state->fd = fd;
fd                177 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, async_recv_handler,
fd                195 lib/async_req/async_sock.c 	state->received = recv(state->fd, state->buf, state->len,
fd                216 lib/async_req/async_sock.c 	int fd;
fd                241 lib/async_req/async_sock.c 				      int fd, const struct sockaddr *address,
fd                259 lib/async_req/async_sock.c 	state->fd = fd;
fd                262 lib/async_req/async_sock.c 	state->old_sockflags = fcntl(fd, F_GETFL, 0);
fd                267 lib/async_req/async_sock.c 	set_blocking(fd, false);
fd                269 lib/async_req/async_sock.c 	state->result = connect(fd, address, address_len);
fd                291 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ | TEVENT_FD_WRITE,
fd                302 lib/async_req/async_sock.c 	fcntl(fd, F_SETFL, state->old_sockflags);
fd                335 lib/async_req/async_sock.c 		if (getsockopt(state->fd, SOL_SOCKET, SO_ERROR,
fd                344 lib/async_req/async_sock.c 		fcntl(state->fd, F_SETFL, state->old_sockflags);
fd                359 lib/async_req/async_sock.c 	fcntl(state->fd, F_SETFL, state->old_sockflags);
fd                376 lib/async_req/async_sock.c 	int fd;
fd                387 lib/async_req/async_sock.c 			       struct tevent_queue *queue, int fd,
fd                398 lib/async_req/async_sock.c 	state->fd = fd;
fd                421 lib/async_req/async_sock.c 	fde = tevent_add_fd(state->ev, state, state->fd, TEVENT_FD_WRITE,
fd                444 lib/async_req/async_sock.c 	written = sys_writev(state->fd, state->iov, state->count);
fd                490 lib/async_req/async_sock.c 	int fd;
fd                503 lib/async_req/async_sock.c 				    int fd, size_t initial,
fd                517 lib/async_req/async_sock.c 	state->fd = fd;
fd                527 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, read_packet_handler,
fd                550 lib/async_req/async_sock.c 	nread = recv(state->fd, state->buf+state->nread, total-state->nread,
fd                 30 lib/async_req/async_sock.h 				   int fd, const void *buf, size_t len,
fd                 36 lib/async_req/async_sock.h 				   int fd, void *buf, size_t len, int flags);
fd                 41 lib/async_req/async_sock.h 				      int fd, const struct sockaddr *address,
fd                 46 lib/async_req/async_sock.h 			       struct tevent_queue *queue, int fd,
fd                 52 lib/async_req/async_sock.h 				    int fd, size_t initial,
fd                138 lib/nss_wrapper/nss_wrapper.c 	int fd;
fd                184 lib/nss_wrapper/nss_wrapper.c 	nwrap_pw_global.cache->fd = -1;
fd                192 lib/nss_wrapper/nss_wrapper.c 	nwrap_gr_global.cache->fd = -1;
fd                236 lib/nss_wrapper/nss_wrapper.c 	ret = lseek(nwrap->fd, 0, SEEK_SET);
fd                248 lib/nss_wrapper/nss_wrapper.c 	ret = read(nwrap->fd, buf, nwrap->st.st_size);
fd                315 lib/nss_wrapper/nss_wrapper.c 	if (nwrap->fd < 0) {
fd                316 lib/nss_wrapper/nss_wrapper.c 		nwrap->fd = open(nwrap->path, O_RDONLY);
fd                317 lib/nss_wrapper/nss_wrapper.c 		if (nwrap->fd < 0) {
fd                320 lib/nss_wrapper/nss_wrapper.c 				     nwrap->path, nwrap->fd,
fd                327 lib/nss_wrapper/nss_wrapper.c 	ret = fstat(nwrap->fd, &st);
fd                342 lib/nss_wrapper/nss_wrapper.c 		close(nwrap->fd);
fd                343 lib/nss_wrapper/nss_wrapper.c 		nwrap->fd = -1;
fd                100 lib/popt/poptconfig.c     int fd, rc;
fd                103 lib/popt/poptconfig.c     fd = open(fn, O_RDONLY);
fd                104 lib/popt/poptconfig.c     if (fd < 0)
fd                107 lib/popt/poptconfig.c     fileLength = lseek(fd, 0, SEEK_END);
fd                108 lib/popt/poptconfig.c     if (fileLength == -1 || lseek(fd, 0, 0) == -1) {
fd                110 lib/popt/poptconfig.c 	(void) close(fd);
fd                118 lib/popt/poptconfig.c     if (read(fd, (char *)file, fileLength) != fileLength) {
fd                120 lib/popt/poptconfig.c 	(void) close(fd);
fd                126 lib/popt/poptconfig.c     if (close(fd) == -1)
fd                 85 lib/replace/getifaddrs.c 	int fd, i, n;
fd                 92 lib/replace/getifaddrs.c 	if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
fd                 99 lib/replace/getifaddrs.c 	if (ioctl(fd, SIOCGIFCONF, &ifc) != 0) {
fd                100 lib/replace/getifaddrs.c 		close(fd);
fd                110 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFFLAGS, &ifr[i]) == -1) {
fd                123 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFADDR, &ifr[i]) != -1) {
fd                128 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFNETMASK, &ifr[i]) != -1) {
fd                140 lib/replace/getifaddrs.c 	close(fd);
fd                162 lib/replace/getifaddrs.c 	int fd, i, n;
fd                169 lib/replace/getifaddrs.c 	if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
fd                176 lib/replace/getifaddrs.c 	if (ioctl(fd, I_STR, &strioctl) < 0) {
fd                177 lib/replace/getifaddrs.c 		close(fd);
fd                209 lib/replace/getifaddrs.c 		if (ioctl(fd, I_STR, &strioctl) != 0) {
fd                219 lib/replace/getifaddrs.c 		if (ioctl(fd, I_STR, &strioctl) != 0) {
fd                234 lib/replace/getifaddrs.c 		if (ioctl(fd, I_STR, &strioctl) != 0) {
fd                244 lib/replace/getifaddrs.c 	close(fd);
fd                259 lib/replace/getifaddrs.c 	int fd, i;
fd                267 lib/replace/getifaddrs.c 	if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
fd                274 lib/replace/getifaddrs.c 	if (ioctl(fd, SIOCGIFCONF, &ifc) != 0) {
fd                275 lib/replace/getifaddrs.c 		close(fd);
fd                289 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFADDR, ifr) != 0) {
fd                308 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFFLAGS, ifr) != 0) {
fd                315 lib/replace/getifaddrs.c 		if (ioctl(fd, SIOCGIFNETMASK, ifr) != 0) {
fd                340 lib/replace/getifaddrs.c 	close(fd);
fd                 59 lib/replace/getpass.c static int tcgetattr(int fd, struct termio *_t)
fd                 61 lib/replace/getpass.c 	return ioctl(fd, TCGETA, _t);
fd                 64 lib/replace/getpass.c static int tcsetattr(int fd, int flags, struct termio *_t)
fd                 67 lib/replace/getpass.c 		ioctl(fd, TCFLSH, TCIOFLUSH);
fd                 68 lib/replace/getpass.c 	return ioctl(fd, TCSETS, _t);
fd                 84 lib/replace/getpass.c static int tcgetattr(int fd, struct sgttyb *_t)
fd                 86 lib/replace/getpass.c 	return ioctl(fd, TIOCGETP, (char *)_t);
fd                 89 lib/replace/getpass.c static int tcsetattr(int fd, int flags, struct sgttyb *_t)
fd                 91 lib/replace/getpass.c 	return ioctl(fd, TIOCSETP, (char *)_t);
fd                 61 lib/replace/repdir_getdents.c 	int fd;
fd                 76 lib/replace/repdir_getdents.c 	d->fd = open(dname, O_RDONLY);
fd                 77 lib/replace/repdir_getdents.c 	if (d->fd == -1) {
fd                 81 lib/replace/repdir_getdents.c 	if (fstat(d->fd, &sb) < 0) {
fd                 82 lib/replace/repdir_getdents.c 		close(d->fd);
fd                 87 lib/replace/repdir_getdents.c 		close(d->fd);
fd                104 lib/replace/repdir_getdents.c 		d->seekpos = lseek(d->fd, 0, SEEK_CUR);
fd                105 lib/replace/repdir_getdents.c 		d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE);
fd                120 lib/replace/repdir_getdents.c 		d->seekpos = lseek(d->fd, 0, SEEK_CUR);
fd                135 lib/replace/repdir_getdents.c 	d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
fd                136 lib/replace/repdir_getdents.c 	d->nbytes = getdents(d->fd, d->buf, DIR_BUF_SIZE);
fd                151 lib/replace/repdir_getdents.c 	int r = close(d->fd);
fd                164 lib/replace/repdir_getdents.c 	return d->fd;
fd                 63 lib/replace/repdir_getdirentries.c 	int fd;
fd                 78 lib/replace/repdir_getdirentries.c 	d->fd = open(dname, O_RDONLY);
fd                 79 lib/replace/repdir_getdirentries.c 	if (d->fd == -1) {
fd                 83 lib/replace/repdir_getdirentries.c 	if (fstat(d->fd, &sb) < 0) {
fd                 84 lib/replace/repdir_getdirentries.c 		close(d->fd);
fd                 89 lib/replace/repdir_getdirentries.c 		close(d->fd);
fd                107 lib/replace/repdir_getdirentries.c 		d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos);
fd                127 lib/replace/repdir_getdirentries.c 		d->seekpos = lseek(d->fd, 0, SEEK_CUR);
fd                147 lib/replace/repdir_getdirentries.c 	d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
fd                148 lib/replace/repdir_getdirentries.c 	d->nbytes = getdirentries(d->fd, d->buf, DIR_BUF_SIZE, &pos);
fd                166 lib/replace/repdir_getdirentries.c 	int r = close(d->fd);
fd                179 lib/replace/repdir_getdirentries.c 	return d->fd;
fd                 44 lib/replace/test/os2_delete.c 		int fd;
fd                 46 lib/replace/test/os2_delete.c 		fd = open(fname, O_CREAT|O_RDWR, 0600);
fd                 47 lib/replace/test/os2_delete.c 		if (fd < 0) {
fd                 50 lib/replace/test/os2_delete.c 		if (close(fd) != 0) {
fd                 22 lib/replace/test/shared_mmap.c 	int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666);
fd                 25 lib/replace/test/shared_mmap.c 	if (fd == -1) exit(1);
fd                 28 lib/replace/test/shared_mmap.c 		write(fd,&i,sizeof(i));
fd                 31 lib/replace/test/shared_mmap.c 	close(fd);
fd                 34 lib/replace/test/shared_mmap.c 		fd = open(DATA,O_RDWR);
fd                 35 lib/replace/test/shared_mmap.c 		if (fd == -1) exit(1);
fd                 40 lib/replace/test/shared_mmap.c 				   fd, 0);
fd                 50 lib/replace/test/shared_mmap.c 	fd = open(DATA,O_RDWR);
fd                 51 lib/replace/test/shared_mmap.c 	if (fd == -1) exit(1);
fd                 56 lib/replace/test/shared_mmap.c 			   fd, 0);
fd                 57 lib/replace/test/testsuite.c 	int fd;
fd                 61 lib/replace/test/testsuite.c 	fd = open(TESTFILE, O_RDWR|O_CREAT, 0600);
fd                 62 lib/replace/test/testsuite.c 	if (fd == -1) {
fd                 67 lib/replace/test/testsuite.c 	if (ftruncate(fd, size) != 0) {
fd                 71 lib/replace/test/testsuite.c 	if (fstat(fd, &st) != 0) {
fd                879 lib/replace/test/testsuite.c 	int fd;
fd                884 lib/replace/test/testsuite.c 	fd = open(TESTFILE, O_RDWR|O_CREAT, 0600);
fd                885 lib/replace/test/testsuite.c 	if (fd == -1) {
fd                892 lib/replace/test/testsuite.c 	if (fstat(fd, &st1) != 0) {
fd                908 lib/replace/test/testsuite.c 	if (fstat(fd, &st2) != 0) {
fd                922 lib/replace/test/testsuite.c 	if (fstat(fd, &st3) != 0) {
fd                961 lib/replace/test/testsuite.c 	int fd;
fd                966 lib/replace/test/testsuite.c 	fd = open(TESTFILE, O_RDWR|O_CREAT, 0600);
fd                967 lib/replace/test/testsuite.c 	if (fd == -1) {
fd                974 lib/replace/test/testsuite.c 	if (fstat(fd, &st1) != 0) {
fd                991 lib/replace/test/testsuite.c 	if (fstat(fd, &st2) != 0) {
fd                212 lib/socket_wrapper/socket_wrapper.c 	int fd;
fd                570 lib/socket_wrapper/socket_wrapper.c static struct socket_info *find_socket_info(int fd)
fd                574 lib/socket_wrapper/socket_wrapper.c 		if (i->fd == fd) 
fd               1059 lib/socket_wrapper/socket_wrapper.c 	static int fd = -1;
fd               1061 lib/socket_wrapper/socket_wrapper.c 	if (fd != -1) return fd;
fd               1063 lib/socket_wrapper/socket_wrapper.c 	fd = open(fname, O_WRONLY|O_CREAT|O_EXCL|O_APPEND, 0644);
fd               1064 lib/socket_wrapper/socket_wrapper.c 	if (fd != -1) {
fd               1074 lib/socket_wrapper/socket_wrapper.c 		if (write(fd, &file_hdr, sizeof(file_hdr)) != sizeof(file_hdr)) {
fd               1075 lib/socket_wrapper/socket_wrapper.c 			close(fd);
fd               1076 lib/socket_wrapper/socket_wrapper.c 			fd = -1;
fd               1078 lib/socket_wrapper/socket_wrapper.c 		return fd;
fd               1081 lib/socket_wrapper/socket_wrapper.c 	fd = open(fname, O_WRONLY|O_APPEND, 0644);
fd               1083 lib/socket_wrapper/socket_wrapper.c 	return fd;
fd               1358 lib/socket_wrapper/socket_wrapper.c 	int fd;
fd               1370 lib/socket_wrapper/socket_wrapper.c 	fd = swrap_get_pcap_fd(file_name);
fd               1371 lib/socket_wrapper/socket_wrapper.c 	if (fd != -1) {
fd               1372 lib/socket_wrapper/socket_wrapper.c 		if (write(fd, packet, packet_len) != packet_len) {
fd               1384 lib/socket_wrapper/socket_wrapper.c 	int fd;
fd               1431 lib/socket_wrapper/socket_wrapper.c 	fd = real_socket(AF_UNIX, type, 0);
fd               1433 lib/socket_wrapper/socket_wrapper.c 	if (fd == -1) return -1;
fd               1440 lib/socket_wrapper/socket_wrapper.c 	si->fd = fd;
fd               1444 lib/socket_wrapper/socket_wrapper.c 	return si->fd;
fd               1450 lib/socket_wrapper/socket_wrapper.c 	int fd;
fd               1488 lib/socket_wrapper/socket_wrapper.c 	fd = ret;
fd               1495 lib/socket_wrapper/socket_wrapper.c 		close(fd);
fd               1502 lib/socket_wrapper/socket_wrapper.c 	child_si->fd = fd;
fd               1520 lib/socket_wrapper/socket_wrapper.c 	ret = real_getsockname(fd, (struct sockaddr *)&un_my_addr, &un_my_addrlen);
fd               1523 lib/socket_wrapper/socket_wrapper.c 		close(fd);
fd               1533 lib/socket_wrapper/socket_wrapper.c 		close(fd);
fd               1547 lib/socket_wrapper/socket_wrapper.c 	return fd;
fd               1648 lib/socket_wrapper/socket_wrapper.c 		ret = real_bind(si->fd, (struct sockaddr *)&un_addr, sizeof(un_addr));
fd               2147 lib/socket_wrapper/socket_wrapper.c _PUBLIC_ int swrap_close(int fd)
fd               2149 lib/socket_wrapper/socket_wrapper.c 	struct socket_info *si = find_socket_info(fd);
fd               2153 lib/socket_wrapper/socket_wrapper.c 		return real_close(fd);
fd               2162 lib/socket_wrapper/socket_wrapper.c 	ret = real_close(fd);
fd                 51 lib/tdb/common/io.c 	if (fstat(tdb->fd, &st) == -1) {
fd                 92 lib/tdb/common/io.c 		ssize_t written = pwrite(tdb->fd, buf, len, off);
fd                 99 lib/tdb/common/io.c 			written = pwrite(tdb->fd, (const void *)((const char *)buf+written),
fd                141 lib/tdb/common/io.c 		ssize_t ret = pread(tdb->fd, buf, len, off);
fd                212 lib/tdb/common/io.c 				    MAP_SHARED|MAP_FILE, tdb->fd, 0);
fd                242 lib/tdb/common/io.c 	if (ftruncate(tdb->fd, size+addition) == -1) {
fd                244 lib/tdb/common/io.c 		ssize_t written = pwrite(tdb->fd,  &b, 1, (size+addition) - 1);
fd                247 lib/tdb/common/io.c 			written = pwrite(tdb->fd,  &b, 1, (size+addition) - 1);
fd                266 lib/tdb/common/io.c 		ssize_t written = pwrite(tdb->fd, buf, n, size);
fd                269 lib/tdb/common/io.c 			written = pwrite(tdb->fd, buf, n, size);
fd                 67 lib/tdb/common/lock.c 		ret = fcntl(tdb->fd,lck_type,&fl);
fd                 85 lib/tdb/common/lock.c 				 tdb->fd, offset, rw_type, lck_type, (int)len));
fd                 72 lib/tdb/common/open.c 	if (lseek(tdb->fd, 0, SEEK_SET) == -1)
fd                 75 lib/tdb/common/open.c 	if (ftruncate(tdb->fd, 0) == -1)
fd                 84 lib/tdb/common/open.c 	written = write(tdb->fd, newdb, size);
fd                 91 lib/tdb/common/open.c 		written = write(tdb->fd, newdb+written, size);
fd                163 lib/tdb/common/open.c 	tdb->fd = -1;
fd                211 lib/tdb/common/open.c 	if ((tdb->fd = open(name, open_flags, mode)) == -1) {
fd                218 lib/tdb/common/open.c 	v = fcntl(tdb->fd, F_GETFD, 0);
fd                219 lib/tdb/common/open.c         fcntl(tdb->fd, F_SETFD, v | FD_CLOEXEC);
fd                233 lib/tdb/common/open.c 		if (ftruncate(tdb->fd, 0) == -1) {
fd                242 lib/tdb/common/open.c 	if (read(tdb->fd, &tdb->header, sizeof(tdb->header)) != sizeof(tdb->header)
fd                265 lib/tdb/common/open.c 	if (fstat(tdb->fd, &st) == -1)
fd                339 lib/tdb/common/open.c 	if (tdb->fd != -1)
fd                340 lib/tdb/common/open.c 		if (close(tdb->fd) != 0)
fd                378 lib/tdb/common/open.c 	if (tdb->fd != -1)
fd                379 lib/tdb/common/open.c 		ret = close(tdb->fd);
fd                435 lib/tdb/common/open.c 	if (close(tdb->fd) != 0)
fd                437 lib/tdb/common/open.c 	tdb->fd = open(tdb->name, tdb->open_flags & ~(O_CREAT|O_TRUNC), 0);
fd                438 lib/tdb/common/open.c 	if (tdb->fd == -1) {
fd                442 lib/tdb/common/open.c 	if (fstat(tdb->fd, &st) != 0) {
fd                628 lib/tdb/common/tdb.c 	return tdb->fd;
fd                146 lib/tdb/common/tdb_private.h 	int fd; /* open file descriptor for the database */
fd                561 lib/tdb/common/transaction.c 	if (fsync(tdb->fd) != 0) {
fd               1100 lib/tdb/common/transaction.c 	if (ftruncate(tdb->fd, recovery_eof) != 0) {
fd                 36 lib/tevent/testsuite.c 	int *fd = (int *)private_data;
fd                 42 lib/tevent/testsuite.c 	read(fd[0], &c, 1);
fd                 43 lib/tevent/testsuite.c 	write(fd[1], &c, 1);
fd                 65 lib/tevent/testsuite.c 	int fd[2] = { -1, -1 };
fd                 92 lib/tevent/testsuite.c 	pipe(fd);
fd                 94 lib/tevent/testsuite.c 	fde = event_add_fd(ev_ctx, ev_ctx, fd[0], EVENT_FD_READ,
fd                 95 lib/tevent/testsuite.c 			   fde_handler, fd);
fd                109 lib/tevent/testsuite.c 	write(fd[1], &c, 1);
fd                121 lib/tevent/testsuite.c 	close(fd[1]);
fd                144 lib/tevent/tevent.c 	struct tevent_fd *fd, *fn;
fd                156 lib/tevent/tevent.c 	for (fd = ev->fd_events; fd; fd = fn) {
fd                157 lib/tevent/tevent.c 		fn = fd->next;
fd                158 lib/tevent/tevent.c 		fd->event_ctx = NULL;
fd                159 lib/tevent/tevent.c 		DLIST_REMOVE(ev->fd_events, fd);
fd                271 lib/tevent/tevent.c 				 int fd,
fd                278 lib/tevent/tevent.c 	return ev->ops->add_fd(ev, mem_ctx, fd, flags, handler, private_data,
fd                295 lib/tevent/tevent.c 				    int fd,
fd                298 lib/tevent/tevent.c 	close(fd);
fd                 50 lib/tevent/tevent.h 				     int fd,
fd                 73 lib/tevent/tevent.h 				 int fd,
fd                 79 lib/tevent/tevent.h #define tevent_add_fd(ev, mem_ctx, fd, flags, handler, private_data) \
fd                 80 lib/tevent/tevent.h 	_tevent_add_fd(ev, mem_ctx, fd, flags, handler, private_data, \
fd                383 lib/tevent/tevent.h 				    int fd, uint16_t flags,
fd                457 lib/tevent/tevent.h #define event_add_fd(ev, mem_ctx, fd, flags, handler, private_data) \
fd                458 lib/tevent/tevent.h 	tevent_add_fd(ev, mem_ctx, fd, flags, handler, private_data)
fd                139 lib/tevent/tevent_epoll.c 	if (epoll_ctl(epoll_ev->epoll_fd, EPOLL_CTL_ADD, fde->fd, &event) != 0) {
fd                167 lib/tevent/tevent_epoll.c 	if (epoll_ctl(epoll_ev->epoll_fd, EPOLL_CTL_DEL, fde->fd, &event) != 0) {
fd                188 lib/tevent/tevent_epoll.c 	if (epoll_ctl(epoll_ev->epoll_fd, EPOLL_CTL_MOD, fde->fd, &event) != 0) {
fd                354 lib/tevent/tevent_epoll.c 					    int fd, uint16_t flags,
fd                366 lib/tevent/tevent_epoll.c 	fde = tevent_common_add_fd(ev, mem_ctx, fd, flags,
fd                 38 lib/tevent/tevent_fd.c 		fde->close_fn(fde->event_ctx, fde, fde->fd, fde->private_data);
fd                 39 lib/tevent/tevent_fd.c 		fde->fd = -1;
fd                 46 lib/tevent/tevent_fd.c 				       int fd, uint16_t flags,
fd                 58 lib/tevent/tevent_fd.c 	fde->fd			= fd;
fd                155 lib/tevent/tevent_internal.h 	int fd;
fd                265 lib/tevent/tevent_internal.h 				       int fd,
fd                 70 lib/tevent/tevent_liboop.c static void *oop_event_fd_handler(oop_source *oop, int fd, oop_event oop_type, void *ptr)
fd                 74 lib/tevent/tevent_liboop.c 	if (fd != fde->fd) return OOP_ERROR;
fd                102 lib/tevent/tevent_liboop.c 		oop->cancel_fd(oop, fde->fd, OOP_READ);
fd                104 lib/tevent/tevent_liboop.c 		oop->cancel_fd(oop, fde->fd, OOP_WRITE);
fd                107 lib/tevent/tevent_liboop.c 		close(fde->fd);
fd                108 lib/tevent/tevent_liboop.c 		fde->fd = -1;
fd                119 lib/tevent/tevent_liboop.c 					 int fd, uint16_t flags,
fd                131 lib/tevent/tevent_liboop.c 	fde->fd			= fd;
fd                139 lib/tevent/tevent_liboop.c 		oop->on_fd(oop, fde->fd, OOP_READ, oop_event_fd_handler, fde);
fd                141 lib/tevent/tevent_liboop.c 		oop->on_fd(oop, fde->fd, OOP_WRITE, oop_event_fd_handler, fde);
fd                168 lib/tevent/tevent_liboop.c 		oop->cancel_fd(oop, fde->fd, OOP_READ);
fd                171 lib/tevent/tevent_liboop.c 		oop->on_fd(oop, fde->fd, OOP_READ, oop_event_fd_handler, fde);
fd                174 lib/tevent/tevent_liboop.c 		oop->cancel_fd(oop, fde->fd, OOP_WRITE);
fd                177 lib/tevent/tevent_liboop.c 		oop->on_fd(oop, fde->fd, OOP_WRITE, oop_event_fd_handler, fde);
fd                 67 lib/tevent/tevent_select.c 		if (fde->fd > select_ev->maxfd) {
fd                 68 lib/tevent/tevent_select.c 			select_ev->maxfd = fde->fd;
fd                 91 lib/tevent/tevent_select.c 		if (select_ev->maxfd == fde->fd) {
fd                104 lib/tevent/tevent_select.c 					     int fd, uint16_t flags,
fd                114 lib/tevent/tevent_select.c 	fde = tevent_common_add_fd(ev, mem_ctx, fd, flags,
fd                119 lib/tevent/tevent_select.c 	if (fde->fd > select_ev->maxfd) {
fd                120 lib/tevent/tevent_select.c 		select_ev->maxfd = fde->fd;
fd                147 lib/tevent/tevent_select.c 			FD_SET(fde->fd, &r_fds);
fd                150 lib/tevent/tevent_select.c 			FD_SET(fde->fd, &w_fds);
fd                192 lib/tevent/tevent_select.c 			if (FD_ISSET(fde->fd, &r_fds)) flags |= TEVENT_FD_READ;
fd                193 lib/tevent/tevent_select.c 			if (FD_ISSET(fde->fd, &w_fds)) flags |= TEVENT_FD_WRITE;
fd                185 lib/tevent/tevent_signal.c 	res = read(fde->fd, c, sizeof(c));
fd                155 lib/tevent/tevent_standard.c 	if (epoll_ctl(std_ev->epoll_fd, EPOLL_CTL_ADD, fde->fd, &event) != 0) {
fd                182 lib/tevent/tevent_standard.c 	epoll_ctl(std_ev->epoll_fd, EPOLL_CTL_DEL, fde->fd, &event);
fd                199 lib/tevent/tevent_standard.c 	if (epoll_ctl(std_ev->epoll_fd, EPOLL_CTL_MOD, fde->fd, &event) != 0) {
fd                352 lib/tevent/tevent_standard.c 		if (fde->fd > std_ev->maxfd) {
fd                353 lib/tevent/tevent_standard.c 			std_ev->maxfd = fde->fd;
fd                378 lib/tevent/tevent_standard.c 		if (std_ev->maxfd == fde->fd) {
fd                393 lib/tevent/tevent_standard.c 					  int fd, uint16_t flags,
fd                405 lib/tevent/tevent_standard.c 	fde = tevent_common_add_fd(ev, mem_ctx, fd, flags,
fd                411 lib/tevent/tevent_standard.c 	    && (fde->fd > std_ev->maxfd)) {
fd                412 lib/tevent/tevent_standard.c 		std_ev->maxfd = fde->fd;
fd                461 lib/tevent/tevent_standard.c 			FD_SET(fde->fd, &r_fds);
fd                464 lib/tevent/tevent_standard.c 			FD_SET(fde->fd, &w_fds);
fd                506 lib/tevent/tevent_standard.c 			if (FD_ISSET(fde->fd, &r_fds)) flags |= TEVENT_FD_READ;
fd                507 lib/tevent/tevent_standard.c 			if (FD_ISSET(fde->fd, &w_fds)) flags |= TEVENT_FD_WRITE;
fd                 69 lib/tevent/tevent_util.c int ev_set_blocking(int fd, bool set)
fd                 82 lib/tevent/tevent_util.c 	if((val = fcntl(fd, F_GETFL, 0)) == -1)
fd                 88 lib/tevent/tevent_util.c 	return fcntl( fd, F_SETFL, val);
fd                117 lib/tevent/tevent_util.h int ev_set_blocking(int fd, bool set);
fd                 35 lib/util/become_daemon.c 	int fd;
fd                 50 lib/util/become_daemon.c 		fd = open("/dev/null",O_RDWR,0);
fd                 51 lib/util/become_daemon.c 		if (fd < 0)
fd                 52 lib/util/become_daemon.c 			fd = open("/dev/null",O_WRONLY,0);
fd                 53 lib/util/become_daemon.c 		if (fd < 0) {
fd                 57 lib/util/become_daemon.c 		if (fd != i) {
fd                 50 lib/util/debug.c 	int fd;
fd                 58 lib/util/debug.c 	if (state.fd == 0 || reopen_logs_scheduled) {
fd                 63 lib/util/debug.c 	if (state.fd <= 0) 
fd                 90 lib/util/debug.c 	write(state.fd, s, strlen(s));
fd                129 lib/util/debug.c 	write(state.fd, s, strlen(s));
fd                141 lib/util/debug.c 	int old_fd = state.fd;
fd                145 lib/util/debug.c 		state.fd = 1;
fd                149 lib/util/debug.c 		state.fd = 2;
fd                164 lib/util/debug.c 				state.fd = newfd;
fd                242 lib/util/debug.c 	debug_handlers.ops.log_task_id(state.fd);
fd                 42 lib/util/debug.h 	void (*log_task_id)(int fd);
fd                138 lib/util/genrand.c 	int fd, n;
fd                142 lib/util/genrand.c 	fd = open(fname,O_RDONLY,0);
fd                143 lib/util/genrand.c 	if (fd == -1)
fd                146 lib/util/genrand.c 	while ((n = read(fd, (char *)buf, sizeof(buf))) > 0) {
fd                151 lib/util/genrand.c 	close(fd);
fd                166 lib/util/genrand.c static int do_reseed(bool use_fd, int fd)
fd                173 lib/util/genrand.c 		if (fd == -1) {
fd                174 lib/util/genrand.c 			fd = open( "/dev/urandom", O_RDONLY,0);
fd                176 lib/util/genrand.c 		if (fd != -1
fd                177 lib/util/genrand.c 		    && (read(fd, seed_inbuf, sizeof(seed_inbuf)) == sizeof(seed_inbuf))) {
fd                179 lib/util/genrand.c 			return fd;
fd                 65 lib/util/tests/file.c 	int fd;
fd                 73 lib/util/tests/file.c 	fd = open(TEST_FILENAME, O_RDONLY);
fd                 75 lib/util/tests/file.c 	torture_assert(tctx, fd != -1, "opening file");
fd                 77 lib/util/tests/file.c 	line = afdgets(fd, mem_ctx, 8);
fd                 80 lib/util/tests/file.c 	line = afdgets(fd, mem_ctx, 8);
fd                 83 lib/util/tests/file.c 	line = afdgets(fd, mem_ctx, 8);
fd                 86 lib/util/tests/file.c 	close(fd);
fd                155 lib/util/util.c _PUBLIC_ int set_blocking(int fd, bool set)
fd                168 lib/util/util.c 	if((val = fcntl(fd, F_GETFL, 0)) == -1)
fd                174 lib/util/util.c 	return fcntl( fd, F_SETFL, val);
fd                238 lib/util/util.c _PUBLIC_ bool fcntl_lock(int fd, int op, off_t offset, off_t count, int type)
fd                243 lib/util/util.c 	DEBUG(8,("fcntl_lock %d %d %.0f %.0f %d\n",fd,op,(double)offset,(double)count,type));
fd                251 lib/util/util.c 	ret = fcntl(fd,op,&lock);
fd                262 lib/util/util.c 			DEBUG(3,("fcntl_lock: fd %d is locked by pid %d\n",fd,(int)lock.l_pid));
fd                470 lib/util/util.h _PUBLIC_ char *afdgets(int fd, TALLOC_CTX *mem_ctx, size_t hint);
fd                475 lib/util/util.h _PUBLIC_ char *fd_load(int fd, size_t *size, size_t maxsize, TALLOC_CTX *mem_ctx);
fd                501 lib/util/util.h _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx);
fd                513 lib/util/util.h _PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
fd                514 lib/util/util.h _PUBLIC_ int fdprintf(int fd, const char *format, ...) PRINTF_ATTRIBUTE(2,3);
fd                556 lib/util/util.h _PUBLIC_ int set_blocking(int fd, bool set);
fd                604 lib/util/util.h _PUBLIC_ bool fcntl_lock(int fd, int op, off_t offset, off_t count, int type);
fd                113 lib/util/util_file.c _PUBLIC_ char *afdgets(int fd, TALLOC_CTX *mem_ctx, size_t hint)
fd                129 lib/util/util_file.c 		ret = read(fd, data + offset, hint);
fd                150 lib/util/util_file.c 			lseek(fd, p - ret + 1, SEEK_CUR);
fd                167 lib/util/util_file.c _PUBLIC_ char *fd_load(int fd, size_t *psize, size_t maxsize, TALLOC_CTX *mem_ctx)
fd                173 lib/util/util_file.c 	if (fstat(fd, &sbuf) != 0) return NULL;
fd                184 lib/util/util_file.c 	if (read(fd, p, size) != size) {
fd                200 lib/util/util_file.c 	int fd;
fd                205 lib/util/util_file.c 	fd = open(fname,O_RDONLY);
fd                206 lib/util/util_file.c 	if (fd == -1) return NULL;
fd                208 lib/util/util_file.c 	p = fd_load(fd, size, maxsize, mem_ctx);
fd                210 lib/util/util_file.c 	close(fd);
fd                224 lib/util/util_file.c 	int fd;
fd                225 lib/util/util_file.c 	fd = open(fname, O_RDONLY, 0);
fd                226 lib/util/util_file.c 	if (fd == -1) {
fd                230 lib/util/util_file.c 	p = mmap(NULL, size, PROT_READ, MAP_SHARED|MAP_FILE, fd, 0);
fd                231 lib/util/util_file.c 	close(fd);
fd                337 lib/util/util_file.c _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx)
fd                342 lib/util/util_file.c 	p = fd_load(fd, &size, maxsize, mem_ctx);
fd                377 lib/util/util_file.c 	int fd;
fd                378 lib/util/util_file.c 	fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd                379 lib/util/util_file.c 	if (fd == -1) {
fd                382 lib/util/util_file.c 	if (write(fd, packet, length) != (size_t)length) {
fd                385 lib/util/util_file.c 	close(fd);
fd                389 lib/util/util_file.c _PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap)
fd                399 lib/util/util_file.c 	ret = write(fd, p, len);
fd                404 lib/util/util_file.c _PUBLIC_ int fdprintf(int fd, const char *format, ...)
fd                410 lib/util/util_file.c 	ret = vfdprintf(fd, format, ap);
fd                421 lib/util/util_file.c 	int fd;
fd                425 lib/util/util_file.c 	fd = open(path, O_RDWR|O_CREAT, 0600);
fd                427 lib/util/util_file.c 	if (fd == -1) {
fd                431 lib/util/util_file.c 	ret = pread(fd, &c, 1, ((uint64_t)1)<<32);
fd                432 lib/util/util_file.c 	close(fd);
fd                 27 lib/util/wrap_xattr.c static ssize_t _wrap_darwin_fgetxattr(int fd, const char *name, void *value, size_t size)
fd                 29 lib/util/wrap_xattr.c 	return fgetxattr(fd, name, value, size, 0, 0);
fd                 35 lib/util/wrap_xattr.c static int _wrap_darwin_fsetxattr(int fd, const char *name, void *value, size_t size, int flags)
fd                 37 lib/util/wrap_xattr.c 	return fsetxattr(fd, name, value, size, 0, flags);
fd                 43 lib/util/wrap_xattr.c static int _wrap_darwin_fremovexattr(int fd, const char *name)
fd                 45 lib/util/wrap_xattr.c 	return fremovexattr(fd, name, 0);
fd                 58 lib/util/wrap_xattr.c static ssize_t _none_fgetxattr(int fd, const char *name, void *value, size_t size)
fd                 68 lib/util/wrap_xattr.c static int _none_fsetxattr(int fd, const char *name, void *value, size_t size, int flags)
fd                 78 lib/util/wrap_xattr.c static int _none_fremovexattr(int fd, const char *name)
fd                 96 lib/util/wrap_xattr.c _PUBLIC_ ssize_t wrap_fgetxattr(int fd, const char *name, void *value, size_t size)
fd                 98 lib/util/wrap_xattr.c 	return fgetxattr(fd, name, value, size);
fd                104 lib/util/wrap_xattr.c _PUBLIC_ int wrap_fsetxattr(int fd, const char *name, void *value, size_t size, int flags)
fd                106 lib/util/wrap_xattr.c 	return fsetxattr(fd, name, value, size, flags);
fd                112 lib/util/wrap_xattr.c _PUBLIC_ int wrap_fremovexattr(int fd, const char *name)
fd                114 lib/util/wrap_xattr.c 	return fremovexattr(fd, name);
fd                  4 lib/util/wrap_xattr.h ssize_t wrap_fgetxattr(int fd, const char *name, void *value, size_t size);
fd                  6 lib/util/wrap_xattr.h int wrap_fsetxattr(int fd, const char *name, void *value, size_t size, int flags);
fd                  8 lib/util/wrap_xattr.h int wrap_fremovexattr(int fd, const char *name);
fd                122 lib/util/xfile.c 	ret->fd = open(fname, flags, mode);
fd                123 lib/util/xfile.c 	if (ret->fd == -1) {
fd                141 lib/util/xfile.c 	ret = close(f->fd);
fd                142 lib/util/xfile.c 	f->fd = -1;
fd                166 lib/util/xfile.c 		ret = write(f->fd, p, size*nmemb);
fd                232 lib/util/xfile.c 	return f->fd;
fd                249 lib/util/xfile.c 	ret = write(f->fd, f->buf, f->bufused);
fd                304 lib/util/xfile.c 	n = read(f->fd, f->buf, f->bufsize);
fd                408 lib/util/xfile.c 	return lseek(f->fd, offset, whence);
fd                414 lib/util/xfile.c 	int fd;
fd                416 lib/util/xfile.c 	fd = dup(x_fileno(f));
fd                417 lib/util/xfile.c 	if (fd < 0) {
fd                423 lib/util/xfile.c 		close(fd);
fd                428 lib/util/xfile.c 	ret->fd = fd;
fd                 27 lib/util/xfile.h 	int fd;
fd                261 lib/zlib/contrib/iostream/zfstream.cpp void gzfilestream_common::attach( int fd, int io_mode ) {
fd                263 lib/zlib/contrib/iostream/zfstream.cpp   if ( !buffer.attach( fd, io_mode) )
fd                303 lib/zlib/contrib/iostream/zfstream.cpp gzifstream::gzifstream( int fd, int io_mode ) :
fd                306 lib/zlib/contrib/iostream/zfstream.cpp   gzfilestream_common::attach( fd, io_mode );
fd                323 lib/zlib/contrib/iostream/zfstream.cpp gzofstream::gzofstream( int fd, int io_mode ) :
fd                326 lib/zlib/contrib/iostream/zfstream.cpp   gzfilestream_common::attach( fd, io_mode );
fd                 54 lib/zlib/contrib/iostream/zfstream.h   void attach( int fd, int io_mode );
fd                 74 lib/zlib/contrib/iostream/zfstream.h   gzifstream( int fd, int io_mode = ios::in );
fd                 86 lib/zlib/contrib/iostream/zfstream.h   gzofstream( int fd, int io_mode = ios::out );
fd                 79 lib/zlib/contrib/iostream3/zfstream.cc gzfilebuf::attach(int fd,
fd                 95 lib/zlib/contrib/iostream3/zfstream.cc   if ((file = gzdopen(fd, char_mode)) == NULL)
fd                388 lib/zlib/contrib/iostream3/zfstream.cc gzifstream::gzifstream(int fd,
fd                393 lib/zlib/contrib/iostream3/zfstream.cc   this->attach(fd, mode);
fd                409 lib/zlib/contrib/iostream3/zfstream.cc gzifstream::attach(int fd,
fd                412 lib/zlib/contrib/iostream3/zfstream.cc   if (!sb.attach(fd, mode | std::ios_base::in))
fd                443 lib/zlib/contrib/iostream3/zfstream.cc gzofstream::gzofstream(int fd,
fd                448 lib/zlib/contrib/iostream3/zfstream.cc   this->attach(fd, mode);
fd                464 lib/zlib/contrib/iostream3/zfstream.cc gzofstream::attach(int fd,
fd                467 lib/zlib/contrib/iostream3/zfstream.cc   if (!sb.attach(fd, mode | std::ios_base::out))
fd                 76 lib/zlib/contrib/iostream3/zfstream.h   attach(int fd,
fd                255 lib/zlib/contrib/iostream3/zfstream.h   gzifstream(int fd,
fd                297 lib/zlib/contrib/iostream3/zfstream.h   attach(int fd,
fd                344 lib/zlib/contrib/iostream3/zfstream.h   gzofstream(int fd,
fd                386 lib/zlib/contrib/iostream3/zfstream.h   attach(int fd,
fd                169 lib/zlib/examples/gzappend.c     int fd;                     /* file descriptor */
fd                182 lib/zlib/examples/gzappend.c     len = read(in->fd, in->buf, 1 << in->size);
fd                208 lib/zlib/examples/gzappend.c             if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1)
fd                268 lib/zlib/examples/gzappend.c     gz.fd = open(name, O_RDWR, 0);
fd                269 lib/zlib/examples/gzappend.c     if (gz.fd == -1) bye("cannot open ", name);
fd                289 lib/zlib/examples/gzappend.c     lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left;
fd                329 lib/zlib/examples/gzappend.c                 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in;
fd                338 lib/zlib/examples/gzappend.c     end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left;
fd                353 lib/zlib/examples/gzappend.c     lseek(gz.fd, lastoff - (lastbit != 0), SEEK_SET);
fd                354 lib/zlib/examples/gzappend.c     if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
fd                356 lib/zlib/examples/gzappend.c     lseek(gz.fd, -1L, SEEK_CUR);
fd                357 lib/zlib/examples/gzappend.c     if (write(gz.fd, gz.buf, 1) != 1) bye("writing after seek to ", name);
fd                372 lib/zlib/examples/gzappend.c         lseek(gz.fd, --end, SEEK_SET);
fd                373 lib/zlib/examples/gzappend.c         if (read(gz.fd, gz.buf, 1) != 1) bye("reading after seek on ", name);
fd                376 lib/zlib/examples/gzappend.c     lseek(gz.fd, end, SEEK_SET);
fd                381 lib/zlib/examples/gzappend.c     return gz.fd;
fd                388 lib/zlib/examples/gzappend.c     int fd, len, ret;
fd                393 lib/zlib/examples/gzappend.c     fd = 0;
fd                395 lib/zlib/examples/gzappend.c         fd = open(name, O_RDONLY, 0);
fd                396 lib/zlib/examples/gzappend.c         if (fd == -1)
fd                402 lib/zlib/examples/gzappend.c     in = fd == -1 ? NULL : malloc(CHUNK);
fd                409 lib/zlib/examples/gzappend.c         len = fd == -1 ? 0 : read(fd, in, CHUNK);
fd                457 lib/zlib/examples/gzappend.c     if (fd > 0) close(fd);
fd                 79 lib/zlib/examples/gzjoin.c     int fd;                 /* file descriptor */
fd                 89 lib/zlib/examples/gzjoin.c         if (in->fd != -1)
fd                 90 lib/zlib/examples/gzjoin.c             close(in->fd);
fd                107 lib/zlib/examples/gzjoin.c     in->fd = open(name, O_RDONLY, 0);
fd                108 lib/zlib/examples/gzjoin.c     if (in->buf == NULL || in->fd == -1) {
fd                130 lib/zlib/examples/gzjoin.c         len = (long)read(in->fd, in->buf + in->left, CHUNK - in->left);
fd                181 lib/zlib/examples/gzjoin.c             lseek(in->fd, skip - 1, SEEK_CUR);
fd                182 lib/zlib/examples/gzjoin.c             if (read(in->fd, in->buf, 1) != 1)
fd                188 lib/zlib/examples/gzjoin.c         lseek(in->fd, skip - left, SEEK_CUR);
fd                 24 lib/zlib/examples/gzlog.c     int fd;                 /* log file descriptor */
fd                 39 lib/zlib/examples/gzlog.c local int lock(int fd)
fd                 46 lib/zlib/examples/gzlog.c         if (flock(fd, LOCK_EX + LOCK_NB) == 0)
fd                 57 lib/zlib/examples/gzlog.c local void unlock(int fd)
fd                 59 lib/zlib/examples/gzlog.c     (void)flock(fd, LOCK_UN);
fd                 65 lib/zlib/examples/gzlog.c     unlock(log->fd);
fd                 66 lib/zlib/examples/gzlog.c     (void)close(log->fd);
fd                147 lib/zlib/examples/gzlog.c     log->fd = open(path, O_RDWR | O_CREAT, 0600);
fd                148 lib/zlib/examples/gzlog.c     if (log->fd < 0) {
fd                152 lib/zlib/examples/gzlog.c     if (lock(log->fd)) {
fd                153 lib/zlib/examples/gzlog.c         close(log->fd);
fd                159 lib/zlib/examples/gzlog.c     if (lseek(log->fd, 0, SEEK_END) == 0) {
fd                160 lib/zlib/examples/gzlog.c         if (write(log->fd, empty_gz, sizeof(empty_gz)) != sizeof(empty_gz)) {
fd                167 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, 0, SEEK_SET);
fd                168 lib/zlib/examples/gzlog.c     if (read(log->fd, temp, 12) != 12 || temp[0] != 0x1f ||
fd                178 lib/zlib/examples/gzlog.c         if (xlen < 4 || read(log->fd, temp, 4) != 4)
fd                189 lib/zlib/examples/gzlog.c         (void)lseek(log->fd, sub_len, SEEK_CUR);
fd                198 lib/zlib/examples/gzlog.c     log->extra = lseek(log->fd, 0, SEEK_CUR);
fd                199 lib/zlib/examples/gzlog.c     if (read(log->fd, temp, 16) != 16) {
fd                207 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->last_off, SEEK_SET);
fd                208 lib/zlib/examples/gzlog.c     if (read(log->fd, temp, 13) != 13 ||
fd                217 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->last_off + 5, SEEK_SET);
fd                242 lib/zlib/examples/gzlog.c         if (write(log->fd, data, some) != some)
fd                252 lib/zlib/examples/gzlog.c             (void)lseek(log->fd, log->last_off, SEEK_SET);
fd                256 lib/zlib/examples/gzlog.c             if (write(log->fd, temp, 5) != 5)
fd                258 lib/zlib/examples/gzlog.c             log->last_off = lseek(log->fd, log->stored, SEEK_CUR);
fd                259 lib/zlib/examples/gzlog.c             (void)lseek(log->fd, 5, SEEK_CUR);
fd                286 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->mark_off, SEEK_SET);
fd                287 lib/zlib/examples/gzlog.c     if (read(log->fd, in, len) != len) {
fd                332 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->mark_off, SEEK_SET);
fd                334 lib/zlib/examples/gzlog.c     if (write(log->fd, out, len) != len) {
fd                341 lib/zlib/examples/gzlog.c     log->mark_off = log->last_off = lseek(log->fd, 0, SEEK_CUR);
fd                346 lib/zlib/examples/gzlog.c     if (write(log->fd, temp, 13) != 13)
fd                350 lib/zlib/examples/gzlog.c     ftruncate(log->fd, lseek(log->fd, 0, SEEK_CUR));
fd                353 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->extra, SEEK_SET);
fd                356 lib/zlib/examples/gzlog.c     if (write(log->fd, temp, 16) != 16)
fd                376 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->last_off, SEEK_SET);
fd                383 lib/zlib/examples/gzlog.c         if (write(log->fd, temp, 5) != 5)
fd                385 lib/zlib/examples/gzlog.c         log->last_off = lseek(log->fd, log->stored, SEEK_CUR);
fd                389 lib/zlib/examples/gzlog.c     if (write(log->fd, "\001\000\000\377\377", 5) != 5)
fd                395 lib/zlib/examples/gzlog.c     if (write(log->fd, temp, 8) != 8)
fd                399 lib/zlib/examples/gzlog.c     (void)lseek(log->fd, log->extra + 8, SEEK_SET);
fd                401 lib/zlib/examples/gzlog.c     if (write(log->fd, temp, 8) != 8)
fd                 74 lib/zlib/gzio.c local gzFile gz_open      OF((const char *path, const char *mode, int  fd));
fd                 91 lib/zlib/gzio.c local gzFile gz_open (path, mode, fd)
fd                 94 lib/zlib/gzio.c     int  fd;
fd                179 lib/zlib/gzio.c     s->file = fd < 0 ? F_OPEN(path, fmode) : (FILE*)fdopen(fd, fmode);
fd                217 lib/zlib/gzio.c gzFile ZEXPORT gzdopen (fd, mode)
fd                218 lib/zlib/gzio.c     int fd;
fd                223 lib/zlib/gzio.c     if (fd < 0) return (gzFile)Z_NULL;
fd                224 lib/zlib/gzio.c     sprintf(name, "<fd:%d>", fd); /* for debugging */
fd                226 lib/zlib/gzio.c     return gz_open (name, mode, fd);
fd               1101 lib/zlib/zlib.h ZEXTERN gzFile ZEXPORT gzdopen  OF((int fd, const char *mode));
fd                131 lib/zlib/zutil.h #      define fdopen(fd,mode) NULL /* No fdopen() */
fd                151 lib/zlib/zutil.h #  define fdopen(fd,mode) NULL /* No fdopen() */
fd                156 lib/zlib/zutil.h #    define fdopen(fd,mode) NULL /* No fdopen() */
fd                162 lib/zlib/zutil.h #    define fdopen(fd,type)  _fdopen(fd,type)
fd                 77 nsswitch/wb_common.c static int make_nonstd_fd_internals(int fd, int limit /* Recursion limiter */)
fd                 80 nsswitch/wb_common.c 	if (fd >= 0 && fd <= 2) {
fd                 82 nsswitch/wb_common.c 		if ((new_fd = fcntl(fd, F_DUPFD, 3)) == -1) {
fd                 90 nsswitch/wb_common.c 		close(fd);
fd                 96 nsswitch/wb_common.c 		new_fd = dup(fd);
fd                102 nsswitch/wb_common.c 		close(fd);
fd                106 nsswitch/wb_common.c 	return fd;
fd                117 nsswitch/wb_common.c static int make_safe_fd(int fd)
fd                120 nsswitch/wb_common.c 	int new_fd = make_nonstd_fd_internals(fd, RECURSION_LIMIT);
fd                122 nsswitch/wb_common.c 		close(fd);
fd                172 nsswitch/wb_common.c 	int fd;
fd                220 nsswitch/wb_common.c 	if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) {
fd                226 nsswitch/wb_common.c 	if ((fd = make_safe_fd( fd)) == -1) {
fd                227 nsswitch/wb_common.c 		return fd;
fd                230 nsswitch/wb_common.c 	for (wait_time = 0; connect(fd, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) == -1;
fd                244 nsswitch/wb_common.c 				FD_SET(fd, &w_fds);
fd                248 nsswitch/wb_common.c 				ret = select(fd + 1, NULL, &w_fds, NULL, &tv);
fd                253 nsswitch/wb_common.c 					ret = getsockopt(fd, SOL_SOCKET,
fd                276 nsswitch/wb_common.c 	return fd;
fd                280 nsswitch/wb_common.c 	close(fd);
fd                344 nsswitch/wb_common.c 		int fd;
fd                345 nsswitch/wb_common.c 		if ((fd = winbind_named_pipe_sock((char *)response.extra_data.data)) != -1) {
fd                347 nsswitch/wb_common.c 			winbindd_fd = fd;
fd                174 nsswitch/winbind_nss_irix.c winbind_callback(nsd_file_t **rqp, int fd)
fd                190 nsswitch/winbind_nss_irix.c 	nsd_callback_remove(fd);
fd                107 nsswitch/wins.c 	int fd = -1;
fd                134 nsswitch/wins.c 	fd = wins_lookup_open_socket_in();
fd                135 nsswitch/wins.c 	if (fd == -1) {
fd                148 nsswitch/wins.c 		pss = name_query(fd,name,0x00,True,True,&ss,count, &flags, NULL);
fd                158 nsswitch/wins.c 	close(fd);
fd                166 nsswitch/wins.c 	int fd;
fd                175 nsswitch/wins.c 	fd = wins_lookup_open_socket_in();
fd                176 nsswitch/wins.c 	if (fd == -1)
fd                183 nsswitch/wins.c 	status = node_status_query(fd, &nname, &ss, count, NULL);
fd                185 nsswitch/wins.c 	close(fd);
fd                113 source3/auth/auth_netlogond.c 	int ret, fd;
fd                128 source3/auth/auth_netlogond.c 	ret = smbrun(script, &fd);
fd                137 source3/auth/auth_netlogond.c 	nread = read(fd, pwd, sizeof(pwd)-1);
fd                138 source3/auth/auth_netlogond.c 	close(fd);
fd                172 source3/auth/auth_server.c 	if (send_keepalive(state->cli->fd)) {
fd               1272 source3/client/client.c 	int fd;
fd               1284 source3/client/client.c 	fd = smb_mkstemp(lname);
fd               1285 source3/client/client.c 	if (fd == -1) {
fd               1289 source3/client/client.c 	close(fd);
fd               4387 source3/client/client.c 	if (cli->fd == -1)
fd               4391 source3/client/client.c 	FD_SET(cli->fd,&fds);
fd               4395 source3/client/client.c 	sys_select_intr(cli->fd+1,&fds,NULL,NULL,&timeout);
fd               4401 source3/client/client.c 	if (FD_ISSET(cli->fd,&fds)) {
fd               4407 source3/client/client.c 		status = receive_smb_raw(cli->fd, cli->inbuf, cli->bufsize, 0, 0, &len);
fd                194 source3/groupdb/mapping.c 	int 	fd = 0;
fd                214 source3/groupdb/mapping.c 		ret = smbrun(add_script, &fd);
fd                222 source3/groupdb/mapping.c 		if (fd != 0) {
fd                226 source3/groupdb/mapping.c 			if (read(fd, output, sizeof(output)) > 0) {
fd                230 source3/groupdb/mapping.c 			close(fd);
fd                177 source3/include/client.h 	int fd;
fd               1040 source3/include/includes.h ssize_t readahead(int fd, off64_t offset, size_t count);
fd               1270 source3/include/libsmbclient.h ssize_t smbc_read(int fd, void *buf, size_t bufsize);
fd               1293 source3/include/libsmbclient.h ssize_t smbc_write(int fd, const void *buf, size_t bufsize);
fd               1324 source3/include/libsmbclient.h off_t smbc_lseek(int fd, off_t offset, int whence);
fd               1338 source3/include/libsmbclient.h int smbc_close(int fd);
fd               1533 source3/include/libsmbclient.h int smbc_lseekdir(int fd, off_t offset);
fd               1620 source3/include/libsmbclient.h int smbc_fstat(int fd, struct stat *st);
fd               1665 source3/include/libsmbclient.h smbc_fstatvfs(int fd,
fd               1686 source3/include/libsmbclient.h int smbc_ftruncate(int fd, off_t size);
fd               2066 source3/include/libsmbclient.h int smbc_fsetxattr(int fd,
fd               2257 source3/include/libsmbclient.h int smbc_fgetxattr(int fd,
fd               2404 source3/include/libsmbclient.h int smbc_fremovexattr(int fd,
fd               2511 source3/include/libsmbclient.h int smbc_flistxattr(int fd,
fd                533 source3/include/nameserv.h 	int fd;
fd                 31 source3/include/packet.h struct packet_context *packet_init(TALLOC_CTX *mem_ctx, int fd);
fd                 32 source3/include/printing.h 	int fd; /* file descriptor of open file if open */
fd                907 source3/include/proto.h ssize_t sys_read(int fd, void *buf, size_t count);
fd                908 source3/include/proto.h ssize_t sys_write(int fd, const void *buf, size_t count);
fd                909 source3/include/proto.h ssize_t sys_writev(int fd, const struct iovec *iov, int iovcnt);
fd                910 source3/include/proto.h ssize_t sys_pread(int fd, void *buf, size_t count, SMB_OFF_T off);
fd                911 source3/include/proto.h ssize_t sys_pwrite(int fd, const void *buf, size_t count, SMB_OFF_T off);
fd                914 source3/include/proto.h ssize_t sys_recv(int fd, void *buf, size_t count, int flags);
fd                916 source3/include/proto.h int sys_fcntl_ptr(int fd, int cmd, void *arg);
fd                917 source3/include/proto.h int sys_fcntl_long(int fd, int cmd, long arg);
fd                919 source3/include/proto.h int sys_fstat(int fd,SMB_STRUCT_STAT *sbuf);
fd                921 source3/include/proto.h int sys_ftruncate(int fd, SMB_OFF_T offset);
fd                922 source3/include/proto.h SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence);
fd                928 source3/include/proto.h void kernel_flock(int fd, uint32 share_mode);
fd                953 source3/include/proto.h int sys_pclose(int fd);
fd                971 source3/include/proto.h int sys_aio_cancel(int fd, SMB_STRUCT_AIOCB *aiocb);
fd                978 source3/include/proto.h int sys_aio_cancel(int fd, SMB_STRUCT_AIOCB *aiocb);
fd                990 source3/include/proto.h int sys_connect(int fd, const struct sockaddr * addr);
fd               1123 source3/include/proto.h ssize_t write_data_at_offset(int fd, const char *buffer, size_t N, SMB_OFF_T pos);
fd               1124 source3/include/proto.h int set_blocking(int fd, bool set);
fd               1153 source3/include/proto.h bool fcntl_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type);
fd               1154 source3/include/proto.h bool fcntl_getlock(int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid);
fd               1365 source3/include/proto.h const char *client_name(int fd);
fd               1366 source3/include/proto.h const char *client_addr(int fd, char *addr, size_t addrlen);
fd               1367 source3/include/proto.h const char *client_socket_addr(int fd, char *addr, size_t addr_len);
fd               1368 source3/include/proto.h int client_socket_port(int fd);
fd               1373 source3/include/proto.h bool is_a_socket(int fd);
fd               1374 source3/include/proto.h void set_socket_options(int fd, const char *options);
fd               1375 source3/include/proto.h ssize_t read_udp_v4_socket(int fd,
fd               1379 source3/include/proto.h NTSTATUS read_fd_with_timeout(int fd, char *buf,
fd               1383 source3/include/proto.h NTSTATUS read_data(int fd, char *buffer, size_t N);
fd               1384 source3/include/proto.h ssize_t write_data(int fd, const char *buffer, size_t N);
fd               1385 source3/include/proto.h ssize_t write_data_iov(int fd, const struct iovec *orig_iov, int iovcnt);
fd               1387 source3/include/proto.h NTSTATUS read_smb_length_return_keepalive(int fd, char *inbuf,
fd               1390 source3/include/proto.h NTSTATUS read_smb_length(int fd, char *inbuf, unsigned int timeout,
fd               1392 source3/include/proto.h NTSTATUS receive_smb_raw(int fd,
fd               1419 source3/include/proto.h 			 int timeout, int *fd_index, int *fd);
fd               1421 source3/include/proto.h const char *get_peer_name(int fd, bool force_lookup);
fd               1422 source3/include/proto.h const char *get_peer_addr(int fd, char *addr, size_t addr_len);
fd               2528 source3/include/proto.h bool cli_getattrE(struct cli_state *cli, int fd,
fd               2535 source3/include/proto.h bool cli_setattrE(struct cli_state *cli, int fd,
fd               2987 source3/include/proto.h NODE_STATUS_STRUCT *node_status_query(int fd,
fd               2998 source3/include/proto.h struct sockaddr_storage *name_query(int fd,
fd               3063 source3/include/proto.h struct packet_struct *read_packet(int fd,enum packet_type packet_type);
fd               3068 source3/include/proto.h struct packet_struct *receive_packet(int fd,enum packet_type type,int t);
fd               3069 source3/include/proto.h struct packet_struct *receive_nmb_packet(int fd, int t, int trn_id);
fd               3070 source3/include/proto.h struct packet_struct *receive_dgram_packet(int fd, int t,
fd               5417 source3/include/proto.h NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
fd               6411 source3/include/proto.h files_struct *file_find_fd(int fd);
fd               6705 source3/include/proto.h int linux_set_lease_sighandler(int fd);
fd               6706 source3/include/proto.h int linux_setlease(int fd, int leasetype);
fd               6772 source3/include/proto.h bool srv_send_smb(int fd, char *buffer, bool do_encrypt,
fd                183 source3/include/regfio.h 	int fd;				/* file descriptor */
fd                346 source3/include/smb.h 	int fd;
fd                 55 source3/include/smb_macros.h #define CHECK_READ(fsp,req) (((fsp)->fh->fd != -1) && ((fsp)->can_read || \
fd                 59 source3/include/smb_macros.h #define CHECK_WRITE(fsp) ((fsp)->can_write && ((fsp)->fh->fd != -1))
fd                 43 source3/include/wbc_async.h 				    int fd, size_t max_extra_data);
fd                 49 source3/include/wbc_async.h 				     struct tevent_queue *queue, int fd,
fd                 54 source3/include/wbc_async.h 				     struct tevent_context *ev, int fd);
fd                 60 source3/include/wbc_async.h 				      struct tevent_queue *queue, int fd,
fd                 33 source3/lib/avahi.c 	int fd;
fd                 56 source3/lib/avahi.c static AvahiWatch *avahi_watch_new(const AvahiPoll *api, int fd,
fd                 79 source3/lib/avahi.c 	watch_ctx->fde = tevent_add_fd(ctx->ev, watch_ctx, fd,
fd                106 source3/lib/avahi.c 	watch_ctx->callback(watch_ctx, watch_ctx->fd, watch_ctx->latest_event,
fd                122 source3/lib/ctdbd_conn.c 	int fd;
fd                128 source3/lib/ctdbd_conn.c 	fd = socket(AF_UNIX, SOCK_STREAM, 0);
fd                129 source3/lib/ctdbd_conn.c 	if (fd == -1) {
fd                138 source3/lib/ctdbd_conn.c 	if (sys_connect(fd, (struct sockaddr *)&addr) == -1) {
fd                141 source3/lib/ctdbd_conn.c 		close(fd);
fd                145 source3/lib/ctdbd_conn.c 	if (!(result = packet_init(mem_ctx, fd))) {
fd                146 source3/lib/ctdbd_conn.c 		close(fd);
fd                 31 source3/lib/dbwrap_file.c 	int fd;
fd                 56 source3/lib/dbwrap_file.c 	if (close(data->fd) != 0) {
fd                124 source3/lib/dbwrap_file.c 	file->fd = open(file->path, O_RDWR|O_CREAT, 0644);
fd                127 source3/lib/dbwrap_file.c 	if (file->fd < 0) {
fd                143 source3/lib/dbwrap_file.c 		ret = fcntl(file->fd, F_SETLKW, &fl);
fd                153 source3/lib/dbwrap_file.c 	if (sys_fstat(file->fd, &statbuf) != 0) {
fd                179 source3/lib/dbwrap_file.c 		nread = read_data(file->fd, (char *)result->value.dptr,
fd                194 source3/lib/dbwrap_file.c static NTSTATUS db_file_store_root(int fd, TDB_DATA data)
fd                196 source3/lib/dbwrap_file.c 	if (sys_lseek(fd, 0, SEEK_SET) != 0) {
fd                201 source3/lib/dbwrap_file.c 	if (write_data(fd, (char *)data.dptr, data.dsize) != data.dsize) {
fd                206 source3/lib/dbwrap_file.c 	if (sys_ftruncate(fd, data.dsize) != 0) {
fd                222 source3/lib/dbwrap_file.c 	status = db_file_store_root(file->fd, data);
fd                 59 source3/lib/events.c 			FD_SET(fde->fd, read_fds);
fd                 63 source3/lib/events.c 			FD_SET(fde->fd, write_fds);
fd                 68 source3/lib/events.c 		    && (fde->fd > *maxfd)) {
fd                 69 source3/lib/events.c 			*maxfd = fde->fd;
fd                122 source3/lib/events.c 		if (FD_ISSET(fde->fd, read_fds)) flags |= EVENT_FD_READ;
fd                123 source3/lib/events.c 		if (FD_ISSET(fde->fd, write_fds)) flags |= EVENT_FD_WRITE;
fd                228 source3/lib/events.c 			   fe->fd,
fd                189 source3/lib/ldb/tools/ldbedit.c 	int fd, ret;
fd                199 source3/lib/ldb/tools/ldbedit.c 	fd = mkstemp(file_template);
fd                201 source3/lib/ldb/tools/ldbedit.c 	if (fd == -1) {
fd                206 source3/lib/ldb/tools/ldbedit.c 	f = fdopen(fd, "r+");
fd                210 source3/lib/ldb/tools/ldbedit.c 		close(fd);
fd                 23 source3/lib/packet.c 	int fd;
fd                 32 source3/lib/packet.c 	return close(ctx->fd);
fd                 39 source3/lib/packet.c struct packet_context *packet_init(TALLOC_CTX *mem_ctx, int fd)
fd                 47 source3/lib/packet.c 	result->fd = fd;
fd                 61 source3/lib/packet.c 	res = ioctl(ctx->fd, FIONREAD, &available);
fd                 88 source3/lib/packet.c 	res = recv(ctx->fd, in + ctx->in.length, available, 0);
fd                110 source3/lib/packet.c 	FD_SET(ctx->fd, &r_fds);
fd                112 source3/lib/packet.c 	res = sys_select(ctx->fd+1, &r_fds, NULL, NULL, NULL);
fd                178 source3/lib/packet.c 	sent = send(ctx->fd, ctx->out.data, ctx->out.length, 0);
fd                265 source3/lib/packet.c 	return ctx->fd;
fd                 34 source3/lib/pidfile.c 	int fd;
fd                 44 source3/lib/pidfile.c 	fd = sys_open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
fd                 45 source3/lib/pidfile.c 	if (fd == -1) {
fd                 52 source3/lib/pidfile.c 	if (read(fd, pidstr, sizeof(pidstr)-1) <= 0) {
fd                 70 source3/lib/pidfile.c 	if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_RDLCK)) {
fd                 76 source3/lib/pidfile.c 	close(fd);
fd                 80 source3/lib/pidfile.c 	close(fd);
fd                 89 source3/lib/pidfile.c 	int     fd;
fd                125 source3/lib/pidfile.c 	fd = sys_open(pidFile_name, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL,
fd                127 source3/lib/pidfile.c 	if (fd == -1) {
fd                133 source3/lib/pidfile.c 	if (fcntl_lock(fd,SMB_F_SETLK,0,1,F_WRLCK)==False) {
fd                141 source3/lib/pidfile.c 	if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
fd                343 source3/lib/popt_common.c 	int fd = -1;
fd                353 source3/lib/popt_common.c 		sscanf(p, "%d", &fd);
fd                356 source3/lib/popt_common.c 		fd = sys_open(p, O_RDONLY, 0);
fd                358 source3/lib/popt_common.c 		if (fd < 0) {
fd                366 source3/lib/popt_common.c 	if (fd < 0) {
fd                367 source3/lib/popt_common.c 		fprintf(stderr, "fd = %d, < 0\n", fd);
fd                373 source3/lib/popt_common.c 		switch (read(fd, p, 1)) {
fd                402 source3/lib/popt_common.c 		close(fd);
fd                 76 source3/lib/readline.c 	int fd = x_fileno(x_stdin);
fd                 95 source3/lib/readline.c 		FD_SET(fd,&fds);
fd                 97 source3/lib/readline.c 		if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
fd                 31 source3/lib/smbrun.c 	int fd;
fd                 45 source3/lib/smbrun.c 	fd = smb_mkstemp(path);
fd                 47 source3/lib/smbrun.c 	if (fd == -1) {
fd                 59 source3/lib/smbrun.c 	return fd;
fd                182 source3/lib/smbrun.c 	int fd;
fd                183 source3/lib/smbrun.c 	for (fd=3;fd<256;fd++) close(fd);
fd                341 source3/lib/smbrun.c 		int fd;
fd                342 source3/lib/smbrun.c 		for (fd = 3; fd < 256; fd++) close(fd);
fd                 31 source3/lib/sock_exec.c static int socketpair_tcp(int fd[2])
fd                 39 source3/lib/sock_exec.c 	fd[0] = fd[1] = listener = -1;
fd                 57 source3/lib/sock_exec.c 	if ((fd[1] = socket(PF_INET, SOCK_STREAM, 0)) == -1) goto failed;
fd                 59 source3/lib/sock_exec.c 	set_blocking(fd[1], 0);
fd                 63 source3/lib/sock_exec.c 	if (sys_connect(fd[1], (struct sockaddr *)&sock) == -1) {
fd                 69 source3/lib/sock_exec.c 	if ((fd[0] = accept(listener, (struct sockaddr *)&sock, &socklen)) == -1) goto failed;
fd                 73 source3/lib/sock_exec.c 		if (sys_connect(fd[1], (struct sockaddr *)&sock) != 0
fd                 77 source3/lib/sock_exec.c 	set_blocking(fd[1], 1);
fd                 83 source3/lib/sock_exec.c 	if (fd[0] != -1) close(fd[0]);
fd                 84 source3/lib/sock_exec.c 	if (fd[1] != -1) close(fd[1]);
fd                 99 source3/lib/sock_exec.c 	int fd[2];
fd                100 source3/lib/sock_exec.c 	if (socketpair_tcp(fd) != 0) {
fd                105 source3/lib/sock_exec.c 		close(fd[0]);
fd                108 source3/lib/sock_exec.c 		if (dup(fd[1]) == -1) {
fd                111 source3/lib/sock_exec.c 		if (dup(fd[1]) == -1) {
fd                116 source3/lib/sock_exec.c 	close(fd[1]);
fd                117 source3/lib/sock_exec.c 	return fd[0];
fd                120 source3/lib/system.c ssize_t sys_read(int fd, void *buf, size_t count)
fd                125 source3/lib/system.c 		ret = read(fd, buf, count);
fd                134 source3/lib/system.c ssize_t sys_write(int fd, const void *buf, size_t count)
fd                139 source3/lib/system.c 		ret = write(fd, buf, count);
fd                148 source3/lib/system.c ssize_t sys_writev(int fd, const struct iovec *iov, int iovcnt)
fd                155 source3/lib/system.c 		return sys_write(fd, iov[0].iov_base, iov[0].iov_len);
fd                158 source3/lib/system.c 		return sys_write(fd, iov[0].iov_base,
fd                164 source3/lib/system.c 		ret = writev(fd, iov, iovcnt);
fd                174 source3/lib/system.c ssize_t sys_pread(int fd, void *buf, size_t count, SMB_OFF_T off)
fd                180 source3/lib/system.c 		ret = pread64(fd, buf, count, off);
fd                182 source3/lib/system.c 		ret = pread(fd, buf, count, off);
fd                194 source3/lib/system.c ssize_t sys_pwrite(int fd, const void *buf, size_t count, SMB_OFF_T off)
fd                200 source3/lib/system.c 		ret = pwrite64(fd, buf, count, off);
fd                202 source3/lib/system.c 		ret = pwrite(fd, buf, count, off);
fd                241 source3/lib/system.c ssize_t sys_recv(int fd, void *buf, size_t count, int flags)
fd                246 source3/lib/system.c 		ret = recv(fd, buf, count, flags);
fd                269 source3/lib/system.c int sys_fcntl_ptr(int fd, int cmd, void *arg)
fd                274 source3/lib/system.c 		ret = fcntl(fd, cmd, arg);
fd                283 source3/lib/system.c int sys_fcntl_long(int fd, int cmd, long arg)
fd                288 source3/lib/system.c 		ret = fcntl(fd, cmd, arg);
fd                314 source3/lib/system.c int sys_fstat(int fd,SMB_STRUCT_STAT *sbuf)
fd                318 source3/lib/system.c 	ret = fstat64(fd, sbuf);
fd                320 source3/lib/system.c 	ret = fstat(fd, sbuf);
fd                348 source3/lib/system.c int sys_ftruncate(int fd, SMB_OFF_T offset)
fd                351 source3/lib/system.c 	return ftruncate64(fd, offset);
fd                353 source3/lib/system.c 	return ftruncate(fd, offset);
fd                361 source3/lib/system.c SMB_OFF_T sys_lseek(int fd, SMB_OFF_T offset, int whence)
fd                364 source3/lib/system.c 	return lseek64(fd, offset, whence);
fd                366 source3/lib/system.c 	return lseek(fd, offset, whence);
fd                448 source3/lib/system.c void kernel_flock(int fd, uint32 share_mode)
fd                460 source3/lib/system.c 		flock(fd, kernel_mode);
fd               1053 source3/lib/system.c 	int fd;
fd               1118 source3/lib/system.c 			close(p->fd);
fd               1134 source3/lib/system.c 	entry->fd = parent_end;
fd               1136 source3/lib/system.c 	return entry->fd;
fd               1151 source3/lib/system.c int sys_pclose(int fd)
fd               1161 source3/lib/system.c 		if ((*ptr)->fd == fd) {
fd               1169 source3/lib/system.c 	if (status < 0 || close(entry->fd) < 0)
fd               2155 source3/lib/system.c int sys_aio_cancel(int fd, SMB_STRUCT_AIOCB *aiocb)
fd               2158 source3/lib/system.c         return aio_cancel64(fd, aiocb);
fd               2160 source3/lib/system.c         return aio_cancel(fd, aiocb);
fd               2234 source3/lib/system.c int sys_aio_cancel(int fd, SMB_STRUCT_AIOCB *aiocb)
fd               2308 source3/lib/system.c int sys_connect(int fd, const struct sockaddr * addr)
fd               2323 source3/lib/system.c 	return connect(fd, addr, salen);
fd                844 source3/lib/util.c ssize_t write_data_at_offset(int fd, const char *buffer, size_t N, SMB_OFF_T pos)
fd                850 source3/lib/util.c 		return write_data(fd, buffer, N);
fd                854 source3/lib/util.c 		ret = sys_pwrite(fd,buffer + total,N - total, pos);
fd                856 source3/lib/util.c 			return write_data(fd, buffer + total,N - total);
fd                871 source3/lib/util.c 	if (sys_lseek(fd, pos, SEEK_SET) == -1) {
fd                876 source3/lib/util.c 	return write_data(fd, buffer, N);
fd               1826 source3/lib/util.c bool fcntl_getlock(int fd, SMB_OFF_T *poffset, SMB_OFF_T *pcount, int *ptype, pid_t *ppid)
fd               1832 source3/lib/util.c 		    fd,(double)*poffset,(double)*pcount,*ptype));
fd               1840 source3/lib/util.c 	ret = sys_fcntl_ptr(fd,SMB_F_GETLK,&lock);
fd               1856 source3/lib/util.c 			fd, (int)lock.l_type, (unsigned int)lock.l_pid));
fd                 28 source3/lib/util_file.c 	int fd, n;
fd                 33 source3/lib/util_file.c 	fd = sys_popen(syscmd);
fd                 34 source3/lib/util_file.c 	if (fd == -1) {
fd                 41 source3/lib/util_file.c 	while ((n = read(fd, buf, sizeof(buf))) > 0) {
fd                 45 source3/lib/util_file.c 			close(fd);
fd                 59 source3/lib/util_file.c 	sys_pclose(fd);
fd                186 source3/lib/util_sock.c static const char *get_socket_addr(int fd, char *addr_buf, size_t addr_len)
fd                198 source3/lib/util_sock.c 	if (fd == -1) {
fd                202 source3/lib/util_sock.c 	if (getsockname(fd, (struct sockaddr *)&sa, &length) < 0) {
fd                217 source3/lib/util_sock.c static int get_socket_port(int fd)
fd                222 source3/lib/util_sock.c 	if (fd == -1) {
fd                226 source3/lib/util_sock.c 	if (getsockname(fd, (struct sockaddr *)&sa, &length) < 0) {
fd                244 source3/lib/util_sock.c const char *client_name(int fd)
fd                246 source3/lib/util_sock.c 	return get_peer_name(fd,false);
fd                249 source3/lib/util_sock.c const char *client_addr(int fd, char *addr, size_t addrlen)
fd                251 source3/lib/util_sock.c 	return get_peer_addr(fd,addr,addrlen);
fd                254 source3/lib/util_sock.c const char *client_socket_addr(int fd, char *addr, size_t addr_len)
fd                256 source3/lib/util_sock.c 	return get_socket_addr(fd, addr, addr_len);
fd                261 source3/lib/util_sock.c int client_socket_port(int fd)
fd                263 source3/lib/util_sock.c 	return get_socket_port(fd);
fd                291 source3/lib/util_sock.c bool is_a_socket(int fd)
fd                296 source3/lib/util_sock.c 	return(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0);
fd                389 source3/lib/util_sock.c void set_socket_options(int fd, const char *options)
fd                418 source3/lib/util_sock.c 			ret = setsockopt(fd,socket_options[i].level,
fd                430 source3/lib/util_sock.c 				ret = setsockopt(fd,socket_options[i].level,
fd                447 source3/lib/util_sock.c 	print_socket_options(fd);
fd                454 source3/lib/util_sock.c ssize_t read_udp_v4_socket(int fd,
fd                465 source3/lib/util_sock.c 	ret = (ssize_t)sys_recvfrom(fd,buf,len,0,
fd                501 source3/lib/util_sock.c NTSTATUS read_fd_with_timeout(int fd, char *buf,
fd                524 source3/lib/util_sock.c 			readret = sys_read(fd, buf + nread, maxcnt - nread);
fd                533 source3/lib/util_sock.c 				if (fd == get_client_fd()) {
fd                538 source3/lib/util_sock.c 						get_peer_addr(fd,addr,sizeof(addr)),
fd                564 source3/lib/util_sock.c 		FD_SET(fd,&fds);
fd                566 source3/lib/util_sock.c 		selrtn = sys_select_intr(fd+1,&fds,NULL,NULL,&timeout);
fd                571 source3/lib/util_sock.c 			if (fd == get_client_fd()) {
fd                576 source3/lib/util_sock.c 				get_peer_addr(fd,addr,sizeof(addr)),
fd                593 source3/lib/util_sock.c 		readret = sys_read(fd, buf+nread, maxcnt-nread);
fd                604 source3/lib/util_sock.c 			if (fd == get_client_fd()) {
fd                609 source3/lib/util_sock.c 					get_peer_addr(fd,addr,sizeof(addr)),
fd                636 source3/lib/util_sock.c NTSTATUS read_data(int fd, char *buffer, size_t N)
fd                638 source3/lib/util_sock.c 	return read_fd_with_timeout(fd, buffer, N, N, 0, NULL);
fd                647 source3/lib/util_sock.c ssize_t write_data_iov(int fd, const struct iovec *orig_iov, int iovcnt)
fd                660 source3/lib/util_sock.c 	thistime = sys_writev(fd, orig_iov, iovcnt);
fd                701 source3/lib/util_sock.c 		thistime = sys_writev(fd, iov, iovcnt);
fd                718 source3/lib/util_sock.c ssize_t write_data(int fd, const char *buffer, size_t N)
fd                726 source3/lib/util_sock.c 	ret = write_data_iov(fd, &iov, 1);
fd                731 source3/lib/util_sock.c 	if (fd == get_client_fd()) {
fd                737 source3/lib/util_sock.c 			  "Error %s\n", get_peer_addr(fd,addr,sizeof(addr)),
fd                769 source3/lib/util_sock.c NTSTATUS read_smb_length_return_keepalive(int fd, char *inbuf,
fd                776 source3/lib/util_sock.c 	status = read_fd_with_timeout(fd, inbuf, 4, 4, timeout, NULL);
fd                801 source3/lib/util_sock.c NTSTATUS read_smb_length(int fd, char *inbuf, unsigned int timeout,
fd                809 source3/lib/util_sock.c 		status = read_smb_length_return_keepalive(fd, inbuf, timeout,
fd                833 source3/lib/util_sock.c NTSTATUS receive_smb_raw(int fd, char *buffer, size_t buflen, unsigned int timeout,
fd                839 source3/lib/util_sock.c 	status = read_smb_length_return_keepalive(fd,buffer,timeout,&len);
fd                858 source3/lib/util_sock.c 			fd, buffer+4, len, len, timeout, &len);
fd                956 source3/lib/util_sock.c 	int fd;
fd                968 source3/lib/util_sock.c 	if (s->fd != -1) {
fd                969 source3/lib/util_sock.c 		close(s->fd);
fd               1000 source3/lib/util_sock.c 	state->fd = socket(state->ss.ss_family, SOCK_STREAM, 0);
fd               1001 source3/lib/util_sock.c 	if (state->fd == -1) {
fd               1035 source3/lib/util_sock.c 	subreq = async_connect_send(state, state->ev, state->fd,
fd               1087 source3/lib/util_sock.c 		subreq = async_connect_send(state, state->ev, state->fd,
fd               1123 source3/lib/util_sock.c 	*pfd = state->fd;
fd               1124 source3/lib/util_sock.c 	state->fd = -1;
fd               1160 source3/lib/util_sock.c 	int fd;
fd               1230 source3/lib/util_sock.c 	status = open_socket_out_recv(subreq, &state->fd);
fd               1248 source3/lib/util_sock.c 	*pfd = state->fd;
fd               1249 source3/lib/util_sock.c 	state->fd = -1;
fd               1271 source3/lib/util_sock.c 			 int timeout, int *fd_index, int *fd)
fd               1410 source3/lib/util_sock.c 		*fd = sockets[*fd_index];
fd               1411 source3/lib/util_sock.c 		set_blocking(*fd, true);
fd               1469 source3/lib/util_sock.c static const char *get_peer_addr_internal(int fd,
fd               1480 source3/lib/util_sock.c 	if (fd == -1) {
fd               1489 source3/lib/util_sock.c 	if (getpeername(fd, (struct sockaddr *)pss, plength) < 0) {
fd               1629 source3/lib/util_sock.c const char *get_peer_name(int fd, bool force_lookup)
fd               1646 source3/lib/util_sock.c 		nc.name = get_peer_addr_internal(fd, addr_buf, sizeof(addr_buf),
fd               1656 source3/lib/util_sock.c 	p = get_peer_addr_internal(fd, addr_buf, sizeof(addr_buf), (struct sockaddr *)&ss, &length);
fd               1664 source3/lib/util_sock.c 	if (fd == -1) {
fd               1712 source3/lib/util_sock.c const char *get_peer_addr(int fd, char *addr, size_t addr_len)
fd               1714 source3/lib/util_sock.c 	return get_peer_addr_internal(fd, addr, addr_len, NULL, NULL);
fd                 94 source3/lib/util_transfer_file.c 	int *fd = (int *)file;
fd                 96 source3/lib/util_transfer_file.c 	return sys_read(*fd, buf, len);
fd                101 source3/lib/util_transfer_file.c 	int *fd = (int *)file;
fd                103 source3/lib/util_transfer_file.c 	return sys_write(*fd, buf, len);
fd                 89 source3/lib/wb_reqtrans.c 				    int fd, size_t max_extra_data)
fd                100 source3/lib/wb_reqtrans.c 	subreq = read_packet_send(state, ev, fd, 4, wb_req_more, state);
fd                189 source3/lib/wb_reqtrans.c 				     struct tevent_queue *queue, int fd,
fd                210 source3/lib/wb_reqtrans.c 	subreq = writev_send(state, ev, queue, fd, state->iov, count);
fd                251 source3/lib/wb_reqtrans.c 				     struct tevent_context *ev, int fd)
fd                261 source3/lib/wb_reqtrans.c 	subreq = read_packet_send(state, ev, fd, 4, wb_resp_more, state);
fd                339 source3/lib/wb_reqtrans.c 				      struct tevent_queue *queue, int fd,
fd                361 source3/lib/wb_reqtrans.c 	subreq = writev_send(state, ev, queue, fd, state->iov, count);
fd                 25 source3/lib/wbclient.c 	int fd;
fd                 29 source3/lib/wbclient.c static int make_nonstd_fd(int fd)
fd                 36 source3/lib/wbclient.c 	if (fd == -1) {
fd                 39 source3/lib/wbclient.c 	while (fd < 3) {
fd                 40 source3/lib/wbclient.c 		fds[num_fds++] = fd;
fd                 41 source3/lib/wbclient.c 		fd = dup(fd);
fd                 42 source3/lib/wbclient.c 		if (fd == -1) {
fd                 50 source3/lib/wbclient.c 	if (fd == -1) {
fd                 53 source3/lib/wbclient.c 	return fd;
fd                 64 source3/lib/wbclient.c static int make_safe_fd(int fd)
fd                 67 source3/lib/wbclient.c 	int new_fd = make_nonstd_fd(fd);
fd                118 source3/lib/wbclient.c static bool winbind_closed_fd(int fd)
fd                123 source3/lib/wbclient.c 	if (fd == -1) {
fd                128 source3/lib/wbclient.c 	FD_SET(fd, &r_fds);
fd                131 source3/lib/wbclient.c 	if ((select(fd+1, &r_fds, NULL, NULL, &tv) == -1)
fd                132 source3/lib/wbclient.c 	    || FD_ISSET(fd, &r_fds)) {
fd                152 source3/lib/wbclient.c 	result->fd = -1;
fd                179 source3/lib/wbclient.c 	if (wb_ctx->fd != -1) {
fd                180 source3/lib/wbclient.c 		close(wb_ctx->fd);
fd                181 source3/lib/wbclient.c 		wb_ctx->fd = -1;
fd                220 source3/lib/wbclient.c 	wb_ctx->fd = make_safe_fd(socket(AF_UNIX, SOCK_STREAM, 0));
fd                221 source3/lib/wbclient.c 	if (wb_ctx->fd == -1) {
fd                226 source3/lib/wbclient.c 	subreq = async_connect_send(mem_ctx, ev, wb_ctx->fd,
fd                270 source3/lib/wbclient.c 	int fd;
fd                280 source3/lib/wbclient.c 					    struct tevent_queue *queue, int fd,
fd                292 source3/lib/wbclient.c 	if (winbind_closed_fd(fd)) {
fd                298 source3/lib/wbclient.c 	state->fd = fd;
fd                303 source3/lib/wbclient.c 	subreq = wb_req_write_send(state, state->ev, queue, state->fd,
fd                332 source3/lib/wbclient.c 	subreq = wb_resp_read_send(state, state->ev, state->fd);
fd                415 source3/lib/wbclient.c 	if (wb_ctx->fd != -1) {
fd                416 source3/lib/wbclient.c 		close(wb_ctx->fd);
fd                417 source3/lib/wbclient.c 		wb_ctx->fd = -1;
fd                452 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
fd                483 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
fd                507 source3/lib/wbclient.c 	close(state->wb_ctx->fd);
fd                508 source3/lib/wbclient.c 	state->wb_ctx->fd = -1;
fd                574 source3/lib/wbclient.c 	if ((wb_ctx->fd == -1) || (need_priv && !wb_ctx->is_priv)) {
fd                583 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, ev, wb_ctx->queue, wb_ctx->fd,
fd                624 source3/lib/wbclient.c 	if (state->wb_ctx->fd != -1) {
fd                625 source3/lib/wbclient.c 		close(state->wb_ctx->fd);
fd                626 source3/lib/wbclient.c 		state->wb_ctx->fd = -1;
fd                676 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
fd                150 source3/libaddns/dnssock.c static DNS_ERROR write_all(int fd, uint8 *data, size_t len)
fd                156 source3/libaddns/dnssock.c 		ssize_t ret = write(fd, data + total, len - total);
fd                212 source3/libaddns/dnssock.c static DNS_ERROR read_all(int fd, uint8 *data, size_t len)
fd                223 source3/libaddns/dnssock.c 		FD_SET( fd, &rfds );
fd                229 source3/libaddns/dnssock.c 		fd_ready = select( fd+1, &rfds, NULL, NULL, &tv );
fd                235 source3/libaddns/dnssock.c 		ret = read(fd, data + total, len - total);
fd                827 source3/libads/kerberos.c 	int fd;
fd                877 source3/libads/kerberos.c 	fd = smb_mkstemp(tmpname);
fd                878 source3/libads/kerberos.c 	if (fd == -1) {
fd                885 source3/libads/kerberos.c 	if (fchmod(fd, 0644)==-1) {
fd                890 source3/libads/kerberos.c 		close(fd);
fd                894 source3/libads/kerberos.c 	ret = write(fd, file_contents, flen);
fd                900 source3/libads/kerberos.c 		close(fd);
fd                903 source3/libads/kerberos.c 	if (close(fd)==-1) {
fd                 43 source3/libgpo/gpo_filesync.c 	int fd = 0;
fd                 54 source3/libgpo/gpo_filesync.c 	if ((fd = sys_open(unix_path, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1) {
fd                 71 source3/libgpo/gpo_filesync.c 		if (write(fd, data, n) != n) {
fd                 85 source3/libgpo/gpo_filesync.c 	if (fd) {
fd                 86 source3/libgpo/gpo_filesync.c 		close(fd);
fd                485 source3/libsmb/async_smb.c 	if (cli->fd == -1) {
fd                492 source3/libsmb/async_smb.c 		cli->fd_event = event_add_fd(ev, cli, cli->fd,
fd               1055 source3/libsmb/async_smb.c 		sent = sys_send(cli->fd, req->outbuf + req->sent,
fd               1075 source3/libsmb/async_smb.c 		res = ioctl(cli->fd, FIONREAD, &available);
fd               1107 source3/libsmb/async_smb.c 		res = sys_recv(cli->fd, cli->evt_inbuf + old_size, available, 0);
fd               1150 source3/libsmb/async_smb.c 	close(cli->fd);
fd               1151 source3/libsmb/async_smb.c 	cli->fd = -1;
fd               1779 source3/libsmb/cliconnect.c 					 LONG_CONNECT_TIMEOUT, &cli->fd);
fd               1786 source3/libsmb/cliconnect.c 		set_socket_options(cli->fd, lp_socket_options());
fd               1812 source3/libsmb/cliconnect.c 	int fd;
fd               1819 source3/libsmb/cliconnect.c 	int fd;
fd               1822 source3/libsmb/cliconnect.c 	status = open_socket_out_defer_recv(req, &fd);
fd               1824 source3/libsmb/cliconnect.c 		pfd->fd = fd;
fd               1849 source3/libsmb/cliconnect.c 	fd139->fd = -1;
fd               1855 source3/libsmb/cliconnect.c 	fd445->fd = -1;
fd               1867 source3/libsmb/cliconnect.c 	while ((fd445->fd == -1) && (fd139->fd == -1)
fd               1873 source3/libsmb/cliconnect.c 	if ((fd139->fd != -1) && (fd445->fd != -1)) {
fd               1874 source3/libsmb/cliconnect.c 		close(fd139->fd);
fd               1875 source3/libsmb/cliconnect.c 		fd139->fd = -1;
fd               1878 source3/libsmb/cliconnect.c 	if (fd445->fd != -1) {
fd               1880 source3/libsmb/cliconnect.c 		*pfd = fd445->fd;
fd               1884 source3/libsmb/cliconnect.c 	if (fd139->fd != -1) {
fd               1886 source3/libsmb/cliconnect.c 		*pfd = fd139->fd;
fd               1891 source3/libsmb/cliconnect.c 	status = open_socket_out_defer_recv(r445, &fd445->fd);
fd               1949 source3/libsmb/cliconnect.c 			cli->fd = sock_exec(getenv("LIBSMB_PROG"));
fd               1954 source3/libsmb/cliconnect.c 						 cli->timeout, &cli->fd);
fd               1959 source3/libsmb/cliconnect.c 		if (cli->fd == -1) {
fd               1970 source3/libsmb/cliconnect.c 	if (cli->fd == -1) {
fd               1979 source3/libsmb/cliconnect.c 	set_socket_options(cli->fd, lp_socket_options());
fd                 87 source3/libsmb/clientgen.c 		status = receive_smb_raw(cli->fd, cli->inbuf, cli->bufsize,
fd                147 source3/libsmb/clientgen.c 	if (cli->fd == -1)
fd                175 source3/libsmb/clientgen.c 		close(cli->fd);
fd                176 source3/libsmb/clientgen.c 		cli->fd = -1;
fd                203 source3/libsmb/clientgen.c 		close(cli->fd);
fd                204 source3/libsmb/clientgen.c 		cli->fd = -1;
fd                222 source3/libsmb/clientgen.c 		cli->fd, buffer, len, len, cli->timeout, NULL);
fd                241 source3/libsmb/clientgen.c static ssize_t write_socket(int fd, const char *buf, size_t len)
fd                245 source3/libsmb/clientgen.c         DEBUG(6,("write_socket(%d,%d)\n",fd,(int)len));
fd                246 source3/libsmb/clientgen.c         ret = write_data(fd,buf,len);
fd                248 source3/libsmb/clientgen.c         DEBUG(6,("write_socket(%d,%d) wrote %d\n",fd,(int)len,(int)ret));
fd                251 source3/libsmb/clientgen.c                         (int)len, fd, strerror(errno) ));
fd                269 source3/libsmb/clientgen.c 	if (cli->fd == -1)
fd                278 source3/libsmb/clientgen.c 			close(cli->fd);
fd                279 source3/libsmb/clientgen.c 			cli->fd = -1;
fd                290 source3/libsmb/clientgen.c 		ret = write_socket(cli->fd,buf_out+nwritten,len - nwritten);
fd                295 source3/libsmb/clientgen.c 			close(cli->fd);
fd                296 source3/libsmb/clientgen.c 			cli->fd = -1;
fd                330 source3/libsmb/clientgen.c 	if (cli->fd == -1) {
fd                344 source3/libsmb/clientgen.c 	nwritten = write_data_iov(cli->fd, iov, 2);
fd                346 source3/libsmb/clientgen.c 		close(cli->fd);
fd                347 source3/libsmb/clientgen.c 		cli->fd = -1;
fd                499 source3/libsmb/clientgen.c 	cli->fd = -1;
fd                648 source3/libsmb/clientgen.c 	if (cli->fd != -1) {
fd                649 source3/libsmb/clientgen.c 		close(cli->fd);
fd                651 source3/libsmb/clientgen.c 	cli->fd = -1;
fd                663 source3/libsmb/clientgen.c 	set_socket_options(cli->fd, options);
fd                694 source3/libsmb/clientgen.c         if (cli->fd == -1) {
fd                698 source3/libsmb/clientgen.c         if (!send_keepalive(cli->fd)) {
fd                699 source3/libsmb/clientgen.c                 close(cli->fd);
fd                700 source3/libsmb/clientgen.c                 cli->fd = -1;
fd                115 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error) {
fd                193 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error) {
fd                221 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error) {
fd                281 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error != 0) {
fd                304 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error != 0) {
fd                318 source3/libsmb/clierror.c 	if (cli->fd == -1 && cli->smb_rw_error != 0) {
fd               1586 source3/libsmb/clifile.c bool cli_getattrE(struct cli_state *cli, int fd,
fd               1601 source3/libsmb/clifile.c 	SSVAL(cli->outbuf,smb_vwv0,fd);
fd               1688 source3/libsmb/clifile.c bool cli_setattrE(struct cli_state *cli, int fd,
fd               1705 source3/libsmb/clifile.c 	SSVAL(cli->outbuf,smb_vwv0, fd);
fd                 30 source3/libsmb/libsmb_compat.c 	int fd;
fd                 42 source3/libsmb/libsmb_compat.c find_fd(int fd)
fd                 46 source3/libsmb/libsmb_compat.c 		if (f->fd == fd) 
fd                 82 source3/libsmb/libsmb_compat.c                 f->fd = SMBC_BASE_FD + smbc_compat_nextfd++;
fd                 88 source3/libsmb/libsmb_compat.c 	return f->fd;
fd                 95 source3/libsmb/libsmb_compat.c del_fd(int fd)
fd                100 source3/libsmb/libsmb_compat.c 		if (f->fd == fd) 
fd                165 source3/libsmb/libsmb_compat.c 	int fd;
fd                171 source3/libsmb/libsmb_compat.c 	fd = add_fd(file);
fd                172 source3/libsmb/libsmb_compat.c 	if (fd == -1) 
fd                174 source3/libsmb/libsmb_compat.c 	return fd;
fd                183 source3/libsmb/libsmb_compat.c 	int fd;
fd                189 source3/libsmb/libsmb_compat.c 	fd = add_fd(file);
fd                190 source3/libsmb/libsmb_compat.c 	if (fd == -1) {
fd                195 source3/libsmb/libsmb_compat.c 	return fd;
fd                200 source3/libsmb/libsmb_compat.c smbc_read(int fd,
fd                204 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                209 source3/libsmb/libsmb_compat.c smbc_write(int fd,
fd                213 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                218 source3/libsmb/libsmb_compat.c smbc_lseek(int fd,
fd                222 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                227 source3/libsmb/libsmb_compat.c smbc_close(int fd)
fd                229 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                230 source3/libsmb/libsmb_compat.c 	del_fd(fd);
fd                252 source3/libsmb/libsmb_compat.c 	int fd;
fd                258 source3/libsmb/libsmb_compat.c 	fd = add_fd(file);
fd                259 source3/libsmb/libsmb_compat.c 	if (fd == -1) 
fd                262 source3/libsmb/libsmb_compat.c 	return fd;
fd                297 source3/libsmb/libsmb_compat.c smbc_lseekdir(int fd,
fd                300 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                325 source3/libsmb/libsmb_compat.c smbc_fstat(int fd,
fd                328 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                340 source3/libsmb/libsmb_compat.c smbc_fstatvfs(int fd,
fd                343 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                348 source3/libsmb/libsmb_compat.c smbc_ftruncate(int fd,
fd                351 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                412 source3/libsmb/libsmb_compat.c smbc_fsetxattr(int fd,
fd                418 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                451 source3/libsmb/libsmb_compat.c smbc_fgetxattr(int fd,
fd                456 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                481 source3/libsmb/libsmb_compat.c smbc_fremovexattr(int fd,
fd                484 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                512 source3/libsmb/libsmb_compat.c smbc_flistxattr(int fd,
fd                516 source3/libsmb/libsmb_compat.c 	SMBCFILE * file = find_fd(fd);
fd                160 source3/libsmb/libsmb_context.c                                           s, s->cli->fd));
fd                 50 source3/libsmb/libsmb_file.c 	int fd;
fd                105 source3/libsmb/libsmb_file.c 		fd = -1;
fd                129 source3/libsmb/libsmb_file.c 		if ((fd = cli_open(targetcli, targetpath, flags,
fd                143 source3/libsmb/libsmb_file.c 		file->cli_fd  = fd;
fd                189 source3/libsmb/libsmb_file.c 	if (fd == -1) {
fd                630 source3/libsmb/libsmb_file.c         int fd;
fd                662 source3/libsmb/libsmb_file.c                 if ((fd = cli_open(srv->cli, path, O_RDWR, DENY_NONE)) < 0) {
fd                670 source3/libsmb/libsmb_file.c                 ret = cli_setattrE(srv->cli, fd,
fd                676 source3/libsmb/libsmb_file.c                 cli_close(srv->cli, fd);
fd                 45 source3/libsmb/libsmb_server.c         return (getpeername(server->cli->fd, &addr, &size) == -1);
fd                264 source3/libsmb/namequery.c NODE_STATUS_STRUCT *node_status_query(int fd,
fd                304 source3/libsmb/namequery.c 	p.fd = fd;
fd                327 source3/libsmb/namequery.c 		if ((p2=receive_nmb_packet(fd,90,nmb->header.name_trn_id))) {
fd                623 source3/libsmb/namequery.c struct sockaddr_storage *name_query(int fd,
fd                681 source3/libsmb/namequery.c 	p.fd = fd;
fd                705 source3/libsmb/namequery.c 		if ((p2=receive_nmb_packet(fd,90,nmb->header.name_trn_id))) {
fd                773 source3/libsmb/nmblib.c struct packet_struct *read_packet(int fd,enum packet_type packet_type)
fd                781 source3/libsmb/nmblib.c 	length = read_udp_v4_socket(fd,buf,sizeof(buf),&sa);
fd                794 source3/libsmb/nmblib.c 	packet->fd = fd;
fd                806 source3/libsmb/nmblib.c static bool send_udp(int fd,char *buf,int len,struct in_addr ip,int port)
fd                826 source3/libsmb/nmblib.c 		ret = (sendto(fd,buf,len,0,(struct sockaddr *)&sock_out,
fd               1078 source3/libsmb/nmblib.c 	return(send_udp(p->fd,buf,len,p->ip,p->port));
fd               1086 source3/libsmb/nmblib.c struct packet_struct *receive_packet(int fd,enum packet_type type,int t)
fd               1093 source3/libsmb/nmblib.c 	FD_SET(fd,&fds);
fd               1097 source3/libsmb/nmblib.c 	if ((ret = sys_select_intr(fd+1,&fds,NULL,NULL,&timeout)) == -1) {
fd               1107 source3/libsmb/nmblib.c 	if (FD_ISSET(fd,&fds))
fd               1108 source3/libsmb/nmblib.c 		return(read_packet(fd,type));
fd               1119 source3/libsmb/nmblib.c struct packet_struct *receive_nmb_packet(int fd, int t, int trn_id)
fd               1123 source3/libsmb/nmblib.c 	p = receive_packet(fd, NMB_PACKET, t);
fd               1142 source3/libsmb/nmblib.c struct packet_struct *receive_dgram_packet(int fd, int t,
fd               1147 source3/libsmb/nmblib.c 	p = receive_packet(fd, DGRAM_PACKET, t);
fd                189 source3/locking/posix.c 	DEBUG(8,("posix_fcntl_lock %d %d %.0f %.0f %d\n",fsp->fh->fd,op,(double)offset,(double)count,type));
fd                234 source3/locking/posix.c 		fsp->fh->fd,(double)*poffset,(double)*pcount,*ptype));
fd                541 source3/locking/posix.c 		rec, uint8_t, rec->value.dsize + sizeof(fsp->fh->fd));
fd                547 source3/locking/posix.c 	       &fsp->fh->fd, sizeof(fsp->fh->fd));
fd                551 source3/locking/posix.c 				   rec->value.dsize + sizeof(fsp->fh->fd)), 0);
fd                558 source3/locking/posix.c 		  fsp->fh->fd, fsp->fsp_name ));
fd                625 source3/locking/posix.c 		return close(fsp->fh->fd);
fd                674 source3/locking/posix.c 	ret = close(fsp->fh->fd);
fd                 31 source3/modules/gpfs.c static int (*gpfs_set_share_fn)(int fd, unsigned int allow, unsigned int deny);
fd                 32 source3/modules/gpfs.c static int (*gpfs_set_lease_fn)(int fd, unsigned int leaseType);
fd                 54 source3/modules/gpfs.c 	if ((fsp == NULL) || (fsp->fh == NULL) || (fsp->fh->fd < 0)) {
fd                 76 source3/modules/gpfs.c 	result = gpfs_set_share_fn(fsp->fh->fd, allow, deny);
fd                 91 source3/modules/gpfs.c int set_gpfs_lease(int fd, int leasetype)
fd                117 source3/modules/gpfs.c 	return gpfs_set_lease_fn(fd, gpfs_type);
fd                191 source3/modules/nfs4_acls.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fd                630 source3/modules/onefs_acl.c 	if (fsp->fh->fd == -1) {
fd                631 source3/modules/onefs_acl.c 		if ((fsp->fh->fd = onefs_sys_create_file(handle->conn,
fd                669 source3/modules/onefs_acl.c                 error = ifs_get_security_descriptor(fsp->fh->fd, security_info,
fd                769 source3/modules/onefs_acl.c 		close(fsp->fh->fd);
fd                770 source3/modules/onefs_acl.c 		fsp->fh->fd = -1;
fd                799 source3/modules/onefs_acl.c 	finfo.fh->fd = -1;
fd                902 source3/modules/onefs_acl.c 	int fd = -1;
fd                919 source3/modules/onefs_acl.c 	fd = fsp->fh->fd;
fd                920 source3/modules/onefs_acl.c 	if (fd == -1) {
fd                922 source3/modules/onefs_acl.c 		if ((fd = onefs_sys_create_file(handle->conn,
fd                945 source3/modules/onefs_acl.c 	if (ifs_set_security_descriptor(fd, sec_info_effective, &sd)) {
fd                960 source3/modules/onefs_acl.c 		close(fd);
fd                254 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fd                333 source3/modules/onefs_cbrl.c 	error = ifs_cbrl(fd, CBRL_OP_LOCK, type, plock->start,
fd                393 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fd                401 source3/modules/onefs_cbrl.c 	error = ifs_cbrl(fd, CBRL_OP_UNLOCK, CBRL_LK_SH,
fd                434 source3/modules/onefs_cbrl.c 	int fd = br_lck->fsp->fh->fd;
fd                460 source3/modules/onefs_cbrl.c 	error = ifs_cbrl(fd, CBRL_OP_CANCEL, CBRL_LK_UNSPEC, plock->start,
fd                505 source3/modules/onefs_cbrl.c 	error = ifs_cbrl(fsp->fh->fd, CBRL_OP_LOCK,
fd                542 source3/modules/onefs_cbrl.c 		ifs_cbrl(fsp->fh->fd, CBRL_OP_UNLOCK,
fd                 96 source3/modules/onefs_open.c 	fsp->fh->fd = -1;
fd                203 source3/modules/onefs_open.c 			  base, fsp->base_fsp->fh->fd, stream));
fd                205 source3/modules/onefs_open.c 		base_fd = fsp->base_fsp->fh->fd;
fd                208 source3/modules/onefs_open.c 	fsp->fh->fd = onefs_sys_create_file(conn,
fd                224 source3/modules/onefs_open.c 	if (fsp->fh->fd == -1) {
fd                267 source3/modules/onefs_open.c 		if (fsp->fh->fd == -1) {
fd               1183 source3/modules/onefs_open.c 	if (fsp->fh->fd != -1) {
fd               1442 source3/modules/onefs_open.c 	fsp->fh->fd = onefs_sys_create_file(conn,
fd               1457 source3/modules/onefs_open.c 	if (fsp->fh->fd == -1) {
fd               1950 source3/modules/onefs_open.c 		if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
fd                109 source3/modules/onefs_shadow_copy.c 	static int fd = -1;
fd                111 source3/modules/onefs_shadow_copy.c 	if (fd == -1) {
fd                113 source3/modules/onefs_shadow_copy.c 		fd = pctl2_lin_open(STF_NAMES_LIN, HEAD_SNAPID, O_RDONLY);
fd                117 source3/modules/onefs_shadow_copy.c 	return fd;
fd                296 source3/modules/onefs_shadow_copy.c 	int fd;
fd                300 source3/modules/onefs_shadow_copy.c 	fd = osc_get_names_directory_fd();
fd                301 source3/modules/onefs_shadow_copy.c 	if (fd == -1)
fd                304 source3/modules/onefs_shadow_copy.c 	fd = enc_openat(fd, name, ENC_DEFAULT, O_RDONLY);
fd                305 source3/modules/onefs_shadow_copy.c 	if (fd == -1)
fd                309 source3/modules/onefs_shadow_copy.c 	if (ifs_snap_stat(fd, &stf_stat) == -1)
fd                315 source3/modules/onefs_shadow_copy.c 	if (fstat(fd, &stbuf) == -1)
fd                321 source3/modules/onefs_shadow_copy.c 	if (fd != -1)
fd                322 source3/modules/onefs_shadow_copy.c 		close(fd);
fd                335 source3/modules/onefs_shadow_copy.c 	int fd;
fd                340 source3/modules/onefs_shadow_copy.c 	fd = osc_get_names_directory_fd();
fd                341 source3/modules/onefs_shadow_copy.c 	if (fd == -1)
fd                344 source3/modules/onefs_shadow_copy.c 	if (fstat(fd, &stbuf) == -1)
fd                436 source3/modules/onefs_shadow_copy.c 	int fd;
fd                445 source3/modules/onefs_shadow_copy.c 	fd = osc_get_names_directory_fd();
fd                446 source3/modules/onefs_shadow_copy.c 	if (fd == -1)
fd                449 source3/modules/onefs_shadow_copy.c 	if (fstat(fd, &stbuf) == -1)
fd                351 source3/modules/onefs_streams.c 		ret = sys_fstat(fsp->base_fsp->fh->fd, &base_sbuf);
fd                537 source3/modules/onefs_streams.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fd                538 source3/modules/onefs_streams.c 		base_fd = fsp->fh->fd;
fd                602 source3/modules/onefs_streams.c 		fake_fh.fd = stream_fd;
fd                655 source3/modules/onefs_streams.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fd                195 source3/modules/vfs_acl_tdb.c 	if (fsp && fsp->fh->fd != -1) {
fd                287 source3/modules/vfs_acl_tdb.c 	if (fsp->fh->fd != -1) {
fd                513 source3/modules/vfs_acl_tdb.c 		if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
fd                590 source3/modules/vfs_acl_tdb.c 	fsp->fh->fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fd                592 source3/modules/vfs_acl_tdb.c 	if (!file_existed && fsp->fh->fd != -1) {
fd                598 source3/modules/vfs_acl_tdb.c 	return fsp->fh->fd;
fd                765 source3/modules/vfs_acl_tdb.c 		if (fsp->is_directory || fsp->fh->fd == -1) {
fd                895 source3/modules/vfs_acl_tdb.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fd                100 source3/modules/vfs_acl_xattr.c 	if (fsp && fsp->fh->fd != -1) {
fd                177 source3/modules/vfs_acl_xattr.c 	if (fsp->fh->fd != -1) {
fd                381 source3/modules/vfs_acl_xattr.c 		if (fsp && !fsp->is_directory && fsp->fh->fd != -1) {
fd                458 source3/modules/vfs_acl_xattr.c 	fsp->fh->fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fd                460 source3/modules/vfs_acl_xattr.c 	if (!file_existed && fsp->fh->fd != -1) {
fd                466 source3/modules/vfs_acl_xattr.c 	return fsp->fh->fd;
fd                565 source3/modules/vfs_acl_xattr.c 		if (fsp->is_directory || fsp->fh->fd == -1) {
fd                685 source3/modules/vfs_afsacl.c 	if (fsp->is_directory || fsp->fh->fd == -1) {
fd                 37 source3/modules/vfs_aio_fork.c 	int fd;
fd                 45 source3/modules/vfs_aio_fork.c 	fd = open("/dev/zero", O_RDWR);
fd                 46 source3/modules/vfs_aio_fork.c 	if (fd == -1) {
fd                 53 source3/modules/vfs_aio_fork.c 			   MAP_SHARED|MAP_FILE, fd, 0);
fd                 59 source3/modules/vfs_aio_fork.c 	close(fd);
fd                108 source3/modules/vfs_aio_fork.c static ssize_t read_fd(int fd, void *ptr, size_t nbytes, int *recvfd)
fd                143 source3/modules/vfs_aio_fork.c 	if ( (n = recvmsg(fd, &msg, 0)) <= 0) {
fd                176 source3/modules/vfs_aio_fork.c static ssize_t write_fd(int fd, void *ptr, size_t nbytes, int sendfd)
fd                214 source3/modules/vfs_aio_fork.c 	return (sendmsg(fd, &msg, 0));
fd                304 source3/modules/vfs_aio_fork.c 		int fd = -1;
fd                309 source3/modules/vfs_aio_fork.c 		ret = read_fd(sockfd, &cmd_struct, sizeof(cmd_struct), &fd);
fd                318 source3/modules/vfs_aio_fork.c 			   (int)cmd_struct.n, (int)cmd_struct.offset, fd));
fd                344 source3/modules/vfs_aio_fork.c 				fd, (void *)map->ptr, cmd_struct.n,
fd                349 source3/modules/vfs_aio_fork.c 				fd, (void *)map->ptr, cmd_struct.n,
fd                366 source3/modules/vfs_aio_fork.c 		close(fd);
fd                434 source3/modules/vfs_aio_fork.c 	if ((fsp->fh != NULL) && (fsp->fh->fd != -1)) {
fd                435 source3/modules/vfs_aio_fork.c 		close(fsp->fh->fd);
fd                436 source3/modules/vfs_aio_fork.c 		fsp->fh->fd = -1;
fd                580 source3/modules/vfs_aio_fork.c 	DEBUG(10, ("sending fd %d to child %d\n", fsp->fh->fd,
fd                583 source3/modules/vfs_aio_fork.c 	ret = write_fd(child->sockfd, &cmd, sizeof(cmd), fsp->fh->fd);
fd                624 source3/modules/vfs_aio_fork.c 	DEBUG(10, ("sending fd %d to child %d\n", fsp->fh->fd,
fd                627 source3/modules/vfs_aio_fork.c 	ret = write_fd(child->sockfd, &cmd, sizeof(cmd), fsp->fh->fd);
fd                694 source3/modules/vfs_aio_fork.c 		if (child->aiocb->aio_fildes != fsp->fh->fd) {
fd                 95 source3/modules/vfs_aixacl.c 	DEBUG(10,("fd is %d\n",fsp->fh->fd));
fd                106 source3/modules/vfs_aixacl.c 	rc = fstatacl(fsp->fh->fd,0,file_acl,BUFSIZ);
fd                115 source3/modules/vfs_aixacl.c 		rc = fstatacl(fsp->fh->fd,0,file_acl,file_acl->acl_len + sizeof(struct acl));
fd                165 source3/modules/vfs_aixacl.c 	rc = fchacl(fsp->fh->fd,file_acl,file_acl->acl_len);
fd                460 source3/modules/vfs_aixacl2.c 		fsp->fh->fd,
fd                212 source3/modules/vfs_audit.c 	       fsp->fh->fd,
fd                 77 source3/modules/vfs_cacheprime.c         nread = sys_pread(fsp->fh->fd, g_readbuf, g_readsz, *last);
fd                 78 source3/modules/vfs_commit.c         int                             fd)
fd                 87 source3/modules/vfs_commit.c         result = fdatasync(fd);
fd                 89 source3/modules/vfs_commit.c         result = fsync(fd);
fd                111 source3/modules/vfs_commit.c                         return commit_do(c, fsp->fh->fd);
fd                132 source3/modules/vfs_commit.c 		return commit_do(c, fsp->fh->fd);
fd                144 source3/modules/vfs_commit.c 		if (commit_do(c, fsp->fh->fd) == -1) {
fd                178 source3/modules/vfs_commit.c         int fd;
fd                211 source3/modules/vfs_commit.c         fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fd                212 source3/modules/vfs_commit.c 	if (fd == -1) {
fd                214 source3/modules/vfs_commit.c 		return fd;
fd                318 source3/modules/vfs_default.c 	result = sys_read(fsp->fh->fd, data, n);
fd                330 source3/modules/vfs_default.c 	result = sys_pread(fsp->fh->fd, data, n, offset);
fd                372 source3/modules/vfs_default.c 	result = sys_write(fsp->fh->fd, data, n);
fd                384 source3/modules/vfs_default.c 	result = sys_pwrite(fsp->fh->fd, data, n, offset);
fd                423 source3/modules/vfs_default.c 	if (fsp->fh->fd != -1)
fd                424 source3/modules/vfs_default.c 		result = sys_lseek(fsp->fh->fd, offset, whence);
fd                448 source3/modules/vfs_default.c 	result = sys_sendfile(tofd, fromfsp->fh->fd, hdr, offset, n);
fd                462 source3/modules/vfs_default.c 	result = sys_recvfile(fromfd, tofsp->fh->fd, offset, n);
fd                577 source3/modules/vfs_default.c 	result = fsync(fsp->fh->fd);
fd                600 source3/modules/vfs_default.c 	result = sys_fstat(fsp->fh->fd, sbuf);
fd                709 source3/modules/vfs_default.c 	result = fchmod(fsp->fh->fd, mode);
fd                735 source3/modules/vfs_default.c 	result = fchown(fsp->fh->fd, uid, gid);
fd                841 source3/modules/vfs_default.c 		return sys_ftruncate(fsp->fh->fd, len);
fd                903 source3/modules/vfs_default.c 	result = sys_ftruncate(fsp->fh->fd, len);
fd                962 source3/modules/vfs_default.c 	result =  fcntl_lock(fsp->fh->fd, op, offset, count, type);
fd                971 source3/modules/vfs_default.c 	kernel_flock(fsp->fh->fd, share_mode);
fd                981 source3/modules/vfs_default.c 	result =  fcntl_getlock(fsp->fh->fd, poffset, pcount, ptype, ppid);
fd                995 source3/modules/vfs_default.c 	if(linux_set_lease_sighandler(fsp->fh->fd) == -1) {
fd                999 source3/modules/vfs_default.c 	result = linux_setlease(fsp->fh->fd, leasetype);
fd               1129 source3/modules/vfs_default.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fd               1429 source3/modules/vfs_default.c 	return sys_fgetxattr(fsp->fh->fd, name, value, size);
fd               1444 source3/modules/vfs_default.c 	return sys_flistxattr(fsp->fh->fd, list, size);
fd               1459 source3/modules/vfs_default.c 	return sys_fremovexattr(fsp->fh->fd, name);
fd               1474 source3/modules/vfs_default.c 	return sys_fsetxattr(fsp->fh->fd, name, value, size, flags);
fd               1514 source3/modules/vfs_default.c 	return sys_aio_cancel(fsp->fh->fd, aiocb);
fd                 35 source3/modules/vfs_dirsort.c 	int fd;
fd                 58 source3/modules/vfs_dirsort.c 	if (fstat(data->fd, &dir_stat) == 0) {
fd                105 source3/modules/vfs_dirsort.c 	data->fd = dirfd(data->source_directory);
fd                125 source3/modules/vfs_dirsort.c 	if (fstat(data->fd, &dir_stat) == -1) {
fd                248 source3/modules/vfs_extd_audit.c 		       fsp->fh->fd,
fd                253 source3/modules/vfs_extd_audit.c 	       fsp->fh->fd,
fd                 39 source3/modules/vfs_gpfs.c 	kernel_flock(fsp->fh->fd, share_mode);
fd                 54 source3/modules/vfs_gpfs.c 	if ((fsp->fh != NULL) && (fsp->fh->fd != -1)) {
fd                 68 source3/modules/vfs_gpfs.c 	if ( linux_set_lease_sighandler(fsp->fh->fd) == -1)
fd                 71 source3/modules/vfs_gpfs.c 	ret = set_gpfs_lease(fsp->fh->fd,leasetype);
fd                 76 source3/modules/vfs_gpfs.c 		ret = linux_setlease(fsp->fh->fd, leasetype);
fd                 29 source3/modules/vfs_gpfs.h int set_gpfs_lease(int fd, int leasetype);
fd                192 source3/modules/vfs_hpuxacl.c         files_struct *file_struct_p = file_find_fd(fsp->fh->fd);
fd                322 source3/modules/vfs_hpuxacl.c         files_struct *file_struct_p = file_find_fd(fsp->fh->fd);
fd                 65 source3/modules/vfs_onefs.c 	result = onefs_sys_sendfile(handle->conn, tofd, fromfsp->fh->fd,
fd                 78 source3/modules/vfs_onefs.c 	result = onefs_sys_recvfile(fromfd, tofsp->fh->fd, offset, count);
fd                 69 source3/modules/vfs_posixacl.c 	acl_t acl = acl_get_fd(fsp->fh->fd);
fd                123 source3/modules/vfs_posixacl.c 	res =  acl_set_fd(fsp->fh->fd, acl);
fd                 57 source3/modules/vfs_prealloc.c static int preallocate_space(int fd, SMB_OFF_T size)
fd                 78 source3/modules/vfs_prealloc.c 	err = xfsctl(NULL, fd, XFS_IOC_RESVSP64, &fl);
fd                 81 source3/modules/vfs_prealloc.c 	err = fcntl(fd, F_RESVSP64, &fl);
fd                 87 source3/modules/vfs_prealloc.c        err = gpfs_prealloc(fd, (gpfs_off64_t)0, (gpfs_off64_t)size);
fd                 93 source3/modules/vfs_prealloc.c 			MODULE, fd, (long long)size, strerror(errno)));
fd                116 source3/modules/vfs_prealloc.c 	int fd;
fd                155 source3/modules/vfs_prealloc.c 	fd = SMB_VFS_NEXT_OPEN(handle, fname, fsp, flags, mode);
fd                156 source3/modules/vfs_prealloc.c 	if (fd < 0) {
fd                157 source3/modules/vfs_prealloc.c 		return fd;
fd                169 source3/modules/vfs_prealloc.c 			return fd;
fd                174 source3/modules/vfs_prealloc.c 			MODULE, fname, fd, (long long)size));
fd                177 source3/modules/vfs_prealloc.c 		if (preallocate_space(fd, *psize) < 0) {
fd                182 source3/modules/vfs_prealloc.c 	return fd;
fd                202 source3/modules/vfs_prealloc.c 		preallocate_space(fsp->fh->fd, *psize);
fd                 29 source3/modules/vfs_preopen.c 	int fd;
fd                 56 source3/modules/vfs_preopen.c 	close(c->fd);
fd                 57 source3/modules/vfs_preopen.c 	c->fd = -1;
fd                 96 source3/modules/vfs_preopen.c 		written = write_data(state->helpers[helper].fd,
fd                120 source3/modules/vfs_preopen.c 	nread = read(helper->fd, &c, 1);
fd                136 source3/modules/vfs_preopen.c 		if (c->helpers[i].fd == -1) {
fd                151 source3/modules/vfs_preopen.c 	int fd;
fd                177 source3/modules/vfs_preopen.c 	fd = open(namebuf, O_RDONLY);
fd                178 source3/modules/vfs_preopen.c 	if (fd == -1) {
fd                181 source3/modules/vfs_preopen.c 	nread = read(fd, filebuf, to_read);
fd                182 source3/modules/vfs_preopen.c 	close(fd);
fd                189 source3/modules/vfs_preopen.c static bool preopen_helper(int fd, size_t to_read)
fd                205 source3/modules/vfs_preopen.c 	while (preopen_helper_open_one(fd, &namebuf, to_read, readbuf)) {
fd                237 source3/modules/vfs_preopen.c 	h->fd = fdpair[0];
fd                238 source3/modules/vfs_preopen.c 	h->fde = event_add_fd(smbd_event_context(), h->state, h->fd,
fd                241 source3/modules/vfs_preopen.c 		close(h->fd);
fd                242 source3/modules/vfs_preopen.c 		h->fd = -1;
fd                276 source3/modules/vfs_preopen.c 		result->helpers[i].fd = -1;
fd                 47 source3/modules/vfs_readahead.c 		int err = readahead(fromfsp->fh->fd, offset, (size_t)rhd->len);
fd                 49 source3/modules/vfs_readahead.c 			(unsigned int)fromfsp->fh->fd,
fd                 54 source3/modules/vfs_readahead.c 		int err = posix_fadvise(fromfsp->fh->fd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
fd                 56 source3/modules/vfs_readahead.c 			(unsigned int)fromfsp->fh->fd,
fd                 89 source3/modules/vfs_readahead.c 		int err = readahead(fsp->fh->fd, offset, (size_t)rhd->len);
fd                 91 source3/modules/vfs_readahead.c 			(unsigned int)fsp->fh->fd,
fd                 96 source3/modules/vfs_readahead.c 		int err = posix_fadvise(fsp->fh->fd, offset, (off_t)rhd->len, POSIX_FADV_WILLNEED);
fd                 98 source3/modules/vfs_readahead.c 			(unsigned int)fsp->fh->fd,
fd                 53 source3/modules/vfs_solarisacl.c static bool solaris_acl_get_fd(int fd, SOLARIS_ACL_T *solarisacl, int *count);
fd                112 source3/modules/vfs_solarisacl.c 	if (!solaris_acl_get_fd(fsp->fh->fd, &solaris_acl, &count)) {
fd                245 source3/modules/vfs_solarisacl.c 	if (!solaris_acl_get_fd(fsp->fh->fd, &default_acl, &default_count)) {
fd                261 source3/modules/vfs_solarisacl.c 	ret = facl(fsp->fh->fd, SETACL, count, solaris_acl);
fd                612 source3/modules/vfs_solarisacl.c static bool solaris_acl_get_fd(int fd, SOLARIS_ACL_T *solaris_acl, int *count)
fd                622 source3/modules/vfs_solarisacl.c 	*count = facl(fd, GETACLCNT, 0, NULL);
fd                632 source3/modules/vfs_solarisacl.c 	*count = facl(fd, GETACL, *count, *solaris_acl);
fd                677 source3/modules/vfs_streams_depot.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fd                142 source3/modules/vfs_streams_xattr.c 	DEBUG(10, ("streams_xattr_fstat called for %d\n", fsp->fh->fd));
fd                377 source3/modules/vfs_streams_xattr.c 			if (fsp->base_fsp->fh->fd != -1) {
fd                397 source3/modules/vfs_streams_xattr.c 		if (fsp->base_fsp->fh->fd != -1) {
fd                719 source3/modules/vfs_streams_xattr.c 	if ((fsp != NULL) && (fsp->fh->fd != -1)) {
fd                824 source3/modules/vfs_streams_xattr.c 	if (fsp->base_fsp->fh->fd != -1) {
fd                928 source3/modules/vfs_streams_xattr.c 	if (fsp->base_fsp->fh->fd != -1) {
fd                 60 source3/modules/vfs_syncops.c 	int fd = open(dname, O_DIRECTORY|O_RDONLY);
fd                 61 source3/modules/vfs_syncops.c 	if (fd != -1) {
fd                 62 source3/modules/vfs_syncops.c 		fsync(fd);
fd                 63 source3/modules/vfs_syncops.c 		close(fd);
fd                173 source3/modules/vfs_syncops.c 		fsync(fsp->fh->fd);
fd                 73 source3/modules/vfs_tru64acl.c 	acl_t tru64_acl = acl_get_fd(fsp->fh->fd, ACL_TYPE_ACCESS);
fd                138 source3/modules/vfs_tru64acl.c         res =  acl_set_fd(fsp->fh->fd, ACL_TYPE_ACCESS, tru64_acl);
fd                254 source3/modules/vfs_zfsacl.c 				      int fd)
fd                269 source3/modules/vfs_zfsacl.c 				int fd, SMB_ACL_T theacl)
fd                444 source3/nmbd/nmbd.c 	p->fd = (p->packet_type == NMB_PACKET) ?
fd                450 source3/nmbd/nmbd.c 			p->fd = (p->packet_type == NMB_PACKET) ?
fd                210 source3/nmbd/nmbd_packets.c 	packet->fd = ClientNMB;
fd                261 source3/nmbd/nmbd_packets.c 	packet->fd = find_subnet_fd_for_address(*register_ip);
fd                746 source3/nmbd/nmbd_packets.c 				p->fd = find_subnet_fd_for_address( *ifip );
fd                984 source3/nmbd/nmbd_packets.c 	packet.fd = orig_packet->fd;
fd               1836 source3/nmbd/nmbd_packets.c 						packet->fd = sock_array[i];
fd               1862 source3/nmbd/nmbd_packets.c 						packet->fd = sock_array[i];
fd               1947 source3/nmbd/nmbd_packets.c 	p.fd = find_subnet_mailslot_fd_for_address( src_ip );
fd               8530 source3/param/loadparm.c 	int fd = -1;
fd               8590 source3/param/loadparm.c 	fd = sys_open(fname, O_RDONLY|O_NOFOLLOW, 0);
fd               8592 source3/param/loadparm.c 	fd = sys_open(fname, O_RDONLY, 0);
fd               8595 source3/param/loadparm.c 	if (fd == -1) {
fd               8603 source3/param/loadparm.c 	if (sys_fstat(fd, &sbuf) != 0) {
fd               8604 source3/param/loadparm.c 		close(fd);
fd               8613 source3/param/loadparm.c 		close(fd);
fd               8627 source3/param/loadparm.c 	lines = fd_lines_load(fd, &numlines, MAX_USERSHARE_FILE_SIZE, NULL);
fd               8629 source3/param/loadparm.c 	close(fd);
fd                 82 source3/passdb/pdb_smbpasswd.c static bool do_file_lock(int fd, int waitsecs, int type)
fd                 99 source3/passdb/pdb_smbpasswd.c 	ret = fcntl(fd, SMB_F_SETLKW, &lock);
fd                116 source3/passdb/pdb_smbpasswd.c static bool pw_file_lock(int fd, int type, int secs, int *plock_depth)
fd                118 source3/passdb/pdb_smbpasswd.c 	if (fd < 0) {
fd                123 source3/passdb/pdb_smbpasswd.c 		if (!do_file_lock(fd, secs, type)) {
fd                139 source3/passdb/pdb_smbpasswd.c static bool pw_file_unlock(int fd, int *plock_depth)
fd                143 source3/passdb/pdb_smbpasswd.c 	if (fd == 0 || *plock_depth == 0) {
fd                148 source3/passdb/pdb_smbpasswd.c 		ret = do_file_lock(fd, 5, F_UNLCK);
fd                208 source3/passdb/pdb_smbpasswd.c 				int i, fd = -1;
fd                211 source3/passdb/pdb_smbpasswd.c 					if((fd = sys_open(pfile, O_CREAT|O_TRUNC|O_EXCL|O_RDWR, 0600))!=-1) {
fd                216 source3/passdb/pdb_smbpasswd.c 				if(fd == -1) {
fd                221 source3/passdb/pdb_smbpasswd.c 				close(fd);
fd                633 source3/passdb/pdb_smbpasswd.c 	int fd;
fd                670 source3/passdb/pdb_smbpasswd.c 	fd = fileno(fp);
fd                672 source3/passdb/pdb_smbpasswd.c 	if((offpos = sys_lseek(fd, 0, SEEK_END)) == -1) {
fd                691 source3/passdb/pdb_smbpasswd.c 			fd, (int)new_entry_length, new_entry));
fd                694 source3/passdb/pdb_smbpasswd.c 	if ((wr_len = write(fd, new_entry, new_entry_length)) != new_entry_length) {
fd                700 source3/passdb/pdb_smbpasswd.c 		if(sys_ftruncate(fd, offpos) == -1) {
fd                748 source3/passdb/pdb_smbpasswd.c 	int fd;
fd               1031 source3/passdb/pdb_smbpasswd.c 	fd = fileno(fp);
fd               1033 source3/passdb/pdb_smbpasswd.c 	if (sys_lseek(fd, pwd_seekpos - 1, SEEK_SET) != pwd_seekpos - 1) {
fd               1041 source3/passdb/pdb_smbpasswd.c 	if (read(fd, linebuf, wr_len+1) != wr_len+1) {
fd               1055 source3/passdb/pdb_smbpasswd.c 	if (sys_lseek(fd, pwd_seekpos, SEEK_SET) != pwd_seekpos) {
fd               1062 source3/passdb/pdb_smbpasswd.c 	if (write(fd, ascii_p16, wr_len) != wr_len) {
fd                111 source3/printing/print_cups.c 	int fd = *(int *)pd;
fd                116 source3/printing/print_cups.c 	if (sys_write(fd, &namelen, sizeof(namelen)) != sizeof(namelen)) {
fd                122 source3/printing/print_cups.c 	if (sys_write(fd, &infolen, sizeof(infolen)) != sizeof(infolen)) {
fd                129 source3/printing/print_cups.c 		if (sys_write(fd, name, namelen) != namelen) {
fd                137 source3/printing/print_cups.c 		if (sys_write(fd, info, infolen) != infolen) {
fd                145 source3/printing/print_cups.c static bool cups_cache_reload_async(int fd)
fd                379 source3/printing/print_cups.c 				(void *)&fd);
fd                449 source3/printing/print_cups.c 	int fd = *(int *)p;
fd                453 source3/printing/print_cups.c 		"fd = %d\n", fd));
fd                460 source3/printing/print_cups.c 		ret = sys_read(fd, &namelen, sizeof(namelen));
fd                474 source3/printing/print_cups.c 		ret = sys_read(fd, &infolen, sizeof(infolen));
fd                493 source3/printing/print_cups.c 			ret = sys_read(fd, name, namelen);
fd                513 source3/printing/print_cups.c 			ret = sys_read(fd, info, infolen);
fd                547 source3/printing/print_cups.c 	close(fd);
fd                226 source3/printing/print_generic.c 	int fd;
fd                234 source3/printing/print_generic.c 	print_run_command(-1, printer_name, False, lpq_command, &fd, NULL);
fd                236 source3/printing/print_generic.c 	if (fd == -1) {
fd                243 source3/printing/print_generic.c 	qlines = fd_lines_load(fd, &numlines,0,NULL);
fd                244 source3/printing/print_generic.c 	close(fd);
fd                 62 source3/printing/printfsp.c 	fsp->fh->fd = print_job_fd(lp_const_servicename(SNUM(conn)),jobid);
fd                 97 source3/printing/printfsp.c 		sys_ftruncate(fsp->fh->fd, 0);
fd                316 source3/printing/printing.c 	pjob->fd = pjfd;
fd                546 source3/printing/printing.c 				(uint32)pjob->fd,
fd                684 source3/printing/printing.c 	pj.fd = -1;
fd               1821 source3/printing/printing.c 	return pjob->fd;
fd               2226 source3/printing/printing.c 	return_code = write_data_at_offset(pjob->fd, buf, size, pos);
fd               2462 source3/printing/printing.c 	pjob.fd = -1;
fd               2486 source3/printing/printing.c 	pjob.fd = smb_mkstemp(pjob.filename);
fd               2488 source3/printing/printing.c 	if (pjob.fd == -1) {
fd               2566 source3/printing/printing.c 				(sys_fstat(pjob->fd, &sbuf) == 0)) {
fd               2568 source3/printing/printing.c 		close(pjob->fd);
fd               2569 source3/printing/printing.c 		pjob->fd = -1;
fd               2576 source3/printing/printing.c 		close(pjob->fd);
fd               2577 source3/printing/printing.c 		pjob->fd = -1;
fd                 43 source3/registry/regfio.c 	if ( file->fd == -1 )
fd                 48 source3/registry/regfio.c 	if ( sys_fstat( file->fd, &sbuf ) ) {
fd                 53 source3/registry/regfio.c 	if ( lseek( file->fd, offset, SEEK_SET ) == -1 ) {
fd                 60 source3/registry/regfio.c 		if ( (returned = write( file->fd, buffer+bytes_written, buffer_size-bytes_written )) == -1 ) {
fd                 82 source3/registry/regfio.c 	if ( sys_fstat( file->fd, &sbuf ) ) {
fd                 96 source3/registry/regfio.c 		if ( lseek( file->fd, file_offset, SEEK_SET ) == -1 ) {
fd                101 source3/registry/regfio.c 		returned = read( file->fd, hdr, 0x20 );
fd                121 source3/registry/regfio.c 	if ( lseek( file->fd, file_offset, SEEK_SET ) == -1 ) {
fd                134 source3/registry/regfio.c 		if ( (returned = read( file->fd, buffer+bytes_read, block_size-bytes_read )) == -1 ) {
fd               1195 source3/registry/regfio.c 	rb->fd = -1;
fd               1206 source3/registry/regfio.c 	if ( (rb->fd = open(filename, flags, mode)) == -1 ) {
fd               1254 source3/registry/regfio.c 	int fd;
fd               1258 source3/registry/regfio.c 	if ((file->fd != -1) && (file->open_flags & (O_WRONLY|O_RDWR))) {
fd               1302 source3/registry/regfio.c 	if (file->fd == -1)
fd               1305 source3/registry/regfio.c 	fd = file->fd;
fd               1306 source3/registry/regfio.c 	file->fd = -1;
fd               1309 source3/registry/regfio.c 	return close( fd );
fd               1432 source3/registry/regfio.c 	if ( sys_fstat( file->fd, &sbuf ) ) {
fd               3230 source3/rpc_client/cli_pipe.c 	int fd;
fd               3257 source3/rpc_client/cli_pipe.c 	status = open_socket_out(&addr, port, 60, &fd);
fd               3261 source3/rpc_client/cli_pipe.c 	set_socket_options(fd, lp_socket_options());
fd               3263 source3/rpc_client/cli_pipe.c 	status = rpc_transport_sock_init(result, fd, &result->transport);
fd               3265 source3/rpc_client/cli_pipe.c 		close(fd);
fd               3444 source3/rpc_client/cli_pipe.c 	int fd;
fd               3466 source3/rpc_client/cli_pipe.c 	fd = socket(AF_UNIX, SOCK_STREAM, 0);
fd               3467 source3/rpc_client/cli_pipe.c 	if (fd == -1) {
fd               3476 source3/rpc_client/cli_pipe.c 	if (sys_connect(fd, (struct sockaddr *)&addr) == -1) {
fd               3479 source3/rpc_client/cli_pipe.c 		close(fd);
fd               3483 source3/rpc_client/cli_pipe.c 	status = rpc_transport_sock_init(result, fd, &result->transport);
fd               3485 source3/rpc_client/cli_pipe.c 		close(fd);
fd                415 source3/rpc_client/rpc_transport_np.c 		if (cli->fd != -1) {
fd                416 source3/rpc_client/rpc_transport_np.c 			close(cli->fd);
fd                417 source3/rpc_client/rpc_transport_np.c 			cli->fd = -1;
fd                322 source3/rpc_client/rpc_transport_smbd.c 	state->conn->cli->fd = smb_sock[0];
fd                 26 source3/rpc_client/rpc_transport_sock.c 	int fd;
fd                 32 source3/rpc_client/rpc_transport_sock.c 	if (s->fd != -1) {
fd                 33 source3/rpc_client/rpc_transport_sock.c 		close(s->fd);
fd                 34 source3/rpc_client/rpc_transport_sock.c 		s->fd = -1;
fd                 63 source3/rpc_client/rpc_transport_sock.c 	subreq = async_recv_send(state, ev, sock_transp->fd, data, size, 0);
fd                131 source3/rpc_client/rpc_transport_sock.c 	subreq = async_send_send(state, ev, sock_transp->fd, data, size, 0);
fd                176 source3/rpc_client/rpc_transport_sock.c NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
fd                193 source3/rpc_client/rpc_transport_sock.c 	state->fd = fd;
fd                226 source3/rpc_client/rpc_transport_sock.c 		if (state->fd != -1) {
fd                227 source3/rpc_client/rpc_transport_sock.c 			close(state->fd);
fd                228 source3/rpc_client/rpc_transport_sock.c 			state->fd = -1;
fd                238 source3/rpc_client/rpc_transport_sock.c 	if (state && state->fd != -1) {
fd                 50 source3/rpc_parse/parse_prs.c 	int fd, i;
fd                 64 source3/rpc_parse/parse_prs.c 		fd = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0644);
fd                 65 source3/rpc_parse/parse_prs.c 		if (fd != -1 || errno != EEXIST) break;
fd                 67 source3/rpc_parse/parse_prs.c 	if (fd != -1) {
fd                 68 source3/rpc_parse/parse_prs.c 		sz = write(fd, ps->data_p + from_off, to_off - from_off);
fd                 69 source3/rpc_parse/parse_prs.c 		i = close(fd);
fd                955 source3/rpc_server/srv_pipe_hnd.c 	int fd;
fd                963 source3/rpc_server/srv_pipe_hnd.c 	if (state->fd != -1) {
fd                964 source3/rpc_server/srv_pipe_hnd.c 		close(state->fd);
fd                994 source3/rpc_server/srv_pipe_hnd.c 	result->fd = socket(AF_UNIX, SOCK_STREAM, 0);
fd                995 source3/rpc_server/srv_pipe_hnd.c 	if (result->fd == -1) {
fd               1022 source3/rpc_server/srv_pipe_hnd.c 	if (sys_connect(result->fd, (struct sockaddr *)&addr) == -1) {
fd               1060 source3/rpc_server/srv_pipe_hnd.c 	written = write_data(result->fd, (char *)req_blob.data,
fd               1067 source3/rpc_server/srv_pipe_hnd.c 	status = read_data(result->fd, (char *)rep_buf, sizeof(rep_buf));
fd               1230 source3/rpc_server/srv_pipe_hnd.c 		subreq = writev_send(state, ev, p->write_queue, p->fd,
fd               1397 source3/rpc_server/srv_pipe_hnd.c 	subreq = read_packet_send(state, state->ev, state->p->fd,
fd               5978 source3/rpc_server/srv_spoolss_nt.c 	int fd;
fd               6013 source3/rpc_server/srv_spoolss_nt.c 	if ( (ret = smbrun(command, &fd)) == 0 ) {
fd               6030 source3/rpc_server/srv_spoolss_nt.c 		if (fd != -1)
fd               6031 source3/rpc_server/srv_spoolss_nt.c 			close(fd);
fd               6042 source3/rpc_server/srv_spoolss_nt.c 	qlines = fd_lines_load(fd, &numlines, 0, NULL);
fd               6044 source3/rpc_server/srv_spoolss_nt.c 	close(fd);
fd               7267 source3/rpc_server/srv_spoolss_nt.c 	int fd;
fd               7294 source3/rpc_server/srv_spoolss_nt.c 		ret = smbrun(command, &fd);
fd               7298 source3/rpc_server/srv_spoolss_nt.c 			if (fd != -1) {
fd               7299 source3/rpc_server/srv_spoolss_nt.c 				close(fd);
fd               7305 source3/rpc_server/srv_spoolss_nt.c 		qlines = fd_lines_load(fd, &numlines, 0, NULL);
fd               7307 source3/rpc_server/srv_spoolss_nt.c 		close(fd);
fd                 28 source3/services/svc_rcinit.c 	int ret, fd;
fd                 38 source3/services/svc_rcinit.c 	ret = smbrun( command , &fd );
fd                 42 source3/services/svc_rcinit.c 	close(fd);
fd                 62 source3/services/svc_rcinit.c 	int ret, fd;
fd                 72 source3/services/svc_rcinit.c 	ret = smbrun( command , &fd );
fd                 76 source3/services/svc_rcinit.c 	close(fd);
fd                 89 source3/services/svc_rcinit.c 	int ret, fd;
fd                101 source3/services/svc_rcinit.c 	ret = smbrun( command , &fd );
fd                105 source3/services/svc_rcinit.c 	close(fd);
fd                174 source3/smbd/aio.c 	a->aio_fildes = fsp->fh->fd;
fd                270 source3/smbd/aio.c 	a->aio_fildes = fsp->fh->fd;
fd                120 source3/smbd/close.c 	if (fsp->fh->fd != -1) {
fd                488 source3/smbd/close.c 	if (fsp->fh->fd != -1) {
fd                728 source3/smbd/close.c 			  fsp->fsp_name, fsp->fh->fd, errno, strerror(errno)));
fd                 42 source3/smbd/dnsregister.c 	int fd;
fd                 57 source3/smbd/dnsregister.c 	dns_state->fd = -1;
fd                125 source3/smbd/dnsregister.c 	dns_state->fd = DNSServiceRefSockFD(dns_state->srv_ref);
fd                126 source3/smbd/dnsregister.c 	if (dns_state->fd == -1) {
fd                132 source3/smbd/dnsregister.c 				       dns_state->fd,
fd                183 source3/smbd/dnsregister.c 	dns_state->fd = -1;
fd                130 source3/smbd/fake_file.c 	fsp->fh->fd = -1;
fd                365 source3/smbd/fileio.c 		fsp->fsp_name, fsp->fh->fd, (double)pos, (unsigned int)n, (double)wcp->offset, (unsigned int)wcp->data_size));
fd                676 source3/smbd/fileio.c len = %u\n",fsp->fh->fd, (double)pos, (unsigned int)n, (double)wcp->offset, (unsigned int)wcp->data_size ));
fd                699 source3/smbd/fileio.c cache: fd = %d, off=%.0f, size=%u\n", fsp->fh->fd, (double)wcp->offset, (unsigned int)wcp->data_size ));
fd                722 source3/smbd/fileio.c 				write_path, fsp->fh->fd, (double)wcp->file_size, (double)pos, (unsigned int)n,
fd                901 source3/smbd/fileio.c 		fsp->fh->fd, (double)wcp->offset, (unsigned int)data_size));
fd                928 source3/smbd/fileio.c        	if (fsp->fh->fd == -1)
fd                951 source3/smbd/fileio.c 	if (fsp->fh->fd == -1) {
fd                 84 source3/smbd/files.c 	fsp->fh->fd = -1;
fd                240 source3/smbd/files.c 			count, fsp->fnum, fsp->fsp_name, fsp->fh->fd, (unsigned long)fsp->fh->gen_id,
fd                249 source3/smbd/files.c files_struct *file_find_fd(int fd)
fd                255 source3/smbd/files.c 		if (fsp->fh->fd == fd) {
fd                283 source3/smbd/files.c 			if ((fsp->fh->fd == -1) &&
fd                437 source3/smbd/files.c 		if ((conn == fsp->conn) && (fsp->fh->fd != -1)) {
fd                 97 source3/smbd/map_username.c 		int numlines, ret, fd;
fd                108 source3/smbd/map_username.c 		ret = smbrun(command, &fd);
fd                112 source3/smbd/map_username.c 			if (fd != -1)
fd                113 source3/smbd/map_username.c 				close(fd);
fd                118 source3/smbd/map_username.c 		qlines = fd_lines_load(fd, &numlines,0, NULL);
fd                120 source3/smbd/map_username.c 		close(fd);
fd                 45 source3/smbd/message.c 	int fd;
fd                 62 source3/smbd/message.c 	fd = smb_mkstemp(name);
fd                 64 source3/smbd/message.c 	if (fd == -1) {
fd                 87 source3/smbd/message.c 		sz = write(fd, &msg[i], 1);
fd                 89 source3/smbd/message.c 			DEBUG(0, ("Write error to fd %d: %ld(%s)\n", fd,
fd                 94 source3/smbd/message.c 	close(fd);
fd                218 source3/smbd/notify.c 	e.dir_fd = fsp->fh->fd;
fd                 50 source3/smbd/notify_inotify.c static int inotify_add_watch(int fd, const char *path, __u32 mask)
fd                 52 source3/smbd/notify_inotify.c 	return syscall(__NR_inotify_add_watch, fd, path, mask);
fd                 55 source3/smbd/notify_inotify.c static int inotify_rm_watch(int fd, int wd)
fd                 57 source3/smbd/notify_inotify.c 	return syscall(__NR_inotify_rm_watch, fd, wd);
fd                 76 source3/smbd/notify_inotify.c 	int fd;
fd                 99 source3/smbd/notify_inotify.c 	close(in->fd);
fd                242 source3/smbd/notify_inotify.c 	if (ioctl(in->fd, FIONREAD, &bufsize) != 0 || 
fd                251 source3/smbd/notify_inotify.c 	status = read_data(in->fd, (char *)e0, bufsize);
fd                291 source3/smbd/notify_inotify.c 	in->fd = inotify_init();
fd                292 source3/smbd/notify_inotify.c 	if (in->fd == -1) {
fd                304 source3/smbd/notify_inotify.c 	event_add_fd(ctx->ev, in, in->fd, EVENT_FD_READ, inotify_handler, in);
fd                355 source3/smbd/notify_inotify.c 		if (inotify_rm_watch(in->fd, wd) == -1) {
fd                404 source3/smbd/notify_inotify.c 	wd = inotify_add_watch(in->fd, e->path, mask);
fd                416 source3/smbd/notify_inotify.c 		inotify_rm_watch(in->fd, wd);
fd                429 source3/smbd/notify_inotify.c 		inotify_rm_watch(in->fd, wd);
fd                141 source3/smbd/open.c 	fsp->fh->fd = SMB_VFS_OPEN(conn,fname,fsp,flags,mode);
fd                142 source3/smbd/open.c 	if (fsp->fh->fd == -1) {
fd                159 source3/smbd/open.c 		    fname, flags, (int)mode, fsp->fh->fd,
fd                160 source3/smbd/open.c 		(fsp->fh->fd == -1) ? strerror(errno) : "" ));
fd                173 source3/smbd/open.c 	if (fsp->fh->fd == -1) {
fd                181 source3/smbd/open.c 	fsp->fh->fd = -1;
fd                332 source3/smbd/open.c 	fsp->fh->fd = -1;
fd                447 source3/smbd/open.c 		fsp->fh->fd = -1; /* What we used to call a stat open. */
fd                521 source3/smbd/open.c 		if (fsp->fh->fd == -1) {
fd               1124 source3/smbd/open.c 			  fsp->fh->fd, (unsigned int)fsp->vuid,
fd               1129 source3/smbd/open.c 		if (fsp->fh->fd != -1 &&
fd               2038 source3/smbd/open.c 	if (fsp->fh->fd != -1) {
fd               3208 source3/smbd/open.c 		if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
fd                 40 source3/smbd/oplock_irix.c 	int fd;
fd                 64 source3/smbd/oplock_irix.c 	if((fd = sys_open(tmpname, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600)) < 0) {
fd                 79 source3/smbd/oplock_irix.c 	if(sys_fcntl_long(fd, F_OPLKREG, pfd[1]) == -1) {
fd                 85 source3/smbd/oplock_irix.c 		close(fd);
fd                 89 source3/smbd/oplock_irix.c 	if(sys_fcntl_long(fd, F_OPLKACK, OP_REVOKE) < 0 ) {
fd                 95 source3/smbd/oplock_irix.c 		close(fd);
fd                101 source3/smbd/oplock_irix.c 	close(fd);
fd                210 source3/smbd/oplock_irix.c 	if (sys_fcntl_long(fsp->fh->fd, F_OPLKREG, ctx->write_fd) == -1) {
fd                223 source3/smbd/oplock_irix.c 				 fsp->fsp_name, fsp->fh->fd,
fd                250 source3/smbd/oplock_irix.c 		int state = sys_fcntl_long(fsp->fh->fd, F_OPLKACK, -1);
fd                260 source3/smbd/oplock_irix.c 	if(sys_fcntl_long(fsp->fh->fd, F_OPLKACK, OP_REVOKE) < 0) {
fd                 57 source3/smbd/oplock_linux.c int linux_set_lease_sighandler(int fd)
fd                 59 source3/smbd/oplock_linux.c         if (fcntl(fd, F_SETSIG, RT_SIGNAL_LEASE) == -1) {
fd                 73 source3/smbd/oplock_linux.c int linux_setlease(int fd, int leasetype)
fd                 77 source3/smbd/oplock_linux.c 	ret = fcntl(fd, F_SETLEASE, leasetype);
fd                 80 source3/smbd/oplock_linux.c 		ret = fcntl(fd, F_SETLEASE, leasetype);
fd                 97 source3/smbd/oplock_linux.c 	int fd = info->si_fd;
fd                100 source3/smbd/oplock_linux.c 	fsp = file_find_fd(fd);
fd                102 source3/smbd/oplock_linux.c 		DEBUG(0,("linux_oplock_signal_handler: failed to find fsp for file fd=%d (file was closed ?)\n", fd ));
fd                118 source3/smbd/oplock_linux.c 			 fsp->fsp_name, fsp->fh->fd, 
fd                144 source3/smbd/oplock_linux.c 		int state = fcntl(fsp->fh->fd, F_GETLEASE, 0);
fd                172 source3/smbd/oplock_linux.c 	int fd, ret;
fd                173 source3/smbd/oplock_linux.c 	fd = open("/dev/null", O_RDONLY);
fd                174 source3/smbd/oplock_linux.c 	if (fd == -1)
fd                176 source3/smbd/oplock_linux.c 	ret = fcntl(fd, F_GETLEASE, 0);
fd                177 source3/smbd/oplock_linux.c 	close(fd);
fd                506 source3/smbd/oplock_onefs.c 	if (fsp->fh->fd == -1) {
fd                512 source3/smbd/oplock_onefs.c 	if (ifs_oplock_downgrade(fsp->fh->fd, oplock)) {
fd                522 source3/smbd/oplock_onefs.c static void onefs_semlock_write(int fd, enum level2_contention_type type,
fd                531 source3/smbd/oplock_onefs.c 			   semlock_op, type, fd));
fd                532 source3/smbd/oplock_onefs.c 		ret = ifs_semlock_write(fd, semlock_op);
fd                536 source3/smbd/oplock_onefs.c 				 semlock_op, type, fd, strerror(errno)));
fd                541 source3/smbd/oplock_onefs.c 			   type, fd));
fd                559 source3/smbd/oplock_onefs.c 	onefs_semlock_write(fsp->fh->fd, type, SEMLOCK_LOCK);
fd                573 source3/smbd/oplock_onefs.c 	onefs_semlock_write(fsp->fh->fd, type, SEMLOCK_UNLOCK);
fd                 49 source3/smbd/pipes.c 	fsp->fh->fd = -1;
fd                255 source3/smbd/posix_acls.c 	if (fsp->fh->fd != -1) {
fd                598 source3/smbd/posix_acls.c 		if (fsp->fh->fd != -1) {
fd               2745 source3/smbd/posix_acls.c 	if(default_ace || fsp->is_directory || fsp->fh->fd == -1) {
fd               3318 source3/smbd/posix_acls.c 	if (fsp->is_directory ||  fsp->fh->fd == -1) {
fd               3697 source3/smbd/posix_acls.c 	if(fsp->is_directory || fsp->fh->fd == -1) {
fd               3758 source3/smbd/posix_acls.c 			if(fsp->fh->fd == -1) {
fd               4409 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fd               4460 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fd               4506 source3/smbd/posix_acls.c 	if (fsp && fsp->fh->fd != -1) {
fd               4573 source3/smbd/posix_acls.c 	finfo.fh->fd = -1;
fd                 35 source3/smbd/process.c bool srv_send_smb(int fd, char *buffer, bool do_encrypt,
fd                 59 source3/smbd/process.c 		ret = write_data(fd,buf_out+nwritten,len - nwritten);
fd                123 source3/smbd/process.c static NTSTATUS read_packet_remainder(int fd, char *buffer,
fd                130 source3/smbd/process.c 	return read_fd_with_timeout(fd, buffer, len, len, timeout, NULL);
fd                151 source3/smbd/process.c 						    int fd, char **buffer,
fd                165 source3/smbd/process.c 		fd, writeX_header + 4,
fd                244 source3/smbd/process.c 			fd, (*buffer) + 4 + STANDARD_WRITE_AND_X_HEADER_SIZE,
fd                258 source3/smbd/process.c static NTSTATUS receive_smb_raw_talloc(TALLOC_CTX *mem_ctx, int fd,
fd                269 source3/smbd/process.c 	status = read_smb_length_return_keepalive(fd, lenbuf, timeout, &len);
fd                281 source3/smbd/process.c 			mem_ctx, lenbuf, fd, buffer, timeout, p_unread, plen);
fd                302 source3/smbd/process.c 	status = read_packet_remainder(fd, (*buffer)+4, timeout, len);
fd                311 source3/smbd/process.c static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx,	int fd,
fd                321 source3/smbd/process.c 	status = receive_smb_raw_talloc(mem_ctx, fd, buffer, timeout,
fd               1203 source3/smbd/process.c 	int fd, i;
fd               1215 source3/smbd/process.c 		fd = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0644);
fd               1216 source3/smbd/process.c 		if (fd != -1 || errno != EEXIST) break;
fd               1218 source3/smbd/process.c 	if (fd != -1) {
fd               1219 source3/smbd/process.c 		ssize_t ret = write(fd, data, len);
fd               1222 source3/smbd/process.c 		close(fd);
fd                312 source3/smbd/quotas.c 	FILE *fd;
fd                326 source3/smbd/quotas.c 	if ((fd = setmntent(KMTAB)) == NULL) {
fd                330 source3/smbd/quotas.c 	while ((mnt = getmntent(fd)) != NULL) {
fd                341 source3/smbd/quotas.c 	endmntent(fd);
fd                595 source3/smbd/quotas.c 	FILE *fd;
fd                610 source3/smbd/quotas.c 	if ((fd = sys_fopen(MNTTAB, "r")) == NULL) {
fd                614 source3/smbd/quotas.c 	while (getmntent(fd, &mnt) == 0) {
fd                635 source3/smbd/quotas.c 	fclose(fd);
fd                637 source3/smbd/quotas.c 	if ((fd = setmntent(MOUNTED, "r")) == NULL) {
fd                641 source3/smbd/quotas.c 	while ((mnt = getmntent(fd)) != NULL) {
fd                656 source3/smbd/quotas.c 	endmntent(fd);
fd                355 source3/smbd/reply.c 	if ((fsp)->fh->fd == -1) {
fd               2059 source3/smbd/reply.c 		    fsp->fsp_name, fsp->fh->fd, (unsigned int)fattr ) );
fd               2223 source3/smbd/reply.c 		    fsp->fh->fd, (unsigned int)sbuf.st_mode ) );
fd               2938 source3/smbd/reply.c 			fsp->is_directory || fsp->fh->fd == -1) {
fd               4482 source3/smbd/reply.c 			 fsp->fh->fd, fsp->fnum,
fd               4641 source3/smbd/reply.c 		 fsp->fh->fd, fsp->fnum, (double)offset, (double)count));
fd               4712 source3/smbd/reply.c 		    fsp->fh->fd, fsp->fnum, (double)offset, (double)count ) );
fd               4860 source3/smbd/reply.c 		 fsp->fh->fd, fsp->fnum));
fd               4898 source3/smbd/reply.c 		 fsp->fh->fd,fsp->fnum));
fd               5767 source3/smbd/reply.c 	if (fsp->fh->fd != -1) {
fd               7329 source3/smbd/reply.c 	if (fsp->fh->fd != -1) {
fd                 38 source3/smbd/server.c static void smbd_set_server_fd(int fd)
fd                 40 source3/smbd/server.c 	server_fd = fd;
fd                311 source3/smbd/server.c 	int fd;
fd                317 source3/smbd/server.c 				      int fd,
fd                321 source3/smbd/server.c 	close(fd);
fd                335 source3/smbd/server.c 	smbd_set_server_fd(accept(s->fd,(struct sockaddr *)&addr,&in_addrlen));
fd                450 source3/smbd/server.c 	s->fd = open_socket_in(SOCK_STREAM,
fd                455 source3/smbd/server.c 	if (s->fd == -1) {
fd                466 source3/smbd/server.c 	set_socket_options(s->fd, "SO_KEEPALIVE");
fd                467 source3/smbd/server.c 	set_socket_options(s->fd, lp_socket_options());
fd                471 source3/smbd/server.c 	set_blocking(s->fd, False);
fd                473 source3/smbd/server.c 	if (listen(s->fd, SMBD_LISTEN_BACKLOG) == -1) {
fd                476 source3/smbd/server.c 			close(s->fd);
fd                483 source3/smbd/server.c 			       s->fd, TEVENT_FD_READ,
fd                490 source3/smbd/server.c 		close(s->fd);
fd                110 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fd                182 source3/smbd/trans2.c 		if (fsp && fsp->fh->fd != -1) {
fd                430 source3/smbd/trans2.c 			if (fsp && (fsp->fh->fd != -1)) {
fd                448 source3/smbd/trans2.c 			if (fsp && (fsp->fh->fd != -1)) {
fd               3904 source3/smbd/trans2.c 		} else if(fsp && (fsp->is_directory || fsp->fh->fd == -1)) {
fd               4139 source3/smbd/trans2.c 			if (fsp == NULL || fsp->fh->fd == -1) {
fd               4643 source3/smbd/trans2.c 				if (fsp && !fsp->is_directory && (fsp->fh->fd != -1)) {
fd               5073 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fd               5557 source3/smbd/trans2.c 	if (fsp == NULL || fsp->fh->fd == -1) {
fd               5815 source3/smbd/trans2.c 	if (fsp && fsp->fh->fd != -1) {
fd               6253 source3/smbd/trans2.c 		if (fsp && fsp->fh->fd != -1) {
fd               6737 source3/smbd/trans2.c 		if(fsp->is_directory || fsp->fh->fd == -1) {
fd                274 source3/smbd/utmp.c 	int fd;
fd                301 source3/smbd/utmp.c 	if ((fd = open(wname, O_WRONLY|O_APPEND, 0)) < 0)
fd                303 source3/smbd/utmp.c 	if (fstat(fd, &buf) == 0) {
fd                304 source3/smbd/utmp.c 		if (write(fd, (char *)u, sizeof(struct utmp)) != sizeof(struct utmp))
fd                305 source3/smbd/utmp.c 		(void) ftruncate(fd, buf.st_size);
fd                307 source3/smbd/utmp.c 	(void) close(fd);
fd                327 source3/torture/cmd_vfs.c 	fsp->fh->fd = SMB_VFS_OPEN(vfs->conn, argv[1], fsp, flags, mode);
fd                328 source3/torture/cmd_vfs.c 	if (fsp->fh->fd == -1) {
fd                336 source3/torture/cmd_vfs.c 	vfs->files[fsp->fh->fd] = fsp;
fd                337 source3/torture/cmd_vfs.c 	printf("open: fd=%d\n", fsp->fh->fd);
fd                374 source3/torture/cmd_vfs.c 	int fd, ret;
fd                381 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                382 source3/torture/cmd_vfs.c 	if (vfs->files[fd] == NULL) {
fd                387 source3/torture/cmd_vfs.c 	ret = SMB_VFS_CLOSE(vfs->files[fd]);
fd                393 source3/torture/cmd_vfs.c 	SAFE_FREE(vfs->files[fd]->fsp_name);
fd                394 source3/torture/cmd_vfs.c 	SAFE_FREE(vfs->files[fd]->fh);
fd                395 source3/torture/cmd_vfs.c 	SAFE_FREE(vfs->files[fd]);
fd                396 source3/torture/cmd_vfs.c 	vfs->files[fd] = NULL;
fd                403 source3/torture/cmd_vfs.c 	int fd;
fd                412 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                421 source3/torture/cmd_vfs.c 	rsize = SMB_VFS_READ(vfs->files[fd], vfs->data, size);
fd                434 source3/torture/cmd_vfs.c 	int fd, size, wsize;
fd                442 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                454 source3/torture/cmd_vfs.c 	wsize = SMB_VFS_WRITE(vfs->files[fd], vfs->data, size);
fd                468 source3/torture/cmd_vfs.c 	int fd, offset, whence;
fd                476 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                485 source3/torture/cmd_vfs.c 	pos = SMB_VFS_LSEEK(vfs->files[fd], offset, whence);
fd                517 source3/torture/cmd_vfs.c 	int ret, fd;
fd                523 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                524 source3/torture/cmd_vfs.c 	ret = SMB_VFS_FSYNC(vfs->files[fd]);
fd                594 source3/torture/cmd_vfs.c 	int fd;
fd                606 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                607 source3/torture/cmd_vfs.c 	if (fd < 0 || fd >= 1024) {
fd                612 source3/torture/cmd_vfs.c 	if (vfs->files[fd] == NULL) {
fd                617 source3/torture/cmd_vfs.c 	if (SMB_VFS_FSTAT(vfs->files[fd], &st) == -1) {
fd                733 source3/torture/cmd_vfs.c 	int fd;
fd                740 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                742 source3/torture/cmd_vfs.c 	if (fd < 0 || fd >= 1024) {
fd                746 source3/torture/cmd_vfs.c 	if (vfs->files[fd] == NULL) {
fd                751 source3/torture/cmd_vfs.c 	if (SMB_VFS_FCHMOD(vfs->files[fd], mode) == -1) {
fd                786 source3/torture/cmd_vfs.c 	int fd;
fd                794 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                795 source3/torture/cmd_vfs.c 	if (fd < 0 || fd >= 1024) {
fd                799 source3/torture/cmd_vfs.c 	if (vfs->files[fd] == NULL) {
fd                803 source3/torture/cmd_vfs.c 	if (SMB_VFS_FCHOWN(vfs->files[fd], uid, gid) == -1) {
fd                848 source3/torture/cmd_vfs.c 	int fd;
fd                855 source3/torture/cmd_vfs.c 	fd = atoi(argv[1]);
fd                857 source3/torture/cmd_vfs.c 	if (fd < 0 || fd >= 1024) {
fd                861 source3/torture/cmd_vfs.c 	if (vfs->files[fd] == NULL) {
fd                866 source3/torture/cmd_vfs.c 	if (SMB_VFS_FTRUNCATE(vfs->files[fd], off) == -1) {
fd                877 source3/torture/cmd_vfs.c 	int fd;
fd                895 source3/torture/cmd_vfs.c 	if (sscanf(argv[1], "%d", &fd) == 0) {
fd                946 source3/torture/cmd_vfs.c 	printf("lock: debug lock(fd=%d, op=%d, offset=%ld, count=%ld, type=%d))\n", fd, op, offset, count, type);
fd                948 source3/torture/cmd_vfs.c 	if (SMB_VFS_LOCK(vfs->files[fd], op, offset, count, type) == False) {
fd                 87 source3/torture/locktest2.c static bool try_close(struct cli_state *c, int fstype, int fd)
fd                 91 source3/torture/locktest2.c 		return cli_close(c, fd);
fd                 94 source3/torture/locktest2.c 		return close(fd) == 0;
fd                101 source3/torture/locktest2.c 		     int fd, unsigned start, unsigned len,
fd                108 source3/torture/locktest2.c 		return cli_lock(c, fd, start, len, LOCK_TIMEOUT, op);
fd                116 source3/torture/locktest2.c 		return fcntl(fd,F_SETLK,&lock) == 0;
fd                123 source3/torture/locktest2.c 		       int fd, unsigned start, unsigned len)
fd                129 source3/torture/locktest2.c 		return cli_unlock(c, fd, start, len);
fd                137 source3/torture/locktest2.c 		return fcntl(fd,F_SETLK,&lock) == 0;
fd                 32 source3/torture/nbio.c 	int fd;
fd                143 source3/torture/nbio.c 	int fd, i;
fd                152 source3/torture/nbio.c 	fd = cli_nt_create_full(c, fname, 0, 
fd                158 source3/torture/nbio.c 	if (fd == -1 && handle != -1) {
fd                163 source3/torture/nbio.c 	if (fd != -1 && handle == -1) {
fd                167 source3/torture/nbio.c 	if (fd == -1) return;
fd                178 source3/torture/nbio.c 	ftable[i].fd = fd;
fd                188 source3/torture/nbio.c 	if (cli_write(c, ftable[i].fd, 0, buf, offset, size) != ret_size) {
fd                190 source3/torture/nbio.c errno %d (%s)\n", line_count, handle, ftable[i].fd, errno, strerror(errno));
fd                202 source3/torture/nbio.c 	if ((ret=cli_read(c, ftable[i].fd, buf, offset, size)) != ret_size) {
fd                204 source3/torture/nbio.c 			line_count, handle, offset, size, ret, ftable[i].fd, errno, strerror(errno));
fd                214 source3/torture/nbio.c 	if (!cli_close(c, ftable[i].fd)) {
fd                249 source3/torture/nbio.c 	cli_qfileinfo(c, ftable[i].fd, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
fd                 89 source3/torture/smbiconv.c process_fd (smb_iconv_t cd, int fd, FILE *output)
fd                103 source3/torture/smbiconv.c       ssize_t n = read (fd, inptr, maxlen - actlen);
fd                139 source3/torture/smbiconv.c 	    n = read (fd, inptr, maxlen - actlen);
fd                176 source3/torture/smbiconv.c 	int fd;
fd                224 source3/torture/smbiconv.c 		if(strcmp(file, "-") == 0) fd = 0;
fd                226 source3/torture/smbiconv.c 			fd = open(file, O_RDONLY);
fd                228 source3/torture/smbiconv.c 			if(!fd) {
fd                235 source3/torture/smbiconv.c 		process_fd(cd, fd, out);
fd                237 source3/torture/smbiconv.c 		close(fd);
fd                 28 source3/torture/utable.c 	int c, len, fd;
fd                 82 source3/torture/utable.c 	fd = open("valid.dat", O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd                 83 source3/torture/utable.c 	if (fd == -1) {
fd                 87 source3/torture/utable.c 	if (write(fd, valid, 0x10000) != 0x10000) {
fd                 89 source3/torture/utable.c 		close(fd);
fd                 92 source3/torture/utable.c 	close(fd);
fd                 34 source3/utils/net_afs.c 	int fd;
fd                 47 source3/utils/net_afs.c 	if ((fd = open(argv[0], O_RDONLY, 0)) < 0) {
fd                 52 source3/utils/net_afs.c 	if (read(fd, &keyfile, sizeof(keyfile)) != sizeof(keyfile)) {
fd                 30 source3/utils/net_lua.c 	int fd;
fd                 37 source3/utils/net_lua.c 	close(p->fd);
fd                 46 source3/utils/net_lua.c 	lua_pushfstring(L, "socket: %d", p->fd);
fd                 80 source3/utils/net_lua.c 	res = connect(p->fd, (struct sockaddr *)&addr, sizeof(addr));
fd                151 source3/utils/net_lua.c 	result->fd = socket(domain, type, 0);
fd                152 source3/utils/net_lua.c 	if (result->fd == -1) {
fd                321 source3/utils/net_usershare.c 	int fd = -1;
fd                348 source3/utils/net_usershare.c 	fd = sys_open(basepath, O_RDONLY|O_NOFOLLOW, 0);
fd                350 source3/utils/net_usershare.c 	fd = sys_open(basepath, O_RDONLY, 0);
fd                353 source3/utils/net_usershare.c 	if (fd == -1) {
fd                360 source3/utils/net_usershare.c 	if (sys_fstat(fd, &sbuf) != 0) {
fd                363 source3/utils/net_usershare.c 		close(fd);
fd                370 source3/utils/net_usershare.c 		close(fd);
fd                374 source3/utils/net_usershare.c 	lines = fd_lines_load(fd, &numlines, 10240, NULL);
fd                375 source3/utils/net_usershare.c 	close(fd);
fd                110 source3/utils/nmblookup.c static void do_node_status(int fd,
fd                125 source3/utils/nmblookup.c 	status = node_status_query(fd, &nname, pss, &count, &extra);
fd                 38 source3/utils/smbfilter.c 	int fd;
fd                 39 source3/utils/smbfilter.c 	fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd                 40 source3/utils/smbfilter.c 	if (fd == -1) {
fd                 44 source3/utils/smbfilter.c 	if (write(fd, ppacket, length) != length) {
fd                 48 source3/utils/smbfilter.c 	close(fd);
fd                128 source3/utils/smbfilter.c static bool send_smb(int fd, char *buffer)
fd                137 source3/utils/smbfilter.c 		ret = write_data(fd,buffer+nwritten,len - nwritten);
fd                504 source3/utils/smbget.c 	FILE *fd = fopen(name, "r");
fd                509 source3/utils/smbget.c 	if(!fd) {
fd                514 source3/utils/smbget.c 	while(!feof(fd)) {
fd                516 source3/utils/smbget.c 		if(fscanf(fd, "%100s %100s\n", var, val) < 2) {
fd                555 source3/utils/smbget.c 	fclose(fd);
fd                433 source3/web/cgi.c 	int fd, l, i;
fd                470 source3/web/cgi.c 	fd = web_open(buf,O_RDONLY,0);
fd                471 source3/web/cgi.c 	if (fd == -1) {
fd                500 source3/web/cgi.c 	while ((l=read(fd,buf,sizeof(buf)))>0) {
fd                505 source3/web/cgi.c 	close(fd);
fd                 38 source3/web/diagnose.c 	int fd, count, flags;
fd                 45 source3/web/diagnose.c 	if ((fd = open_socket_in(SOCK_DGRAM, 0, 3,
fd                 47 source3/web/diagnose.c 		if ((ss_list = name_query(fd, "__SAMBA__", 0, 
fd                 51 source3/web/diagnose.c 			close(fd);
fd                 54 source3/web/diagnose.c 		close (fd);
fd                 33 source3/web/neg_lang.c 	int fd;
fd                 36 source3/web/neg_lang.c 			fd = sys_open(p, flags, mode);
fd                 38 source3/web/neg_lang.c 			if (fd != -1) {
fd                 39 source3/web/neg_lang.c 				return fd;
fd                146 source3/web/swat.c 	int fd;
fd                150 source3/web/swat.c 	fd = web_open(fname, O_RDONLY, 0);
fd                152 source3/web/swat.c 	if (fd == -1) {
fd                158 source3/web/swat.c 	while ((ret = read(fd, buf, sizeof(buf))) > 0) {
fd                164 source3/web/swat.c 	close(fd);
fd                617 source3/winbindd/winbindd.c 		done = sys_write(event->fd,
fd                630 source3/winbindd/winbindd.c 		done = sys_read(event->fd, &((char *)event->data)[event->done],
fd                872 source3/winbindd/winbindd.c 	state->fd_event.fd = state->sock;
fd                962 source3/winbindd/winbindd.c 	int fd;
fd                990 source3/winbindd/winbindd.c 	new_connection(s->fd, s->privileged);
fd               1005 source3/winbindd/winbindd.c 	pub_state->fd = open_winbindd_socket();
fd               1006 source3/winbindd/winbindd.c 	if (pub_state->fd == -1) {
fd               1011 source3/winbindd/winbindd.c 				       pub_state, pub_state->fd,
fd               1016 source3/winbindd/winbindd.c 		close(pub_state->fd);
fd               1028 source3/winbindd/winbindd.c 	priv_state->fd = open_winbindd_priv_socket();
fd               1029 source3/winbindd/winbindd.c 	if (priv_state->fd == -1) {
fd               1034 source3/winbindd/winbindd.c 					priv_state, priv_state->fd,
fd               1039 source3/winbindd/winbindd.c 		close(priv_state->fd);
fd               1089 source3/winbindd/winbindd.c 			FD_SET(ev->fd, &r_fds);
fd               1090 source3/winbindd/winbindd.c 			maxfd = MAX(ev->fd, maxfd);
fd               1093 source3/winbindd/winbindd.c 			FD_SET(ev->fd, &w_fds);
fd               1094 source3/winbindd/winbindd.c 			maxfd = MAX(ev->fd, maxfd);
fd               1127 source3/winbindd/winbindd.c 		if (FD_ISSET(ev->fd, &r_fds))
fd               1129 source3/winbindd/winbindd.c 		if (FD_ISSET(ev->fd, &w_fds))
fd                 44 source3/winbindd/winbindd.h 	int fd;
fd                794 source3/winbindd/winbindd_cm.c 	(*cli)->fd = sockfd;
fd                800 source3/winbindd/winbindd_cm.c 	if ((getpeername((*cli)->fd, &peeraddr, &peeraddr_len) != 0) ||
fd               1313 source3/winbindd/winbindd_cm.c 			fstring dcname, struct sockaddr_storage *pss, int *fd)
fd               1326 source3/winbindd/winbindd_cm.c 	*fd = -1;
fd               1360 source3/winbindd/winbindd_cm.c 	if (!open_any_socket_out(addrs, num_addrs, 5000, &fd_index, fd) ) {
fd               1400 source3/winbindd/winbindd_cm.c 	close(*fd);
fd               1401 source3/winbindd/winbindd_cm.c 	*fd = -1;
fd               1456 source3/winbindd/winbindd_cm.c 		int fd = -1;
fd               1484 source3/winbindd/winbindd_cm.c 			if (!open_any_socket_out(addrs, num_addrs, 5000, &dummy, &fd)) {
fd               1485 source3/winbindd/winbindd_cm.c 				fd = -1;
fd               1489 source3/winbindd/winbindd_cm.c 		if ((fd == -1) 
fd               1490 source3/winbindd/winbindd_cm.c 			&& !find_new_dc(mem_ctx, domain, domain->dcname, &domain->dcaddr, &fd))
fd               1502 source3/winbindd/winbindd_cm.c 		result = cm_prepare_connection(domain, fd, domain->dcname,
fd               1585 source3/winbindd/winbindd_cm.c 		if (domain->conn.cli->fd == -1)
fd               1588 source3/winbindd/winbindd_cm.c 		close(domain->conn.cli->fd);
fd               1589 source3/winbindd/winbindd_cm.c 		domain->conn.cli->fd = -1;
fd               1607 source3/winbindd/winbindd_cm.c 	if (domain->conn.cli->fd == -1) {
fd                504 source3/winbindd/winbindd_dual.c 	close(child->event.fd);
fd                505 source3/winbindd/winbindd_dual.c 	child->event.fd = 0;
fd               1275 source3/winbindd/winbindd_dual.c 		child->event.fd = fdpair[1];
fd                 75 source3/winbindd/winbindd_wins.c 	int fd;
fd                 80 source3/winbindd/winbindd_wins.c 	fd = wins_lookup_open_socket_in();
fd                 81 source3/winbindd/winbindd_wins.c 	if (fd == -1)
fd                 88 source3/winbindd/winbindd_wins.c 	status = node_status_query(fd, &nname, &ss, count, NULL);
fd                 90 source3/winbindd/winbindd_wins.c 	close(fd);
fd                 97 source3/winbindd/winbindd_wins.c 	int fd;
fd                121 source3/winbindd/winbindd_wins.c 	fd = wins_lookup_open_socket_in();
fd                122 source3/winbindd/winbindd_wins.c 	if (fd == -1) {
fd                134 source3/winbindd/winbindd_wins.c 		return_ss = name_query(fd,name,0x20,True,True,bcast_ss,count, &flags, NULL);
fd                140 source3/winbindd/winbindd_wins.c 	close(fd);
fd                259 source4/auth/credentials/credentials.h 				       int fd, enum credentials_obtained obtained);
fd                 46 source4/auth/credentials/credentials_files.c 				       int fd, enum credentials_obtained obtained)
fd                 53 source4/auth/credentials/credentials_files.c 		switch (read(fd, p, 1)) {
fd                 66 source4/auth/credentials/credentials_files.c 				fprintf(stderr, "Error reading password from file descriptor %d: %s\n", fd, "empty password\n");
fd                 72 source4/auth/credentials/credentials_files.c 					fd, strerror(errno));
fd                 91 source4/auth/credentials/credentials_files.c 	int fd = open(file, O_RDONLY, 0);
fd                 94 source4/auth/credentials/credentials_files.c 	if (fd < 0) {
fd                100 source4/auth/credentials/credentials_files.c 	ret = cli_credentials_parse_password_fd(credentials, fd, obtained);
fd                102 source4/auth/credentials/credentials_files.c 	close(fd);
fd                 36 source4/client/cifsddio.c 	int			fd;
fd                 39 source4/client/cifsddio.c #define IO_HANDLE_TO_FD(h) (((struct fd_handle *)(h))->fd)
fd                122 source4/client/cifsddio.c 	fdh->fd = open(path, oflags, 0644);
fd                123 source4/client/cifsddio.c 	if (fdh->fd < 0) {
fd                921 source4/client/client.c 	int fd;
fd                925 source4/client/client.c 	fd = mkstemp(lname);
fd                926 source4/client/client.c 	if (fd == -1) {
fd                930 source4/client/client.c 	close(fd);
fd                175 source4/client/smbmnt.c 	int fd;
fd                274 source4/client/smbmnt.c         if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1)
fd                279 source4/client/smbmnt.c         close(fd);
fd                255 source4/client/smbmount.c 	int fd;
fd                274 source4/client/smbmount.c         if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1) {
fd                279 source4/client/smbmount.c         close(fd);
fd                334 source4/client/smbmount.c 	int fd, closed = 0, res = 1;
fd                344 source4/client/smbmount.c 		if ((fd = open(mount_point, O_RDONLY)) < 0) {
fd                350 source4/client/smbmount.c 		conn_options.fd = c->fd;
fd                363 source4/client/smbmount.c 		res = ioctl(fd, SMB_IOC_NEWCONN, &conn_options);
fd                367 source4/client/smbmount.c 			close(fd);
fd                380 source4/client/smbmount.c 		close(fd);
fd                394 source4/client/smbmount.c 			if ( (fd = open("/dev/null", O_WRONLY)) < 0)
fd                396 source4/client/smbmount.c 			close_our_files(fd);
fd                397 source4/client/smbmount.c 			if (fd >= 0) {
fd                398 source4/client/smbmount.c 				dup2(fd, STDOUT_FILENO);
fd                399 source4/client/smbmount.c 				dup2(fd, STDERR_FILENO);
fd                400 source4/client/smbmount.c 				close(fd);
fd                555 source4/client/smbmount.c 	int fd = -1;
fd                564 source4/client/smbmount.c 		sscanf(p, "%d", &fd);
fd                567 source4/client/smbmount.c 		fd = open(p, O_RDONLY, 0);
fd                569 source4/client/smbmount.c 		if (fd < 0) {
fd                579 source4/client/smbmount.c 		switch (read(fd, p, 1)) {
fd                604 source4/client/smbmount.c 		close(fd);
fd                102 source4/client/smbumount.c         int fd;
fd                135 source4/client/smbumount.c         if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1)
fd                140 source4/client/smbumount.c         close(fd);
fd               1158 source4/heimdal/kdc/pkinit.c 	    int fd;
fd               1165 source4/heimdal/kdc/pkinit.c 	    fd = open(config->pkinit_kdc_ocsp_file, O_RDONLY);
fd               1166 source4/heimdal/kdc/pkinit.c 	    if (fd < 0) {
fd               1171 source4/heimdal/kdc/pkinit.c 	    ret = fstat(fd, &sb);
fd               1174 source4/heimdal/kdc/pkinit.c 		close(fd);
fd               1182 source4/heimdal/kdc/pkinit.c 		close(fd);
fd               1188 source4/heimdal/kdc/pkinit.c 	    ret = read(fd, ocsp.data.data, sb.st_size);
fd               1189 source4/heimdal/kdc/pkinit.c 	    close(fd);
fd                168 source4/heimdal/kdc/process.c     int fd, ret;
fd                178 source4/heimdal/kdc/process.c     fd = open(fn, O_WRONLY|O_CREAT|O_APPEND, 0600);
fd                179 source4/heimdal/kdc/process.c     if (fd < 0) {
fd                185 source4/heimdal/kdc/process.c     sp = krb5_storage_from_fd(fd);
fd                186 source4/heimdal/kdc/process.c     close(fd);
fd                800 source4/heimdal/kuser/kinit.c 		int fd;
fd                803 source4/heimdal/kuser/kinit.c 		if((fd = mkstemp(krb4_cc_name)) >= 0) {
fd                804 source4/heimdal/kuser/kinit.c 		    close(fd);
fd                 65 source4/heimdal/lib/hcrypto/rand-egd.c     int fd;
fd                 75 source4/heimdal/lib/hcrypto/rand-egd.c     fd = socket(AF_UNIX, SOCK_STREAM, 0);
fd                 76 source4/heimdal/lib/hcrypto/rand-egd.c     if (fd < 0)
fd                 79 source4/heimdal/lib/hcrypto/rand-egd.c     rk_cloexec(fd);
fd                 81 source4/heimdal/lib/hcrypto/rand-egd.c     if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) {
fd                 82 source4/heimdal/lib/hcrypto/rand-egd.c 	close(fd);
fd                 86 source4/heimdal/lib/hcrypto/rand-egd.c     return fd;
fd                 90 source4/heimdal/lib/hcrypto/rand-egd.c get_entropy(int fd, void *data, size_t len)
fd                 99 source4/heimdal/lib/hcrypto/rand-egd.c     if (net_write(fd, msg, sizeof(msg)) != sizeof(msg))
fd                102 source4/heimdal/lib/hcrypto/rand-egd.c     if (net_read(fd, data, len) != len)
fd                109 source4/heimdal/lib/hcrypto/rand-egd.c put_entropy(int fd, const void *data, size_t len)
fd                120 source4/heimdal/lib/hcrypto/rand-egd.c     if (net_write(fd, msg, sizeof(msg)) != sizeof(msg))
fd                122 source4/heimdal/lib/hcrypto/rand-egd.c     if (net_write(fd, data, len) != len)
fd                136 source4/heimdal/lib/hcrypto/rand-egd.c     int fd, ret = 1;
fd                138 source4/heimdal/lib/hcrypto/rand-egd.c     fd = connect_egd(egd_path);
fd                139 source4/heimdal/lib/hcrypto/rand-egd.c     if (fd < 0)
fd                146 source4/heimdal/lib/hcrypto/rand-egd.c 	ret = put_entropy(fd, indata, len);
fd                152 source4/heimdal/lib/hcrypto/rand-egd.c     close(fd);
fd                159 source4/heimdal/lib/hcrypto/rand-egd.c     int fd, ret = 1;
fd                164 source4/heimdal/lib/hcrypto/rand-egd.c     fd = connect_egd(path);
fd                165 source4/heimdal/lib/hcrypto/rand-egd.c     if (fd < 0)
fd                172 source4/heimdal/lib/hcrypto/rand-egd.c 	ret = get_entropy(fd, outdata, len);
fd                178 source4/heimdal/lib/hcrypto/rand-egd.c     close(fd);
fd                209 source4/heimdal/lib/hcrypto/rand-egd.c     int fd;
fd                210 source4/heimdal/lib/hcrypto/rand-egd.c     fd = connect_egd(egd_path);
fd                211 source4/heimdal/lib/hcrypto/rand-egd.c     if (fd < 0)
fd                213 source4/heimdal/lib/hcrypto/rand-egd.c     close(fd);
fd                499 source4/heimdal/lib/hcrypto/rand-fortuna.c 	int fd;
fd                505 source4/heimdal/lib/hcrypto/rand-fortuna.c 	fd = open("/etc/shadow", O_RDONLY, 0);
fd                506 source4/heimdal/lib/hcrypto/rand-fortuna.c 	if (fd >= 0) {
fd                508 source4/heimdal/lib/hcrypto/rand-fortuna.c 	    rk_cloexec(fd);
fd                510 source4/heimdal/lib/hcrypto/rand-fortuna.c 	    while ((n = read(fd, (char *)u.shad, sizeof(u.shad))) > 0)
fd                512 source4/heimdal/lib/hcrypto/rand-fortuna.c 	    close(fd);
fd                 65 source4/heimdal/lib/hcrypto/rand-unix.c 	int fd = open(*p, flags | O_NDELAY);
fd                 66 source4/heimdal/lib/hcrypto/rand-unix.c 	if(fd >= 0) {
fd                 67 source4/heimdal/lib/hcrypto/rand-unix.c 	    rk_cloexec(fd);
fd                 68 source4/heimdal/lib/hcrypto/rand-unix.c 	    return fd;
fd                 77 source4/heimdal/lib/hcrypto/rand-unix.c     int fd;
fd                 82 source4/heimdal/lib/hcrypto/rand-unix.c     fd = get_device_fd(O_WRONLY);
fd                 83 source4/heimdal/lib/hcrypto/rand-unix.c     if (fd < 0)
fd                 86 source4/heimdal/lib/hcrypto/rand-unix.c     write(fd, indata, size);
fd                 87 source4/heimdal/lib/hcrypto/rand-unix.c     close(fd);
fd                 95 source4/heimdal/lib/hcrypto/rand-unix.c     int fd;
fd                100 source4/heimdal/lib/hcrypto/rand-unix.c     fd = get_device_fd(O_RDONLY);
fd                101 source4/heimdal/lib/hcrypto/rand-unix.c     if (fd < 0)
fd                105 source4/heimdal/lib/hcrypto/rand-unix.c 	count = read (fd, outdata, size);
fd                109 source4/heimdal/lib/hcrypto/rand-unix.c 	    close(fd);
fd                115 source4/heimdal/lib/hcrypto/rand-unix.c     close(fd);
fd                140 source4/heimdal/lib/hcrypto/rand-unix.c     int fd;
fd                142 source4/heimdal/lib/hcrypto/rand-unix.c     fd = get_device_fd(O_RDONLY);
fd                143 source4/heimdal/lib/hcrypto/rand-unix.c     if (fd < 0)
fd                145 source4/heimdal/lib/hcrypto/rand-unix.c     close(fd);
fd                267 source4/heimdal/lib/hcrypto/rand.c     int fd;
fd                269 source4/heimdal/lib/hcrypto/rand.c     fd = open(filename, O_RDONLY | O_BINARY, 0600);
fd                270 source4/heimdal/lib/hcrypto/rand.c     if (fd < 0)
fd                272 source4/heimdal/lib/hcrypto/rand.c     rk_cloexec(fd);
fd                275 source4/heimdal/lib/hcrypto/rand.c 	slen = read(fd, buf, sizeof(buf));
fd                281 source4/heimdal/lib/hcrypto/rand.c     close(fd);
fd                300 source4/heimdal/lib/hcrypto/rand.c     int res = 0, fd;
fd                302 source4/heimdal/lib/hcrypto/rand.c     fd = open(filename, O_WRONLY | O_CREAT | O_BINARY, 0600);
fd                303 source4/heimdal/lib/hcrypto/rand.c     if (fd < 0)
fd                305 source4/heimdal/lib/hcrypto/rand.c     rk_cloexec(fd);
fd                312 source4/heimdal/lib/hcrypto/rand.c 	if (write(fd, buf, sizeof(buf)) != sizeof(buf)) {
fd                319 source4/heimdal/lib/hcrypto/rand.c     close(fd);
fd                 69 source4/heimdal/lib/hdb/db.c     int fd = (*d->fd)(d);
fd                 70 source4/heimdal/lib/hdb/db.c     if(fd < 0) {
fd                 75 source4/heimdal/lib/hdb/db.c     return hdb_lock(fd, operation);
fd                 82 source4/heimdal/lib/hdb/db.c     int fd = (*d->fd)(d);
fd                 83 source4/heimdal/lib/hdb/db.c     if(fd < 0) {
fd                 88 source4/heimdal/lib/hdb/db.c     return hdb_unlock(fd);
fd                113 source4/heimdal/lib/hdb/hdb.c hdb_lock(int fd, int operation)
fd                118 source4/heimdal/lib/hdb/hdb.c 	code = flock(fd, (operation == HDB_RLOCK ? LOCK_SH : LOCK_EX) | LOCK_NB);
fd                131 source4/heimdal/lib/hdb/hdb.c hdb_unlock(int fd)
fd                134 source4/heimdal/lib/hdb/hdb.c     code = flock(fd, LOCK_UN);
fd                153 source4/heimdal/lib/hdb/mkey.c     int fd;
fd                159 source4/heimdal/lib/hdb/mkey.c     fd = open(filename, O_RDONLY | O_BINARY);
fd                160 source4/heimdal/lib/hdb/mkey.c     if(fd < 0) {
fd                166 source4/heimdal/lib/hdb/mkey.c     sp = krb5_storage_from_fd(fd);
fd                168 source4/heimdal/lib/hdb/mkey.c 	close(fd);
fd                193 source4/heimdal/lib/hdb/mkey.c     close(fd);
fd                202 source4/heimdal/lib/hdb/mkey.c     int fd;
fd                209 source4/heimdal/lib/hdb/mkey.c     fd = open(filename, O_RDONLY | O_BINARY);
fd                210 source4/heimdal/lib/hdb/mkey.c     if(fd < 0) {
fd                217 source4/heimdal/lib/hdb/mkey.c     len = read(fd, buf, sizeof(buf));
fd                218 source4/heimdal/lib/hdb/mkey.c     close(fd);
fd                249 source4/heimdal/lib/hdb/mkey.c     int fd;
fd                255 source4/heimdal/lib/hdb/mkey.c     fd = open(filename, O_RDONLY | O_BINARY);
fd                256 source4/heimdal/lib/hdb/mkey.c     if(fd < 0) {
fd                263 source4/heimdal/lib/hdb/mkey.c     len = read(fd, buf, sizeof(buf));
fd                264 source4/heimdal/lib/hdb/mkey.c     close(fd);
fd                162 source4/heimdal/lib/krb5/auth_context.c 		       int fd, int flags)
fd                175 source4/heimdal/lib/krb5/auth_context.c 	    if(getsockname(fd, local, &len) < 0) {
fd                193 source4/heimdal/lib/krb5/auth_context.c 	if(getpeername(fd, remote, &len) < 0) {
fd                225 source4/heimdal/lib/krb5/auth_context.c     int fd = *(int*)p_fd;
fd                231 source4/heimdal/lib/krb5/auth_context.c     return krb5_auth_con_genaddrs(context, auth_context, fd, flags);
fd               3710 source4/heimdal/lib/krb5/crypto.c 	int fd;
fd               3711 source4/heimdal/lib/krb5/crypto.c 	fd = open(seedfile, O_RDONLY | O_BINARY | O_CLOEXEC);
fd               3712 source4/heimdal/lib/krb5/crypto.c 	if (fd >= 0) {
fd               3714 source4/heimdal/lib/krb5/crypto.c 	    rk_cloexec(fd);
fd               3715 source4/heimdal/lib/krb5/crypto.c 	    ret = read(fd, buf, sizeof(buf));
fd               3718 source4/heimdal/lib/krb5/crypto.c 	    close(fd);
fd                 44 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                 69 source4/heimdal/lib/krb5/fcache.c _krb5_xlock(krb5_context context, int fd, krb5_boolean exclusive,
fd                 80 source4/heimdal/lib/krb5/fcache.c     ret = fcntl(fd, F_SETLKW, &l);
fd                 82 source4/heimdal/lib/krb5/fcache.c     ret = flock(fd, exclusive ? LOCK_EX : LOCK_SH);
fd                111 source4/heimdal/lib/krb5/fcache.c _krb5_xunlock(krb5_context context, int fd)
fd                120 source4/heimdal/lib/krb5/fcache.c     ret = fcntl(fd, F_SETLKW, &l);
fd                122 source4/heimdal/lib/krb5/fcache.c     ret = flock(fd, LOCK_UN);
fd                142 source4/heimdal/lib/krb5/fcache.c write_storage(krb5_context context, krb5_storage *sp, int fd)
fd                153 source4/heimdal/lib/krb5/fcache.c     sret = write(fd, data.data, data.length);
fd                168 source4/heimdal/lib/krb5/fcache.c 	 int fd, krb5_boolean exclusive)
fd                170 source4/heimdal/lib/krb5/fcache.c     return _krb5_xlock(context, fd, exclusive, fcc_get_name(context, id));
fd                174 source4/heimdal/lib/krb5/fcache.c fcc_unlock(krb5_context context, int fd)
fd                176 source4/heimdal/lib/krb5/fcache.c     return _krb5_xunlock(context, fd);
fd                207 source4/heimdal/lib/krb5/fcache.c scrub_file (int fd)
fd                212 source4/heimdal/lib/krb5/fcache.c     pos = lseek(fd, 0, SEEK_END);
fd                215 source4/heimdal/lib/krb5/fcache.c     if (lseek(fd, 0, SEEK_SET) < 0)
fd                219 source4/heimdal/lib/krb5/fcache.c         ssize_t tmp = write(fd, buf, min(sizeof(buf), pos));
fd                225 source4/heimdal/lib/krb5/fcache.c     fsync (fd);
fd                239 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                247 source4/heimdal/lib/krb5/fcache.c     fd = open(filename, O_RDWR | O_BINARY);
fd                248 source4/heimdal/lib/krb5/fcache.c     if(fd < 0) {
fd                254 source4/heimdal/lib/krb5/fcache.c     rk_cloexec(fd);
fd                255 source4/heimdal/lib/krb5/fcache.c     ret = _krb5_xlock(context, fd, 1, filename);
fd                257 source4/heimdal/lib/krb5/fcache.c 	close(fd);
fd                261 source4/heimdal/lib/krb5/fcache.c 	_krb5_xunlock(context, fd);
fd                262 source4/heimdal/lib/krb5/fcache.c         close (fd);
fd                265 source4/heimdal/lib/krb5/fcache.c     ret = fstat (fd, &sb2);
fd                267 source4/heimdal/lib/krb5/fcache.c 	_krb5_xunlock(context, fd);
fd                268 source4/heimdal/lib/krb5/fcache.c 	close (fd);
fd                275 source4/heimdal/lib/krb5/fcache.c 	_krb5_xunlock(context, fd);
fd                276 source4/heimdal/lib/krb5/fcache.c 	close (fd);
fd                283 source4/heimdal/lib/krb5/fcache.c 	_krb5_xunlock(context, fd);
fd                284 source4/heimdal/lib/krb5/fcache.c         close (fd);
fd                288 source4/heimdal/lib/krb5/fcache.c     ret = scrub_file (fd);
fd                290 source4/heimdal/lib/krb5/fcache.c 	_krb5_xunlock(context, fd);
fd                291 source4/heimdal/lib/krb5/fcache.c 	close(fd);
fd                294 source4/heimdal/lib/krb5/fcache.c     ret = _krb5_xunlock(context, fd);
fd                295 source4/heimdal/lib/krb5/fcache.c     close (fd);
fd                303 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                319 source4/heimdal/lib/krb5/fcache.c     fd = mkstemp(file);
fd                320 source4/heimdal/lib/krb5/fcache.c     if(fd < 0) {
fd                327 source4/heimdal/lib/krb5/fcache.c     close(fd);
fd                371 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                372 source4/heimdal/lib/krb5/fcache.c     fd = open(filename, flags, mode);
fd                373 source4/heimdal/lib/krb5/fcache.c     if(fd < 0) {
fd                379 source4/heimdal/lib/krb5/fcache.c     rk_cloexec(fd);
fd                381 source4/heimdal/lib/krb5/fcache.c     if((ret = fcc_lock(context, id, fd, exclusive)) != 0) {
fd                382 source4/heimdal/lib/krb5/fcache.c 	close(fd);
fd                385 source4/heimdal/lib/krb5/fcache.c     *fd_ret = fd;
fd                396 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                401 source4/heimdal/lib/krb5/fcache.c     ret = fcc_open(context, id, &fd, O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
fd                429 source4/heimdal/lib/krb5/fcache.c 	ret |= write_storage(context, sp, fd);
fd                433 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, fd);
fd                434 source4/heimdal/lib/krb5/fcache.c     if (close(fd) < 0)
fd                466 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                468 source4/heimdal/lib/krb5/fcache.c     ret = fcc_open(context, id, &fd, O_WRONLY | O_APPEND | O_BINARY | O_CLOEXEC, 0);
fd                484 source4/heimdal/lib/krb5/fcache.c 	    ret = write_storage(context, sp, fd);
fd                487 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, fd);
fd                488 source4/heimdal/lib/krb5/fcache.c     if (close(fd) < 0) {
fd                504 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                509 source4/heimdal/lib/krb5/fcache.c     ret = fcc_open(context, id, &fd, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
fd                513 source4/heimdal/lib/krb5/fcache.c     sp = krb5_storage_from_fd(fd);
fd                635 source4/heimdal/lib/krb5/fcache.c     *ret_fd = fd;
fd                641 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, fd);
fd                642 source4/heimdal/lib/krb5/fcache.c     close(fd);
fd                652 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                655 source4/heimdal/lib/krb5/fcache.c     ret = init_fcc (context, id, &sp, &fd);
fd                662 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, fd);
fd                663 source4/heimdal/lib/krb5/fcache.c     close(fd);
fd                688 source4/heimdal/lib/krb5/fcache.c 		    &FCC_CURSOR(*cursor)->fd);
fd                701 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, FCC_CURSOR(*cursor)->fd);
fd                712 source4/heimdal/lib/krb5/fcache.c     if((ret = fcc_lock(context, id, FCC_CURSOR(*cursor)->fd, FALSE)) != 0)
fd                719 source4/heimdal/lib/krb5/fcache.c     fcc_unlock(context, FCC_CURSOR(*cursor)->fd);
fd                729 source4/heimdal/lib/krb5/fcache.c     close (FCC_CURSOR(*cursor)->fd);
fd                914 source4/heimdal/lib/krb5/fcache.c 	int fd;
fd                915 source4/heimdal/lib/krb5/fcache.c 	ret = init_fcc (context, to, &sp, &fd);
fd                917 source4/heimdal/lib/krb5/fcache.c 	fcc_unlock(context, fd);
fd                918 source4/heimdal/lib/krb5/fcache.c 	close(fd);
fd                936 source4/heimdal/lib/krb5/fcache.c     int fd;
fd                938 source4/heimdal/lib/krb5/fcache.c     ret = fcc_open(context, id, &fd, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
fd                941 source4/heimdal/lib/krb5/fcache.c     ret = fstat(fd, &sb);
fd                942 source4/heimdal/lib/krb5/fcache.c     close(fd);
fd                 66 source4/heimdal/lib/krb5/kcm.c     int fd;
fd                 71 source4/heimdal/lib/krb5/kcm.c     fd = open(k->door_path, O_RDWR);
fd                 72 source4/heimdal/lib/krb5/kcm.c     if (fd < 0)
fd                 74 source4/heimdal/lib/krb5/kcm.c     rk_cloexec(fd);
fd                 83 source4/heimdal/lib/krb5/kcm.c     ret = door_call(fd, &arg);
fd                 84 source4/heimdal/lib/krb5/kcm.c     close(fd);
fd                106 source4/heimdal/lib/krb5/kcm.c     int fd;
fd                108 source4/heimdal/lib/krb5/kcm.c     fd = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
fd                109 source4/heimdal/lib/krb5/kcm.c     if (fd < 0)
fd                111 source4/heimdal/lib/krb5/kcm.c     rk_cloexec(fd);
fd                113 source4/heimdal/lib/krb5/kcm.c     if (connect(fd, rk_UNCONST(&k->path), sizeof(k->path)) != 0) {
fd                114 source4/heimdal/lib/krb5/kcm.c 	close(fd);
fd                118 source4/heimdal/lib/krb5/kcm.c     ret = _krb5_send_and_recv_tcp(fd, context->kdc_timeout,
fd                120 source4/heimdal/lib/krb5/kcm.c     close(fd);
fd                376 source4/heimdal/lib/krb5/keytab_file.c     c->fd = open (d->filename, flags);
fd                377 source4/heimdal/lib/krb5/keytab_file.c     if (c->fd < 0) {
fd                384 source4/heimdal/lib/krb5/keytab_file.c     rk_cloexec(c->fd);
fd                385 source4/heimdal/lib/krb5/keytab_file.c     ret = _krb5_xlock(context, c->fd, exclusive, d->filename);
fd                387 source4/heimdal/lib/krb5/keytab_file.c 	close(c->fd);
fd                390 source4/heimdal/lib/krb5/keytab_file.c     c->sp = krb5_storage_from_fd(c->fd);
fd                392 source4/heimdal/lib/krb5/keytab_file.c 	_krb5_xunlock(context, c->fd);
fd                393 source4/heimdal/lib/krb5/keytab_file.c 	close(c->fd);
fd                402 source4/heimdal/lib/krb5/keytab_file.c 	_krb5_xunlock(context, c->fd);
fd                403 source4/heimdal/lib/krb5/keytab_file.c 	close(c->fd);
fd                409 source4/heimdal/lib/krb5/keytab_file.c 	_krb5_xunlock(context, c->fd);
fd                410 source4/heimdal/lib/krb5/keytab_file.c 	close(c->fd);
fd                417 source4/heimdal/lib/krb5/keytab_file.c 	_krb5_xunlock(context, c->fd);
fd                418 source4/heimdal/lib/krb5/keytab_file.c 	close(c->fd);
fd                505 source4/heimdal/lib/krb5/keytab_file.c     _krb5_xunlock(context, cursor->fd);
fd                506 source4/heimdal/lib/krb5/keytab_file.c     close(cursor->fd);
fd                530 source4/heimdal/lib/krb5/keytab_file.c     int fd;
fd                536 source4/heimdal/lib/krb5/keytab_file.c     fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
fd                537 source4/heimdal/lib/krb5/keytab_file.c     if (fd < 0) {
fd                538 source4/heimdal/lib/krb5/keytab_file.c 	fd = open (d->filename, O_RDWR | O_CREAT | O_EXCL | O_BINARY | O_CLOEXEC, 0600);
fd                539 source4/heimdal/lib/krb5/keytab_file.c 	if (fd < 0) {
fd                546 source4/heimdal/lib/krb5/keytab_file.c 	rk_cloexec(fd);
fd                548 source4/heimdal/lib/krb5/keytab_file.c 	ret = _krb5_xlock(context, fd, 1, d->filename);
fd                550 source4/heimdal/lib/krb5/keytab_file.c 	    close(fd);
fd                553 source4/heimdal/lib/krb5/keytab_file.c 	sp = krb5_storage_from_fd(fd);
fd                563 source4/heimdal/lib/krb5/keytab_file.c 	rk_cloexec(fd);
fd                565 source4/heimdal/lib/krb5/keytab_file.c 	ret = _krb5_xlock(context, fd, 1, d->filename);
fd                567 source4/heimdal/lib/krb5/keytab_file.c 	    close(fd);
fd                570 source4/heimdal/lib/krb5/keytab_file.c 	sp = krb5_storage_from_fd(fd);
fd                696 source4/heimdal/lib/krb5/keytab_file.c     _krb5_xunlock(context, fd);
fd                697 source4/heimdal/lib/krb5/keytab_file.c     close(fd);
fd                208 source4/heimdal/lib/krb5/keytab_keyfile.c     c->fd = open (d->filename, O_RDONLY | O_BINARY | O_CLOEXEC, 0600);
fd                209 source4/heimdal/lib/krb5/keytab_keyfile.c     if (c->fd < 0) {
fd                217 source4/heimdal/lib/krb5/keytab_keyfile.c     c->sp = krb5_storage_from_fd(c->fd);
fd                221 source4/heimdal/lib/krb5/keytab_keyfile.c 	close(c->fd);
fd                290 source4/heimdal/lib/krb5/keytab_keyfile.c     close(cursor->fd);
fd                300 source4/heimdal/lib/krb5/keytab_keyfile.c     int fd, created = 0;
fd                317 source4/heimdal/lib/krb5/keytab_keyfile.c     fd = open (d->filename, O_RDWR | O_BINARY | O_CLOEXEC);
fd                318 source4/heimdal/lib/krb5/keytab_keyfile.c     if (fd < 0) {
fd                319 source4/heimdal/lib/krb5/keytab_keyfile.c 	fd = open (d->filename,
fd                321 source4/heimdal/lib/krb5/keytab_keyfile.c 	if (fd < 0) {
fd                332 source4/heimdal/lib/krb5/keytab_keyfile.c     sp = krb5_storage_from_fd(fd);
fd                334 source4/heimdal/lib/krb5/keytab_keyfile.c 	close(fd);
fd                345 source4/heimdal/lib/krb5/keytab_keyfile.c 	    close(fd);
fd                355 source4/heimdal/lib/krb5/keytab_keyfile.c 	    close(fd);
fd                434 source4/heimdal/lib/krb5/keytab_keyfile.c     close (fd);
fd                148 source4/heimdal/lib/krb5/keytab_memory.c     c->fd = 0;
fd                159 source4/heimdal/lib/krb5/keytab_memory.c     if(c->fd >= d->num_entries)
fd                161 source4/heimdal/lib/krb5/keytab_memory.c     return krb5_kt_copy_entry_contents(context, &d->entries[c->fd++], entry);
fd                484 source4/heimdal/lib/krb5/krb5.h     int fd;
fd                213 source4/heimdal/lib/krb5/log.c     FILE *fd;
fd                224 source4/heimdal/lib/krb5/log.c 	f->fd = fopen(f->filename, f->mode);
fd                225 source4/heimdal/lib/krb5/log.c     if(f->fd == NULL)
fd                227 source4/heimdal/lib/krb5/log.c     fprintf(f->fd, "%s %s\n", timestr, msg);
fd                229 source4/heimdal/lib/krb5/log.c 	fclose(f->fd);
fd                230 source4/heimdal/lib/krb5/log.c 	f->fd = NULL;
fd                239 source4/heimdal/lib/krb5/log.c 	fclose(f->fd);
fd                247 source4/heimdal/lib/krb5/log.c     struct file_data *fd = malloc(sizeof(*fd));
fd                248 source4/heimdal/lib/krb5/log.c     if(fd == NULL) {
fd                253 source4/heimdal/lib/krb5/log.c     fd->filename = filename;
fd                254 source4/heimdal/lib/krb5/log.c     fd->mode = mode;
fd                255 source4/heimdal/lib/krb5/log.c     fd->fd = f;
fd                256 source4/heimdal/lib/krb5/log.c     fd->keep_open = keep_open;
fd                258 source4/heimdal/lib/krb5/log.c     return krb5_addlog_func(context, fac, min, max, log_file, close_file, fd);
fd                 52 source4/heimdal/lib/krb5/send_to_kdc.c recv_loop (int fd,
fd                 63 source4/heimdal/lib/krb5/send_to_kdc.c      if (fd >= FD_SETSIZE) {
fd                 70 source4/heimdal/lib/krb5/send_to_kdc.c 	 FD_SET(fd, &fdset);
fd                 73 source4/heimdal/lib/krb5/send_to_kdc.c 	 ret = select (fd + 1, &fdset, NULL, NULL, &timeout);
fd                 83 source4/heimdal/lib/krb5/send_to_kdc.c 	     if (ioctl (fd, FIONREAD, &nbytes) < 0) {
fd                 99 source4/heimdal/lib/krb5/send_to_kdc.c 	     ret = recv (fd, (char*)tmp + rep->length, nbytes, 0);
fd                116 source4/heimdal/lib/krb5/send_to_kdc.c send_and_recv_udp(int fd,
fd                121 source4/heimdal/lib/krb5/send_to_kdc.c     if (send (fd, req->data, req->length, 0) < 0)
fd                124 source4/heimdal/lib/krb5/send_to_kdc.c     return recv_loop(fd, tmout, 1, 0, rep);
fd                135 source4/heimdal/lib/krb5/send_to_kdc.c send_and_recv_tcp(int fd,
fd                145 source4/heimdal/lib/krb5/send_to_kdc.c     if(net_write(fd, len, sizeof(len)) < 0)
fd                147 source4/heimdal/lib/krb5/send_to_kdc.c     if(net_write(fd, req->data, req->length) < 0)
fd                149 source4/heimdal/lib/krb5/send_to_kdc.c     if (recv_loop (fd, tmout, 0, 4, &len_data) < 0)
fd                157 source4/heimdal/lib/krb5/send_to_kdc.c     if (recv_loop (fd, tmout, 0, rep_len, rep) < 0)
fd                167 source4/heimdal/lib/krb5/send_to_kdc.c _krb5_send_and_recv_tcp(int fd,
fd                172 source4/heimdal/lib/krb5/send_to_kdc.c     return send_and_recv_tcp(fd, tmout, req, rep);
fd                180 source4/heimdal/lib/krb5/send_to_kdc.c send_and_recv_http(int fd,
fd                197 source4/heimdal/lib/krb5/send_to_kdc.c     ret = net_write (fd, request, strlen(request));
fd                201 source4/heimdal/lib/krb5/send_to_kdc.c     ret = recv_loop(fd, tmout, 0, 0, rep);
fd                373 source4/heimdal/lib/krb5/send_to_kdc.c      int fd;
fd                414 source4/heimdal/lib/krb5/send_to_kdc.c 		 fd = socket (a->ai_family, a->ai_socktype | SOCK_CLOEXEC, a->ai_protocol);
fd                415 source4/heimdal/lib/krb5/send_to_kdc.c 		 if (fd < 0)
fd                417 source4/heimdal/lib/krb5/send_to_kdc.c 		 rk_cloexec(fd);
fd                418 source4/heimdal/lib/krb5/send_to_kdc.c 		 if (connect (fd, a->ai_addr, a->ai_addrlen) < 0) {
fd                419 source4/heimdal/lib/krb5/send_to_kdc.c 		     close (fd);
fd                424 source4/heimdal/lib/krb5/send_to_kdc.c 		     ret = send_and_recv_http(fd, context->kdc_timeout,
fd                428 source4/heimdal/lib/krb5/send_to_kdc.c 		     ret = send_and_recv_tcp (fd, context->kdc_timeout,
fd                432 source4/heimdal/lib/krb5/send_to_kdc.c 		     ret = send_and_recv_udp (fd, context->kdc_timeout,
fd                436 source4/heimdal/lib/krb5/send_to_kdc.c 		 close (fd);
fd                 40 source4/heimdal/lib/krb5/store_fd.c     int fd;
fd                 43 source4/heimdal/lib/krb5/store_fd.c #define FD(S) (((fd_storage*)(S)->data)->fd)
fd                 70 source4/heimdal/lib/krb5/store_fd.c krb5_storage_from_fd(int fd)
fd                 74 source4/heimdal/lib/krb5/store_fd.c     fd = dup(fd);
fd                 75 source4/heimdal/lib/krb5/store_fd.c     if (fd < 0)
fd                 80 source4/heimdal/lib/krb5/store_fd.c 	close(fd);
fd                 86 source4/heimdal/lib/krb5/store_fd.c 	close(fd);
fd                 92 source4/heimdal/lib/krb5/store_fd.c     FD(sp) = fd;
fd                148 source4/heimdal/lib/krb5/v4_glue.c     int fd, i;
fd                158 source4/heimdal/lib/krb5/v4_glue.c     fd = open(path, O_WRONLY|O_CREAT, 0600);
fd                159 source4/heimdal/lib/krb5/v4_glue.c     if (fd < 0) {
fd                168 source4/heimdal/lib/krb5/v4_glue.c     rk_cloexec(fd);
fd                170 source4/heimdal/lib/krb5/v4_glue.c     if (fstat(fd, &sb) != 0 || !S_ISREG(sb.st_mode)) {
fd                175 source4/heimdal/lib/krb5/v4_glue.c 	close(fd);
fd                180 source4/heimdal/lib/krb5/v4_glue.c 	if (flock(fd, LOCK_EX | LOCK_NB) < 0) {
fd                190 source4/heimdal/lib/krb5/v4_glue.c 	close(fd);
fd                195 source4/heimdal/lib/krb5/v4_glue.c 	ret = ftruncate(fd, 0);
fd                197 source4/heimdal/lib/krb5/v4_glue.c 	    flock(fd, LOCK_UN);
fd                202 source4/heimdal/lib/krb5/v4_glue.c 	    close(fd);
fd                206 source4/heimdal/lib/krb5/v4_glue.c     ret = lseek(fd, 0L, SEEK_END);
fd                209 source4/heimdal/lib/krb5/v4_glue.c 	flock(fd, LOCK_UN);
fd                211 source4/heimdal/lib/krb5/v4_glue.c 	close(fd);
fd                217 source4/heimdal/lib/krb5/v4_glue.c     ret = write(fd, data.data, data.length);
fd                223 source4/heimdal/lib/krb5/v4_glue.c     flock(fd, LOCK_UN);
fd                225 source4/heimdal/lib/krb5/v4_glue.c     close(fd);
fd                 45 source4/heimdal/lib/roken/cloexec.c rk_cloexec(int fd)
fd                 49 source4/heimdal/lib/roken/cloexec.c     ret = fcntl(fd, F_GETFD);
fd                 52 source4/heimdal/lib/roken/cloexec.c     if (fcntl(fd, F_SETFD, ret | FD_CLOEXEC) == -1)
fd                 49 source4/heimdal/lib/roken/closefrom.c closefrom(int fd)
fd                 56 source4/heimdal/lib/roken/closefrom.c     for (; fd <= num; fd++)
fd                 57 source4/heimdal/lib/roken/closefrom.c 	close(fd);
fd                 50 source4/heimdal/lib/roken/dumpdata.c     int fd;
fd                 52 source4/heimdal/lib/roken/dumpdata.c     fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0640);
fd                 53 source4/heimdal/lib/roken/dumpdata.c     if (fd < 0)
fd                 55 source4/heimdal/lib/roken/dumpdata.c     net_write(fd, buf, size);
fd                 56 source4/heimdal/lib/roken/dumpdata.c     close(fd);
fd                 67 source4/heimdal/lib/roken/dumpdata.c     int fd, ret;
fd                 72 source4/heimdal/lib/roken/dumpdata.c     fd = open(filename, O_RDONLY, 0);
fd                 73 source4/heimdal/lib/roken/dumpdata.c     if (fd < 0)
fd                 75 source4/heimdal/lib/roken/dumpdata.c     if (fstat(fd, &sb) != 0){
fd                 86 source4/heimdal/lib/roken/dumpdata.c     sret = net_read(fd, *buf, *size);
fd                 97 source4/heimdal/lib/roken/dumpdata.c     close(fd);
fd                 64 source4/heimdal/lib/roken/get_window_size.c get_window_size(int fd, struct winsize *wp)
fd                 71 source4/heimdal/lib/roken/get_window_size.c     ret = ioctl(fd, TIOCGWINSZ, wp);
fd                 76 source4/heimdal/lib/roken/get_window_size.c 	ret = ioctl(fd, TIOCGSIZE, &ts);
fd                 50 source4/heimdal/lib/roken/net_read.c net_read (int fd, void *buf, size_t nbytes)
fd                 58 source4/heimdal/lib/roken/net_read.c 	count = recv (fd, cbuf, rem, 0);
fd                 60 source4/heimdal/lib/roken/net_read.c 	count = read (fd, cbuf, rem);
fd                 50 source4/heimdal/lib/roken/net_write.c net_write (int fd, const void *buf, size_t nbytes)
fd                 58 source4/heimdal/lib/roken/net_write.c 	count = send (fd, cbuf, rem, 0);
fd                 60 source4/heimdal/lib/roken/net_write.c 	count = write (fd, cbuf, rem);
fd                305 source4/heimdal/lib/roken/roken-common.h eread (int fd, void *buf, size_t nbytes);
fd                308 source4/heimdal/lib/roken/roken-common.h ewrite (int fd, const void *buf, size_t nbytes);
fd                 64 source4/heimdal_build/replace.c  int flock(int fd, int op)
fd                 75 source4/heimdal_build/replace.c 		return fcntl(fd, F_SETLK, &lock);
fd                 78 source4/heimdal_build/replace.c 		return fcntl(fd, (op&LOCK_NB)?F_SETLK:F_SETLKW, &lock);
fd                 81 source4/heimdal_build/replace.c 		return fcntl(fd, (op&LOCK_NB)?F_SETLK:F_SETLKW, &lock);
fd                198 source4/lib/ldb/tools/ldbedit.c 	int fd, ret;
fd                208 source4/lib/ldb/tools/ldbedit.c 	fd = mkstemp(file_template);
fd                210 source4/lib/ldb/tools/ldbedit.c 	if (fd == -1) {
fd                215 source4/lib/ldb/tools/ldbedit.c 	f = fdopen(fd, "r+");
fd                219 source4/lib/ldb/tools/ldbedit.c 		close(fd);
fd                 35 source4/lib/registry/hive.c 	int fd, num;
fd                 43 source4/lib/registry/hive.c 	fd = open(location, O_RDWR);
fd                 44 source4/lib/registry/hive.c 	if (fd == -1) {
fd                 50 source4/lib/registry/hive.c 	num = read(fd, peek, 20);
fd                 56 source4/lib/registry/hive.c 		close(fd);
fd                 59 source4/lib/registry/hive.c 		close(fd);
fd                 28 source4/lib/registry/patchfile.c _PUBLIC_ WERROR reg_preg_diff_load(int fd,
fd                 33 source4/lib/registry/patchfile.c _PUBLIC_ WERROR reg_dotreg_diff_load(int fd,
fd                306 source4/lib/registry/patchfile.c 	int fd;
fd                309 source4/lib/registry/patchfile.c 	fd = open(filename, O_RDONLY, 0);
fd                310 source4/lib/registry/patchfile.c 	if (fd == -1) {
fd                316 source4/lib/registry/patchfile.c 	if (read(fd, &hdr, 4) != 4) {
fd                323 source4/lib/registry/patchfile.c 	lseek(fd, 0, SEEK_SET);
fd                327 source4/lib/registry/patchfile.c 		return reg_creg_diff_load(diff, fd);
fd                330 source4/lib/registry/patchfile.c 		return reg_regf_diff_load(diff, fd);
fd                335 source4/lib/registry/patchfile.c 		return reg_preg_diff_load(fd, iconv_convenience, callbacks, callback_data);
fd                338 source4/lib/registry/patchfile.c 		return reg_dotreg_diff_load(fd, iconv_convenience, callbacks, callback_data);
fd                 37 source4/lib/registry/patchfile_dotreg.c 	int fd;
fd                 45 source4/lib/registry/patchfile_dotreg.c 	fdprintf(data->fd, "\n[%s]\n", key_name);
fd                 54 source4/lib/registry/patchfile_dotreg.c 	fdprintf(data->fd, "\n[-%s]\n", key_name);
fd                 65 source4/lib/registry/patchfile_dotreg.c 	fdprintf(data->fd, "\"%s\"=%s:%s\n",
fd                 77 source4/lib/registry/patchfile_dotreg.c 	fdprintf(data->fd, "\"%s\"=-\n", value_name);
fd                 86 source4/lib/registry/patchfile_dotreg.c 	close(data->fd);
fd                114 source4/lib/registry/patchfile_dotreg.c 		data->fd = open(filename, O_CREAT|O_WRONLY, 0755);
fd                115 source4/lib/registry/patchfile_dotreg.c 		if (data->fd < 0) {
fd                120 source4/lib/registry/patchfile_dotreg.c 		data->fd = STDOUT_FILENO;
fd                123 source4/lib/registry/patchfile_dotreg.c 	fdprintf(data->fd, "%s\n\n", HEADER_STRING);
fd                140 source4/lib/registry/patchfile_dotreg.c _PUBLIC_ WERROR reg_dotreg_diff_load(int fd,
fd                152 source4/lib/registry/patchfile_dotreg.c 	line = afdgets(fd, mem_ctx, 0);
fd                156 source4/lib/registry/patchfile_dotreg.c 		close(fd);
fd                160 source4/lib/registry/patchfile_dotreg.c 	while ((line = afdgets(fd, mem_ctx, 0))) {
fd                262 source4/lib/registry/patchfile_dotreg.c 	close(fd);
fd                 28 source4/lib/registry/patchfile_preg.c 	int fd;
fd                 33 source4/lib/registry/patchfile_preg.c static WERROR preg_read_utf16(struct smb_iconv_convenience *ic, int fd, char *c)
fd                 37 source4/lib/registry/patchfile_preg.c 	if (read(fd, &v, 2) < 2) {
fd                 43 source4/lib/registry/patchfile_preg.c static WERROR preg_write_utf16(struct smb_iconv_convenience *ic, int fd, const char *string)
fd                 51 source4/lib/registry/patchfile_preg.c 		if (write(fd, &v, 2) < 2) {
fd                 70 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, "[");
fd                 71 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, key_name);
fd                 72 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, ";");
fd                 73 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, value_name);
fd                 74 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, ";");
fd                 76 source4/lib/registry/patchfile_preg.c 	write(data->fd, &buf, sizeof(uint32_t));
fd                 77 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, ";");
fd                 79 source4/lib/registry/patchfile_preg.c 	write(data->fd, &buf, sizeof(uint32_t));
fd                 80 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, ";");
fd                 81 source4/lib/registry/patchfile_preg.c 	write(data->fd, value_data.data, value_data.length);
fd                 82 source4/lib/registry/patchfile_preg.c 	preg_write_utf16(data->ic, data->fd, "]");
fd                134 source4/lib/registry/patchfile_preg.c 	close(data->fd);
fd                158 source4/lib/registry/patchfile_preg.c 		data->fd = open(filename, O_CREAT|O_WRONLY, 0755);
fd                159 source4/lib/registry/patchfile_preg.c 		if (data->fd < 0) {
fd                164 source4/lib/registry/patchfile_preg.c 		data->fd = STDOUT_FILENO;
fd                169 source4/lib/registry/patchfile_preg.c 	write(data->fd, (uint8_t *)&preg_header,8);
fd                188 source4/lib/registry/patchfile_preg.c _PUBLIC_ WERROR reg_preg_diff_load(int fd,
fd                210 source4/lib/registry/patchfile_preg.c 	if (read(fd, &preg_header, 8) != 8) {
fd                231 source4/lib/registry/patchfile_preg.c 		if (!W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr))) {
fd                242 source4/lib/registry/patchfile_preg.c 		while (W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr)) &&
fd                251 source4/lib/registry/patchfile_preg.c 		while (W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr)) &&
fd                259 source4/lib/registry/patchfile_preg.c 		if (read(fd, &value_type, 4) < 4) {
fd                268 source4/lib/registry/patchfile_preg.c 		if (!(W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr)) &&
fd                275 source4/lib/registry/patchfile_preg.c 		if (read(fd, &length, 4) < 4) {
fd                282 source4/lib/registry/patchfile_preg.c 		if (!(W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr)) &&
fd                291 source4/lib/registry/patchfile_preg.c 		    read(fd, buf_ptr, length) != length) {
fd                300 source4/lib/registry/patchfile_preg.c 		if (!(W_ERROR_IS_OK(preg_read_utf16(iconv_convenience, fd, buf_ptr)) &&
fd                352 source4/lib/registry/patchfile_preg.c 	close(fd);
fd                 49 source4/lib/registry/regf.c 	int fd;
fd               1875 source4/lib/registry/regf.c 	if (lseek(regf->fd, 0, SEEK_SET) == -1) {
fd               1888 source4/lib/registry/regf.c 	if (NT_STATUS_IS_ERR(tdr_push_to_fd(regf->fd, regf->iconv_convenience,
fd               1895 source4/lib/registry/regf.c 	if (lseek(regf->fd, 0x1000, SEEK_SET) == -1) {
fd               1901 source4/lib/registry/regf.c 		if (NT_STATUS_IS_ERR(tdr_push_to_fd(regf->fd, regf->iconv_convenience,
fd               1935 source4/lib/registry/regf.c 	regf->fd = creat(location, 0644);
fd               1937 source4/lib/registry/regf.c 	if (regf->fd == -1) {
fd               2057 source4/lib/registry/regf.c 	regf->fd = open(location, O_RDWR);
fd               2059 source4/lib/registry/regf.c 	if (regf->fd == -1) {
fd               2068 source4/lib/registry/regf.c 	pull->data.data = (uint8_t*)fd_load(regf->fd, &pull->data.length, 0, regf);
fd                512 source4/lib/registry/registry.h WERROR reg_dotreg_diff_load(int fd,
fd                517 source4/lib/registry/registry.h WERROR reg_preg_diff_load(int fd,
fd                 82 source4/lib/smbreadline/smbreadline.c 	int fd = STDIN_FILENO;
fd                 97 source4/lib/smbreadline/smbreadline.c 		FD_SET(fd,&fds);
fd                 99 source4/lib/smbreadline/smbreadline.c 		if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
fd                 42 source4/lib/socket/socket.c 					int fd,
fd                 46 source4/lib/socket/socket.c 	close(fd);
fd                 64 source4/lib/socket/socket.c 	(*new_sock)->fd = -1;
fd                364 source4/lib/socket/socket.c 	int fd;
fd                365 source4/lib/socket/socket.c 	if (sock->fd == -1) {
fd                368 source4/lib/socket/socket.c 	fd = dup(sock->fd);
fd                369 source4/lib/socket/socket.c 	if (fd == -1) {
fd                372 source4/lib/socket/socket.c 	close(sock->fd);
fd                373 source4/lib/socket/socket.c 	sock->fd = fd;
fd                534 source4/lib/socket/socket.c _PUBLIC_ void set_socket_options(int fd, const char *options)
fd                567 source4/lib/socket/socket.c 			ret = setsockopt(fd,socket_options[i].level,
fd                577 source4/lib/socket/socket.c 				ret = setsockopt(fd,socket_options[i].level,
fd                119 source4/lib/socket/socket.h 	int fd;
fd                208 source4/lib/socket/socket.h void set_socket_options(int fd, const char *options);
fd                213 source4/lib/socket/socket.h 			       int fd,
fd                 44 source4/lib/socket/socket_ip.c 	sock->fd = socket(PF_INET, type, 0);
fd                 45 source4/lib/socket/socket_ip.c 	if (sock->fd == -1) {
fd                 57 source4/lib/socket/socket_ip.c 	close(sock->fd);
fd                 67 source4/lib/socket/socket_ip.c 	ret = getsockopt(sock->fd, SOL_SOCKET, SO_ERROR, &error, &len);
fd                 76 source4/lib/socket/socket_ip.c 		ret = set_blocking(sock->fd, false);
fd                 99 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, my_address->sockaddr, my_address->sockaddrlen);
fd                116 source4/lib/socket/socket_ip.c 			ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                124 source4/lib/socket/socket_ip.c 		ret = connect(sock->fd, srv_address->sockaddr, srv_address->sockaddrlen);
fd                144 source4/lib/socket/socket_ip.c 		ret = connect(sock->fd, (const struct sockaddr *)&srv_addr, sizeof(srv_addr));
fd                169 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, my_address->sockaddr, my_address->sockaddrlen);
fd                181 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                189 source4/lib/socket/socket_ip.c 		ret = listen(sock->fd, queue_size);
fd                196 source4/lib/socket/socket_ip.c 		ret = set_blocking(sock->fd, false);
fd                217 source4/lib/socket/socket_ip.c 	new_fd = accept(sock->fd, (struct sockaddr *)&cli_addr, &cli_addr_len);
fd                247 source4/lib/socket/socket_ip.c 	(*new_sock)->fd			= new_fd;
fd                263 source4/lib/socket/socket_ip.c 	gotlen = recv(sock->fd, buf, wantlen, 0);
fd                303 source4/lib/socket/socket_ip.c 	gotlen = recvfrom(sock->fd, buf, wantlen, 0, 
fd                339 source4/lib/socket/socket_ip.c 	len = send(sock->fd, blob->data, blob->length, 0);
fd                356 source4/lib/socket/socket_ip.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                378 source4/lib/socket/socket_ip.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                392 source4/lib/socket/socket_ip.c 	set_socket_options(sock->fd, option);
fd                403 source4/lib/socket/socket_ip.c 	ret = getpeername(sock->fd, (struct sockaddr *)&peer_addr, &len);
fd                438 source4/lib/socket/socket_ip.c 	ret = getpeername(sock->fd, peer->sockaddr, &len);
fd                483 source4/lib/socket/socket_ip.c 	ret = getsockname(sock->fd, local->sockaddr, &len);
fd                507 source4/lib/socket/socket_ip.c 	return sock->fd;
fd                513 source4/lib/socket/socket_ip.c 	if (ioctl(sock->fd, FIONREAD, &value) == 0) {
fd                601 source4/lib/socket/socket_ip.c 	sock->fd = socket(PF_INET6, type, 0);
fd                602 source4/lib/socket/socket_ip.c 	if (sock->fd == -1) {
fd                620 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, my_address->sockaddr, my_address->sockaddrlen);
fd                635 source4/lib/socket/socket_ip.c 			ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                643 source4/lib/socket/socket_ip.c 		ret = connect(sock->fd, srv_address->sockaddr, srv_address->sockaddrlen);
fd                657 source4/lib/socket/socket_ip.c 		ret = connect(sock->fd, (const struct sockaddr *)&srv_addr, sizeof(srv_addr));
fd                677 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, my_address->sockaddr, my_address->sockaddrlen);
fd                686 source4/lib/socket/socket_ip.c 		ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                694 source4/lib/socket/socket_ip.c 		ret = listen(sock->fd, queue_size);
fd                701 source4/lib/socket/socket_ip.c 		ret = set_blocking(sock->fd, false);
fd                722 source4/lib/socket/socket_ip.c 	new_fd = accept(sock->fd, (struct sockaddr *)&cli_addr, &cli_addr_len);
fd                752 source4/lib/socket/socket_ip.c 	(*new_sock)->fd			= new_fd;
fd                788 source4/lib/socket/socket_ip.c 	gotlen = recvfrom(sock->fd, buf, wantlen, 0, 
fd                825 source4/lib/socket/socket_ip.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                842 source4/lib/socket/socket_ip.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                856 source4/lib/socket/socket_ip.c 	set_socket_options(sock->fd, option);
fd                867 source4/lib/socket/socket_ip.c 	ret = getpeername(sock->fd, (struct sockaddr *)&peer_addr, &len);
fd                903 source4/lib/socket/socket_ip.c 	ret = getpeername(sock->fd, peer->sockaddr, &len);
fd                950 source4/lib/socket/socket_ip.c 	ret = getsockname(sock->fd, local->sockaddr, &len);
fd                 53 source4/lib/socket/socket_unix.c 	sock->fd = socket(PF_UNIX, type, 0);
fd                 54 source4/lib/socket/socket_unix.c 	if (sock->fd == -1) {
fd                 66 source4/lib/socket/socket_unix.c 	close(sock->fd);
fd                 76 source4/lib/socket/socket_unix.c 	ret = getsockopt(sock->fd, SOL_SOCKET, SO_ERROR, &error, &len);
fd                 85 source4/lib/socket/socket_unix.c 		ret = set_blocking(sock->fd, false);
fd                104 source4/lib/socket/socket_unix.c 		ret = connect(sock->fd, srv_address->sockaddr, srv_address->sockaddrlen);
fd                115 source4/lib/socket/socket_unix.c 		ret = connect(sock->fd, (const struct sockaddr *)&srv_addr, sizeof(srv_addr));
fd                137 source4/lib/socket/socket_unix.c 		ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                150 source4/lib/socket/socket_unix.c 		ret = bind(sock->fd, (struct sockaddr *)&my_addr, sizeof(my_addr));
fd                157 source4/lib/socket/socket_unix.c 		ret = listen(sock->fd, queue_size);
fd                164 source4/lib/socket/socket_unix.c 		ret = set_blocking(sock->fd, false);
fd                187 source4/lib/socket/socket_unix.c 	new_fd = accept(sock->fd, (struct sockaddr *)&cli_addr, &cli_addr_len);
fd                211 source4/lib/socket/socket_unix.c 	(*new_sock)->fd			= new_fd;
fd                227 source4/lib/socket/socket_unix.c 	gotlen = recv(sock->fd, buf, wantlen, 0);
fd                246 source4/lib/socket/socket_unix.c 	len = send(sock->fd, blob->data, blob->length, 0);
fd                265 source4/lib/socket/socket_unix.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                278 source4/lib/socket/socket_unix.c 		len = sendto(sock->fd, blob->data, blob->length, 0, 
fd                323 source4/lib/socket/socket_unix.c 	ret = getpeername(sock->fd, peer->sockaddr, &len);
fd                362 source4/lib/socket/socket_unix.c 	ret = getsockname(sock->fd, local->sockaddr, &len);
fd                382 source4/lib/socket/socket_unix.c 	return sock->fd;
fd                388 source4/lib/socket/socket_unix.c 	if (ioctl(sock->fd, FIONREAD, &value) == 0) {
fd                360 source4/lib/tdr/tdr.c NTSTATUS tdr_push_to_fd(int fd, struct smb_iconv_convenience *iconv_convenience, tdr_push_fn_t push_fn, const void *p)
fd                373 source4/lib/tdr/tdr.c 	if (write(fd, push->data.data, push->data.length) < push->data.length) {
fd                 82 source4/libcli/resolve/dns_ex.c static void run_child_dns_lookup(struct dns_ex_state *state, int fd)
fd                261 source4/libcli/resolve/dns_ex.c 		write(fd, addrs, talloc_get_size(addrs));
fd                265 source4/libcli/resolve/dns_ex.c 	close(fd);
fd                271 source4/libcli/resolve/dns_ex.c static void run_child_getaddrinfo(struct dns_ex_state *state, int fd)
fd                292 source4/libcli/resolve/dns_ex.c 		run_child_dns_lookup(state, fd);
fd                324 source4/libcli/resolve/dns_ex.c 		write(fd, addrs, talloc_get_size(addrs));
fd                330 source4/libcli/resolve/dns_ex.c 	close(fd);
fd                453 source4/libcli/resolve/dns_ex.c 	int fd[2] = { -1, -1 };
fd                472 source4/libcli/resolve/dns_ex.c 	ret = pipe(fd);
fd                482 source4/libcli/resolve/dns_ex.c 	state->child_fd = fd[0];
fd                490 source4/libcli/resolve/dns_ex.c 		close(fd[0]);
fd                491 source4/libcli/resolve/dns_ex.c 		close(fd[1]);
fd                502 source4/libcli/resolve/dns_ex.c 		close(fd[0]);
fd                504 source4/libcli/resolve/dns_ex.c 			run_child_dns_lookup(state, fd[1]);
fd                506 source4/libcli/resolve/dns_ex.c 			run_child_getaddrinfo(state, fd[1]);
fd                510 source4/libcli/resolve/dns_ex.c 	close(fd[1]);
fd                 28 source4/ntvfs/cifs_posix_cli/cifsposix.h 	int fd;
fd                161 source4/ntvfs/cifs_posix_cli/svfs_util.c int cifspsx_file_utime(int fd, struct utimbuf *times)
fd                166 source4/ntvfs/cifs_posix_cli/svfs_util.c 	asprintf(&fd_path, "/proc/self/%d", fd);
fd                294 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	if (fstat(f->fd, &st) == -1) {
fd                311 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	int fd, flags;
fd                377 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	fd = open(unix_path, flags, 0644);
fd                378 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	if (fd == -1) {
fd                382 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	if (fstat(fd, &st) == -1) {
fd                384 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 		close(fd);
fd                393 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	f->fd = fd;
fd                511 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	ret = pread(f->fd, 
fd                547 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	ret = pwrite(f->fd, 
fd                589 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 		fsync(f->fd);
fd                594 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 			fsync(f->fd);
fd                622 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 	if (close(f->fd) == -1) {
fd                711 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 		if (ftruncate(f->fd, 
fd                730 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c 		if (cifspsx_file_utime(f->fd, &unix_times) != 0) {
fd                 96 source4/ntvfs/common/opendb.c 				int *fd, NTTIME open_write_time,
fd                101 source4/ntvfs/common/opendb.c 				  fd, open_write_time,
fd                 30 source4/ntvfs/common/opendb.h 				  int *fd, NTTIME open_write_time,
fd                455 source4/ntvfs/common/opendb_tdb.c 				  int *fd, NTTIME open_write_time,
fd                510 source4/ntvfs/common/opendb_tdb.c 	lck->can_open.e->fd			= fd;
fd                514 source4/ntvfs/common/opendb_tdb.c 	if (odb->lease_ctx && fd) {
fd                594 source4/ntvfs/common/opendb_tdb.c 			if (odb->lease_ctx && lck->file.entries[i].fd) {
fd                653 source4/ntvfs/common/opendb_tdb.c 			if (odb->lease_ctx && lck->file.entries[i].fd) {
fd                870 source4/ntvfs/common/opendb_tdb.c 	lck->can_open.e->fd			= NULL;
fd                144 source4/ntvfs/posix/pvfs_acl.c 				 struct pvfs_filename *name, int fd, 
fd                282 source4/ntvfs/posix/pvfs_acl.c 		      struct pvfs_filename *name, int fd, 
fd                297 source4/ntvfs/posix/pvfs_acl.c 		status = pvfs->acl_ops->acl_load(pvfs, name, fd, req, &sd);
fd                300 source4/ntvfs/posix/pvfs_acl.c 		status = pvfs_default_acl(pvfs, req, name, fd, &sd);
fd                382 source4/ntvfs/posix/pvfs_acl.c 		if (fd == -1) {
fd                385 source4/ntvfs/posix/pvfs_acl.c 			ret = fchown(fd, new_uid, new_gid);
fd                396 source4/ntvfs/posix/pvfs_acl.c 		status = pvfs->acl_ops->acl_save(pvfs, name, fd, sd);
fd                408 source4/ntvfs/posix/pvfs_acl.c 			struct pvfs_filename *name, int fd, 
fd                415 source4/ntvfs/posix/pvfs_acl.c 		status = pvfs->acl_ops->acl_load(pvfs, name, fd, req, &sd);
fd                418 source4/ntvfs/posix/pvfs_acl.c 		status = pvfs_default_acl(pvfs, req, name, fd, &sd);
fd                742 source4/ntvfs/posix/pvfs_acl.c 			  int fd)
fd                836 source4/ntvfs/posix/pvfs_acl.c 	status = pvfs_acl_save(pvfs, name, fd, acl);
fd                 34 source4/ntvfs/posix/pvfs_acl_nfs4.c static NTSTATUS pvfs_acl_load_nfs4(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                 48 source4/ntvfs/posix/pvfs_acl_nfs4.c 	status = pvfs_xattr_ndr_load(pvfs, mem_ctx, name->full_name, fd, 
fd                122 source4/ntvfs/posix/pvfs_acl_nfs4.c static NTSTATUS pvfs_acl_save_nfs4(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                191 source4/ntvfs/posix/pvfs_acl_nfs4.c 	status = pvfs_xattr_ndr_save(pvfs, name->full_name, fd, 
fd                 30 source4/ntvfs/posix/pvfs_acl_xattr.c static NTSTATUS pvfs_acl_load_xattr(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                 44 source4/ntvfs/posix/pvfs_acl_xattr.c 	status = pvfs_xattr_ndr_load(pvfs, mem_ctx, name->full_name, fd, 
fd                 67 source4/ntvfs/posix/pvfs_acl_xattr.c static NTSTATUS pvfs_acl_save_xattr(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                 84 source4/ntvfs/posix/pvfs_acl_xattr.c 	status = pvfs_xattr_ndr_save(pvfs, name->full_name, fd, 
fd                 84 source4/ntvfs/posix/pvfs_aio.c         io_prep_pread(&iocb, f->handle->fd, rd->readx.out.data,
fd                148 source4/ntvfs/posix/pvfs_aio.c 	io_prep_pwrite(&iocb, f->handle->fd, discard_const(wr->writex.in.data),
fd                 56 source4/ntvfs/posix/pvfs_fileinfo.c 			    uint_t flags, int fd)
fd                 93 source4/ntvfs/posix/pvfs_fileinfo.c 	status = pvfs_dosattrib_load(pvfs, name, fd);
fd                 30 source4/ntvfs/posix/pvfs_flush.c 	if (f->handle->fd == -1) {
fd                 34 source4/ntvfs/posix/pvfs_flush.c 		fsync(f->handle->fd);
fd                303 source4/ntvfs/posix/pvfs_lock.c 	if (f->handle->fd == -1) {
fd                242 source4/ntvfs/posix/pvfs_notify.c 	if (f->handle->fd != -1) {
fd                105 source4/ntvfs/posix/pvfs_open.c 					int fd,	struct pvfs_file *f,
fd                113 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_setfileinfo_ea_set(pvfs, name, fd, 
fd                136 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_acl_set(pvfs, req, name, fd, SEC_STD_WRITE_DAC, &set);
fd                139 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_acl_inherit(pvfs, req, name, fd);
fd                278 source4/ntvfs/posix/pvfs_open.c 	f->handle->fd                = -1;
fd                447 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_stream_delete(h->pvfs, h->name, h->fd);
fd                454 source4/ntvfs/posix/pvfs_open.c 	if (h->fd != -1) {
fd                455 source4/ntvfs/posix/pvfs_open.c 		if (close(h->fd) != 0) {
fd                457 source4/ntvfs/posix/pvfs_open.c 				 h->fd, h->name->full_name, strerror(errno)));
fd                459 source4/ntvfs/posix/pvfs_open.c 		h->fd = -1;
fd                608 source4/ntvfs/posix/pvfs_open.c 	int flags, fd;
fd                669 source4/ntvfs/posix/pvfs_open.c 	fd = open(name->full_name, flags | O_CREAT | O_EXCL| O_NONBLOCK, mode);
fd                670 source4/ntvfs/posix/pvfs_open.c 	if (fd == -1) {
fd                678 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_stream_create(pvfs, name, fd);
fd                680 source4/ntvfs/posix/pvfs_open.c 			close(fd);
fd                686 source4/ntvfs/posix/pvfs_open.c 	status = pvfs_resolve_name_fd(pvfs, fd, name, 0);
fd                688 source4/ntvfs/posix/pvfs_open.c 		close(fd);
fd                695 source4/ntvfs/posix/pvfs_open.c 	status = pvfs_dosattrib_save(pvfs, name, fd);
fd                701 source4/ntvfs/posix/pvfs_open.c 	status = pvfs_open_setup_eas_acl(pvfs, req, name, fd, f, io);
fd                761 source4/ntvfs/posix/pvfs_open.c 		close(fd);
fd                777 source4/ntvfs/posix/pvfs_open.c 	f->handle->fd                = fd;
fd                788 source4/ntvfs/posix/pvfs_open.c 			       &f->handle->fd, name->dos.write_time,
fd                796 source4/ntvfs/posix/pvfs_open.c 		close(fd);
fd                846 source4/ntvfs/posix/pvfs_open.c 	close(fd);
fd               1188 source4/ntvfs/posix/pvfs_open.c 	int fd;
fd               1423 source4/ntvfs/posix/pvfs_open.c 	f->handle->fd                = -1;
fd               1515 source4/ntvfs/posix/pvfs_open.c 	fd = open(f->handle->name->full_name, flags | O_NONBLOCK);
fd               1516 source4/ntvfs/posix/pvfs_open.c 	if (fd == -1) {
fd               1531 source4/ntvfs/posix/pvfs_open.c 	f->handle->fd = fd;
fd               1535 source4/ntvfs/posix/pvfs_open.c 			       &f->handle->fd, name->dos.write_time,
fd               1560 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_stream_create(pvfs, f->handle->name, fd);
fd               1566 source4/ntvfs/posix/pvfs_open.c 			status = pvfs_stream_truncate(pvfs, f->handle->name, fd, 0);
fd               1575 source4/ntvfs/posix/pvfs_open.c 	status = pvfs_resolve_name_fd(f->pvfs, fd, f->handle->name, PVFS_RESOLVE_NO_OPENDB);
fd               1587 source4/ntvfs/posix/pvfs_open.c 		if (fchmod(fd, mode) == -1) {
fd               1593 source4/ntvfs/posix/pvfs_open.c 		status = pvfs_dosattrib_save(pvfs, name, fd);
fd                 44 source4/ntvfs/posix/pvfs_oplock.c 	if (h->fd == -1) {
fd                 73 source4/ntvfs/posix/pvfs_qfileinfo.c 			    struct pvfs_filename *name, int fd, 
fd                 83 source4/ntvfs/posix/pvfs_qfileinfo.c 	status = pvfs_doseas_load(pvfs, name, fd, ealist);
fd                112 source4/ntvfs/posix/pvfs_qfileinfo.c 				   struct pvfs_filename *name, int fd, 
fd                120 source4/ntvfs/posix/pvfs_qfileinfo.c 	status = pvfs_doseas_load(pvfs, name, fd, ealist);
fd                144 source4/ntvfs/posix/pvfs_qfileinfo.c 				  int fd)
fd                177 source4/ntvfs/posix/pvfs_qfileinfo.c 		return pvfs_query_ea_list(pvfs, req, name, fd, 
fd                183 source4/ntvfs/posix/pvfs_qfileinfo.c 		return pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out);
fd                186 source4/ntvfs/posix/pvfs_qfileinfo.c 		NTSTATUS status = pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out);
fd                254 source4/ntvfs/posix/pvfs_qfileinfo.c 		return pvfs_stream_information(pvfs, req, name, fd, &info->stream_info.out);
fd                301 source4/ntvfs/posix/pvfs_qfileinfo.c 		return pvfs_acl_query(pvfs, req, name, fd, info);
fd                402 source4/ntvfs/posix/pvfs_qfileinfo.c 	status = pvfs_map_fileinfo(pvfs, req, h->name, info, h->fd);
fd                 49 source4/ntvfs/posix/pvfs_read.c 	if (f->handle->fd == -1) {
fd                 88 source4/ntvfs/posix/pvfs_read.c 		ret = pread(f->handle->fd, 
fd                632 source4/ntvfs/posix/pvfs_resolve.c NTSTATUS pvfs_resolve_name_fd(struct pvfs_state *pvfs, int fd,
fd                643 source4/ntvfs/posix/pvfs_resolve.c 	if (fd == -1) {
fd                648 source4/ntvfs/posix/pvfs_resolve.c 		if (fstat(fd, &name->st) == -1) {
fd                666 source4/ntvfs/posix/pvfs_resolve.c 	return pvfs_fill_dos_info(pvfs, name, flags, fd);
fd                747 source4/ntvfs/posix/pvfs_resolve.c 	status = pvfs_resolve_name_fd(pvfs, h->fd, h->name, 0);
fd                645 source4/ntvfs/posix/pvfs_search.c 	if (f->handle->fd != -1) {
fd                746 source4/ntvfs/posix/pvfs_search.c 	if (f->handle->fd != -1) {
fd                 56 source4/ntvfs/posix/pvfs_seek.c 		status = pvfs_resolve_name_fd(pvfs, h->fd, h->name, PVFS_RESOLVE_NO_OPENDB);
fd                 85 source4/ntvfs/posix/pvfs_setfileinfo.c 					       int fd,
fd                108 source4/ntvfs/posix/pvfs_setfileinfo.c 	status = pvfs_stream_rename(pvfs, name, fd, 
fd                119 source4/ntvfs/posix/pvfs_setfileinfo.c 					int fd,
fd                136 source4/ntvfs/posix/pvfs_setfileinfo.c 		return pvfs_setfileinfo_rename_stream(pvfs, req, name, fd, 
fd                226 source4/ntvfs/posix/pvfs_setfileinfo.c 				 int fd, uint16_t num_eas,
fd                244 source4/ntvfs/posix/pvfs_setfileinfo.c 	status = pvfs_doseas_load(pvfs, name, fd, ealist);
fd                284 source4/ntvfs/posix/pvfs_setfileinfo.c 	status = pvfs_doseas_save(pvfs, name, fd, ealist);
fd                301 source4/ntvfs/posix/pvfs_setfileinfo.c 	return pvfs_dosattrib_save(pvfs, name, fd);
fd                367 source4/ntvfs/posix/pvfs_setfileinfo.c 		return pvfs_setfileinfo_ea_set(pvfs, h->name, h->fd, 
fd                433 source4/ntvfs/posix/pvfs_setfileinfo.c 		return pvfs_setfileinfo_rename(pvfs, req, h->name, f->handle->fd,
fd                442 source4/ntvfs/posix/pvfs_setfileinfo.c 		return pvfs_acl_set(pvfs, req, h->name, h->fd, f->access_mask, info);
fd                454 source4/ntvfs/posix/pvfs_setfileinfo.c 			status = pvfs_stream_truncate(pvfs, h->name, h->fd, newstats.st.st_size);
fd                464 source4/ntvfs/posix/pvfs_setfileinfo.c 				ret = ftruncate(h->fd, newstats.st.st_size);
fd                534 source4/ntvfs/posix/pvfs_setfileinfo.c 			if (fchmod(h->fd, mode) == -1) {
fd                548 source4/ntvfs/posix/pvfs_setfileinfo.c 	return pvfs_dosattrib_save(pvfs, h->name, h->fd);
fd                 83 source4/ntvfs/posix/pvfs_streams.c 				 struct pvfs_filename *name, int fd, 
fd                102 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_load(pvfs, name, fd, streams);
fd                137 source4/ntvfs/posix/pvfs_streams.c NTSTATUS pvfs_stream_info(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd)
fd                154 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_load(pvfs, name, fd, streams);
fd                184 source4/ntvfs/posix/pvfs_streams.c static NTSTATUS pvfs_stream_update_size(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                196 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_load(pvfs, name, fd, streams);
fd                232 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_save(pvfs, name, fd, streams);
fd                242 source4/ntvfs/posix/pvfs_streams.c NTSTATUS pvfs_stream_rename(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                259 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_load(pvfs, name, fd, streams);
fd                300 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_save(pvfs, name, fd, streams);
fd                312 source4/ntvfs/posix/pvfs_streams.c 			    int fd)
fd                315 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_xattr_create(pvfs, name->full_name, fd, 
fd                320 source4/ntvfs/posix/pvfs_streams.c 	return pvfs_stream_update_size(pvfs, name, fd, 0);
fd                328 source4/ntvfs/posix/pvfs_streams.c 			    int fd)
fd                334 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_xattr_delete(pvfs, name->full_name, fd, 
fd                345 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_load(pvfs, name, fd, streams);
fd                360 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_streams_save(pvfs, name, fd, streams);
fd                372 source4/ntvfs/posix/pvfs_streams.c 				 int fd,
fd                378 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_xattr_load(pvfs, mem_ctx, name->full_name, fd, 
fd                392 source4/ntvfs/posix/pvfs_streams.c 		status = pvfs_streams_load(pvfs, name, fd, streams);
fd                400 source4/ntvfs/posix/pvfs_streams.c 				status = pvfs_xattr_load(pvfs, mem_ctx, name->full_name, fd, 
fd                425 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_stream_load(pvfs, h, h->name, h->fd, offset+count, &blob);
fd                463 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_stream_load(pvfs, h, h->name, h->fd, offset+count, &blob);
fd                480 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_xattr_save(pvfs, h->name->full_name, h->fd, XATTR_DOSSTREAM_PREFIX,
fd                490 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_stream_update_size(pvfs, h->name, h->fd, blob.length);
fd                506 source4/ntvfs/posix/pvfs_streams.c 			      struct pvfs_filename *name, int fd, off_t length)
fd                518 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_stream_load(pvfs, name, name, fd, length, &blob);
fd                533 source4/ntvfs/posix/pvfs_streams.c 	status = pvfs_xattr_save(pvfs, name->full_name, fd, XATTR_DOSSTREAM_PREFIX,
fd                538 source4/ntvfs/posix/pvfs_streams.c 		status = pvfs_stream_update_size(pvfs, name, fd, blob.length);
fd                101 source4/ntvfs/posix/pvfs_write.c 	if (f->handle->fd == -1) {
fd                137 source4/ntvfs/posix/pvfs_write.c 		ret = pwrite(f->handle->fd, 
fd                 35 source4/ntvfs/posix/pvfs_xattr.c 				int fd, 
fd                 43 source4/ntvfs/posix/pvfs_xattr.c 					   fd, estimated_size, blob);
fd                 47 source4/ntvfs/posix/pvfs_xattr.c 					fd, estimated_size, blob);
fd                 67 source4/ntvfs/posix/pvfs_xattr.c 				int fd, 
fd                 71 source4/ntvfs/posix/pvfs_xattr.c 		return push_xattr_blob_tdb(pvfs, attr_name, fname, fd, blob);
fd                 73 source4/ntvfs/posix/pvfs_xattr.c 	return push_xattr_blob_system(pvfs, attr_name, fname, fd, blob);
fd                 81 source4/ntvfs/posix/pvfs_xattr.c 			     const char *fname, int fd)
fd                 84 source4/ntvfs/posix/pvfs_xattr.c 		return delete_xattr_tdb(pvfs, attr_name, fname, fd);
fd                 86 source4/ntvfs/posix/pvfs_xattr.c 	return delete_xattr_system(pvfs, attr_name, fname, fd);
fd                106 source4/ntvfs/posix/pvfs_xattr.c 			     const char *fname, int fd, const char *attr_name,
fd                114 source4/ntvfs/posix/pvfs_xattr.c 				 fd, XATTR_DOSATTRIB_ESTIMATED_SIZE, &blob);
fd                135 source4/ntvfs/posix/pvfs_xattr.c 			     const char *fname, int fd, const char *attr_name, 
fd                149 source4/ntvfs/posix/pvfs_xattr.c 	status = push_xattr_blob(pvfs, attr_name, fname, fd, &blob);
fd                159 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_dosattrib_load(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd)
fd                178 source4/ntvfs/posix/pvfs_xattr.c 				     fd, XATTR_DOSATTRIB_NAME,
fd                185 source4/ntvfs/posix/pvfs_xattr.c 		return pvfs_stream_info(pvfs, name, fd);
fd                242 source4/ntvfs/posix/pvfs_xattr.c 	status = pvfs_stream_info(pvfs, name, fd);
fd                251 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_dosattrib_save(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd)
fd                272 source4/ntvfs/posix/pvfs_xattr.c 	return pvfs_xattr_ndr_save(pvfs, name->full_name, fd, 
fd                281 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_doseas_load(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                289 source4/ntvfs/posix/pvfs_xattr.c 	status = pvfs_xattr_ndr_load(pvfs, eas, name->full_name, fd, XATTR_DOSEAS_NAME,
fd                300 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_doseas_save(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                306 source4/ntvfs/posix/pvfs_xattr.c 	return pvfs_xattr_ndr_save(pvfs, name->full_name, fd, XATTR_DOSEAS_NAME, eas, 
fd                314 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_streams_load(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                322 source4/ntvfs/posix/pvfs_xattr.c 	status = pvfs_xattr_ndr_load(pvfs, streams, name->full_name, fd, 
fd                335 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_streams_save(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                341 source4/ntvfs/posix/pvfs_xattr.c 	return pvfs_xattr_ndr_save(pvfs, name->full_name, fd, 
fd                351 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_acl_load(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                359 source4/ntvfs/posix/pvfs_xattr.c 	status = pvfs_xattr_ndr_load(pvfs, acl, name->full_name, fd, 
fd                369 source4/ntvfs/posix/pvfs_xattr.c NTSTATUS pvfs_acl_save(struct pvfs_state *pvfs, struct pvfs_filename *name, int fd,
fd                382 source4/ntvfs/posix/pvfs_xattr.c 	status = pvfs_xattr_ndr_save(pvfs, name->full_name, fd, 
fd                394 source4/ntvfs/posix/pvfs_xattr.c 			   const char *fname, int fd,
fd                404 source4/ntvfs/posix/pvfs_xattr.c 	status = push_xattr_blob(pvfs, aname, fname, fd, &blob);
fd                414 source4/ntvfs/posix/pvfs_xattr.c 			   const char *fname, int fd,
fd                423 source4/ntvfs/posix/pvfs_xattr.c 	status = delete_xattr(pvfs, aname, fname, fd);
fd                433 source4/ntvfs/posix/pvfs_xattr.c 			 const char *fname, int fd,
fd                444 source4/ntvfs/posix/pvfs_xattr.c 	status = pull_xattr_blob(pvfs, mem_ctx, aname, fname, fd, estimated_size, blob);
fd                453 source4/ntvfs/posix/pvfs_xattr.c 			 const char *fname, int fd,
fd                463 source4/ntvfs/posix/pvfs_xattr.c 	status = push_xattr_blob(pvfs, aname, fname, fd, blob);
fd                147 source4/ntvfs/posix/vfs_posix.h 	int fd;
fd                 33 source4/ntvfs/posix/xattr_system.c 				int fd, 
fd                 45 source4/ntvfs/posix/xattr_system.c 	if (fd != -1) {
fd                 46 source4/ntvfs/posix/xattr_system.c 		ret = wrap_fgetxattr(fd, attr_name, blob->data, estimated_size);
fd                 63 source4/ntvfs/posix/xattr_system.c 		if (fd != -1) {
fd                 64 source4/ntvfs/posix/xattr_system.c 			ret = fstat(fd, &statbuf);
fd                101 source4/ntvfs/posix/xattr_system.c 				int fd, 
fd                106 source4/ntvfs/posix/xattr_system.c 	if (fd != -1) {
fd                107 source4/ntvfs/posix/xattr_system.c 		ret = wrap_fsetxattr(fd, attr_name, blob->data, blob->length, 0);
fd                123 source4/ntvfs/posix/xattr_system.c 			     const char *fname, int fd)
fd                127 source4/ntvfs/posix/xattr_system.c 	if (fd != -1) {
fd                128 source4/ntvfs/posix/xattr_system.c 		ret = wrap_fremovexattr(fd, attr_name);
fd                 34 source4/ntvfs/posix/xattr_tdb.c 				   const char *fname, int fd)
fd                 49 source4/ntvfs/posix/xattr_tdb.c 				     fname, fd, 100, &blob);
fd                 71 source4/ntvfs/posix/xattr_tdb.c 	status = push_xattr_blob_tdb(pvfs, XATTR_LIST_ATTR, fname, fd, &blob);
fd                 82 source4/ntvfs/posix/xattr_tdb.c 			      const char *fname, int fd, 
fd                 88 source4/ntvfs/posix/xattr_tdb.c 	if (fd == -1) {
fd                 93 source4/ntvfs/posix/xattr_tdb.c 		if (fstat(fd, &st) == -1) {
fd                118 source4/ntvfs/posix/xattr_tdb.c 			     int fd, 
fd                125 source4/ntvfs/posix/xattr_tdb.c 	status = get_ea_db_key(mem_ctx, attr_name, fname, fd, &tkey);
fd                150 source4/ntvfs/posix/xattr_tdb.c 			     int fd, 
fd                156 source4/ntvfs/posix/xattr_tdb.c 	status = get_ea_db_key(pvfs, attr_name, fname, fd, &tkey);
fd                169 source4/ntvfs/posix/xattr_tdb.c 	status = xattr_tdb_add_list(pvfs, attr_name, fname, fd);
fd                189 source4/ntvfs/posix/xattr_tdb.c 			  const char *fname, int fd)
fd                194 source4/ntvfs/posix/xattr_tdb.c 	status = get_ea_db_key(NULL, attr_name, fname, fd, &tkey);
fd                 28 source4/ntvfs/simple/svfs.h 	int fd;
fd                158 source4/ntvfs/simple/svfs_util.c int svfs_file_utime(int fd, struct utimbuf *times)
fd                163 source4/ntvfs/simple/svfs_util.c 	asprintf(&fd_path, "/proc/self/%d", fd);
fd                291 source4/ntvfs/simple/vfs_simple.c 	if (fstat(f->fd, &st) == -1) {
fd                308 source4/ntvfs/simple/vfs_simple.c 	int fd, flags;
fd                374 source4/ntvfs/simple/vfs_simple.c 	fd = open(unix_path, flags, 0644);
fd                375 source4/ntvfs/simple/vfs_simple.c 	if (fd == -1) {
fd                379 source4/ntvfs/simple/vfs_simple.c 	if (fstat(fd, &st) == -1) {
fd                381 source4/ntvfs/simple/vfs_simple.c 		close(fd);
fd                390 source4/ntvfs/simple/vfs_simple.c 	f->fd = fd;
fd                508 source4/ntvfs/simple/vfs_simple.c 	ret = pread(f->fd, 
fd                544 source4/ntvfs/simple/vfs_simple.c 	ret = pwrite(f->fd, 
fd                586 source4/ntvfs/simple/vfs_simple.c 		fsync(f->fd);
fd                591 source4/ntvfs/simple/vfs_simple.c 			fsync(f->fd);
fd                619 source4/ntvfs/simple/vfs_simple.c 	if (close(f->fd) == -1) {
fd                708 source4/ntvfs/simple/vfs_simple.c 		if (ftruncate(f->fd, 
fd                727 source4/ntvfs/simple/vfs_simple.c 		if (svfs_file_utime(f->fd, &unix_times) != 0) {
fd                 48 source4/ntvfs/sysdep/inotify.c static int inotify_add_watch(int fd, const char *path, __u32 mask)
fd                 50 source4/ntvfs/sysdep/inotify.c 	return syscall(__NR_inotify_add_watch, fd, path, mask);
fd                 53 source4/ntvfs/sysdep/inotify.c static int inotify_rm_watch(int fd, int wd)
fd                 55 source4/ntvfs/sysdep/inotify.c 	return syscall(__NR_inotify_rm_watch, fd, wd);
fd                 71 source4/ntvfs/sysdep/inotify.c 	int fd;
fd                215 source4/ntvfs/sysdep/inotify.c 	if (ioctl(in->fd, FIONREAD, &bufsize) != 0 || 
fd                224 source4/ntvfs/sysdep/inotify.c 	if (read(in->fd, e0, bufsize) != bufsize) {
fd                257 source4/ntvfs/sysdep/inotify.c 	in->fd = inotify_init();
fd                258 source4/ntvfs/sysdep/inotify.c 	if (in->fd == -1) {
fd                269 source4/ntvfs/sysdep/inotify.c 	fde = tevent_add_fd(ctx->ev, in, in->fd,
fd                330 source4/ntvfs/sysdep/inotify.c 		inotify_rm_watch(in->fd, wd);
fd                373 source4/ntvfs/sysdep/inotify.c 	wd = inotify_add_watch(in->fd, e->path, mask);
fd                381 source4/ntvfs/sysdep/inotify.c 		inotify_rm_watch(in->fd, wd);
fd                394 source4/ntvfs/sysdep/inotify.c 		inotify_rm_watch(in->fd, wd);
fd                 56 source4/ntvfs/sysdep/sys_lease_linux.c 		int *fd = (int *)c->e.fd;
fd                 58 source4/ntvfs/sysdep/sys_lease_linux.c 		if (got_fd == *fd) {
fd                 73 source4/ntvfs/sysdep/sys_lease_linux.c 	int *fd = (int *)p->e.fd;
fd                 77 source4/ntvfs/sysdep/sys_lease_linux.c 	if (*fd == -1) {
fd                 81 source4/ntvfs/sysdep/sys_lease_linux.c 	ret = fcntl(*fd, F_SETLEASE, F_UNLCK);
fd                106 source4/ntvfs/sysdep/sys_lease_linux.c 	int *fd = (int *)e->fd;
fd                110 source4/ntvfs/sysdep/sys_lease_linux.c 		e->fd = NULL;
fd                119 source4/ntvfs/sysdep/sys_lease_linux.c 		e->fd = NULL;
fd                129 source4/ntvfs/sysdep/sys_lease_linux.c 	ret = fcntl(*fd, F_SETSIG, LINUX_LEASE_RT_SIGNAL);
fd                135 source4/ntvfs/sysdep/sys_lease_linux.c 	ret = fcntl(*fd, F_SETLEASE, F_WRLCK);
fd                157 source4/ntvfs/sysdep/sys_lease_linux.c 		if (c->e.fd == e->fd) {
fd                171 source4/ntvfs/sysdep/sys_lease_linux.c 	e->fd = NULL;
fd                184 source4/ntvfs/sysdep/sys_lease_linux.c 		if (c->e.fd == e->fd) {
fd                 45 source4/smb_server/smb_samba3.c 	int fd = socket_get_fd(conn->socket);
fd                 53 source4/smb_server/smb_samba3.c 	dup2(fd, 0);
fd                 54 source4/smb_server/smb_samba3.c 	dup2(fd, 1);
fd                 55 source4/smb_server/smb_samba3.c 	dup2(fd, 2);
fd                 37 source4/smbd/pidfile.c 	int fd;
fd                 44 source4/smbd/pidfile.c 	fd = open(pidFile, O_NONBLOCK | O_RDONLY, 0644);
fd                 46 source4/smbd/pidfile.c 	if (fd == -1) {
fd                 53 source4/smbd/pidfile.c 	if (read(fd, pidstr, sizeof(pidstr)-1) <= 0) {
fd                 63 source4/smbd/pidfile.c 	if (fcntl_lock(fd,F_SETLK,0,1,F_RDLCK)) {
fd                 68 source4/smbd/pidfile.c 	close(fd);
fd                 73 source4/smbd/pidfile.c 	close(fd);
fd                 84 source4/smbd/pidfile.c 	int     fd;
fd                 98 source4/smbd/pidfile.c 	fd = open(pidFile, O_NONBLOCK | O_CREAT | O_WRONLY | O_EXCL, 0644);
fd                 99 source4/smbd/pidfile.c 	if (fd == -1) {
fd                105 source4/smbd/pidfile.c 	if (fcntl_lock(fd,F_SETLK,0,1,F_WRLCK)==false) {
fd                113 source4/smbd/pidfile.c 	if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) {
fd                430 source4/smbd/process_thread.c static void thread_log_task_id(int fd)
fd                438 source4/smbd/process_thread.c 	write(fd, s, strlen(s));
fd                 35 source4/torture/basic/utable.c 	int c, fd;
fd                 89 source4/torture/basic/utable.c 	fd = open("valid.dat", O_WRONLY|O_CREAT|O_TRUNC, 0644);
fd                 90 source4/torture/basic/utable.c 	torture_assert(tctx, fd != -1, 
fd                 93 source4/torture/basic/utable.c 	write(fd, valid, 0x10000);
fd                 94 source4/torture/basic/utable.c 	close(fd);
fd                 84 source4/torture/locktest2.c static bool try_close(struct smbcli_state *c, int fstype, int fd)
fd                 88 source4/torture/locktest2.c 		return smbcli_close(c, fd);
fd                 91 source4/torture/locktest2.c 		return close(fd) == 0;
fd                 98 source4/torture/locktest2.c 		     int fd, uint_t start, uint_t len,
fd                105 source4/torture/locktest2.c 		return smbcli_lock(c, fd, start, len, LOCK_TIMEOUT, op);
fd                113 source4/torture/locktest2.c 		return fcntl(fd,F_SETLK,&lock) == 0;
fd                120 source4/torture/locktest2.c 		       int fd, uint_t start, uint_t len)
fd                126 source4/torture/locktest2.c 		return smbcli_unlock(c, fd, start, len);
fd                134 source4/torture/locktest2.c 		return fcntl(fd,F_SETLK,&lock) == 0;
fd                 59 source4/torture/nbench/nbio.c 	int fd;     /* the fd that we got back from the server */
fd                370 source4/torture/nbench/nbio.c 		return f->fd;
fd                531 source4/torture/nbench/nbio.c 	f->fd = io.ntcreatex.out.file.fnum;
fd                 54 source4/torture/raw/pingpong.c static void lock_byte(struct smbcli_state *cli, int fd, int offset, int lock_timeout)
fd                 72 source4/torture/raw/pingpong.c 	io.lockx.in.file.fnum = fd;
fd                 92 source4/torture/raw/pingpong.c static void unlock_byte(struct smbcli_state *cli, int fd, int offset)
fd                109 source4/torture/raw/pingpong.c 	io.lockx.in.file.fnum = fd;
fd                119 source4/torture/raw/pingpong.c static void write_byte(struct smbcli_state *cli, int fd, uint8_t c, int offset)
fd                125 source4/torture/raw/pingpong.c 	io.writex.in.file.fnum = fd;
fd                139 source4/torture/raw/pingpong.c static void read_byte(struct smbcli_state *cli, int fd, uint8_t *c, int offset)
fd                145 source4/torture/raw/pingpong.c 	io.readx.in.file.fnum = fd;
fd                186 source4/torture/raw/pingpong.c 	int fd;
fd                214 source4/torture/raw/pingpong.c 	fd = smbcli_open(cli->tree, fn, O_RDWR|O_CREAT, DENY_NONE);
fd                215 source4/torture/raw/pingpong.c 	if (fd == -1) {
fd                220 source4/torture/raw/pingpong.c 	write_byte(cli, fd, 0, num_locks);
fd                221 source4/torture/raw/pingpong.c 	lock_byte(cli, fd, 0, lock_timeout);
fd                230 source4/torture/raw/pingpong.c 		lock_byte(cli, fd, (i+1)%num_locks, lock_timeout);
fd                234 source4/torture/raw/pingpong.c 			read_byte(cli, fd, &c, i);
fd                241 source4/torture/raw/pingpong.c 			write_byte(cli, fd, c, i);
fd                244 source4/torture/raw/pingpong.c 		unlock_byte(cli, fd, i);
fd                692 source4/torture/raw/samba3misc.c 	int fd = -1;
fd                744 source4/torture/raw/samba3misc.c 	fd = open(localname, O_RDWR);
fd                745 source4/torture/raw/samba3misc.c 	if (fd == -1) {
fd                756 source4/torture/raw/samba3misc.c 	if (fcntl(fd, F_SETLK, &posix_lock) == -1) {
fd                808 source4/torture/raw/samba3misc.c 	close(fd);
fd                818 source4/torture/raw/samba3misc.c 	if (fd != -1) {
fd                819 source4/torture/raw/samba3misc.c 		close(fd);
fd                 86 source4/torture/smbiconv.c static int process_fd (iconv_t cd, int fd, FILE *output)
fd                100 source4/torture/smbiconv.c       ssize_t n = read (fd, inptr, maxlen - actlen);
fd                136 source4/torture/smbiconv.c 	    n = read (fd, inptr, maxlen - actlen);
fd                173 source4/torture/smbiconv.c 	int fd;
fd                216 source4/torture/smbiconv.c 		if(strcmp(file, "-") == 0) fd = 0;
fd                218 source4/torture/smbiconv.c 			fd = open(file, O_RDONLY);
fd                220 source4/torture/smbiconv.c 			if(!fd) {
fd                227 source4/torture/smbiconv.c 		process_fd(cd, fd, out);
fd                229 source4/torture/smbiconv.c 		close(fd);