f 86 examples/auth/crackcheck/crackcheck.c char f[256]; f 114 examples/auth/crackcheck/crackcheck.c password = fgets(f, sizeof(f), stdin); f 414 examples/libsmbclient/smbwrapper/wrapper.c static int openx(char *name, int flags, mode_t mode, int (* f)(char *, int, mode_t)) f 420 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(name, flags, mode); f 423 examples/libsmbclient/smbwrapper/wrapper.c static int closex(int fd, int (* f)(int fd)) f 429 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd); f 432 examples/libsmbclient/smbwrapper/wrapper.c static int fcntlx(int fd, int cmd, long arg, int (* f)(int, int, long)) f 438 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, cmd, arg); f 441 examples/libsmbclient/smbwrapper/wrapper.c static int getdentsx(int fd, struct dirent *external, unsigned int count, int (* f)(int, struct dirent *, unsigned int)) f 475 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, external, count); f 481 examples/libsmbclient/smbwrapper/wrapper.c off_t (* f)(int, off_t, int)) f 497 examples/libsmbclient/smbwrapper/wrapper.c ret = (* f)(fd, offset, whence); f 511 examples/libsmbclient/smbwrapper/wrapper.c off64_t (* f)(int, off64_t, int)) f 526 examples/libsmbclient/smbwrapper/wrapper.c ret = (* f)(fd, offset, whence); f 537 examples/libsmbclient/smbwrapper/wrapper.c static ssize_t readx(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t)) f 543 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, buf, count); f 546 examples/libsmbclient/smbwrapper/wrapper.c static ssize_t writex(int fd, void *buf, size_t count, ssize_t (* f)(int, void *, size_t)) f 552 examples/libsmbclient/smbwrapper/wrapper.c return (* f)(fd, buf, count); f 135 lib/compression/mszip.c uint32_t f; /* i repeats in table every f entries */ f 230 lib/compression/mszip.c if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ f 232 lib/compression/mszip.c f -= a + 1; /* deduct codes from patterns left */ f 236 lib/compression/mszip.c if ((f <<= 1) <= *++xp) f 238 lib/compression/mszip.c f -= *xp; /* else deduct codes from patterns */ f 285 lib/compression/mszip.c f = 1 << (k - w); f 286 lib/compression/mszip.c for (j = i >> w; j < z; j += f) f 159 lib/crypto/md5.c #define MD5STEP(f, w, x, y, z, data, s) \ f 160 lib/crypto/md5.c ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) f 60 lib/popt/poptconfig.c const char * f; f 62 lib/popt/poptconfig.c f = item->argv[i] + sizeof("--POPTdesc="); f 63 lib/popt/poptconfig.c if (f[0] == '$' && f[1] == '"') f++; f 64 lib/popt/poptconfig.c item->option.descrip = f; f 69 lib/popt/poptconfig.c f = item->argv[i] + sizeof("--POPTargs="); f 70 lib/popt/poptconfig.c if (f[0] == '$' && f[1] == '"') f++; f 71 lib/popt/poptconfig.c item->option.argDescrip = f; f 41 lib/replace/replace.c int rep_ftruncate(int f, off_t l) f 44 lib/replace/replace.c return chsize(f,l); f 52 lib/replace/replace.c return fcntl(f, F_FREESP, &fl); f 921 lib/replace/snprintf.c double f = 1.0; f 927 lib/replace/snprintf.c f *= 10.0; f 940 lib/replace/snprintf.c ret = my_modf(x0-l*f, &i2); f 941 lib/replace/snprintf.c (*iptr) = l*f + i2; f 769 lib/socket_wrapper/socket_wrapper.c static const struct swrap_packet_frame f; f 788 lib/socket_wrapper/socket_wrapper.c if (sizeof(f) != SWRAP_PACKET_FRAME_SIZE) { f 1204 lib/talloc/talloc.c FILE *f = (FILE *)_f; f 1207 lib/talloc/talloc.c fprintf(f, "%*sreference to: %s\n", depth*4, "", name); f 1212 lib/talloc/talloc.c fprintf(f,"%stalloc report on '%s' (total %6lu bytes in %3lu blocks)\n", f 1219 lib/talloc/talloc.c fprintf(f, "%*s%-30s contains %6lu bytes in %3lu blocks (ref %d) %p\n", f 1227 lib/talloc/talloc.c fprintf(f, "content: "); f 1234 lib/talloc/talloc.c fprintf(f, "%c", ((char *)ptr)[i]); f 1236 lib/talloc/talloc.c fprintf(f, "~%02x", ((char *)ptr)[i]); f 1240 lib/talloc/talloc.c fprintf(f, "\n"); f 1247 lib/talloc/talloc.c void talloc_report_depth_file(const void *ptr, int depth, int max_depth, FILE *f) f 1249 lib/talloc/talloc.c talloc_report_depth_cb(ptr, depth, max_depth, talloc_report_depth_FILE_helper, f); f 1250 lib/talloc/talloc.c fflush(f); f 1256 lib/talloc/talloc.c void talloc_report_full(const void *ptr, FILE *f) f 1258 lib/talloc/talloc.c talloc_report_depth_file(ptr, 0, -1, f); f 1264 lib/talloc/talloc.c void talloc_report(const void *ptr, FILE *f) f 1266 lib/talloc/talloc.c talloc_report_depth_file(ptr, 0, 1, f); f 153 lib/talloc/talloc.h void talloc_report_depth_file(const void *ptr, int depth, int max_depth, FILE *f); f 154 lib/talloc/talloc.h void talloc_report_full(const void *ptr, FILE *f); f 155 lib/talloc/talloc.h void talloc_report(const void *ptr, FILE *f); f 42 lib/tdb/common/tdb_private.h #define offsetof(t,f) ((unsigned int)&((t *)0)->f) f 33 lib/tevent/testsuite.c static void fde_handler(struct tevent_context *ev_ctx, struct tevent_fd *f, f 45 lib/util/dprintf.c _PUBLIC_ int d_vfprintf(FILE *f, const char *format, va_list ap) f 53 lib/util/dprintf.c return vfprintf(f, format, ap); f 70 lib/util/dprintf.c fwrite(p+i, 1, 1, f); f 72 lib/util/dprintf.c fwrite("?", 1, 1, f); f 81 lib/util/dprintf.c ret = fwrite(p2, 1, clen, f); f 88 lib/util/dprintf.c _PUBLIC_ int d_fprintf(FILE *f, const char *format, ...) f 94 lib/util/dprintf.c ret = d_vfprintf(f, format, ap); f 101 lib/util/params.c static int mygetc(myFILE *f) f 103 lib/util/params.c if (f->p >= f->buf+f->size) return EOF; f 105 lib/util/params.c return (int)( *(f->p++) & 0x00FF ); f 199 lib/util/util.h _PUBLIC_ int d_vfprintf(FILE *f, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); f 200 lib/util/util.h _PUBLIC_ int d_fprintf(FILE *f, const char *format, ...) PRINTF_ATTRIBUTE(2,3); f 465 lib/util/util.h _PUBLIC_ char *fgets_slash(char *s2,int maxlen,XFILE *f); f 40 lib/util/util_file.c _PUBLIC_ char *fgets_slash(char *s2,int maxlen,XFILE *f) f 47 lib/util/util_file.c if (x_feof(f)) f 64 lib/util/util_file.c c = x_getc(f); f 58 lib/util/xfile.c int x_setvbuf(XFILE *f, char *buf, int mode, size_t size) f 60 lib/util/xfile.c x_fflush(f); f 61 lib/util/xfile.c if (f->bufused) return -1; f 64 lib/util/xfile.c if ((f->open_flags & O_ACCMODE) == O_RDONLY) { f 69 lib/util/xfile.c SAFE_FREE(f->buf); f 70 lib/util/xfile.c f->buf = 0; f 71 lib/util/xfile.c f->bufsize = 0; f 72 lib/util/xfile.c f->next = NULL; f 73 lib/util/xfile.c f->bufused = 0; f 74 lib/util/xfile.c f->buftype = mode; f 76 lib/util/xfile.c if (f->buftype == X_IONBF) return 0; f 81 lib/util/xfile.c f->bufsize = size; f 82 lib/util/xfile.c f->bufused = 0; f 88 lib/util/xfile.c static int x_allocate_buffer(XFILE *f) f 90 lib/util/xfile.c if (f->buf) return 1; f 91 lib/util/xfile.c if (f->bufsize == 0) return 0; f 92 lib/util/xfile.c f->buf = (char *)malloc(f->bufsize); f 93 lib/util/xfile.c if (!f->buf) return 0; f 94 lib/util/xfile.c f->next = f->buf; f 134 lib/util/xfile.c int x_fclose(XFILE *f) f 139 lib/util/xfile.c x_fflush(f); f 141 lib/util/xfile.c ret = close(f->fd); f 142 lib/util/xfile.c f->fd = -1; f 143 lib/util/xfile.c if (f->buf) { f 145 lib/util/xfile.c memset(f->buf, 0, f->bufsize); f 146 lib/util/xfile.c SAFE_FREE(f->buf); f 151 lib/util/xfile.c if (f != x_stdin && f != x_stdout && f != x_stderr) { f 152 lib/util/xfile.c SAFE_FREE(f); f 158 lib/util/xfile.c size_t x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f) f 164 lib/util/xfile.c if (f->buftype == X_IONBF || f 165 lib/util/xfile.c (!f->buf && !x_allocate_buffer(f))) { f 166 lib/util/xfile.c ret = write(f->fd, p, size*nmemb); f 173 lib/util/xfile.c size_t n = f->bufsize - f->bufused; f 178 lib/util/xfile.c x_fflush(f); f 182 lib/util/xfile.c memcpy(f->buf + f->bufused, total+(const char *)p, n); f 183 lib/util/xfile.c f->bufused += n; f 189 lib/util/xfile.c if (f->buftype == X_IOLBF && f->bufused) { f 193 lib/util/xfile.c x_fflush(f); f 203 lib/util/xfile.c int x_vfprintf(XFILE *f, const char *format, va_list ap) f 213 lib/util/xfile.c ret = x_fwrite(p, 1, len, f); f 218 lib/util/xfile.c int x_fprintf(XFILE *f, const char *format, ...) f 224 lib/util/xfile.c ret = x_vfprintf(f, format, ap); f 230 lib/util/xfile.c int x_fileno(const XFILE *f) f 232 lib/util/xfile.c return f->fd; f 236 lib/util/xfile.c int x_fflush(XFILE *f) f 240 lib/util/xfile.c if (f->flags & X_FLAG_ERROR) return -1; f 242 lib/util/xfile.c if ((f->open_flags & O_ACCMODE) != O_WRONLY) { f 247 lib/util/xfile.c if (f->bufused == 0) return 0; f 249 lib/util/xfile.c ret = write(f->fd, f->buf, f->bufused); f 252 lib/util/xfile.c f->bufused -= ret; f 253 lib/util/xfile.c if (f->bufused > 0) { f 254 lib/util/xfile.c f->flags |= X_FLAG_ERROR; f 255 lib/util/xfile.c memmove(f->buf, ret + (char *)f->buf, f->bufused); f 263 lib/util/xfile.c void x_setbuffer(XFILE *f, char *buf, size_t size) f 265 lib/util/xfile.c x_setvbuf(f, buf, buf?X_IOFBF:X_IONBF, size); f 269 lib/util/xfile.c void x_setbuf(XFILE *f, char *buf) f 271 lib/util/xfile.c x_setvbuf(f, buf, buf?X_IOFBF:X_IONBF, XBUFSIZE); f 275 lib/util/xfile.c void x_setlinebuf(XFILE *f) f 277 lib/util/xfile.c x_setvbuf(f, NULL, X_IOLBF, 0); f 282 lib/util/xfile.c int x_feof(XFILE *f) f 284 lib/util/xfile.c if (f->flags & X_FLAG_EOF) return 1; f 289 lib/util/xfile.c int x_ferror(XFILE *f) f 291 lib/util/xfile.c if (f->flags & X_FLAG_ERROR) return 1; f 296 lib/util/xfile.c static void x_fillbuf(XFILE *f) f 300 lib/util/xfile.c if (f->bufused) return; f 302 lib/util/xfile.c if (!f->buf && !x_allocate_buffer(f)) return; f 304 lib/util/xfile.c n = read(f->fd, f->buf, f->bufsize); f 306 lib/util/xfile.c f->bufused = n; f 307 lib/util/xfile.c f->next = f->buf; f 311 lib/util/xfile.c int x_fgetc(XFILE *f) f 315 lib/util/xfile.c if (f->flags & (X_FLAG_EOF | X_FLAG_ERROR)) return EOF; f 317 lib/util/xfile.c if (f->bufused == 0) x_fillbuf(f); f 319 lib/util/xfile.c if (f->bufused == 0) { f 320 lib/util/xfile.c f->flags |= X_FLAG_EOF; f 324 lib/util/xfile.c ret = *(uint8_t *)(f->next); f 325 lib/util/xfile.c f->next++; f 326 lib/util/xfile.c f->bufused--; f 331 lib/util/xfile.c size_t x_fread(void *p, size_t size, size_t nmemb, XFILE *f) f 339 lib/util/xfile.c x_fillbuf(f); f 341 lib/util/xfile.c if (f->bufused == 0) { f 342 lib/util/xfile.c f->flags |= X_FLAG_EOF; f 346 lib/util/xfile.c thistime = MIN(f->bufused, remaining); f 348 lib/util/xfile.c memcpy((char *)p+total, f->next, thistime); f 350 lib/util/xfile.c f->next += thistime; f 351 lib/util/xfile.c f->bufused -= thistime; f 380 lib/util/xfile.c off_t x_tseek(XFILE *f, off_t offset, int whence) f 382 lib/util/xfile.c if (f->flags & X_FLAG_ERROR) f 388 lib/util/xfile.c f->flags |= X_FLAG_EINVAL; f 394 lib/util/xfile.c switch (f->open_flags & O_ACCMODE) { f 396 lib/util/xfile.c f->bufused = 0; f 399 lib/util/xfile.c if (x_fflush(f) != 0) f 407 lib/util/xfile.c f->flags &= ~X_FLAG_EOF; f 408 lib/util/xfile.c return lseek(f->fd, offset, whence); f 411 lib/util/xfile.c XFILE *x_fdup(const XFILE *f) f 416 lib/util/xfile.c fd = dup(x_fileno(f)); f 429 lib/util/xfile.c ret->open_flags = f->open_flags; f 44 lib/util/xfile.h #define x_getc(f) x_fgetc(f) f 46 lib/util/xfile.h int x_vfprintf(XFILE *f, const char *format, va_list ap) PRINTF_ATTRIBUTE(2, 0); f 47 lib/util/xfile.h int x_fprintf(XFILE *f, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); f 50 lib/util/xfile.h int x_setvbuf(XFILE *f, char *buf, int mode, size_t size); f 59 lib/util/xfile.h int x_fclose(XFILE *f); f 62 lib/util/xfile.h size_t x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f); f 65 lib/util/xfile.h int x_fileno(const XFILE *f); f 68 lib/util/xfile.h int x_fflush(XFILE *f); f 71 lib/util/xfile.h void x_setbuffer(XFILE *f, char *buf, size_t size); f 74 lib/util/xfile.h void x_setbuf(XFILE *f, char *buf); f 77 lib/util/xfile.h void x_setlinebuf(XFILE *f); f 80 lib/util/xfile.h int x_feof(XFILE *f); f 83 lib/util/xfile.h int x_ferror(XFILE *f); f 86 lib/util/xfile.h int x_fgetc(XFILE *f); f 89 lib/util/xfile.h size_t x_fread(void *p, size_t size, size_t nmemb, XFILE *f); f 97 lib/util/xfile.h off_t x_tseek(XFILE *f, off_t offset, int whence); f 99 lib/util/xfile.h XFILE *x_fdup(const XFILE *f); f 95 lib/zlib/contrib/iostream/zfstream.h gzomanip(gzofstream &(*f)(gzofstream &, T), T v) : func(f), val(v) { } f 423 lib/zlib/contrib/iostream3/zfstream.h gzomanip2(gzofstream& (*f)(gzofstream&, T1, T2), f 449 lib/zlib/contrib/iostream3/zfstream.h gzomanip2<T1,T2>::gzomanip2(gzofstream &(*f)(gzofstream &, T1, T2), f 452 lib/zlib/contrib/iostream3/zfstream.h : func(f), val1(v1), val2(v2) f 38 lib/zlib/contrib/minizip/minizip.c uLong filetime(f, tmzip, dt) f 39 lib/zlib/contrib/minizip/minizip.c char *f; /* name of file to get info on */ f 49 lib/zlib/contrib/minizip/minizip.c hFind = FindFirstFile(f,&ff32); f 62 lib/zlib/contrib/minizip/minizip.c uLong filetime(f, tmzip, dt) f 63 lib/zlib/contrib/minizip/minizip.c char *f; /* name of file to get info on */ f 72 lib/zlib/contrib/minizip/minizip.c if (strcmp(f,"-")!=0) f 75 lib/zlib/contrib/minizip/minizip.c int len = strlen(f); f 79 lib/zlib/contrib/minizip/minizip.c strncpy(name, f,MAXFILENAME-1); f 104 lib/zlib/contrib/minizip/minizip.c uLong filetime(f, tmzip, dt) f 105 lib/zlib/contrib/minizip/minizip.c char *f; /* name of file to get info on */ f 611 lib/zlib/contrib/untgz/untgz.c gzFile *f; f 659 lib/zlib/contrib/untgz/untgz.c f = gzopen(TGZfile,"rb"); f 660 lib/zlib/contrib/untgz/untgz.c if (f == NULL) f 665 lib/zlib/contrib/untgz/untgz.c exit(tar(f, action, arg, argc, argv)); f 504 lib/zlib/trees.c ush f; /* frequency */ f 526 lib/zlib/trees.c f = tree[n].Freq; f 527 lib/zlib/trees.c s->opt_len += (ulg)f * (bits + xbits); f 528 lib/zlib/trees.c if (stree) s->static_len += (ulg)f * (stree[n].Len + xbits); f 142 librpc/tools/ndrdump.c const struct ndr_interface_call *f; f 257 librpc/tools/ndrdump.c f = find_function(p, function); f 261 librpc/tools/ndrdump.c st = talloc_zero_size(mem_ctx, f->struct_size); f 263 librpc/tools/ndrdump.c printf("Unable to allocate %d bytes\n", (int)f->struct_size); f 267 librpc/tools/ndrdump.c v_st = talloc_zero_size(mem_ctx, f->struct_size); f 269 librpc/tools/ndrdump.c printf("Unable to allocate %d bytes\n", (int)f->struct_size); f 291 librpc/tools/ndrdump.c ndr_err = f->ndr_pull(ndr_pull, NDR_IN, st); f 302 librpc/tools/ndrdump.c memcpy(v_st, st, f->struct_size); f 324 librpc/tools/ndrdump.c ndr_err = f->ndr_pull(ndr_pull, flags, st); f 344 librpc/tools/ndrdump.c f->ndr_print(ndr_print, function, flags, st); f 362 librpc/tools/ndrdump.c ndr_err = f->ndr_push(ndr_v_push, flags, st); f 380 librpc/tools/ndrdump.c ndr_err = f->ndr_pull(ndr_v_pull, flags, v_st); f 399 librpc/tools/ndrdump.c f->ndr_print(ndr_v_print, function, flags, v_st); f 62 nsswitch/winbind_nss_aix.c FILE *f; f 66 nsswitch/winbind_nss_aix.c f = fopen("/tmp/WINBIND_DEBUG.log", "a"); f 67 nsswitch/winbind_nss_aix.c if (!f) return; f 69 nsswitch/winbind_nss_aix.c vfprintf(f, format, ap); f 71 nsswitch/winbind_nss_aix.c fclose(f); f 169 source3/client/client.c static int writefile(int f, char *b, int n) f 174 source3/client/client.c return write(f,b,n); f 182 source3/client/client.c if (write(f, b, 1) != 1) { f 197 source3/client/client.c static int readfile(uint8_t *b, int n, XFILE *f) f 203 source3/client/client.c return x_fread(b,1,n,f); f 207 source3/client/client.c if ((c = x_getc(f)) == EOF) { f 222 source3/client/client.c XFILE *f; f 231 source3/client/client.c if (x_feof(state->f)) { f 235 source3/client/client.c result = readfile(buf, n, state->f); f 712 source3/client/client.c static void do_list_helper(const char *mntpoint, file_info *f, const char *mask, void *state) f 727 source3/client/client.c if (f->mode & aDIR) { f 728 source3/client/client.c if (do_list_dirs && do_this_one(f)) { f 729 source3/client/client.c do_list_fn(f, dir); f 732 source3/client/client.c f->name && f 733 source3/client/client.c !strequal(f->name,".") && f 734 source3/client/client.c !strequal(f->name,"..")) { f 738 source3/client/client.c if (!f->name[0]) { f 760 source3/client/client.c f->name, f 773 source3/client/client.c if (do_this_one(f)) { f 774 source3/client/client.c do_list_fn(f,dir); f 1622 source3/client/client.c XFILE *f; f 1662 source3/client/client.c f = x_stdin; f 1665 source3/client/client.c f = x_fopen(lname,O_RDONLY, 0); f 1666 source3/client/client.c if (f && reput) { f 1667 source3/client/client.c if (x_tseek(f, start, SEEK_SET) == -1) { f 1674 source3/client/client.c if (!f) { f 1682 source3/client/client.c x_setvbuf(f, NULL, X_IOFBF, io_bufsize); f 1684 source3/client/client.c state.f = f; f 1695 source3/client/client.c x_fclose(f); f 1699 source3/client/client.c if (f != x_stdin) { f 1700 source3/client/client.c x_fclose(f); f 1719 source3/client/client.c if (f == x_stdin) { f 4109 source3/client/client.c file_info *f, f 4116 source3/client/client.c (strncmp(info->text, f->name, info->len) == 0) && f 4117 source3/client/client.c (strcmp(f->name, ".") != 0) && f 4118 source3/client/client.c (strcmp(f->name, "..") != 0)) { f 4119 source3/client/client.c if ((info->dirmask[0] == 0) && !(f->mode & aDIR)) f 4120 source3/client/client.c info->matches[info->count] = SMB_STRDUP(f->name); f 4130 source3/client/client.c tmp = talloc_asprintf_append(tmp, "%s", f->name); f 4135 source3/client/client.c if (f->mode & aDIR) { f 4148 source3/client/client.c if (f->mode & aDIR) { f 115 source3/client/clitar.c static void writetarheader(int f, const char *aname, uint64_t size, time_t mtime, f 121 source3/client/clitar.c static int dotarbuf(int f, char *b, int n); f 122 source3/client/clitar.c static void dozerobuf(int f, int n); f 123 source3/client/clitar.c static void dotareof(int f); f 157 source3/client/clitar.c static void writetarheader(int f, const char *aname, uint64_t size, time_t mtime, f 180 source3/client/clitar.c writetarheader(f, "/./@LongLink", l+2, 0, " 0 \0", 'L'); f 185 source3/client/clitar.c dotarbuf(f, b, TBLOCK*(((i-1)/TBLOCK)+1)); f 221 source3/client/clitar.c (void) dotarbuf(f, hb.dummy, sizeof(hb.dummy)); f 319 source3/client/clitar.c static int dotarbuf(int f, char *b, int n) f 332 source3/client/clitar.c fail=fail && (1+sys_write(f, tarbuf, tbufsiz)); f 338 source3/client/clitar.c fail=fail && (1 + sys_write(f, b, tbufsiz)); f 356 source3/client/clitar.c static void dozerobuf(int f, int n) f 367 source3/client/clitar.c if (sys_write(f, tarbuf, tbufsiz) != tbufsiz) { f 396 source3/client/clitar.c static void dotareof(int f) f 404 source3/client/clitar.c (void) dozerobuf(f, TBLOCK); f 405 source3/client/clitar.c (void) dozerobuf(f, TBLOCK); f 407 source3/client/clitar.c if (sys_fstat(f, &stbuf) == -1) { f 416 source3/client/clitar.c if (sys_write(f, tarbuf, towrite) != towrite) { f 37 source3/include/dbwrap.h int (*f)(struct db_record *rec, f 41 source3/include/dbwrap.h int (*f)(struct db_record *rec, f 855 source3/include/includes.h int d_fprintf(FILE *f, const char *, ...) PRINTF_ATTRIBUTE(2,3); f 863 source3/include/includes.h int d_vfprintf(FILE *f, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); f 886 source3/include/libsmbclient.h SMBCFILE *f, f 4279 source3/include/proto.h bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal); f 4323 source3/include/proto.h void lp_dump(FILE *f, bool show_defaults, int maxtoprint); f 4324 source3/include/proto.h void lp_dump_one(FILE * f, bool show_defaults, int snum); f 143 source3/iniparser/src/iniparser.c void iniparser_dump(dictionary * d, FILE * f) f 147 source3/iniparser/src/iniparser.c if (d==NULL || f==NULL) return ; f 152 source3/iniparser/src/iniparser.c fprintf(f, "[%s]=[%s]\n", d->key[i], d->val[i]); f 154 source3/iniparser/src/iniparser.c fprintf(f, "[%s]=UNDEF\n", d->key[i]); f 172 source3/iniparser/src/iniparser.c void iniparser_dump_ini(dictionary * d, FILE * f) f 180 source3/iniparser/src/iniparser.c if (d==NULL || f==NULL) return ; f 188 source3/iniparser/src/iniparser.c fprintf(f, "%s = %s\n", d->key[i], d->val[i]); f 195 source3/iniparser/src/iniparser.c fprintf(f, "\n[%s]\n", secname); f 201 source3/iniparser/src/iniparser.c fprintf(f, f 208 source3/iniparser/src/iniparser.c fprintf(f, "\n"); f 91 source3/iniparser/src/iniparser.h void iniparser_dump_ini(dictionary * d, FILE * f); f 106 source3/iniparser/src/iniparser.h void iniparser_dump(dictionary * d, FILE * f); f 340 source3/lib/dbwrap_rbt.c int (*f)(struct db_record *db, f 223 source3/lib/dbwrap_tdb.c int (*f)(struct db_record *rec, void *private_data); f 240 source3/lib/dbwrap_tdb.c return ctx->f(&rec, ctx->private_data); f 244 source3/lib/dbwrap_tdb.c int (*f)(struct db_record *rec, void *private_data), f 252 source3/lib/dbwrap_tdb.c ctx.f = f; f 280 source3/lib/dbwrap_tdb.c return ctx->f(&rec, ctx->private_data); f 284 source3/lib/dbwrap_tdb.c int (*f)(struct db_record *rec, void *private_data), f 292 source3/lib/dbwrap_tdb.c ctx.f = f; f 33 source3/lib/dprintf.c int d_vfprintf(FILE *f, const char *format, va_list ap) f 78 source3/lib/dprintf.c ret = fwrite(p2, 1, clen, f); f 89 source3/lib/dprintf.c int d_fprintf(FILE *f, const char *format, ...) f 95 source3/lib/dprintf.c ret = d_vfprintf(f, format, ap); f 51 source3/lib/ldb/common/ldb_ldif.c int f; f 59 source3/lib/ldb/common/ldb_ldif.c f = open(fname, O_RDONLY); f 60 source3/lib/ldb/common/ldb_ldif.c if (f == -1) { f 64 source3/lib/ldb/common/ldb_ldif.c if (fstat(f, &statbuf) != 0) { f 85 source3/lib/ldb/common/ldb_ldif.c bytes = read(f, buf, size); f 100 source3/lib/ldb/common/ldb_ldif.c close(f); f 687 source3/lib/ldb/common/ldb_ldif.c FILE *f; f 694 source3/lib/ldb/common/ldb_ldif.c return fgetc(state->f); f 697 source3/lib/ldb/common/ldb_ldif.c struct ldb_ldif *ldb_ldif_read_file(struct ldb_context *ldb, FILE *f) f 700 source3/lib/ldb/common/ldb_ldif.c state.f = f; f 737 source3/lib/ldb/common/ldb_ldif.c FILE *f; f 750 source3/lib/ldb/common/ldb_ldif.c ret = vfprintf(state->f, fmt, ap); f 755 source3/lib/ldb/common/ldb_ldif.c int ldb_ldif_write_file(struct ldb_context *ldb, FILE *f, const struct ldb_ldif *ldif) f 758 source3/lib/ldb/common/ldb_ldif.c state.f = f; f 37 source3/lib/ldb/common/ldb_msg.c void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f); f 800 source3/lib/ldb/common/ldb_msg.c void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f) f 806 source3/lib/ldb/common/ldb_msg.c fprintf(f, "# record %d\n", i+1); f 809 source3/lib/ldb/common/ldb_msg.c ldb_ldif_write_file(ldb, f, &ldif); f 1208 source3/lib/ldb/include/ldb.h struct ldb_ldif *ldb_ldif_read_file(struct ldb_context *ldb, FILE *f); f 1239 source3/lib/ldb/include/ldb.h int ldb_ldif_write_file(struct ldb_context *ldb, FILE *f, const struct ldb_ldif *msg); f 54 source3/lib/ldb/tools/ldbadd.c static int process_file(struct ldb_context *ldb, FILE *f, int *count, f 60 source3/lib/ldb/tools/ldbadd.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 102 source3/lib/ldb/tools/ldbadd.c FILE *f; f 103 source3/lib/ldb/tools/ldbadd.c f = fopen(fname, "r"); f 104 source3/lib/ldb/tools/ldbadd.c if (!f) { f 108 source3/lib/ldb/tools/ldbadd.c ret = process_file(ldb, f, &count, &failures); f 109 source3/lib/ldb/tools/ldbadd.c fclose(f); f 44 source3/lib/ldb/tools/ldbedit.c FILE *f, f 51 source3/lib/ldb/tools/ldbedit.c ldb_ldif_write_file(ldb, f, &ldif); f 163 source3/lib/ldb/tools/ldbedit.c FILE *f, struct ldb_message **msgs, int count) f 167 source3/lib/ldb/tools/ldbedit.c fprintf(f, "# editing %d records\n", count); f 171 source3/lib/ldb/tools/ldbedit.c fprintf(f, "# record %d\n", i+1); f 176 source3/lib/ldb/tools/ldbedit.c ldb_ldif_write_file(ldb, f, &ldif); f 190 source3/lib/ldb/tools/ldbedit.c FILE *f; f 206 source3/lib/ldb/tools/ldbedit.c f = fdopen(fd, "r+"); f 208 source3/lib/ldb/tools/ldbedit.c if (!f) { f 215 source3/lib/ldb/tools/ldbedit.c if (save_ldif(ldb, f, msgs1, count1) != 0) { f 219 source3/lib/ldb/tools/ldbedit.c fclose(f); f 240 source3/lib/ldb/tools/ldbedit.c f = fopen(file_template, "r"); f 241 source3/lib/ldb/tools/ldbedit.c if (!f) { f 246 source3/lib/ldb/tools/ldbedit.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 255 source3/lib/ldb/tools/ldbedit.c fclose(f); f 53 source3/lib/ldb/tools/ldbmodify.c static int process_file(struct ldb_context *ldb, FILE *f, int *count, f 59 source3/lib/ldb/tools/ldbmodify.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 104 source3/lib/ldb/tools/ldbmodify.c FILE *f; f 105 source3/lib/ldb/tools/ldbmodify.c f = fopen(fname, "r"); f 106 source3/lib/ldb/tools/ldbmodify.c if (!f) { f 110 source3/lib/ldb/tools/ldbmodify.c ret = process_file(ldb, f, &count, &failures); f 178 source3/lib/smbconf/testsuite.c FILE *f; f 181 source3/lib/smbconf/testsuite.c f = sys_fopen(filename, "w"); f 182 source3/lib/smbconf/testsuite.c if (!f) { f 188 source3/lib/smbconf/testsuite.c fprintf(f, "[global]\n"); f 189 source3/lib/smbconf/testsuite.c fprintf(f, "\tserver string = smbconf testsuite\n"); f 190 source3/lib/smbconf/testsuite.c fprintf(f, "\tworkgroup = SAMBA\n"); f 191 source3/lib/smbconf/testsuite.c fprintf(f, "\tsecurity = user\n"); f 193 source3/lib/smbconf/testsuite.c fclose(f); f 27 source3/libnet/libnet_join.c #define LIBNET_JOIN_DUMP_CTX(ctx, r, f) \ f 30 source3/libnet/libnet_join.c str = NDR_PRINT_FUNCTION_STRING(ctx, libnet_JoinCtx, f, r); \ f 40 source3/libnet/libnet_join.c #define LIBNET_UNJOIN_DUMP_CTX(ctx, r, f) \ f 43 source3/libnet/libnet_join.c str = NDR_PRINT_FUNCTION_STRING(ctx, libnet_UnjoinCtx, f, r); \ f 44 source3/libsmb/libsmb_compat.c struct smbc_compat_fdlist * f = smbc_compat_fd_in_use; f 45 source3/libsmb/libsmb_compat.c while (f) { f 46 source3/libsmb/libsmb_compat.c if (f->fd == fd) f 47 source3/libsmb/libsmb_compat.c return f->file; f 48 source3/libsmb/libsmb_compat.c f = f->next; f 57 source3/libsmb/libsmb_compat.c struct smbc_compat_fdlist * f = smbc_compat_fd_avail; f 59 source3/libsmb/libsmb_compat.c if (f) { f 61 source3/libsmb/libsmb_compat.c DLIST_REMOVE(smbc_compat_fd_avail, f); f 76 source3/libsmb/libsmb_compat.c f = SMB_MALLOC_P(struct smbc_compat_fdlist); f 77 source3/libsmb/libsmb_compat.c if (!f) { f 82 source3/libsmb/libsmb_compat.c f->fd = SMBC_BASE_FD + smbc_compat_nextfd++; f 85 source3/libsmb/libsmb_compat.c f->file = file; f 86 source3/libsmb/libsmb_compat.c DLIST_ADD(smbc_compat_fd_in_use, f); f 88 source3/libsmb/libsmb_compat.c return f->fd; f 97 source3/libsmb/libsmb_compat.c struct smbc_compat_fdlist * f = smbc_compat_fd_in_use; f 99 source3/libsmb/libsmb_compat.c while (f) { f 100 source3/libsmb/libsmb_compat.c if (f->fd == fd) f 102 source3/libsmb/libsmb_compat.c f = f->next; f 105 source3/libsmb/libsmb_compat.c if (f) { f 107 source3/libsmb/libsmb_compat.c DLIST_REMOVE(smbc_compat_fd_in_use, f); f 108 source3/libsmb/libsmb_compat.c f->file = NULL; f 109 source3/libsmb/libsmb_compat.c DLIST_ADD(smbc_compat_fd_avail, f); f 141 source3/libsmb/libsmb_context.c SMBCFILE * f; f 144 source3/libsmb/libsmb_context.c f = context->internal->files; f 145 source3/libsmb/libsmb_context.c while (f) { f 146 source3/libsmb/libsmb_context.c smbc_getFunctionClose(context)(context, f); f 147 source3/libsmb/libsmb_context.c f = f->next; f 38 source3/libsmb/libsmb_dir.c struct smbc_dir_list *d,*f; f 43 source3/libsmb/libsmb_dir.c f = d; d = d->next; f 45 source3/libsmb/libsmb_dir.c SAFE_FREE(f->dirent); f 46 source3/libsmb/libsmb_dir.c SAFE_FREE(f); f 40 source3/modules/vfs_expand_msdfs.c XFILE *f; f 45 source3/modules/vfs_expand_msdfs.c f = x_fopen(mapfile, O_RDONLY, 0); f 47 source3/modules/vfs_expand_msdfs.c if (f == NULL) { f 55 source3/modules/vfs_expand_msdfs.c while (x_fgets(buf, sizeof(buf), f) != NULL) { f 79 source3/modules/vfs_expand_msdfs.c x_fclose(f); f 46 source3/modules/vfs_fileid.c FILE *f; f 52 source3/modules/vfs_fileid.c f = setmntent("/etc/mtab", "r"); f 53 source3/modules/vfs_fileid.c if (!f) return; f 55 source3/modules/vfs_fileid.c while ((m = getmntent(f))) { f 85 source3/modules/vfs_fileid.c endmntent(f); f 89 source3/modules/vfs_fileid.c if (f) endmntent(f); f 260 source3/nmbd/nmbd_synclists.c XFILE *f; f 269 source3/nmbd/nmbd_synclists.c f = x_fopen(s->fname,O_RDONLY, 0); f 271 source3/nmbd/nmbd_synclists.c if (!f) f 274 source3/nmbd/nmbd_synclists.c while (!x_feof(f)) { f 277 source3/nmbd/nmbd_synclists.c if (!fgets_slash(line,sizeof(line),f)) f 297 source3/nmbd/nmbd_synclists.c x_fclose(f); f 6926 source3/param/loadparm.c struct file_lists *f = file_lists; f 6928 source3/param/loadparm.c while (f) { f 6929 source3/param/loadparm.c if (f->name && !strcmp(f->name, fname)) f 6931 source3/param/loadparm.c f = f->next; f 6934 source3/param/loadparm.c if (!f) { f 6935 source3/param/loadparm.c f = SMB_MALLOC_P(struct file_lists); f 6936 source3/param/loadparm.c if (!f) f 6938 source3/param/loadparm.c f->next = file_lists; f 6939 source3/param/loadparm.c f->name = SMB_STRDUP(fname); f 6940 source3/param/loadparm.c if (!f->name) { f 6941 source3/param/loadparm.c SAFE_FREE(f); f 6944 source3/param/loadparm.c f->subfname = SMB_STRDUP(subfname); f 6945 source3/param/loadparm.c if (!f->subfname) { f 6946 source3/param/loadparm.c SAFE_FREE(f); f 6949 source3/param/loadparm.c file_lists = f; f 6950 source3/param/loadparm.c f->modtime = file_modtime(subfname); f 6954 source3/param/loadparm.c f->modtime = t; f 6963 source3/param/loadparm.c struct file_lists *f; f 6966 source3/param/loadparm.c f = file_lists; f 6967 source3/param/loadparm.c while( f ) { f 6968 source3/param/loadparm.c next = f->next; f 6969 source3/param/loadparm.c SAFE_FREE( f->name ); f 6970 source3/param/loadparm.c SAFE_FREE( f->subfname ); f 6971 source3/param/loadparm.c SAFE_FREE( f ); f 6972 source3/param/loadparm.c f = next; f 7000 source3/param/loadparm.c struct file_lists *f = file_lists; f 7004 source3/param/loadparm.c while (f) { f 7008 source3/param/loadparm.c if (strequal(f->name, INCLUDE_REGISTRY_NAME)) { f 7023 source3/param/loadparm.c f->name); f 7028 source3/param/loadparm.c f->name, n2, ctime(&f->modtime))); f 7033 source3/param/loadparm.c ((f->modtime != mod_time) || f 7034 source3/param/loadparm.c (f->subfname == NULL) || f 7035 source3/param/loadparm.c (strcmp(n2, f->subfname) != 0))) f 7040 source3/param/loadparm.c f->modtime = mod_time; f 7041 source3/param/loadparm.c SAFE_FREE(f->subfname); f 7042 source3/param/loadparm.c f->subfname = n2; /* Passing ownership of f 7049 source3/param/loadparm.c f = f->next; f 7580 source3/param/loadparm.c static void print_parameter(struct parm_struct *p, void *ptr, FILE * f) f 7588 source3/param/loadparm.c fprintf(f, "%s", f 7596 source3/param/loadparm.c fprintf(f, "%s", BOOLSTR(*(bool *)ptr)); f 7600 source3/param/loadparm.c fprintf(f, "%s", BOOLSTR(!*(bool *)ptr)); f 7604 source3/param/loadparm.c fprintf(f, "%d", *(int *)ptr); f 7608 source3/param/loadparm.c fprintf(f, "%c", *(char *)ptr); f 7613 source3/param/loadparm.c fprintf(f, "%s", o); f 7624 source3/param/loadparm.c fprintf(f, "\"%s\"%s", *list, ((*(list+1))?", ":"")); f 7626 source3/param/loadparm.c fprintf(f, "%s%s", *list, ((*(list+1))?", ":"")); f 7634 source3/param/loadparm.c fprintf(f, "%s", *(char **)ptr); f 7779 source3/param/loadparm.c static void dump_globals(FILE *f) f 7784 source3/param/loadparm.c fprintf(f, "[global]\n"); f 7793 source3/param/loadparm.c fprintf(f, "\t%s = ", parm_table[i].label); f 7794 source3/param/loadparm.c print_parameter(&parm_table[i], parm_table[i].ptr, f); f 7795 source3/param/loadparm.c fprintf(f, "\n"); f 7800 source3/param/loadparm.c fprintf(f, "\t%s = %s\n", data->key, data->value); f 7824 source3/param/loadparm.c static void dump_a_service(struct service *pService, FILE * f) f 7830 source3/param/loadparm.c fprintf(f, "[%s]\n", pService->szService); f 7855 source3/param/loadparm.c fprintf(f, "\t%s = ", parm_table[i].label); f 7857 source3/param/loadparm.c ((char *)pService) + pdiff, f); f 7858 source3/param/loadparm.c fprintf(f, "\n"); f 7865 source3/param/loadparm.c fprintf(f, "\t%s = %s\n", data->key, data->value); f 7875 source3/param/loadparm.c bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal) f 7929 source3/param/loadparm.c ptr, f); f 7930 source3/param/loadparm.c fprintf(f, "\n"); f 9180 source3/param/loadparm.c void lp_dump(FILE *f, bool show_defaults, int maxtoprint) f 9187 source3/param/loadparm.c dump_globals(f); f 9189 source3/param/loadparm.c dump_a_service(&sDefault, f); f 9192 source3/param/loadparm.c fprintf(f,"\n"); f 9193 source3/param/loadparm.c lp_dump_one(f, show_defaults, iService); f 9201 source3/param/loadparm.c void lp_dump_one(FILE * f, bool show_defaults, int snum) f 9206 source3/param/loadparm.c dump_a_service(ServicePtrs[snum], f); f 627 source3/rpc_server/srv_eventlog_nt.c struct EVENTLOG_FULL_INFORMATION f; f 646 source3/rpc_server/srv_eventlog_nt.c f.full = false; f 648 source3/rpc_server/srv_eventlog_nt.c ndr_err = ndr_push_struct_blob(&blob, p->mem_ctx, NULL, &f, f 655 source3/rpc_server/srv_eventlog_nt.c NDR_PRINT_DEBUG(EVENTLOG_FULL_INFORMATION, &f); f 57 source3/rpc_server/srv_srvsvc_nt.c struct srvsvc_NetFileInfo3 *f; f 83 source3/rpc_server/srv_srvsvc_nt.c f = TALLOC_REALLOC_ARRAY(fenum->ctx, fenum->ctr3->array, f 85 source3/rpc_server/srv_srvsvc_nt.c if ( !f ) { f 89 source3/rpc_server/srv_srvsvc_nt.c fenum->ctr3->array = f; f 139 source3/rpc_server/srv_srvsvc_nt.c struct srvsvc_NetFileInfo3 *f; f 161 source3/rpc_server/srv_srvsvc_nt.c f = TALLOC_REALLOC_ARRAY(fenum->ctx, fenum->ctr3->array, f 163 source3/rpc_server/srv_srvsvc_nt.c if ( !f ) { f 167 source3/rpc_server/srv_srvsvc_nt.c fenum->ctr3->array = f; f 493 source3/rpc_server/srv_winreg_nt.c fstring f; f 520 source3/rpc_server/srv_winreg_nt.c fstr_sprintf(f, r->in.force_apps ? SHUTDOWN_F_STRING : ""); f 539 source3/rpc_server/srv_winreg_nt.c shutdown_script, "%f", f); f 194 source3/services/services_db.c XFILE *f = NULL; f 208 source3/services/services_db.c if (!(f = x_fopen( filepath, O_RDONLY, 0 ))) { f 214 source3/services/services_db.c while ( (x_fgets( str, sizeof(str)-1, f )) != NULL ) { f 235 source3/services/services_db.c x_fclose( f ); f 275 source3/smbd/mangle_hash.c const char *f; f 285 source3/smbd/mangle_hash.c if ((f = strrchr(fname, '/')) == NULL) f 286 source3/smbd/mangle_hash.c f = fname; f 288 source3/smbd/mangle_hash.c f++; f 290 source3/smbd/mangle_hash.c if (strlen(f) > 12) f 293 source3/smbd/mangle_hash.c if (!push_ucs2_allocate(&ucs2name, f, &size)) { f 73 source3/smbd/map_username.c XFILE *f; f 138 source3/smbd/map_username.c f = x_fopen(mapfile,O_RDONLY, 0); f 139 source3/smbd/map_username.c if (!f) { f 146 source3/smbd/map_username.c while((s=fgets_slash(buf,sizeof(buf),f))!=NULL) { f 196 source3/smbd/map_username.c x_fclose(f); f 204 source3/smbd/map_username.c x_fclose(f); f 73 source3/torture/locktest.c char conn, f; f 279 source3/torture/locktest.c int server, conn, f; f 284 source3/torture/locktest.c for (f=0;f<NFILES;f++) { f 285 source3/torture/locktest.c if (fnum[server][conn][f] != -1) { f 286 source3/torture/locktest.c cli_close(cli[server][conn], fnum[server][conn][f]); f 287 source3/torture/locktest.c fnum[server][conn][f] = -1; f 308 source3/torture/locktest.c unsigned f = rec->f; f 321 source3/torture/locktest.c fnum[server][conn][f], f 332 source3/torture/locktest.c conn, f, f 345 source3/torture/locktest.c fnum[server][conn][f], f 352 source3/torture/locktest.c conn, f, f 364 source3/torture/locktest.c cli_close(cli[server][conn], fnum[server][conn][f]); f 365 source3/torture/locktest.c fnum[server][conn][f] = -1; f 368 source3/torture/locktest.c fnum[server][conn][f] = cli_open(cli[server][conn], FILENAME, f 371 source3/torture/locktest.c if (fnum[server][conn][f] == -1) { f 378 source3/torture/locktest.c conn, f); f 390 source3/torture/locktest.c int server, conn, f; f 394 source3/torture/locktest.c for (f=0;f<NFILES;f++) { f 395 source3/torture/locktest.c if (fnum[server][conn][f] != -1) { f 396 source3/torture/locktest.c cli_close(cli[server][conn], fnum[server][conn][f]); f 397 source3/torture/locktest.c fnum[server][conn][f] = -1; f 408 source3/torture/locktest.c int server, conn, f; f 412 source3/torture/locktest.c for (f=0;f<NFILES;f++) { f 413 source3/torture/locktest.c fnum[server][conn][f] = cli_open(cli[server][conn], FILENAME, f 416 source3/torture/locktest.c if (fnum[server][conn][f] == -1) { f 418 source3/torture/locktest.c server, conn, f); f 467 source3/torture/locktest.c recorded[n].f = random() % NFILES; f 561 source3/torture/locktest.c recorded[i].f, f 58 source3/torture/locktest2.c char conn, f, fstype; f 205 source3/torture/locktest2.c int server, conn, f, fstype; f 215 source3/torture/locktest2.c for (f=0;f<NFILES;f++) { f 216 source3/torture/locktest2.c cli_close(cli[server][conn], fnum[server][fstype][conn][f]); f 237 source3/torture/locktest2.c unsigned f = rec->f; f 257 source3/torture/locktest2.c fnum[server][fstype][conn][f], f 262 source3/torture/locktest2.c conn, fstype, f, f 273 source3/torture/locktest2.c fnum[server][fstype][conn][f], f 278 source3/torture/locktest2.c conn, fstype, f, f 287 source3/torture/locktest2.c try_close(cli[server][conn], fstype, fnum[server][fstype][conn][f]); f 288 source3/torture/locktest2.c fnum[server][fstype][conn][f] = try_open(cli[server][conn], nfs[server], fstype, FILENAME, f 290 source3/torture/locktest2.c if (fnum[server][fstype][conn][f] == -1) { f 297 source3/torture/locktest2.c conn, fstype, f); f 308 source3/torture/locktest2.c int server, conn, f, fstype; f 313 source3/torture/locktest2.c for (f=0;f<NFILES;f++) { f 314 source3/torture/locktest2.c if (fnum[server][fstype][conn][f] != -1) { f 315 source3/torture/locktest2.c try_close(cli[server][conn], fstype, fnum[server][fstype][conn][f]); f 316 source3/torture/locktest2.c fnum[server][fstype][conn][f] = -1; f 328 source3/torture/locktest2.c int server, fstype, conn, f; f 333 source3/torture/locktest2.c for (f=0;f<NFILES;f++) { f 334 source3/torture/locktest2.c fnum[server][fstype][conn][f] = try_open(cli[server][conn], nfs[server], fstype, FILENAME, f 336 source3/torture/locktest2.c if (fnum[server][fstype][conn][f] == -1) { f 338 source3/torture/locktest2.c server, fstype, conn, f); f 388 source3/torture/locktest2.c recorded[n].f = random() % NFILES; f 452 source3/torture/locktest2.c recorded[i].f, f 268 source3/torture/masktest.c static void listfn(const char *mnt, file_info *f, const char *s, void *state) f 270 source3/torture/masktest.c if (strcmp(f->name,".") == 0) { f 272 source3/torture/masktest.c } else if (strcmp(f->name,"..") == 0) { f 277 source3/torture/masktest.c f_info = f; f 868 source3/torture/torture.c FILE *f; f 882 source3/torture/torture.c f = fopen(client_txt, "r"); f 884 source3/torture/torture.c if (!f) { f 889 source3/torture/torture.c while (fgets(line, sizeof(line)-1, f)) { f 947 source3/torture/torture.c fclose(f); f 1629 source3/torture/torture.c int fnum1, fnum2, f; f 1771 source3/torture/torture.c f = cli_open(cli1, fname, O_RDWR, DENY_NONE); f 1773 source3/torture/torture.c cli_lock(cli1, f, 0, 1, 0, READ_LOCK) && f 1777 source3/torture/torture.c cli_close(cli1, f); f 96 source3/utils/net.c static void set_line_buffering(FILE *f) f 98 source3/utils/net.c setvbuf(f, NULL, _IOLBF, 0); f 3192 source3/utils/net_rpc.c static void copy_fn(const char *mnt, file_info *f, f 3207 source3/utils/net_rpc.c if (strequal(f->name, ".") || strequal(f->name, "..")) f 3210 source3/utils/net_rpc.c DEBUG(3,("got mask: %s, name: %s\n", mask, f->name)); f 3213 source3/utils/net_rpc.c if (f->mode & aDIR) { f 3215 source3/utils/net_rpc.c DEBUG(3,("got dir: %s\n", f->name)); f 3219 source3/utils/net_rpc.c fstrcat(dir, f->name); f 3260 source3/utils/net_rpc.c fstrcat(filename, f->name); f 4187 source3/utils/net_rpc.c static bool get_user_tokens_from_file(FILE *f, f 4193 source3/utils/net_rpc.c while (!feof(f)) { f 4196 source3/utils/net_rpc.c if (fgets(line, sizeof(line)-1, f) == NULL) { f 4382 source3/utils/net_rpc.c FILE *f; f 4390 source3/utils/net_rpc.c f = stdin; f 4392 source3/utils/net_rpc.c f = fopen(argv[0], "r"); f 4395 source3/utils/net_rpc.c if (f == NULL) { f 4400 source3/utils/net_rpc.c r = get_user_tokens_from_file(f, &num_tokens, &tokens); f 4402 source3/utils/net_rpc.c if (f != stdin) f 4403 source3/utils/net_rpc.c fclose(f); f 1607 source3/utils/net_rpc_printer.c uint32_t i, f; f 1679 source3/utils/net_rpc_printer.c for (f = 0; f < num_forms; f++) { f 1686 source3/utils/net_rpc_printer.c if (forms[f].info1.flags != SPOOLSS_FORM_PRINTER) f 1691 source3/utils/net_rpc_printer.c f, forms[f].info1.form_name, f 1692 source3/utils/net_rpc_printer.c forms[f].info1.flags); f 1694 source3/utils/net_rpc_printer.c info.info1 = (struct spoolss_AddFormInfo1 *)&forms[f].info1; f 1705 source3/utils/net_rpc_printer.c f, forms[f].info1.form_name); f 1710 source3/utils/net_rpc_printer.c forms[f].info1.form_name)); f 67 source3/utils/sharesec.c static void print_ace(FILE *f, SEC_ACE *ace) f 73 source3/utils/sharesec.c fprintf(f, "%s:", sid_string_tos(&ace->trustee)); f 78 source3/utils/sharesec.c fprintf(f, "ALLOWED"); f 80 source3/utils/sharesec.c fprintf(f, "DENIED"); f 82 source3/utils/sharesec.c fprintf(f, "%d", ace->type); f 87 source3/utils/sharesec.c fprintf(f, "/%d/", ace->flags); f 93 source3/utils/sharesec.c fprintf(f, "%s", v->perm); f 107 source3/utils/sharesec.c fprintf(f, "%s", v->perm); f 115 source3/utils/sharesec.c fprintf(f, "0x%08x", ace->access_mask); f 127 source3/utils/sharesec.c static void sec_desc_print(FILE *f, SEC_DESC *sd) f 131 source3/utils/sharesec.c fprintf(f, "REVISION:%d\n", sd->revision); f 135 source3/utils/sharesec.c fprintf(f, "OWNER:%s\n", sid_string_tos(sd->owner_sid)); f 137 source3/utils/sharesec.c fprintf(f, "GROUP:%s\n", sid_string_tos(sd->group_sid)); f 142 source3/utils/sharesec.c fprintf(f, "ACL:"); f 143 source3/utils/sharesec.c print_ace(f, ace); f 144 source3/utils/sharesec.c fprintf(f, "\n"); f 204 source3/utils/smbcacls.c static void print_ace_flags(FILE *f, uint8_t flags) f 253 source3/utils/smbcacls.c fprintf(f, "/%s/", str); f 255 source3/utils/smbcacls.c fprintf(f, "/0x%x/", flags); f 261 source3/utils/smbcacls.c fprintf(f, "/0x%x/", flags); f 265 source3/utils/smbcacls.c static void print_ace(struct cli_state *cli, FILE *f, SEC_ACE *ace) f 274 source3/utils/smbcacls.c fprintf(f, "%s:", sidstr); f 277 source3/utils/smbcacls.c fprintf(f, "%d/0x%x/0x%08x", f 285 source3/utils/smbcacls.c fprintf(f, "ALLOWED"); f 287 source3/utils/smbcacls.c fprintf(f, "DENIED"); f 289 source3/utils/smbcacls.c fprintf(f, "%d", ace->type); f 292 source3/utils/smbcacls.c print_ace_flags(f, ace->flags); f 298 source3/utils/smbcacls.c fprintf(f, "%s", v->perm); f 312 source3/utils/smbcacls.c fprintf(f, "%s", v->perm); f 320 source3/utils/smbcacls.c fprintf(f, "0x%08x", ace->access_mask); f 621 source3/utils/smbcacls.c static void sec_desc_print(struct cli_state *cli, FILE *f, SEC_DESC *sd) f 626 source3/utils/smbcacls.c fprintf(f, "REVISION:%d\n", sd->revision); f 627 source3/utils/smbcacls.c fprintf(f, "CONTROL:0x%x\n", sd->type); f 637 source3/utils/smbcacls.c fprintf(f, "OWNER:%s\n", sidstr); f 645 source3/utils/smbcacls.c fprintf(f, "GROUP:%s\n", sidstr); f 650 source3/utils/smbcacls.c fprintf(f, "ACL:"); f 651 source3/utils/smbcacls.c print_ace(cli, f, ace); f 652 source3/utils/smbcacls.c fprintf(f, "\n"); f 74 source3/utils/smbpasswd.c static void set_line_buffering(FILE *f) f 76 source3/utils/smbpasswd.c setvbuf(f, NULL, _IOLBF, 0); f 48 source3/web/cgi.c static char *grab_line(FILE *f, int *cl) f 66 source3/web/cgi.c c = fgetc(f); f 112 source3/web/cgi.c FILE *f = stdin; f 132 source3/web/cgi.c while (len && (line=grab_line(f, &len))) { f 442 source3/web/swat.c static void write_config(FILE *f, bool show_defaults) f 446 source3/web/swat.c fprintf(f, "# Samba config file created using SWAT\n"); f 447 source3/web/swat.c fprintf(f, "# from %s (%s)\n", cgi_remote_host(), cgi_remote_addr()); f 448 source3/web/swat.c fprintf(f, "# Date: %s\n\n", current_timestring(ctx, False)); f 450 source3/web/swat.c lp_dump(f, show_defaults, iNumNonAutoPrintServices); f 460 source3/web/swat.c FILE *f; f 463 source3/web/swat.c f = sys_fopen(get_dyn_CONFIGFILE(),"w"); f 464 source3/web/swat.c if (!f) { f 471 source3/web/swat.c if (fstat(fileno(f), &st) == 0 && f 474 source3/web/swat.c fchmod(fileno(f), S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH); f 480 source3/web/swat.c write_config(f, False); f 482 source3/web/swat.c lp_dump_one(f, False, snum); f 483 source3/web/swat.c fclose(f); f 119 source4/auth/gensec/schannel_state.c char *f; f 123 source4/auth/gensec/schannel_state.c f = talloc_asprintf(mem_ctx, "%u", (unsigned int)creds->negotiate_flags); f 125 source4/auth/gensec/schannel_state.c if (f == NULL) { f 167 source4/auth/gensec/schannel_state.c ldb_msg_add_string(msg, "negotiateFlags", f); f 116 source4/client/client.c static int writefile(int f, const void *_b, int n, bool translation) f 122 source4/client/client.c return write(f,b,n); f 130 source4/client/client.c if (write(f, b, 1) != 1) { f 144 source4/client/client.c static int readfile(void *_b, int n, XFILE *f, bool translation) f 151 source4/client/client.c return x_fread(b,1,n,f); f 155 source4/client/client.c if ((c = x_getc(f)) == EOF) { f 512 source4/client/client.c static void do_list_helper(struct clilist_file_info *f, const char *mask, void *state) f 516 source4/client/client.c if (f->attrib & FILE_ATTRIBUTE_DIRECTORY) { f 517 source4/client/client.c if (do_list_dirs && do_this_one(ctx, f)) { f 518 source4/client/client.c do_list_fn(ctx, f); f 521 source4/client/client.c !ISDOT(f->name) && f 522 source4/client/client.c !ISDOTDOT(f->name)) { f 530 source4/client/client.c mask2 = talloc_asprintf_append_buffer(mask2, "%s\\*", f->name); f 536 source4/client/client.c if (do_this_one(ctx, f)) { f 537 source4/client/client.c do_list_fn(ctx, f); f 1084 source4/client/client.c XFILE *f; f 1119 source4/client/client.c f = x_stdin; f 1122 source4/client/client.c f = x_fopen(lname,O_RDONLY, 0); f 1123 source4/client/client.c if (f && reput) { f 1124 source4/client/client.c if (x_tseek(f, start, SEEK_SET) == -1) { f 1131 source4/client/client.c if (!f) { f 1145 source4/client/client.c while (!x_feof(f)) { f 1149 source4/client/client.c if ((n = readfile(buf,n,f,ctx->translation)) < 1) { f 1150 source4/client/client.c if((n == 0) && x_feof(f)) f 1171 source4/client/client.c x_fclose(f); f 1177 source4/client/client.c if (f != x_stdin) { f 1178 source4/client/client.c x_fclose(f); f 1199 source4/client/client.c if (f == x_stdin) { f 2793 source4/client/client.c static void completion_remote_filter(struct clilist_file_info *f, const char *mask, void *state) f 2797 source4/client/client.c if ((info->count < MAX_COMPLETIONS - 1) && (strncmp(info->text, f->name, info->len) == 0) && (!ISDOT(f->name)) && (!ISDOTDOT(f->name))) { f 2798 source4/client/client.c if ((info->dirmask[0] == 0) && !(f->attrib & FILE_ATTRIBUTE_DIRECTORY)) f 2799 source4/client/client.c info->matches[info->count] = strdup(f->name); f 2804 source4/client/client.c tmp = talloc_asprintf(NULL, "%s/%s", info->dirmask, f->name); f 2806 source4/client/client.c tmp = talloc_strdup(NULL, f->name); f 2808 source4/client/client.c if (f->attrib & FILE_ATTRIBUTE_DIRECTORY) f 2814 source4/client/client.c if (f->attrib & FILE_ATTRIBUTE_DIRECTORY) f 975 source4/heimdal/kdc/kerberos5.c KDCOptions f = b->kdc_options; f 996 source4/heimdal/kdc/kerberos5.c if (f.canonicalize) f 1443 source4/heimdal/kdc/kerberos5.c if(f.renew || f.validate || f.proxy || f.forwarded || f.enc_tkt_in_skey f 1444 source4/heimdal/kdc/kerberos5.c || (f.request_anonymous && !config->allow_anonymous)) { f 1453 source4/heimdal/kdc/kerberos5.c if (f.request_anonymous) f 1471 source4/heimdal/kdc/kerberos5.c et.flags.forwardable = f.forwardable; f 1472 source4/heimdal/kdc/kerberos5.c else if (f.forwardable) { f 1479 source4/heimdal/kdc/kerberos5.c et.flags.proxiable = f.proxiable; f 1480 source4/heimdal/kdc/kerberos5.c else if (f.proxiable) { f 1487 source4/heimdal/kdc/kerberos5.c et.flags.may_postdate = f.allow_postdate; f 1488 source4/heimdal/kdc/kerberos5.c else if (f.allow_postdate){ f 1515 source4/heimdal/kdc/kerberos5.c if(f.postdated && req->req_body.from){ f 1534 source4/heimdal/kdc/kerberos5.c if(f.renewable_ok && et.endtime < *b->till){ f 1535 source4/heimdal/kdc/kerberos5.c f.renewable = 1; f 1543 source4/heimdal/kdc/kerberos5.c if(f.renewable && b->rtime){ f 1560 source4/heimdal/kdc/kerberos5.c if (f.request_anonymous) f 1660 source4/heimdal/kdc/kerberos5.c if (f.canonicalize) { f 365 source4/heimdal/kdc/krb5tgs.c KDCOptions f = b->kdc_options; f 367 source4/heimdal/kdc/krb5tgs.c if(f.validate){ f 386 source4/heimdal/kdc/krb5tgs.c if(f.forwardable){ f 394 source4/heimdal/kdc/krb5tgs.c if(f.forwarded){ f 406 source4/heimdal/kdc/krb5tgs.c if(f.proxiable){ f 414 source4/heimdal/kdc/krb5tgs.c if(f.proxy){ f 426 source4/heimdal/kdc/krb5tgs.c if(f.allow_postdate){ f 434 source4/heimdal/kdc/krb5tgs.c if(f.postdated){ f 449 source4/heimdal/kdc/krb5tgs.c if(f.renewable){ f 460 source4/heimdal/kdc/krb5tgs.c if(f.renew){ f 479 source4/heimdal/kdc/krb5tgs.c if(f.request_anonymous && !config->allow_anonymous){ f 680 source4/heimdal/kdc/krb5tgs.c KDCOptions f = b->kdc_options; f 721 source4/heimdal/kdc/krb5tgs.c !f.disable_transited_check || f 759 source4/heimdal/kdc/krb5tgs.c if(f.renewable_ok && tgt->flags.renewable && f 238 source4/heimdal/kdc/pkinit.c integer_to_BN(krb5_context context, const char *field, heim_integer *f) f 242 source4/heimdal/kdc/pkinit.c bn = BN_bin2bn((const unsigned char *)f->data, f->length, NULL); f 248 source4/heimdal/kdc/pkinit.c BN_set_negative(bn, f->negative); f 1532 source4/heimdal/kdc/pkinit.c FILE *f; f 1534 source4/heimdal/kdc/pkinit.c f = fopen(fn, "r"); f 1535 source4/heimdal/kdc/pkinit.c if (f == NULL) f 1538 source4/heimdal/kdc/pkinit.c while (fgets(buf, sizeof(buf), f) != NULL) { f 1566 source4/heimdal/kdc/pkinit.c fclose(f); f 398 source4/heimdal/kuser/kinit.c FILE *f; f 401 source4/heimdal/kuser/kinit.c f = stdin; f 403 source4/heimdal/kuser/kinit.c f = fopen(password_file, "r"); f 404 source4/heimdal/kuser/kinit.c if (f == NULL) f 408 source4/heimdal/kuser/kinit.c if (fgets(passwd, sizeof(passwd), f) == NULL) f 412 source4/heimdal/kuser/kinit.c if (f != stdin) f 413 source4/heimdal/kuser/kinit.c fclose(f); f 52 source4/heimdal/lib/asn1/asn1_gen.c FILE *f, *fout; f 55 source4/heimdal/lib/asn1/asn1_gen.c f = fopen(fn, "r"); f 56 source4/heimdal/lib/asn1/asn1_gen.c if (f == NULL) f 73 source4/heimdal/lib/asn1/asn1_gen.c while (fgets(buf, sizeof(buf), f) != NULL) { f 146 source4/heimdal/lib/asn1/asn1_gen.c fclose(f); f 158 source4/heimdal/lib/asn1/gen_copy.c char *f; f 169 source4/heimdal/lib/asn1/gen_copy.c asprintf(&f, "&(%s)->val[(%s)->len]", from, to); f 170 source4/heimdal/lib/asn1/gen_copy.c if (f == NULL) f 175 source4/heimdal/lib/asn1/gen_copy.c copy_type(f, T, t->subtype, FALSE); f 177 source4/heimdal/lib/asn1/gen_copy.c free(f); f 1521 source4/heimdal/lib/asn1/lex.c int f = 0; f 1523 source4/heimdal/lib/asn1/lex.c if(f && c == '-') f 1526 source4/heimdal/lib/asn1/lex.c f = 1; f 1533 source4/heimdal/lib/asn1/lex.c f = 0; f 1591 source4/heimdal/lib/asn1/lex.c int f = 0; f 1603 source4/heimdal/lib/asn1/lex.c if(f) { f 1605 source4/heimdal/lib/asn1/lex.c f = 0; f 1607 source4/heimdal/lib/asn1/lex.c f = 1; f 1610 source4/heimdal/lib/asn1/lex.c if(f == 1) { f 107 source4/heimdal/lib/asn1/symbol.c int f = 0; f 108 source4/heimdal/lib/asn1/symbol.c hashtabforeach(htab, checkfunc, &f); f 109 source4/heimdal/lib/asn1/symbol.c return f; f 79 source4/heimdal/lib/com_err/error.c struct foobar *f; f 83 source4/heimdal/lib/com_err/error.c f = malloc(sizeof(*f)); f 84 source4/heimdal/lib/com_err/error.c if (f == NULL) f 86 source4/heimdal/lib/com_err/error.c et = &f->etl; f 87 source4/heimdal/lib/com_err/error.c et->table = &f->et; f 140 source4/heimdal/lib/hcrypto/dh.c #define free_if(f) if (f) { BN_free(f); } f 70 source4/heimdal/lib/hcrypto/dsa.c #define free_if(f) if (f) { BN_free(f); } f 87 source4/heimdal/lib/hcrypto/rand-timer.c (*fake_signal(int sig, RETSIGTYPE (*f)(int)))(int) f 90 source4/heimdal/lib/hcrypto/rand-timer.c sa.sa_handler = f; f 524 source4/heimdal/lib/hcrypto/rsa-imath.c #define CHECK(f, v) if ((f) != (v)) { goto out; } f 140 source4/heimdal/lib/hcrypto/rsa.c #define free_if(f) if (f) { BN_free(f); } f 301 source4/heimdal/lib/hcrypto/rsa.c name(int flen,const unsigned char* f, unsigned char* t, RSA* r, int p){\ f 305 source4/heimdal/lib/hcrypto/rsa.c RSAFUNC(RSA_public_encrypt, (r)->meth->rsa_pub_enc(flen, f, t, r, p)) f 306 source4/heimdal/lib/hcrypto/rsa.c RSAFUNC(RSA_public_decrypt, (r)->meth->rsa_pub_dec(flen, f, t, r, p)) f 307 source4/heimdal/lib/hcrypto/rsa.c RSAFUNC(RSA_private_encrypt, (r)->meth->rsa_priv_enc(flen, f, t, r, p)) f 308 source4/heimdal/lib/hcrypto/rsa.c RSAFUNC(RSA_private_decrypt, (r)->meth->rsa_priv_dec(flen, f, t, r, p)) f 73 source4/heimdal/lib/hcrypto/sha.c #define DO(t,f,k) \ f 77 source4/heimdal/lib/hcrypto/sha.c temp = cshift(AA, 5) + f(BB,CC,DD) + EE + data[t] + k; \ f 293 source4/heimdal/lib/hdb/mkey.c FILE *f; f 304 source4/heimdal/lib/hdb/mkey.c f = fopen(filename, "r"); f 305 source4/heimdal/lib/hdb/mkey.c if(f == NULL) { f 312 source4/heimdal/lib/hdb/mkey.c if(fread(buf, 1, 2, f) != 2) { f 313 source4/heimdal/lib/hdb/mkey.c fclose(f); f 318 source4/heimdal/lib/hdb/mkey.c fseek(f, 0, SEEK_END); f 319 source4/heimdal/lib/hdb/mkey.c len = ftell(f); f 321 source4/heimdal/lib/hdb/mkey.c if(fclose(f) != 0) f 2969 source4/heimdal/lib/hx509/cert.c FILE *f; f 2972 source4/heimdal/lib/hx509/cert.c f = fopen(context->querystat, "a"); f 2973 source4/heimdal/lib/hx509/cert.c if (f == NULL) f 2975 source4/heimdal/lib/hx509/cert.c rk_cloexec_file(f); f 2976 source4/heimdal/lib/hx509/cert.c fprintf(f, "%d %d\n", type, q->match); f 2977 source4/heimdal/lib/hx509/cert.c fclose(f); f 3033 source4/heimdal/lib/hx509/cert.c FILE *f; f 3040 source4/heimdal/lib/hx509/cert.c f = fopen(context->querystat, "r"); f 3041 source4/heimdal/lib/hx509/cert.c if (f == NULL) { f 3046 source4/heimdal/lib/hx509/cert.c rk_cloexec_file(f); f 3053 source4/heimdal/lib/hx509/cert.c while (fscanf(f, "%d %d\n", &type, &mask) == 2) { f 3069 source4/heimdal/lib/hx509/cert.c fclose(f); f 70 source4/heimdal/lib/hx509/file.c header(FILE *f, const char *type, const char *str) f 72 source4/heimdal/lib/hx509/file.c fprintf(f, "-----%s %s-----\n", type, str); f 77 source4/heimdal/lib/hx509/file.c hx509_pem_header *headers, FILE *f, f 86 source4/heimdal/lib/hx509/file.c header(f, "BEGIN", type); f 89 source4/heimdal/lib/hx509/file.c fprintf(f, "%s: %s\n%s", f 109 source4/heimdal/lib/hx509/file.c fprintf(f, "%s\n", line); f 114 source4/heimdal/lib/hx509/file.c header(f, "END", type); f 185 source4/heimdal/lib/hx509/file.c FILE *f, f 200 source4/heimdal/lib/hx509/file.c while (fgets(buf, sizeof(buf), f) != NULL) { f 586 source4/heimdal/lib/hx509/keyset.c FILE *f = ctx; f 587 source4/heimdal/lib/hx509/keyset.c fprintf(f, "%s\n", str); f 334 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = NULL; f 347 source4/heimdal/lib/hx509/ks_file.c f = calloc(1, sizeof(*f)); f 348 source4/heimdal/lib/hx509/ks_file.c if (f == NULL) { f 352 source4/heimdal/lib/hx509/ks_file.c f->format = format; f 354 source4/heimdal/lib/hx509/ks_file.c f->fn = strdup(residue); f 355 source4/heimdal/lib/hx509/ks_file.c if (f->fn == NULL) { f 368 source4/heimdal/lib/hx509/ks_file.c 0, lock, &f->certs); f 371 source4/heimdal/lib/hx509/ks_file.c *data = f; f 379 source4/heimdal/lib/hx509/ks_file.c for (p = f->fn; p != NULL; p = pnext) { f 380 source4/heimdal/lib/hx509/ks_file.c FILE *f; f 387 source4/heimdal/lib/hx509/ks_file.c if ((f = fopen(p, "r")) == NULL) { f 394 source4/heimdal/lib/hx509/ks_file.c rk_cloexec_file(f); f 396 source4/heimdal/lib/hx509/ks_file.c ret = hx509_pem_read(context, f, pem_func, &pem_ctx); f 397 source4/heimdal/lib/hx509/ks_file.c fclose(f); f 422 source4/heimdal/lib/hx509/ks_file.c ret = _hx509_collector_collect_certs(context, pem_ctx.c, &f->certs); f 431 source4/heimdal/lib/hx509/ks_file.c _hx509_certs_keys_add(context, f->certs, keys[i]); f 437 source4/heimdal/lib/hx509/ks_file.c *data = f; f 439 source4/heimdal/lib/hx509/ks_file.c if (f->fn) f 440 source4/heimdal/lib/hx509/ks_file.c free(f->fn); f 441 source4/heimdal/lib/hx509/ks_file.c free(f); f 468 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 469 source4/heimdal/lib/hx509/ks_file.c hx509_certs_free(&f->certs); f 470 source4/heimdal/lib/hx509/ks_file.c free(f->fn); f 471 source4/heimdal/lib/hx509/ks_file.c free(f); f 476 source4/heimdal/lib/hx509/ks_file.c FILE *f; f 493 source4/heimdal/lib/hx509/ks_file.c fwrite(data.data, data.length, 1, sc->f); f 497 source4/heimdal/lib/hx509/ks_file.c hx509_pem_write(context, "CERTIFICATE", NULL, sc->f, f 505 source4/heimdal/lib/hx509/ks_file.c hx509_pem_write(context, _hx509_private_pem_name(key), NULL, sc->f, f 519 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 523 source4/heimdal/lib/hx509/ks_file.c sc.f = fopen(f->fn, "w"); f 524 source4/heimdal/lib/hx509/ks_file.c if (sc.f == NULL) { f 529 source4/heimdal/lib/hx509/ks_file.c rk_cloexec_file(sc.f); f 530 source4/heimdal/lib/hx509/ks_file.c sc.format = f->format; f 532 source4/heimdal/lib/hx509/ks_file.c ret = hx509_certs_iter(context, f->certs, store_func, &sc); f 533 source4/heimdal/lib/hx509/ks_file.c fclose(sc.f); f 540 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 541 source4/heimdal/lib/hx509/ks_file.c return hx509_certs_add(context, f->certs, c); f 548 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 549 source4/heimdal/lib/hx509/ks_file.c return hx509_certs_start_seq(context, f->certs, cursor); f 556 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 557 source4/heimdal/lib/hx509/ks_file.c return hx509_certs_next_cert(context, f->certs, iter, cert); f 566 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 567 source4/heimdal/lib/hx509/ks_file.c return hx509_certs_end_seq(context, f->certs, cursor); f 576 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 577 source4/heimdal/lib/hx509/ks_file.c return _hx509_certs_keys_get(context, f->certs, keys); f 586 source4/heimdal/lib/hx509/ks_file.c struct ks_file *f = data; f 587 source4/heimdal/lib/hx509/ks_file.c return _hx509_certs_keys_add(context, f->certs, key); f 72 source4/heimdal/lib/hx509/ks_p11.c #define P11FUNC(module,f,args) (*(module)->funcs->C_##f)args f 83 source4/heimdal/lib/hx509/name.c quote_string(const char *f, size_t len, size_t *rlen) f 86 source4/heimdal/lib/hx509/name.c const char *from = f; f 100 source4/heimdal/lib/hx509/print.c FILE *f = ctx; f 101 source4/heimdal/lib/hx509/print.c if (f == NULL) f 102 source4/heimdal/lib/hx509/print.c f = stdout; f 103 source4/heimdal/lib/hx509/print.c vfprintf(f, fmt, va); f 308 source4/heimdal/lib/hx509/req.c _hx509_request_print(hx509_context context, hx509_request req, FILE *f) f 319 source4/heimdal/lib/hx509/req.c fprintf(f, "name: %s\n", subject); f 42 source4/heimdal/lib/krb5/config_file.c FILE *f; f 50 source4/heimdal/lib/krb5/config_file.c if(ptr->f != NULL) f 51 source4/heimdal/lib/krb5/config_file.c return fgets(str, len, ptr->f); f 74 source4/heimdal/lib/krb5/config_file.c static krb5_error_code parse_binding(struct fileptr *f, unsigned *lineno, char *p, f 78 source4/heimdal/lib/krb5/config_file.c static krb5_error_code parse_list(struct fileptr *f, unsigned *lineno, f 149 source4/heimdal/lib/krb5/config_file.c parse_list(struct fileptr *f, unsigned *lineno, krb5_config_binding **parent, f 157 source4/heimdal/lib/krb5/config_file.c while(config_fgets(buf, sizeof(buf), f) != NULL) { f 173 source4/heimdal/lib/krb5/config_file.c ret = parse_binding (f, lineno, p, &b, parent, error_message); f 187 source4/heimdal/lib/krb5/config_file.c parse_binding(struct fileptr *f, unsigned *lineno, char *p, f 219 source4/heimdal/lib/krb5/config_file.c ret = parse_list (f, lineno, &tmp->u.list, error_message); f 243 source4/heimdal/lib/krb5/config_file.c krb5_config_parse_debug (struct fileptr *f, f 253 source4/heimdal/lib/krb5/config_file.c while (config_fgets(buf, sizeof(buf), f) != NULL) { f 276 source4/heimdal/lib/krb5/config_file.c ret = parse_binding(f, lineno, p, &b, &s->u.list, error_message); f 292 source4/heimdal/lib/krb5/config_file.c struct fileptr f; f 293 source4/heimdal/lib/krb5/config_file.c f.f = NULL; f 294 source4/heimdal/lib/krb5/config_file.c f.s = string; f 296 source4/heimdal/lib/krb5/config_file.c ret = krb5_config_parse_debug (&f, res, &lineno, &str); f 313 source4/heimdal/lib/krb5/config_file.c struct fileptr f; f 314 source4/heimdal/lib/krb5/config_file.c f.f = fopen(fname, "r"); f 315 source4/heimdal/lib/krb5/config_file.c f.s = NULL; f 316 source4/heimdal/lib/krb5/config_file.c if(f.f == NULL) { f 323 source4/heimdal/lib/krb5/config_file.c ret = krb5_config_parse_debug (&f, res, &lineno, &str); f 324 source4/heimdal/lib/krb5/config_file.c fclose(f.f); f 40 source4/heimdal/lib/krb5/convert_creds.c check_ticket_flags(TicketFlags f) f 182 source4/heimdal/lib/krb5/fcache.c krb5_fcache *f; f 183 source4/heimdal/lib/krb5/fcache.c f = malloc(sizeof(*f)); f 184 source4/heimdal/lib/krb5/fcache.c if(f == NULL) { f 189 source4/heimdal/lib/krb5/fcache.c f->filename = strdup(res); f 190 source4/heimdal/lib/krb5/fcache.c if(f->filename == NULL){ f 191 source4/heimdal/lib/krb5/fcache.c free(f); f 196 source4/heimdal/lib/krb5/fcache.c f->version = 0; f 197 source4/heimdal/lib/krb5/fcache.c (*id)->data.data = f; f 198 source4/heimdal/lib/krb5/fcache.c (*id)->data.length = sizeof(*f); f 302 source4/heimdal/lib/krb5/fcache.c krb5_fcache *f; f 306 source4/heimdal/lib/krb5/fcache.c f = malloc(sizeof(*f)); f 307 source4/heimdal/lib/krb5/fcache.c if(f == NULL) { f 314 source4/heimdal/lib/krb5/fcache.c free(f); f 323 source4/heimdal/lib/krb5/fcache.c free(f); f 328 source4/heimdal/lib/krb5/fcache.c f->filename = file; f 329 source4/heimdal/lib/krb5/fcache.c f->version = 0; f 330 source4/heimdal/lib/krb5/fcache.c (*id)->data.data = f; f 331 source4/heimdal/lib/krb5/fcache.c (*id)->data.length = sizeof(*f); f 394 source4/heimdal/lib/krb5/fcache.c krb5_fcache *f = FCACHE(id); f 397 source4/heimdal/lib/krb5/fcache.c char *filename = f->filename; f 409 source4/heimdal/lib/krb5/fcache.c f->version = context->fcache_vno; f 411 source4/heimdal/lib/krb5/fcache.c f->version = KRB5_FCC_FVNO_4; f 413 source4/heimdal/lib/krb5/fcache.c ret |= krb5_store_int8(sp, f->version); f 414 source4/heimdal/lib/krb5/fcache.c storage_set_flags(context, sp, f->version); f 415 source4/heimdal/lib/krb5/fcache.c if(f->version == KRB5_FCC_FVNO_4 && ret == 0) { f 1083 source4/heimdal/lib/krb5/get_cred.c krb5_kdc_flags f; f 1084 source4/heimdal/lib/krb5/get_cred.c f.i = flags; f 1085 source4/heimdal/lib/krb5/get_cred.c return get_cred_kdc_any(context, f, ccache, f 70 source4/heimdal/lib/krb5/keytab_keyfile.c FILE *f; f 74 source4/heimdal/lib/krb5/keytab_keyfile.c f = fopen (AFS_SERVERTHISCELL, "r"); f 75 source4/heimdal/lib/krb5/keytab_keyfile.c if (f == NULL) { f 83 source4/heimdal/lib/krb5/keytab_keyfile.c if (fgets (buf, sizeof(buf), f) == NULL) { f 84 source4/heimdal/lib/krb5/keytab_keyfile.c fclose (f); f 91 source4/heimdal/lib/krb5/keytab_keyfile.c fclose(f); f 100 source4/heimdal/lib/krb5/keytab_keyfile.c f = fopen (AFS_SERVERMAGICKRBCONF, "r"); f 101 source4/heimdal/lib/krb5/keytab_keyfile.c if (f != NULL) { f 102 source4/heimdal/lib/krb5/keytab_keyfile.c if (fgets (buf, sizeof(buf), f) == NULL) { f 105 source4/heimdal/lib/krb5/keytab_keyfile.c fclose (f); f 112 source4/heimdal/lib/krb5/keytab_keyfile.c fclose(f); f 47 source4/heimdal/lib/krb5/log.c log_realloc(krb5_log_facility *f) f 50 source4/heimdal/lib/krb5/log.c fp = realloc(f->val, (f->len + 1) * sizeof(*f->val)); f 53 source4/heimdal/lib/krb5/log.c f->len++; f 54 source4/heimdal/lib/krb5/log.c f->val = fp; f 55 source4/heimdal/lib/krb5/log.c fp += f->len - 1; f 122 source4/heimdal/lib/krb5/log.c krb5_log_facility *f = calloc(1, sizeof(*f)); f 123 source4/heimdal/lib/krb5/log.c if(f == NULL) { f 128 source4/heimdal/lib/krb5/log.c f->program = strdup(program); f 129 source4/heimdal/lib/krb5/log.c if(f->program == NULL){ f 130 source4/heimdal/lib/krb5/log.c free(f); f 135 source4/heimdal/lib/krb5/log.c *fac = f; f 222 source4/heimdal/lib/krb5/log.c struct file_data *f = data; f 223 source4/heimdal/lib/krb5/log.c if(f->keep_open == 0) f 224 source4/heimdal/lib/krb5/log.c f->fd = fopen(f->filename, f->mode); f 225 source4/heimdal/lib/krb5/log.c if(f->fd == NULL) f 227 source4/heimdal/lib/krb5/log.c fprintf(f->fd, "%s %s\n", timestr, msg); f 228 source4/heimdal/lib/krb5/log.c if(f->keep_open == 0) { f 229 source4/heimdal/lib/krb5/log.c fclose(f->fd); f 230 source4/heimdal/lib/krb5/log.c f->fd = NULL; f 237 source4/heimdal/lib/krb5/log.c struct file_data *f = data; f 238 source4/heimdal/lib/krb5/log.c if(f->keep_open && f->filename) f 239 source4/heimdal/lib/krb5/log.c fclose(f->fd); f 245 source4/heimdal/lib/krb5/log.c const char *filename, const char *mode, FILE *f, int keep_open) f 255 source4/heimdal/lib/krb5/log.c fd->fd = f; f 264 source4/heimdal/lib/krb5/log.c krb5_addlog_dest(krb5_context context, krb5_log_facility *f, const char *orig) f 292 source4/heimdal/lib/krb5/log.c ret = open_file(context, f, min, max, NULL, NULL, stderr, 1); f 294 source4/heimdal/lib/krb5/log.c ret = open_file(context, f, min, max, "/dev/console", "w", NULL, 0); f 329 source4/heimdal/lib/krb5/log.c ret = open_file(context, f, min, max, fn, "a", file, keep_open); f 331 source4/heimdal/lib/krb5/log.c ret = open_file(context, f, min, max, strdup(p + 7), "w", NULL, 0); f 344 source4/heimdal/lib/krb5/log.c ret = open_syslog(context, f, min, max, severity, facility); f 70 source4/heimdal/lib/krb5/pac.c #define CHECK(r,f,l) \ f 72 source4/heimdal/lib/krb5/pac.c if (((r) = f ) != 0) { \ f 111 source4/heimdal/lib/krb5/pkinit.c integer_to_BN(krb5_context context, const char *field, const heim_integer *f) f 115 source4/heimdal/lib/krb5/pkinit.c bn = BN_bin2bn((const unsigned char *)f->data, f->length, NULL); f 121 source4/heimdal/lib/krb5/pkinit.c BN_set_negative(bn, f->negative); f 1687 source4/heimdal/lib/krb5/pkinit.c char *s, *f; f 1690 source4/heimdal/lib/krb5/pkinit.c vasprintf(&f, fmt, va); f 1692 source4/heimdal/lib/krb5/pkinit.c if (f == NULL) { f 1700 source4/heimdal/lib/krb5/pkinit.c free(f); f 1703 source4/heimdal/lib/krb5/pkinit.c krb5_set_error_message(context, hxret, "%s: %s", f, s); f 1705 source4/heimdal/lib/krb5/pkinit.c free(f); f 1887 source4/heimdal/lib/krb5/pkinit.c FILE *f; f 1919 source4/heimdal/lib/krb5/pkinit.c f = fopen(file, "r"); f 1920 source4/heimdal/lib/krb5/pkinit.c if (f == NULL) { f 1924 source4/heimdal/lib/krb5/pkinit.c rk_cloexec_file(f); f 1926 source4/heimdal/lib/krb5/pkinit.c while(fgets(buf, sizeof(buf), f) != NULL) { f 133 source4/heimdal/lib/krb5/replay.c FILE *f = fopen(id->name, "w"); f 137 source4/heimdal/lib/krb5/replay.c if(f == NULL) { f 144 source4/heimdal/lib/krb5/replay.c fwrite(&tmp, 1, sizeof(tmp), f); f 145 source4/heimdal/lib/krb5/replay.c fclose(f); f 203 source4/heimdal/lib/krb5/replay.c FILE *f; f 208 source4/heimdal/lib/krb5/replay.c f = fopen(id->name, "r"); f 209 source4/heimdal/lib/krb5/replay.c if(f == NULL) { f 215 source4/heimdal/lib/krb5/replay.c rk_cloexec_file(f); f 216 source4/heimdal/lib/krb5/replay.c fread(&tmp, sizeof(ent), 1, f); f 218 source4/heimdal/lib/krb5/replay.c while(fread(&tmp, sizeof(ent), 1, f)){ f 222 source4/heimdal/lib/krb5/replay.c fclose(f); f 227 source4/heimdal/lib/krb5/replay.c if(ferror(f)){ f 229 source4/heimdal/lib/krb5/replay.c fclose(f); f 234 source4/heimdal/lib/krb5/replay.c fclose(f); f 235 source4/heimdal/lib/krb5/replay.c f = fopen(id->name, "a"); f 236 source4/heimdal/lib/krb5/replay.c if(f == NULL) { f 242 source4/heimdal/lib/krb5/replay.c fwrite(&ent, 1, sizeof(ent), f); f 243 source4/heimdal/lib/krb5/replay.c fclose(f); f 259 source4/heimdal/lib/krb5/replay.c FILE *f = fopen(id->name, "r"); f 262 source4/heimdal/lib/krb5/replay.c r = fread(&ent, sizeof(ent), 1, f); f 263 source4/heimdal/lib/krb5/replay.c fclose(f); f 109 source4/heimdal/lib/ntlm/ntlm.c #define CHECK(f, e) \ f 110 source4/heimdal/lib/ntlm/ntlm.c do { ret = f ; if (ret != (e)) { ret = EINVAL; goto out; } } while(0) f 57 source4/heimdal/lib/roken/cloexec.c rk_cloexec_file(FILE *f) f 59 source4/heimdal/lib/roken/cloexec.c rk_cloexec(fileno(f)); f 198 source4/heimdal/lib/roken/getarg.c check_column(FILE *f, int col, int len, int columns) f 201 source4/heimdal/lib/roken/getarg.c fprintf(f, "\n"); f 202 source4/heimdal/lib/roken/getarg.c col = fprintf(f, " "); f 75 source4/heimdal/lib/roken/parse_time.c print_time_table (FILE *f) f 77 source4/heimdal/lib/roken/parse_time.c print_units_table (time_units, f); f 57 source4/heimdal/lib/roken/parse_time.h print_time_table (FILE *f); f 270 source4/heimdal/lib/roken/parse_units.c print_units_table (const struct units *units, FILE *f) f 294 source4/heimdal/lib/roken/parse_units.c fprintf (f, "1 %*s = %s\n", max_sz, u->name, buf); f 296 source4/heimdal/lib/roken/parse_units.c fprintf (f, "1 %s\n", u->name); f 324 source4/heimdal/lib/roken/parse_units.c print_flags_table (const struct units *units, FILE *f) f 329 source4/heimdal/lib/roken/parse_units.c fprintf(f, "%s%s", u->name, (u+1)->name ? ", " : "\n"); f 60 source4/heimdal/lib/roken/parse_units.h print_units_table (const struct units *units, FILE *f); f 77 source4/heimdal/lib/roken/parse_units.h print_flags_table (const struct units *units, FILE *f); f 365 source4/heimdal/lib/roken/rtbl.c rtbl_format (rtbl_t table, FILE * f) f 376 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", table->column_separator); f 377 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", get_column_prefix (table, c)); f 380 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%-*s", 0, c->header); f 382 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%-*s", (int)c->width, c->header); f 383 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", get_column_suffix (table, c)); f 385 source4/heimdal/lib/roken/rtbl.c fprintf (f, "\n"); f 408 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", table->column_separator); f 419 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", get_column_prefix (table, c)); f 421 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%*s", w, ""); f 423 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%*s", w, c->rows[j].data); f 424 source4/heimdal/lib/roken/rtbl.c fprintf (f, "%s", get_column_suffix (table, c)); f 426 source4/heimdal/lib/roken/rtbl.c fprintf (f, "\n"); f 57 source4/lib/com/tables.c get_class_object_function f; f 69 source4/lib/com/tables.c f = dlsym(mod, "get_class_object"); f 71 source4/lib/com/tables.c if (!f) { f 75 source4/lib/com/tables.c return f(clsid); f 50 source4/lib/ldb/common/ldb_ldif.c int f; f 58 source4/lib/ldb/common/ldb_ldif.c f = open(fname, O_RDONLY); f 59 source4/lib/ldb/common/ldb_ldif.c if (f == -1) { f 63 source4/lib/ldb/common/ldb_ldif.c if (fstat(f, &statbuf) != 0) { f 84 source4/lib/ldb/common/ldb_ldif.c bytes = read(f, buf, size); f 99 source4/lib/ldb/common/ldb_ldif.c close(f); f 688 source4/lib/ldb/common/ldb_ldif.c FILE *f; f 695 source4/lib/ldb/common/ldb_ldif.c return fgetc(state->f); f 698 source4/lib/ldb/common/ldb_ldif.c struct ldb_ldif *ldb_ldif_read_file(struct ldb_context *ldb, FILE *f) f 701 source4/lib/ldb/common/ldb_ldif.c state.f = f; f 738 source4/lib/ldb/common/ldb_ldif.c FILE *f; f 751 source4/lib/ldb/common/ldb_ldif.c ret = vfprintf(state->f, fmt, ap); f 756 source4/lib/ldb/common/ldb_ldif.c int ldb_ldif_write_file(struct ldb_context *ldb, FILE *f, const struct ldb_ldif *ldif) f 759 source4/lib/ldb/common/ldb_ldif.c state.f = f; f 870 source4/lib/ldb/common/ldb_msg.c void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f) f 876 source4/lib/ldb/common/ldb_msg.c fprintf(f, "# record %d\n", i+1); f 879 source4/lib/ldb/common/ldb_msg.c ldb_ldif_write_file(ldb, f, &ldif); f 1390 source4/lib/ldb/include/ldb.h struct ldb_ldif *ldb_ldif_read_file(struct ldb_context *ldb, FILE *f); f 1421 source4/lib/ldb/include/ldb.h int ldb_ldif_write_file(struct ldb_context *ldb, FILE *f, const struct ldb_ldif *msg); f 153 source4/lib/ldb/include/ldb_private.h void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f); f 55 source4/lib/ldb/tools/ldbadd.c static int process_file(struct ldb_context *ldb, FILE *f, int *count) f 60 source4/lib/ldb/tools/ldbadd.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 105 source4/lib/ldb/tools/ldbadd.c FILE *f; f 106 source4/lib/ldb/tools/ldbadd.c f = fopen(fname, "r"); f 107 source4/lib/ldb/tools/ldbadd.c if (!f) { f 111 source4/lib/ldb/tools/ldbadd.c ret = process_file(ldb, f, &count); f 112 source4/lib/ldb/tools/ldbadd.c fclose(f); f 43 source4/lib/ldb/tools/ldbedit.c FILE *f, f 50 source4/lib/ldb/tools/ldbedit.c ldb_ldif_write_file(ldb, f, &ldif); f 172 source4/lib/ldb/tools/ldbedit.c FILE *f, struct ldb_message **msgs, int count) f 176 source4/lib/ldb/tools/ldbedit.c fprintf(f, "# editing %d records\n", count); f 180 source4/lib/ldb/tools/ldbedit.c fprintf(f, "# record %d\n", i+1); f 185 source4/lib/ldb/tools/ldbedit.c ldb_ldif_write_file(ldb, f, &ldif); f 199 source4/lib/ldb/tools/ldbedit.c FILE *f; f 215 source4/lib/ldb/tools/ldbedit.c f = fdopen(fd, "r+"); f 217 source4/lib/ldb/tools/ldbedit.c if (!f) { f 224 source4/lib/ldb/tools/ldbedit.c if (save_ldif(ldb, f, msgs1, count1) != 0) { f 228 source4/lib/ldb/tools/ldbedit.c fclose(f); f 249 source4/lib/ldb/tools/ldbedit.c f = fopen(file_template, "r"); f 250 source4/lib/ldb/tools/ldbedit.c if (!f) { f 255 source4/lib/ldb/tools/ldbedit.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 264 source4/lib/ldb/tools/ldbedit.c fclose(f); f 54 source4/lib/ldb/tools/ldbmodify.c static int process_file(struct ldb_context *ldb, FILE *f, int *count) f 59 source4/lib/ldb/tools/ldbmodify.c while ((ldif = ldb_ldif_read_file(ldb, f))) { f 101 source4/lib/ldb/tools/ldbmodify.c FILE *f; f 102 source4/lib/ldb/tools/ldbmodify.c f = fopen(fname, "r"); f 103 source4/lib/ldb/tools/ldbmodify.c if (!f) { f 107 source4/lib/ldb/tools/ldbmodify.c ret = process_file(ldb, f, &count); f 101 source4/libcli/smb2/find.c struct smb2_find f; f 130 source4/libcli/smb2/find.c status = smb2_find_recv(req, mem_ctx, &f); f 133 source4/libcli/smb2/find.c b = f.out.blob; f 142 source4/libcli/smb2/find.c data_blob_free(&f.out.blob); f 153 source4/libcli/smb2/find.c data_blob_free(&f.out.blob); f 163 source4/libcli/smb2/find.c data_blob_free(&f.out.blob); f 173 source4/libcli/smb2/find.c struct smb2_find *f, f 178 source4/libcli/smb2/find.c req = smb2_find_send(tree, f); f 179 source4/libcli/smb2/find.c return smb2_find_level_recv(req, mem_ctx, f->in.level, count, io); f 114 source4/libcli/smb2/util.c struct smb2_find f; f 157 source4/libcli/smb2/util.c ZERO_STRUCT(f); f 158 source4/libcli/smb2/util.c f.in.file.handle = create_parm.out.file.handle; f 159 source4/libcli/smb2/util.c f.in.max_response_size = 0x10000; f 160 source4/libcli/smb2/util.c f.in.level = SMB2_FIND_NAME_INFO; f 161 source4/libcli/smb2/util.c f.in.pattern = "*"; f 163 source4/libcli/smb2/util.c status = smb2_find_level(tree, tmp_ctx, &f, &count, &list); f 213 source4/libnet/libnet_rpc.c struct libnet_LookupDCs f; f 259 source4/libnet/libnet_rpc.c s->f.in.name_type = NBT_NAME_PDC; f 263 source4/libnet/libnet_rpc.c s->f.in.name_type = NBT_NAME_LOGON; f 270 source4/libnet/libnet_rpc.c s->f.in.domain_name = r->in.name; f 271 source4/libnet/libnet_rpc.c s->f.out.num_dcs = 0; f 272 source4/libnet/libnet_rpc.c s->f.out.dcs = NULL; f 275 source4/libnet/libnet_rpc.c lookup_dc_req = libnet_LookupDCs_send(ctx, c, &s->f); f 299 source4/libnet/libnet_rpc.c c->status = libnet_LookupDCs_recv(ctx, c, &s->f); f 303 source4/libnet/libnet_rpc.c s->connect_name = s->f.out.dcs[0].name; f 308 source4/libnet/libnet_rpc.c data.domain_name = s->f.in.domain_name; f 309 source4/libnet/libnet_rpc.c data.hostname = s->f.out.dcs[0].name; f 310 source4/libnet/libnet_rpc.c data.address = s->f.out.dcs[0].address; f 324 source4/libnet/libnet_rpc.c s->r2.in.address = talloc_steal(s, s->f.out.dcs[0].address); f 62 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 78 source4/ntvfs/cifs/vfs_cifs.c #define SETUP_FILE_HERE(f) do { \ f 79 source4/ntvfs/cifs/vfs_cifs.c f = ntvfs_handle_get_backend_data(io->generic.in.file.ntvfs, ntvfs); \ f 80 source4/ntvfs/cifs/vfs_cifs.c if (!f) return NT_STATUS_INVALID_HANDLE; \ f 81 source4/ntvfs/cifs/vfs_cifs.c io->generic.in.file.fnum = f->fnum; \ f 85 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; \ f 86 source4/ntvfs/cifs/vfs_cifs.c SETUP_FILE_HERE(f); \ f 116 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 118 source4/ntvfs/cifs/vfs_cifs.c for (f=p->files; f; f=f->next) { f 119 source4/ntvfs/cifs/vfs_cifs.c if (f->fnum != fnum) continue; f 120 source4/ntvfs/cifs/vfs_cifs.c h = f->h; f 309 source4/ntvfs/cifs/vfs_cifs.c async->f = file; \ f 496 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f = async->f; f 502 source4/ntvfs/cifs/vfs_cifs.c f->fnum = file->fnum; f 505 source4/ntvfs/cifs/vfs_cifs.c req->async_states->status = ntvfs_handle_set_backend_data(f->h, cvfs->ntvfs, f); f 507 source4/ntvfs/cifs/vfs_cifs.c file->ntvfs = f->h; f 508 source4/ntvfs/cifs/vfs_cifs.c DLIST_ADD(cvfs->files, f); f 522 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 535 source4/ntvfs/cifs/vfs_cifs.c f = talloc_zero(h, struct cvfs_file); f 536 source4/ntvfs/cifs/vfs_cifs.c NT_STATUS_HAVE_NO_MEMORY(f); f 537 source4/ntvfs/cifs/vfs_cifs.c f->h = h; f 546 source4/ntvfs/cifs/vfs_cifs.c f->fnum = file->fnum; f 548 source4/ntvfs/cifs/vfs_cifs.c status = ntvfs_handle_set_backend_data(f->h, p->ntvfs, f); f 550 source4/ntvfs/cifs/vfs_cifs.c file->ntvfs = f->h; f 551 source4/ntvfs/cifs/vfs_cifs.c DLIST_ADD(p->files, f); f 558 source4/ntvfs/cifs/vfs_cifs.c ASYNC_RECV_TAIL_F(io, async_open, f); f 612 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 613 source4/ntvfs/cifs/vfs_cifs.c f = ntvfs_handle_get_backend_data(ren->nttrans.in.file.ntvfs, ntvfs); f 614 source4/ntvfs/cifs/vfs_cifs.c if (!f) return NT_STATUS_INVALID_HANDLE; f 615 source4/ntvfs/cifs/vfs_cifs.c ren->nttrans.in.file.fnum = f->fnum; f 785 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 803 source4/ntvfs/cifs/vfs_cifs.c SETUP_FILE_HERE(f); f 808 source4/ntvfs/cifs/vfs_cifs.c DLIST_REMOVE(p->files, f); f 1072 source4/ntvfs/cifs/vfs_cifs.c struct cvfs_file *f; f 1080 source4/ntvfs/cifs/vfs_cifs.c f = ntvfs_handle_get_backend_data(io->nttrans.in.file.ntvfs, ntvfs); f 1081 source4/ntvfs/cifs/vfs_cifs.c if (!f) return NT_STATUS_INVALID_HANDLE; f 1082 source4/ntvfs/cifs/vfs_cifs.c io->nttrans.in.file.fnum = f->fnum; f 97 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 103 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = talloc_get_type(p, struct cifspsx_file); f 104 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) return NULL; f 106 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c return f; f 282 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 289 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, info->generic.in.file.ntvfs); f 290 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 294 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (fstat(f->fd, &st) == -1) { f 298 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c return cifspsx_map_fileinfo(ntvfs, req,info, &st, f->name); f 312 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 391 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = talloc(handle, struct cifspsx_file); f 392 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c NT_STATUS_HAVE_NO_MEMORY(f); f 393 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f->fd = fd; f 394 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f->name = talloc_strdup(f, unix_path); f 395 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c NT_STATUS_HAVE_NO_MEMORY(f->name); f 397 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c DLIST_ADD(p->open_files, f); f 399 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c status = ntvfs_handle_set_backend_data(handle, ntvfs, f); f 499 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 506 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, rd->readx.in.file.ntvfs); f 507 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 511 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c ret = pread(f->fd, f 533 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 542 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, wr->writex.in.file.ntvfs); f 543 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 547 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c ret = pwrite(f->fd, f 579 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 585 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, io->generic.in.file.ntvfs); f 586 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 589 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c fsync(f->fd); f 593 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c for (f=p->open_files;f;f=f->next) { f 594 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c fsync(f->fd); f 610 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 617 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, io->close.in.file.ntvfs); f 618 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 622 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (close(f->fd) == -1) { f 626 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c DLIST_REMOVE(p->open_files, f); f 627 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c talloc_free(f->name); f 628 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c talloc_free(f); f 698 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c struct cifspsx_file *f; f 703 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c f = find_fd(p, info->generic.in.file.ntvfs); f 704 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (!f) { f 711 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (ftruncate(f->fd, f 730 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c if (cifspsx_file_utime(f->fd, &unix_times) != 0) { f 30 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f; f 37 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f; f 49 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f = state->f; f 54 source4/ntvfs/posix/pvfs_aio.c state->req->async_states->status = pvfs_map_errno(f->pvfs, -ret); f 59 source4/ntvfs/posix/pvfs_aio.c f->handle->position = f->handle->seek_offset = rd->readx.in.offset + ret; f 76 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f, uint32_t maxcnt) f 84 source4/ntvfs/posix/pvfs_aio.c io_prep_pread(&iocb, f->handle->fd, rd->readx.out.data, f 96 source4/ntvfs/posix/pvfs_aio.c state->f = f; f 114 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f = state->f; f 119 source4/ntvfs/posix/pvfs_aio.c state->req->async_states->status = pvfs_map_errno(f->pvfs, -ret); f 124 source4/ntvfs/posix/pvfs_aio.c f->handle->seek_offset = wr->writex.in.offset + ret; f 140 source4/ntvfs/posix/pvfs_aio.c struct pvfs_file *f) f 148 source4/ntvfs/posix/pvfs_aio.c io_prep_pwrite(&iocb, f->handle->fd, discard_const(wr->writex.in.data), f 160 source4/ntvfs/posix/pvfs_aio.c state->f = f; f 28 source4/ntvfs/posix/pvfs_flush.c static void pvfs_flush_file(struct pvfs_state *pvfs, struct pvfs_file *f) f 30 source4/ntvfs/posix/pvfs_flush.c if (f->handle->fd == -1) { f 34 source4/ntvfs/posix/pvfs_flush.c fsync(f->handle->fd); f 47 source4/ntvfs/posix/pvfs_flush.c struct pvfs_file *f; f 53 source4/ntvfs/posix/pvfs_flush.c f = pvfs_find_fd(pvfs, req, io->generic.in.file.ntvfs); f 54 source4/ntvfs/posix/pvfs_flush.c if (!f) { f 57 source4/ntvfs/posix/pvfs_flush.c pvfs_flush_file(pvfs, f); f 70 source4/ntvfs/posix/pvfs_flush.c for (f=pvfs->files.list;f;f=f->next) { f 71 source4/ntvfs/posix/pvfs_flush.c if (f->ntvfs->smbpid != req->smbpid) continue; f 73 source4/ntvfs/posix/pvfs_flush.c pvfs_flush_file(pvfs, f); f 43 source4/ntvfs/posix/pvfs_ioctl.c struct pvfs_file *f; f 45 source4/ntvfs/posix/pvfs_ioctl.c f = pvfs_find_fd(pvfs, req, io->ntioctl.in.file.ntvfs); f 46 source4/ntvfs/posix/pvfs_ioctl.c if (!f) { f 33 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f, f 43 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 53 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f; f 66 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f, f 74 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 78 source4/ntvfs/posix/pvfs_lock.c f->lock_count--; f 96 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f = pending->f; f 115 source4/ntvfs/posix/pvfs_lock.c DLIST_REMOVE(f->pending_list, pending); f 127 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 134 source4/ntvfs/posix/pvfs_lock.c f->lock_count++; f 143 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, pending); f 153 source4/ntvfs/posix/pvfs_lock.c pvfs_lock_async_failed(pvfs, req, f, locks, pending->pending_lock, status); f 157 source4/ntvfs/posix/pvfs_lock.c DLIST_ADD(f->pending_list, pending); f 177 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 191 source4/ntvfs/posix/pvfs_lock.c pvfs_lock_async_failed(pvfs, req, f, locks, i, NT_STATUS_NO_MEMORY); f 195 source4/ntvfs/posix/pvfs_lock.c DLIST_ADD(f->pending_list, pending); f 199 source4/ntvfs/posix/pvfs_lock.c pvfs_lock_async_failed(pvfs, req, f, locks, i, status); f 204 source4/ntvfs/posix/pvfs_lock.c f->lock_count++; f 217 source4/ntvfs/posix/pvfs_lock.c void pvfs_lock_close(struct pvfs_state *pvfs, struct pvfs_file *f) f 221 source4/ntvfs/posix/pvfs_lock.c if (f->lock_count || f->pending_list) { f 223 source4/ntvfs/posix/pvfs_lock.c (double)f->lock_count)); f 224 source4/ntvfs/posix/pvfs_lock.c brl_close(f->pvfs->brl_context, f->brl_handle); f 225 source4/ntvfs/posix/pvfs_lock.c f->lock_count = 0; f 230 source4/ntvfs/posix/pvfs_lock.c for (p=f->pending_list;p;p=next) { f 232 source4/ntvfs/posix/pvfs_lock.c DLIST_REMOVE(f->pending_list, p); f 243 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f) f 247 source4/ntvfs/posix/pvfs_lock.c for (p=f->pending_list;p;p=p->next) { f 283 source4/ntvfs/posix/pvfs_lock.c struct pvfs_file *f; f 298 source4/ntvfs/posix/pvfs_lock.c f = pvfs_find_fd(pvfs, req, lck->lockx.in.file.ntvfs); f 299 source4/ntvfs/posix/pvfs_lock.c if (!f) { f 303 source4/ntvfs/posix/pvfs_lock.c if (f->handle->fd == -1) { f 307 source4/ntvfs/posix/pvfs_lock.c status = pvfs_break_level2_oplocks(f); f 312 source4/ntvfs/posix/pvfs_lock.c pending = talloc(f, struct pvfs_pending_lock); f 319 source4/ntvfs/posix/pvfs_lock.c pending->f = f; f 335 source4/ntvfs/posix/pvfs_lock.c return pvfs_lock_cancel(pvfs, req, lck, f); f 350 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 358 source4/ntvfs/posix/pvfs_lock.c f->lock_count--; f 369 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 387 source4/ntvfs/posix/pvfs_lock.c DLIST_ADD(f->pending_list, pending); f 394 source4/ntvfs/posix/pvfs_lock.c f->brl_handle, f 398 source4/ntvfs/posix/pvfs_lock.c f->lock_count--; f 403 source4/ntvfs/posix/pvfs_lock.c f->lock_count++; f 32 source4/ntvfs/posix/pvfs_notify.c struct pvfs_file *f; f 119 source4/ntvfs/posix/pvfs_notify.c notify_remove(n->f->pvfs->notify_context, n); f 120 source4/ntvfs/posix/pvfs_notify.c n->f->notify_buffer = NULL; f 171 source4/ntvfs/posix/pvfs_notify.c static NTSTATUS pvfs_notify_setup(struct pvfs_state *pvfs, struct pvfs_file *f, f 177 source4/ntvfs/posix/pvfs_notify.c f->notify_buffer = talloc_zero(f, struct pvfs_notify_buffer); f 178 source4/ntvfs/posix/pvfs_notify.c NT_STATUS_HAVE_NO_MEMORY(f->notify_buffer); f 180 source4/ntvfs/posix/pvfs_notify.c f->notify_buffer->max_buffer_size = buffer_size; f 181 source4/ntvfs/posix/pvfs_notify.c f->notify_buffer->f = f; f 184 source4/ntvfs/posix/pvfs_notify.c e.path = f->handle->name->full_name; f 192 source4/ntvfs/posix/pvfs_notify.c pvfs_notify_callback, f->notify_buffer); f 195 source4/ntvfs/posix/pvfs_notify.c talloc_set_destructor(f->notify_buffer, pvfs_notify_destructor); f 223 source4/ntvfs/posix/pvfs_notify.c struct pvfs_file *f; f 231 source4/ntvfs/posix/pvfs_notify.c f = pvfs_find_fd(pvfs, req, info->nttrans.in.file.ntvfs); f 232 source4/ntvfs/posix/pvfs_notify.c if (!f) { f 242 source4/ntvfs/posix/pvfs_notify.c if (f->handle->fd != -1) { f 248 source4/ntvfs/posix/pvfs_notify.c if (f->notify_buffer == NULL) { f 249 source4/ntvfs/posix/pvfs_notify.c status = pvfs_notify_setup(pvfs, f, f 258 source4/ntvfs/posix/pvfs_notify.c f->notify_buffer->max_buffer_size = info->nttrans.in.buffer_size; f 260 source4/ntvfs/posix/pvfs_notify.c pending = talloc(f->notify_buffer, struct notify_pending); f 267 source4/ntvfs/posix/pvfs_notify.c DLIST_ADD_END(f->notify_buffer->pending, pending, struct notify_pending *); f 270 source4/ntvfs/posix/pvfs_notify.c if (f->notify_buffer->num_changes == 0) { f 275 source4/ntvfs/posix/pvfs_notify.c f->notify_buffer); f 282 source4/ntvfs/posix/pvfs_notify.c pvfs_notify_send(f->notify_buffer, NT_STATUS_OK, false); f 37 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f; f 42 source4/ntvfs/posix/pvfs_open.c f = talloc_get_type(p, struct pvfs_file); f 43 source4/ntvfs/posix/pvfs_open.c if (!f) return NULL; f 45 source4/ntvfs/posix/pvfs_open.c return f; f 91 source4/ntvfs/posix/pvfs_open.c static int pvfs_dir_fnum_destructor(struct pvfs_file *f) f 93 source4/ntvfs/posix/pvfs_open.c DLIST_REMOVE(f->pvfs->files.list, f); f 94 source4/ntvfs/posix/pvfs_open.c ntvfs_handle_remove_backend_data(f->ntvfs, f->pvfs->ntvfs); f 105 source4/ntvfs/posix/pvfs_open.c int fd, struct pvfs_file *f, f 132 source4/ntvfs/posix/pvfs_open.c set.set_secdesc.in.file.ntvfs = f->ntvfs; f 178 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f; f 241 source4/ntvfs/posix/pvfs_open.c f = talloc(h, struct pvfs_file); f 242 source4/ntvfs/posix/pvfs_open.c if (f == NULL) { f 246 source4/ntvfs/posix/pvfs_open.c f->handle = talloc(f, struct pvfs_file_handle); f 247 source4/ntvfs/posix/pvfs_open.c if (f->handle == NULL) { f 265 source4/ntvfs/posix/pvfs_open.c f->ntvfs = h; f 266 source4/ntvfs/posix/pvfs_open.c f->pvfs = pvfs; f 267 source4/ntvfs/posix/pvfs_open.c f->pending_list = NULL; f 268 source4/ntvfs/posix/pvfs_open.c f->lock_count = 0; f 269 source4/ntvfs/posix/pvfs_open.c f->share_access = io->generic.in.share_access; f 270 source4/ntvfs/posix/pvfs_open.c f->impersonation = io->generic.in.impersonation; f 271 source4/ntvfs/posix/pvfs_open.c f->access_mask = access_mask; f 272 source4/ntvfs/posix/pvfs_open.c f->brl_handle = NULL; f 273 source4/ntvfs/posix/pvfs_open.c f->notify_buffer = NULL; f 274 source4/ntvfs/posix/pvfs_open.c f->search = NULL; f 276 source4/ntvfs/posix/pvfs_open.c f->handle->pvfs = pvfs; f 277 source4/ntvfs/posix/pvfs_open.c f->handle->name = talloc_steal(f->handle, name); f 278 source4/ntvfs/posix/pvfs_open.c f->handle->fd = -1; f 279 source4/ntvfs/posix/pvfs_open.c f->handle->odb_locking_key = data_blob(NULL, 0); f 280 source4/ntvfs/posix/pvfs_open.c f->handle->create_options = io->generic.in.create_options; f 281 source4/ntvfs/posix/pvfs_open.c f->handle->seek_offset = 0; f 282 source4/ntvfs/posix/pvfs_open.c f->handle->position = 0; f 283 source4/ntvfs/posix/pvfs_open.c f->handle->mode = 0; f 284 source4/ntvfs/posix/pvfs_open.c f->handle->oplock = NULL; f 285 source4/ntvfs/posix/pvfs_open.c ZERO_STRUCT(f->handle->write_time); f 286 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = false; f 289 source4/ntvfs/posix/pvfs_open.c pvfs_directory_empty(pvfs, f->handle->name)) { f 297 source4/ntvfs/posix/pvfs_open.c status = pvfs_locking_key(name, f->handle, &f->handle->odb_locking_key); f 303 source4/ntvfs/posix/pvfs_open.c lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key); f 322 source4/ntvfs/posix/pvfs_open.c status = odb_open_file(lck, f->handle, name->full_name, f 331 source4/ntvfs/posix/pvfs_open.c f->handle->have_opendb_entry = true; f 334 source4/ntvfs/posix/pvfs_open.c DLIST_ADD(pvfs->files.list, f); f 337 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f->handle, pvfs_dir_handle_destructor); f 338 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f, pvfs_dir_fnum_destructor); f 355 source4/ntvfs/posix/pvfs_open.c status = pvfs_open_setup_eas_acl(pvfs, req, name, -1, f, io); f 361 source4/ntvfs/posix/pvfs_open.c status = pvfs_locking_key(name, f->handle, &f->handle->odb_locking_key); f 366 source4/ntvfs/posix/pvfs_open.c lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key); f 383 source4/ntvfs/posix/pvfs_open.c status = odb_open_file(lck, f->handle, name->full_name, f 391 source4/ntvfs/posix/pvfs_open.c f->handle->have_opendb_entry = true; f 408 source4/ntvfs/posix/pvfs_open.c status = ntvfs_handle_set_backend_data(h, pvfs->ntvfs, f); f 413 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = true; f 550 source4/ntvfs/posix/pvfs_open.c static int pvfs_fnum_destructor(struct pvfs_file *f) f 552 source4/ntvfs/posix/pvfs_open.c DLIST_REMOVE(f->pvfs->files.list, f); f 553 source4/ntvfs/posix/pvfs_open.c pvfs_lock_close(f->pvfs, f); f 554 source4/ntvfs/posix/pvfs_open.c ntvfs_handle_remove_backend_data(f->ntvfs, f->pvfs->ntvfs); f 605 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f; f 659 source4/ntvfs/posix/pvfs_open.c f = talloc(h, struct pvfs_file); f 660 source4/ntvfs/posix/pvfs_open.c NT_STATUS_HAVE_NO_MEMORY(f); f 662 source4/ntvfs/posix/pvfs_open.c f->handle = talloc(f, struct pvfs_file_handle); f 663 source4/ntvfs/posix/pvfs_open.c NT_STATUS_HAVE_NO_MEMORY(f->handle); f 701 source4/ntvfs/posix/pvfs_open.c status = pvfs_open_setup_eas_acl(pvfs, req, name, fd, f, io); f 714 source4/ntvfs/posix/pvfs_open.c status = pvfs_locking_key(name, f->handle, &f->handle->odb_locking_key); f 719 source4/ntvfs/posix/pvfs_open.c status = pvfs_brl_locking_handle(f, name, h, &f->brl_handle); f 725 source4/ntvfs/posix/pvfs_open.c lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key); f 765 source4/ntvfs/posix/pvfs_open.c f->ntvfs = h; f 766 source4/ntvfs/posix/pvfs_open.c f->pvfs = pvfs; f 767 source4/ntvfs/posix/pvfs_open.c f->pending_list = NULL; f 768 source4/ntvfs/posix/pvfs_open.c f->lock_count = 0; f 769 source4/ntvfs/posix/pvfs_open.c f->share_access = io->generic.in.share_access; f 770 source4/ntvfs/posix/pvfs_open.c f->access_mask = access_mask; f 771 source4/ntvfs/posix/pvfs_open.c f->impersonation = io->generic.in.impersonation; f 772 source4/ntvfs/posix/pvfs_open.c f->notify_buffer = NULL; f 773 source4/ntvfs/posix/pvfs_open.c f->search = NULL; f 775 source4/ntvfs/posix/pvfs_open.c f->handle->pvfs = pvfs; f 776 source4/ntvfs/posix/pvfs_open.c f->handle->name = talloc_steal(f->handle, name); f 777 source4/ntvfs/posix/pvfs_open.c f->handle->fd = fd; f 778 source4/ntvfs/posix/pvfs_open.c f->handle->create_options = io->generic.in.create_options; f 779 source4/ntvfs/posix/pvfs_open.c f->handle->seek_offset = 0; f 780 source4/ntvfs/posix/pvfs_open.c f->handle->position = 0; f 781 source4/ntvfs/posix/pvfs_open.c f->handle->mode = 0; f 782 source4/ntvfs/posix/pvfs_open.c f->handle->oplock = NULL; f 783 source4/ntvfs/posix/pvfs_open.c f->handle->have_opendb_entry = true; f 784 source4/ntvfs/posix/pvfs_open.c ZERO_STRUCT(f->handle->write_time); f 785 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = false; f 787 source4/ntvfs/posix/pvfs_open.c status = odb_open_file(lck, f->handle, name->full_name, f 788 source4/ntvfs/posix/pvfs_open.c &f->handle->fd, name->dos.write_time, f 800 source4/ntvfs/posix/pvfs_open.c DLIST_ADD(pvfs->files.list, f); f 804 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f, pvfs_fnum_destructor); f 805 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f->handle, pvfs_handle_destructor); f 810 source4/ntvfs/posix/pvfs_open.c status = pvfs_setup_oplock(f, oplock_granted); f 817 source4/ntvfs/posix/pvfs_open.c io->generic.out.file.ntvfs = f->ntvfs; f 831 source4/ntvfs/posix/pvfs_open.c status = ntvfs_handle_set_backend_data(h, pvfs->ntvfs, f); f 836 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = true; f 1042 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f, struct odb_lock *lck) f 1061 source4/ntvfs/posix/pvfs_open.c if (f2 != f && f 1087 source4/ntvfs/posix/pvfs_open.c talloc_free(f->handle); f 1088 source4/ntvfs/posix/pvfs_open.c f->handle = talloc_reference(f, f2->handle); f 1092 source4/ntvfs/posix/pvfs_open.c name = f->handle->name; f 1095 source4/ntvfs/posix/pvfs_open.c io->generic.out.file.ntvfs = f->ntvfs; f 1108 source4/ntvfs/posix/pvfs_open.c status = ntvfs_handle_set_backend_data(f->ntvfs, ntvfs, f); f 1122 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f, f 1136 source4/ntvfs/posix/pvfs_open.c status = pvfs_open_deny_dos(ntvfs, req, io, f, lck); f 1143 source4/ntvfs/posix/pvfs_open.c talloc_free(f); f 1185 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f; f 1402 source4/ntvfs/posix/pvfs_open.c f = talloc(h, struct pvfs_file); f 1403 source4/ntvfs/posix/pvfs_open.c if (f == NULL) { f 1407 source4/ntvfs/posix/pvfs_open.c f->handle = talloc(f, struct pvfs_file_handle); f 1408 source4/ntvfs/posix/pvfs_open.c if (f->handle == NULL) { f 1412 source4/ntvfs/posix/pvfs_open.c f->ntvfs = h; f 1413 source4/ntvfs/posix/pvfs_open.c f->pvfs = pvfs; f 1414 source4/ntvfs/posix/pvfs_open.c f->pending_list = NULL; f 1415 source4/ntvfs/posix/pvfs_open.c f->lock_count = 0; f 1416 source4/ntvfs/posix/pvfs_open.c f->share_access = io->generic.in.share_access; f 1417 source4/ntvfs/posix/pvfs_open.c f->access_mask = access_mask; f 1418 source4/ntvfs/posix/pvfs_open.c f->impersonation = io->generic.in.impersonation; f 1419 source4/ntvfs/posix/pvfs_open.c f->notify_buffer = NULL; f 1420 source4/ntvfs/posix/pvfs_open.c f->search = NULL; f 1422 source4/ntvfs/posix/pvfs_open.c f->handle->pvfs = pvfs; f 1423 source4/ntvfs/posix/pvfs_open.c f->handle->fd = -1; f 1424 source4/ntvfs/posix/pvfs_open.c f->handle->name = talloc_steal(f->handle, name); f 1425 source4/ntvfs/posix/pvfs_open.c f->handle->create_options = io->generic.in.create_options; f 1426 source4/ntvfs/posix/pvfs_open.c f->handle->seek_offset = 0; f 1427 source4/ntvfs/posix/pvfs_open.c f->handle->position = 0; f 1428 source4/ntvfs/posix/pvfs_open.c f->handle->mode = 0; f 1429 source4/ntvfs/posix/pvfs_open.c f->handle->oplock = NULL; f 1430 source4/ntvfs/posix/pvfs_open.c f->handle->have_opendb_entry = false; f 1431 source4/ntvfs/posix/pvfs_open.c ZERO_STRUCT(f->handle->write_time); f 1432 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = false; f 1436 source4/ntvfs/posix/pvfs_open.c status = pvfs_locking_key(name, f->handle, &f->handle->odb_locking_key); f 1441 source4/ntvfs/posix/pvfs_open.c status = pvfs_brl_locking_handle(f, name, h, &f->brl_handle); f 1447 source4/ntvfs/posix/pvfs_open.c lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key); f 1456 source4/ntvfs/posix/pvfs_open.c DLIST_ADD(pvfs->files.list, f); f 1460 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f, pvfs_fnum_destructor); f 1461 source4/ntvfs/posix/pvfs_open.c talloc_set_destructor(f->handle, pvfs_handle_destructor); f 1500 source4/ntvfs/posix/pvfs_open.c return pvfs_open_setup_retry(ntvfs, req, io, f, lck, status); f 1515 source4/ntvfs/posix/pvfs_open.c fd = open(f->handle->name->full_name, flags | O_NONBLOCK); f 1517 source4/ntvfs/posix/pvfs_open.c status = pvfs_map_errno(f->pvfs, errno); f 1524 source4/ntvfs/posix/pvfs_open.c return pvfs_open_setup_retry(ntvfs, req, io, f, lck, status); f 1531 source4/ntvfs/posix/pvfs_open.c f->handle->fd = fd; f 1534 source4/ntvfs/posix/pvfs_open.c status = odb_open_file(lck, f->handle, name->full_name, f 1535 source4/ntvfs/posix/pvfs_open.c &f->handle->fd, name->dos.write_time, f 1544 source4/ntvfs/posix/pvfs_open.c f->handle->have_opendb_entry = true; f 1549 source4/ntvfs/posix/pvfs_open.c status = pvfs_setup_oplock(f, oplock_granted); f 1560 source4/ntvfs/posix/pvfs_open.c status = pvfs_stream_create(pvfs, f->handle->name, fd); f 1566 source4/ntvfs/posix/pvfs_open.c status = pvfs_stream_truncate(pvfs, f->handle->name, fd, 0); f 1575 source4/ntvfs/posix/pvfs_open.c status = pvfs_resolve_name_fd(f->pvfs, fd, f->handle->name, PVFS_RESOLVE_NO_OPENDB); f 1581 source4/ntvfs/posix/pvfs_open.c if (f->handle->name->stream_id == 0 && f 1602 source4/ntvfs/posix/pvfs_open.c status = ntvfs_handle_set_backend_data(h, ntvfs, f); f 1607 source4/ntvfs/posix/pvfs_open.c f->handle->open_completed = true; f 1637 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f; f 1647 source4/ntvfs/posix/pvfs_open.c f = pvfs_find_fd(pvfs, req, io->generic.in.file.ntvfs); f 1648 source4/ntvfs/posix/pvfs_open.c if (!f) { f 1653 source4/ntvfs/posix/pvfs_open.c f->handle->write_time.update_forced = false; f 1654 source4/ntvfs/posix/pvfs_open.c f->handle->write_time.update_on_close = true; f 1655 source4/ntvfs/posix/pvfs_open.c unix_to_nt_time(&f->handle->write_time.close_time, io->generic.in.write_time); f 1661 source4/ntvfs/posix/pvfs_open.c struct pvfs_file_handle *h = f->handle; f 1681 source4/ntvfs/posix/pvfs_open.c talloc_free(f); f 1695 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f, *next; f 1697 source4/ntvfs/posix/pvfs_open.c for (f=pvfs->files.list;f;f=next) { f 1698 source4/ntvfs/posix/pvfs_open.c next = f->next; f 1699 source4/ntvfs/posix/pvfs_open.c if (f->ntvfs->session_info == req->session_info) { f 1700 source4/ntvfs/posix/pvfs_open.c talloc_free(f); f 1716 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f, *next; f 1718 source4/ntvfs/posix/pvfs_open.c for (f=pvfs->files.list;f;f=next) { f 1719 source4/ntvfs/posix/pvfs_open.c next = f->next; f 1720 source4/ntvfs/posix/pvfs_open.c if (f->ntvfs->session_info == req->session_info && f 1721 source4/ntvfs/posix/pvfs_open.c f->ntvfs->smbpid == req->smbpid) { f 1722 source4/ntvfs/posix/pvfs_open.c talloc_free(f); f 1735 source4/ntvfs/posix/pvfs_open.c struct pvfs_file *f, bool del_on_close) f 1740 source4/ntvfs/posix/pvfs_open.c if ((f->handle->name->dos.attrib & FILE_ATTRIBUTE_READONLY) && del_on_close) { f 1744 source4/ntvfs/posix/pvfs_open.c if ((f->handle->name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) && f 1745 source4/ntvfs/posix/pvfs_open.c !pvfs_directory_empty(pvfs, f->handle->name)) { f 1750 source4/ntvfs/posix/pvfs_open.c f->handle->create_options |= NTCREATEX_OPTIONS_DELETE_ON_CLOSE; f 1752 source4/ntvfs/posix/pvfs_open.c f->handle->create_options &= ~NTCREATEX_OPTIONS_DELETE_ON_CLOSE; f 1755 source4/ntvfs/posix/pvfs_open.c lck = odb_lock(req, pvfs->odb_context, &f->handle->odb_locking_key); f 96 source4/ntvfs/posix/pvfs_oplock.c struct pvfs_file *f = opl->file; f 127 source4/ntvfs/posix/pvfs_oplock.c status = ntvfs_send_oplock_break(pvfs->ntvfs, f->ntvfs, level); f 199 source4/ntvfs/posix/pvfs_oplock.c NTSTATUS pvfs_setup_oplock(struct pvfs_file *f, uint32_t oplock_granted) f 205 source4/ntvfs/posix/pvfs_oplock.c f->handle->oplock = NULL; f 223 source4/ntvfs/posix/pvfs_oplock.c opl = talloc_zero(f->handle, struct pvfs_oplock); f 226 source4/ntvfs/posix/pvfs_oplock.c opl->handle = f->handle; f 227 source4/ntvfs/posix/pvfs_oplock.c opl->file = f; f 229 source4/ntvfs/posix/pvfs_oplock.c opl->msg_ctx = f->pvfs->ntvfs->ctx->msg_ctx; f 240 source4/ntvfs/posix/pvfs_oplock.c f->handle->oplock = opl; f 250 source4/ntvfs/posix/pvfs_oplock.c struct pvfs_file *f; f 254 source4/ntvfs/posix/pvfs_oplock.c f = pvfs_find_fd(pvfs, req, lck->lockx.in.file.ntvfs); f 255 source4/ntvfs/posix/pvfs_oplock.c if (!f) { f 261 source4/ntvfs/posix/pvfs_oplock.c status = pvfs_oplock_release_internal(f->handle, oplock_break); f 271 source4/ntvfs/posix/pvfs_oplock.c NTSTATUS pvfs_break_level2_oplocks(struct pvfs_file *f) f 273 source4/ntvfs/posix/pvfs_oplock.c struct pvfs_file_handle *h = f->handle; f 380 source4/ntvfs/posix/pvfs_qfileinfo.c struct pvfs_file *f; f 385 source4/ntvfs/posix/pvfs_qfileinfo.c f = pvfs_find_fd(pvfs, req, info->generic.in.file.ntvfs); f 386 source4/ntvfs/posix/pvfs_qfileinfo.c if (!f) { f 389 source4/ntvfs/posix/pvfs_qfileinfo.c h = f->handle; f 392 source4/ntvfs/posix/pvfs_qfileinfo.c if ((f->access_mask & access_needed) != access_needed) { f 428 source4/ntvfs/posix/pvfs_qfileinfo.c info->access_information.out.access_flags = f->access_mask; f 441 source4/ntvfs/posix/pvfs_qfileinfo.c info->all_info2.out.access_mask = f->access_mask; f 35 source4/ntvfs/posix/pvfs_read.c struct pvfs_file *f; f 44 source4/ntvfs/posix/pvfs_read.c f = pvfs_find_fd(pvfs, req, rd->readx.in.file.ntvfs); f 45 source4/ntvfs/posix/pvfs_read.c if (!f) { f 49 source4/ntvfs/posix/pvfs_read.c if (f->handle->fd == -1) { f 57 source4/ntvfs/posix/pvfs_read.c if (!(f->access_mask & mask)) { f 66 source4/ntvfs/posix/pvfs_read.c status = pvfs_check_lock(pvfs, f, req->smbpid, f 74 source4/ntvfs/posix/pvfs_read.c if (f->handle->name->stream_name) { f 75 source4/ntvfs/posix/pvfs_read.c ret = pvfs_stream_read(pvfs, f->handle, f 82 source4/ntvfs/posix/pvfs_read.c status = pvfs_aio_pread(req, rd, f, maxcnt); f 88 source4/ntvfs/posix/pvfs_read.c ret = pread(f->handle->fd, f 105 source4/ntvfs/posix/pvfs_read.c f->handle->position = f->handle->seek_offset = rd->readx.in.offset + ret; f 641 source4/ntvfs/posix/pvfs_rename.c struct pvfs_file *f; f 651 source4/ntvfs/posix/pvfs_rename.c f = pvfs_find_fd(pvfs, req, ren->nttrans.in.file.ntvfs); f 652 source4/ntvfs/posix/pvfs_rename.c if (!f) { f 637 source4/ntvfs/posix/pvfs_search.c struct pvfs_file *f; f 639 source4/ntvfs/posix/pvfs_search.c f = pvfs_find_fd(pvfs, req, io->in.file.ntvfs); f 640 source4/ntvfs/posix/pvfs_search.c if (!f) { f 645 source4/ntvfs/posix/pvfs_search.c if (f->handle->fd != -1) { f 649 source4/ntvfs/posix/pvfs_search.c if (!(f->access_mask & SEC_DIR_LIST)) { f 653 source4/ntvfs/posix/pvfs_search.c if (f->search) { f 654 source4/ntvfs/posix/pvfs_search.c talloc_free(f->search); f 655 source4/ntvfs/posix/pvfs_search.c f->search = NULL; f 668 source4/ntvfs/posix/pvfs_search.c if (strequal("", f->handle->name->original_name)) { f 673 source4/ntvfs/posix/pvfs_search.c f->handle->name->original_name, f 722 source4/ntvfs/posix/pvfs_search.c f->search = talloc_steal(f, search); f 738 source4/ntvfs/posix/pvfs_search.c struct pvfs_file *f; f 740 source4/ntvfs/posix/pvfs_search.c f = pvfs_find_fd(pvfs, req, io->in.file.ntvfs); f 741 source4/ntvfs/posix/pvfs_search.c if (!f) { f 746 source4/ntvfs/posix/pvfs_search.c if (f->handle->fd != -1) { f 751 source4/ntvfs/posix/pvfs_search.c search = f->search; f 34 source4/ntvfs/posix/pvfs_seek.c struct pvfs_file *f; f 38 source4/ntvfs/posix/pvfs_seek.c f = pvfs_find_fd(pvfs, req, io->lseek.in.file.ntvfs); f 39 source4/ntvfs/posix/pvfs_seek.c if (!f) { f 42 source4/ntvfs/posix/pvfs_seek.c h = f->handle; f 313 source4/ntvfs/posix/pvfs_setfileinfo.c struct pvfs_file *f; f 320 source4/ntvfs/posix/pvfs_setfileinfo.c f = pvfs_find_fd(pvfs, req, info->generic.in.file.ntvfs); f 321 source4/ntvfs/posix/pvfs_setfileinfo.c if (!f) { f 325 source4/ntvfs/posix/pvfs_setfileinfo.c h = f->handle; f 328 source4/ntvfs/posix/pvfs_setfileinfo.c if ((f->access_mask & access_needed) != access_needed) { f 392 source4/ntvfs/posix/pvfs_setfileinfo.c return pvfs_set_delete_on_close(pvfs, req, f, f 397 source4/ntvfs/posix/pvfs_setfileinfo.c status = pvfs_break_level2_oplocks(f); f 410 source4/ntvfs/posix/pvfs_setfileinfo.c status = pvfs_break_level2_oplocks(f); f 433 source4/ntvfs/posix/pvfs_setfileinfo.c return pvfs_setfileinfo_rename(pvfs, req, h->name, f->handle->fd, f 442 source4/ntvfs/posix/pvfs_setfileinfo.c return pvfs_acl_set(pvfs, req, h->name, h->fd, f->access_mask, info); f 462 source4/ntvfs/posix/pvfs_setfileinfo.c if (f->access_mask & f 89 source4/ntvfs/posix/pvfs_write.c struct pvfs_file *f; f 96 source4/ntvfs/posix/pvfs_write.c f = pvfs_find_fd(pvfs, req, wr->writex.in.file.ntvfs); f 97 source4/ntvfs/posix/pvfs_write.c if (!f) { f 101 source4/ntvfs/posix/pvfs_write.c if (f->handle->fd == -1) { f 105 source4/ntvfs/posix/pvfs_write.c if (!(f->access_mask & (SEC_FILE_WRITE_DATA | SEC_FILE_APPEND_DATA))) { f 109 source4/ntvfs/posix/pvfs_write.c status = pvfs_check_lock(pvfs, f, req->smbpid, f 115 source4/ntvfs/posix/pvfs_write.c status = pvfs_break_level2_oplocks(f); f 118 source4/ntvfs/posix/pvfs_write.c pvfs_trigger_write_time_update(f->handle); f 120 source4/ntvfs/posix/pvfs_write.c if (f->handle->name->stream_name) { f 122 source4/ntvfs/posix/pvfs_write.c f->handle, f 131 source4/ntvfs/posix/pvfs_write.c status = pvfs_aio_pwrite(req, wr, f); f 137 source4/ntvfs/posix/pvfs_write.c ret = pwrite(f->handle->fd, f 149 source4/ntvfs/posix/pvfs_write.c f->handle->seek_offset = wr->writex.in.offset + ret; f 144 source4/ntvfs/posix/vfs_posix.c struct pvfs_file *f, *fn; f 151 source4/ntvfs/posix/vfs_posix.c for (f=pvfs->files.list; f; f=fn) { f 152 source4/ntvfs/posix/vfs_posix.c fn = f->next; f 153 source4/ntvfs/posix/vfs_posix.c talloc_free(f); f 289 source4/ntvfs/posix/vfs_posix.h struct pvfs_file *f, uint32_t maxcnt); f 291 source4/ntvfs/posix/vfs_posix.h struct pvfs_file *f); f 94 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 100 source4/ntvfs/simple/vfs_simple.c f = talloc_get_type(p, struct svfs_file); f 101 source4/ntvfs/simple/vfs_simple.c if (!f) return NULL; f 103 source4/ntvfs/simple/vfs_simple.c return f; f 279 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 286 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, info->generic.in.file.ntvfs); f 287 source4/ntvfs/simple/vfs_simple.c if (!f) { f 291 source4/ntvfs/simple/vfs_simple.c if (fstat(f->fd, &st) == -1) { f 295 source4/ntvfs/simple/vfs_simple.c return svfs_map_fileinfo(ntvfs, req,info, &st, f->name); f 309 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 388 source4/ntvfs/simple/vfs_simple.c f = talloc(handle, struct svfs_file); f 389 source4/ntvfs/simple/vfs_simple.c NT_STATUS_HAVE_NO_MEMORY(f); f 390 source4/ntvfs/simple/vfs_simple.c f->fd = fd; f 391 source4/ntvfs/simple/vfs_simple.c f->name = talloc_strdup(f, unix_path); f 392 source4/ntvfs/simple/vfs_simple.c NT_STATUS_HAVE_NO_MEMORY(f->name); f 394 source4/ntvfs/simple/vfs_simple.c DLIST_ADD(p->open_files, f); f 396 source4/ntvfs/simple/vfs_simple.c status = ntvfs_handle_set_backend_data(handle, ntvfs, f); f 496 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 503 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, rd->readx.in.file.ntvfs); f 504 source4/ntvfs/simple/vfs_simple.c if (!f) { f 508 source4/ntvfs/simple/vfs_simple.c ret = pread(f->fd, f 530 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 539 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, wr->writex.in.file.ntvfs); f 540 source4/ntvfs/simple/vfs_simple.c if (!f) { f 544 source4/ntvfs/simple/vfs_simple.c ret = pwrite(f->fd, f 576 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 582 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, io->generic.in.file.ntvfs); f 583 source4/ntvfs/simple/vfs_simple.c if (!f) { f 586 source4/ntvfs/simple/vfs_simple.c fsync(f->fd); f 590 source4/ntvfs/simple/vfs_simple.c for (f=p->open_files;f;f=f->next) { f 591 source4/ntvfs/simple/vfs_simple.c fsync(f->fd); f 607 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 614 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, io->close.in.file.ntvfs); f 615 source4/ntvfs/simple/vfs_simple.c if (!f) { f 619 source4/ntvfs/simple/vfs_simple.c if (close(f->fd) == -1) { f 623 source4/ntvfs/simple/vfs_simple.c DLIST_REMOVE(p->open_files, f); f 624 source4/ntvfs/simple/vfs_simple.c talloc_free(f->name); f 625 source4/ntvfs/simple/vfs_simple.c talloc_free(f); f 695 source4/ntvfs/simple/vfs_simple.c struct svfs_file *f; f 700 source4/ntvfs/simple/vfs_simple.c f = find_fd(p, info->generic.in.file.ntvfs); f 701 source4/ntvfs/simple/vfs_simple.c if (!f) { f 708 source4/ntvfs/simple/vfs_simple.c if (ftruncate(f->fd, f 727 source4/ntvfs/simple/vfs_simple.c if (svfs_file_utime(f->fd, &unix_times) != 0) { f 73 source4/ntvfs/smb2/vfs_smb2.c struct cvfs_file *f; f 77 source4/ntvfs/smb2/vfs_smb2.c #define SETUP_FILE_HERE(f) do { \ f 78 source4/ntvfs/smb2/vfs_smb2.c f = ntvfs_handle_get_backend_data(io->generic.in.file.ntvfs, ntvfs); \ f 79 source4/ntvfs/smb2/vfs_smb2.c if (!f) return NT_STATUS_INVALID_HANDLE; \ f 80 source4/ntvfs/smb2/vfs_smb2.c io->generic.in.file.fnum = f->fnum; \ f 84 source4/ntvfs/smb2/vfs_smb2.c struct cvfs_file *f; \ f 85 source4/ntvfs/smb2/vfs_smb2.c SETUP_FILE_HERE(f); \ f 106 source4/ntvfs/smb2/vfs_smb2.c struct cvfs_file *f; f 108 source4/ntvfs/smb2/vfs_smb2.c for (f=p->files; f; f=f->next) { f 109 source4/ntvfs/smb2/vfs_smb2.c if (f->fnum != fnum) continue; f 110 source4/ntvfs/smb2/vfs_smb2.c h = f->h; f 332 source4/ntvfs/smb2/vfs_smb2.c async->f = file; \ f 394 source4/ntvfs/smb2/vfs_smb2.c struct smb2_find f; f 402 source4/ntvfs/smb2/vfs_smb2.c ZERO_STRUCT(f); f 403 source4/ntvfs/smb2/vfs_smb2.c f.in.file.handle = p->roothandle; f 404 source4/ntvfs/smb2/vfs_smb2.c f.in.level = SMB2_FIND_DIRECTORY_INFO; f 405 source4/ntvfs/smb2/vfs_smb2.c f.in.pattern = cp->chkpath.in.path; f 408 source4/ntvfs/smb2/vfs_smb2.c if (strcmp(f.in.pattern, "\\") == 0 || f 409 source4/ntvfs/smb2/vfs_smb2.c strcmp(f.in.pattern, "") == 0) { f 410 source4/ntvfs/smb2/vfs_smb2.c f.in.pattern = "?"; f 412 source4/ntvfs/smb2/vfs_smb2.c f.in.continue_flags = SMB2_CONTINUE_FLAG_SINGLE | SMB2_CONTINUE_FLAG_RESTART; f 413 source4/ntvfs/smb2/vfs_smb2.c f.in.max_response_size = 0x1000; f 415 source4/ntvfs/smb2/vfs_smb2.c c_req = smb2_find_send(p->tree, &f); f 695 source4/ntvfs/smb2/vfs_smb2.c struct smb2_find f; f 735 source4/ntvfs/smb2/vfs_smb2.c ZERO_STRUCT(f); f 736 source4/ntvfs/smb2/vfs_smb2.c f.in.file.handle = p->roothandle; f 737 source4/ntvfs/smb2/vfs_smb2.c f.in.level = smb2_level; f 738 source4/ntvfs/smb2/vfs_smb2.c f.in.pattern = io->t2ffirst.in.pattern; f 739 source4/ntvfs/smb2/vfs_smb2.c while (f.in.pattern[0] == '\\') { f 740 source4/ntvfs/smb2/vfs_smb2.c f.in.pattern++; f 742 source4/ntvfs/smb2/vfs_smb2.c f.in.continue_flags = 0; f 743 source4/ntvfs/smb2/vfs_smb2.c f.in.max_response_size = 0x10000; f 745 source4/ntvfs/smb2/vfs_smb2.c status = smb2_find_level(p->tree, req, &f, &count, &data); f 1387 source4/param/loadparm.c struct file_lists *f = lp_ctx->file_lists; f 1389 source4/param/loadparm.c while (f) { f 1390 source4/param/loadparm.c if (f->name && !strcmp(f->name, fname)) f 1392 source4/param/loadparm.c f = f->next; f 1395 source4/param/loadparm.c if (!f) { f 1396 source4/param/loadparm.c f = talloc(lp_ctx, struct file_lists); f 1397 source4/param/loadparm.c if (!f) f 1399 source4/param/loadparm.c f->next = lp_ctx->file_lists; f 1400 source4/param/loadparm.c f->name = talloc_strdup(f, fname); f 1401 source4/param/loadparm.c if (!f->name) { f 1402 source4/param/loadparm.c talloc_free(f); f 1405 source4/param/loadparm.c f->subfname = talloc_strdup(f, subfname); f 1406 source4/param/loadparm.c if (!f->subfname) { f 1407 source4/param/loadparm.c talloc_free(f); f 1410 source4/param/loadparm.c lp_ctx->file_lists = f; f 1411 source4/param/loadparm.c f->modtime = file_modtime(subfname); f 1415 source4/param/loadparm.c f->modtime = t; f 1424 source4/param/loadparm.c struct file_lists *f; f 1427 source4/param/loadparm.c for (f = lp_ctx->file_lists; f != NULL; f = f->next) { f 1431 source4/param/loadparm.c n2 = standard_sub_basic(lp_ctx, f->name); f 1434 source4/param/loadparm.c f->name, n2, ctime(&f->modtime))); f 1438 source4/param/loadparm.c if (mod_time && ((f->modtime != mod_time) || (f->subfname == NULL) || (strcmp(n2, f->subfname) != 0))) { f 1441 source4/param/loadparm.c f->modtime = mod_time; f 1442 source4/param/loadparm.c talloc_free(f->subfname); f 1443 source4/param/loadparm.c f->subfname = talloc_strdup(f, n2); f 1883 source4/param/loadparm.c static void print_parameter(struct parm_struct *p, void *ptr, FILE * f) f 1891 source4/param/loadparm.c fprintf(f, "%s", f 1899 source4/param/loadparm.c fprintf(f, "%s", BOOLSTR((bool)*(int *)ptr)); f 1904 source4/param/loadparm.c fprintf(f, "%d", *(int *)ptr); f 1908 source4/param/loadparm.c fprintf(f, "0%o", *(int *)ptr); f 1916 source4/param/loadparm.c fprintf(f, "%s%s", *list, f 1924 source4/param/loadparm.c fprintf(f, "%s", *(char **)ptr); f 2047 source4/param/loadparm.c static void dump_globals(struct loadparm_context *lp_ctx, FILE *f, f 2053 source4/param/loadparm.c fprintf(f, "# Global parameters\n[global]\n"); f 2061 source4/param/loadparm.c fprintf(f, "\t%s = ", parm_table[i].label); f 2062 source4/param/loadparm.c print_parameter(&parm_table[i], lp_parm_ptr(lp_ctx, NULL, &parm_table[i]), f); f 2063 source4/param/loadparm.c fprintf(f, "\n"); f 2068 source4/param/loadparm.c fprintf(f, "\t%s = %s\n", data->key, data->value); f 2078 source4/param/loadparm.c static void dump_a_service(struct loadparm_service * pService, struct loadparm_service *sDefault, FILE * f) f 2084 source4/param/loadparm.c fprintf(f, "\n[%s]\n", pService->szService); f 2103 source4/param/loadparm.c fprintf(f, "\t%s = ", parm_table[i].label); f 2105 source4/param/loadparm.c ((char *)pService) + parm_table[i].offset, f); f 2106 source4/param/loadparm.c fprintf(f, "\n"); f 2110 source4/param/loadparm.c fprintf(f, "\t%s = %s\n", data->key, data->value); f 2117 source4/param/loadparm.c const char *parm_name, FILE * f) f 2129 source4/param/loadparm.c print_parameter(parm, ptr, f); f 2130 source4/param/loadparm.c fprintf(f, "\n"); f 2539 source4/param/loadparm.c void lp_dump(struct loadparm_context *lp_ctx, FILE *f, bool show_defaults, f 2547 source4/param/loadparm.c dump_globals(lp_ctx, f, show_defaults); f 2549 source4/param/loadparm.c dump_a_service(lp_ctx->sDefault, lp_ctx->sDefault, f); f 2552 source4/param/loadparm.c lp_dump_one(f, show_defaults, lp_ctx->services[iService], lp_ctx->sDefault); f 2558 source4/param/loadparm.c void lp_dump_one(FILE *f, bool show_defaults, struct loadparm_service *service, struct loadparm_service *sDefault) f 2563 source4/param/loadparm.c dump_a_service(service, sDefault, f); f 260 source4/param/param.h const char *parm_name, FILE * f); f 299 source4/param/param.h void lp_dump(struct loadparm_context *lp_ctx, FILE *f, bool show_defaults, f 305 source4/param/param.h void lp_dump_one(FILE *f, bool show_defaults, struct loadparm_service *service, struct loadparm_service *sDefault); f 375 source4/torture/basic/locking.c int fnum1, fnum2, f; f 510 source4/torture/basic/locking.c f = smbcli_open(cli1->tree, fname, O_RDWR, DENY_NONE); f 512 source4/torture/basic/locking.c NT_STATUS_IS_OK(smbcli_lock(cli1->tree, f, 0, 1, 0, READ_LOCK)) && f 516 source4/torture/basic/locking.c smbcli_close(cli1->tree, f); f 2829 source4/torture/gentest.c FILE *f; f 2834 source4/torture/gentest.c f = fopen("seeds.tmp", "w"); f 2835 source4/torture/gentest.c if (!f) return; f 2838 source4/torture/gentest.c fprintf(f, "%u\n", op_parms[i].seed); f 2840 source4/torture/gentest.c fclose(f); f 61 source4/torture/locktest.c char conn, f; f 192 source4/torture/locktest.c int server, conn, f; f 197 source4/torture/locktest.c for (f=0;f<NFILES;f++) { f 198 source4/torture/locktest.c if (fnum[server][conn][f] != -1) { f 199 source4/torture/locktest.c smbcli_close(cli[server][conn]->tree, fnum[server][conn][f]); f 200 source4/torture/locktest.c fnum[server][conn][f] = -1; f 221 source4/torture/locktest.c uint_t f = rec->f; f 235 source4/torture/locktest.c int fn=fnum[server][conn][f]; f 271 source4/torture/locktest.c conn, f, f 284 source4/torture/locktest.c int fn=fnum[server][conn][f]; f 313 source4/torture/locktest.c conn, f, f 324 source4/torture/locktest.c smbcli_close(cli[server][conn]->tree, fnum[server][conn][f]); f 325 source4/torture/locktest.c fnum[server][conn][f] = -1; f 328 source4/torture/locktest.c fnum[server][conn][f] = smbcli_open(cli[server][conn]->tree, FILENAME, f 331 source4/torture/locktest.c if (fnum[server][conn][f] == -1) { f 338 source4/torture/locktest.c conn, f); f 349 source4/torture/locktest.c int server, conn, f; f 353 source4/torture/locktest.c for (f=0;f<NFILES;f++) { f 354 source4/torture/locktest.c if (fnum[server][conn][f] != -1) { f 355 source4/torture/locktest.c smbcli_close(cli[server][conn]->tree, fnum[server][conn][f]); f 356 source4/torture/locktest.c fnum[server][conn][f] = -1; f 367 source4/torture/locktest.c int server, conn, f; f 371 source4/torture/locktest.c for (f=0;f<NFILES;f++) { f 372 source4/torture/locktest.c fnum[server][conn][f] = smbcli_open(cli[server][conn]->tree, FILENAME, f 375 source4/torture/locktest.c if (fnum[server][conn][f] == -1) { f 377 source4/torture/locktest.c server, conn, f); f 429 source4/torture/locktest.c recorded[n].f = random() % NFILES; f 532 source4/torture/locktest.c recorded[i].f, f 57 source4/torture/locktest2.c char conn, f, fstype; f 200 source4/torture/locktest2.c int server, conn, f, fstype; f 210 source4/torture/locktest2.c for (f=0;f<NFILES;f++) { f 211 source4/torture/locktest2.c smbcli_close(cli[server][conn], fnum[server][fstype][conn][f]); f 232 source4/torture/locktest2.c uint_t f = rec->f; f 252 source4/torture/locktest2.c fnum[server][fstype][conn][f], f 257 source4/torture/locktest2.c conn, fstype, f, f 267 source4/torture/locktest2.c fnum[server][fstype][conn][f], f 272 source4/torture/locktest2.c conn, fstype, f, f 280 source4/torture/locktest2.c try_close(cli[server][conn], fstype, fnum[server][fstype][conn][f]); f 281 source4/torture/locktest2.c fnum[server][fstype][conn][f] = try_open(cli[server][conn], nfs[server], fstype, FILENAME, f 283 source4/torture/locktest2.c if (fnum[server][fstype][conn][f] == -1) { f 290 source4/torture/locktest2.c conn, fstype, f); f 300 source4/torture/locktest2.c int server, conn, f, fstype; f 305 source4/torture/locktest2.c for (f=0;f<NFILES;f++) { f 306 source4/torture/locktest2.c if (fnum[server][fstype][conn][f] != -1) { f 307 source4/torture/locktest2.c try_close(cli[server][conn], fstype, fnum[server][fstype][conn][f]); f 308 source4/torture/locktest2.c fnum[server][fstype][conn][f] = -1; f 320 source4/torture/locktest2.c int server, fstype, conn, f; f 325 source4/torture/locktest2.c for (f=0;f<NFILES;f++) { f 326 source4/torture/locktest2.c fnum[server][fstype][conn][f] = try_open(cli[server][conn], nfs[server], fstype, FILENAME, f 328 source4/torture/locktest2.c if (fnum[server][fstype][conn][f] == -1) { f 330 source4/torture/locktest2.c server, fstype, conn, f); f 386 source4/torture/locktest2.c recorded[n].f = random() % NFILES; f 450 source4/torture/locktest2.c recorded[i].f, f 121 source4/torture/masktest.c static void listfn(struct clilist_file_info *f, const char *s, void *state) f 125 source4/torture/masktest.c if (ISDOT(f->name)) { f 127 source4/torture/masktest.c } else if (ISDOTDOT(f->name)) { f 133 source4/torture/masktest.c last_hit.long_name = talloc_strdup(m->mem_ctx, f->name); f 134 source4/torture/masktest.c last_hit.short_name = talloc_strdup(m->mem_ctx, f->short_name); f 63 source4/torture/nbench/nbench.c FILE *f; f 82 source4/torture/nbench/nbench.c f = fopen(loadfile, "r"); f 84 source4/torture/nbench/nbench.c if (!f) { f 92 source4/torture/nbench/nbench.c while (fgets(line, sizeof(line)-1, f)) { f 203 source4/torture/nbench/nbench.c rewind(f); f 207 source4/torture/nbench/nbench.c fclose(f); f 76 source4/torture/nbench/nbio.c static bool nb_do_createx(struct ftable *f, f 86 source4/torture/nbench/nbio.c static void nb_set_createx_params(struct ftable *f, f 92 source4/torture/nbench/nbio.c struct createx_params *cp = &f->cp; f 95 source4/torture/nbench/nbio.c cp->fname = talloc_strdup(f, fname); f 109 source4/torture/nbench/nbio.c static bool nb_reestablish_locks(struct ftable *f) f 111 source4/torture/nbench/nbio.c struct lock_info *linfo = f->locks; f 115 source4/torture/nbench/nbio.c f->handle, (unsigned long) linfo->offset)); f 117 source4/torture/nbench/nbio.c if (!nb_do_lockx(true, f->handle, linfo->offset, linfo->size, NT_STATUS_OK)) { f 119 source4/torture/nbench/nbio.c f->cp.fname, (unsigned long) linfo->offset); f 131 source4/torture/nbench/nbio.c struct ftable *f = ftable; f 133 source4/torture/nbench/nbio.c while (f != NULL) { f 135 source4/torture/nbench/nbio.c f->cp.fname, f->cp.handle)); f 137 source4/torture/nbench/nbio.c if (!nb_do_createx(f, f 138 source4/torture/nbench/nbio.c f->cp.fname, f 139 source4/torture/nbench/nbio.c f->cp.create_options, f 140 source4/torture/nbench/nbio.c f->cp.create_disposition, f 141 source4/torture/nbench/nbio.c f->cp.handle, f 145 source4/torture/nbench/nbio.c printf("-- nb_reopen_all_files: failed to open file %s\n", f->cp.fname); f 149 source4/torture/nbench/nbio.c if (!nb_reestablish_locks(f)) { f 154 source4/torture/nbench/nbio.c f = f->next; f 349 source4/torture/nbench/nbio.c struct ftable *f; f 351 source4/torture/nbench/nbio.c for (f=ftable;f;f=f->next) { f 352 source4/torture/nbench/nbio.c if (f->handle == handle) return f; f 359 source4/torture/nbench/nbio.c struct ftable *f; f 366 source4/torture/nbench/nbio.c f = find_ftable(handle); f 367 source4/torture/nbench/nbio.c if (f) { f 369 source4/torture/nbench/nbio.c *f_ret = f; f 370 source4/torture/nbench/nbio.c return f->fd; f 459 source4/torture/nbench/nbio.c static bool nb_do_createx(struct ftable *f, f 505 source4/torture/nbench/nbio.c if (f != NULL && f 506 source4/torture/nbench/nbio.c f->cp.create_disposition == NTCREATEX_DISP_CREATE && f 523 source4/torture/nbench/nbio.c if (f == NULL) { f 524 source4/torture/nbench/nbio.c f = talloc (NULL, struct ftable); f 525 source4/torture/nbench/nbio.c f->locks = NULL; f 526 source4/torture/nbench/nbio.c nb_set_createx_params(f, fname, create_options, create_disposition, handle); f 527 source4/torture/nbench/nbio.c DLIST_ADD_END(ftable, f, struct ftable *); f 530 source4/torture/nbench/nbio.c f->handle = handle; f 531 source4/torture/nbench/nbio.c f->fd = io.ntcreatex.out.file.fnum; f 631 source4/torture/nbench/nbio.c struct ftable *f; f 633 source4/torture/nbench/nbio.c i = find_handle(handle, &f); f 652 source4/torture/nbench/nbio.c if (f != NULL && f 656 source4/torture/nbench/nbio.c linfo = talloc (f, struct lock_info); f 659 source4/torture/nbench/nbio.c DLIST_ADD_END(f->locks, linfo, struct lock_info *); f 676 source4/torture/nbench/nbio.c struct ftable *f; f 678 source4/torture/nbench/nbio.c i = find_handle(handle, &f); f 697 source4/torture/nbench/nbio.c if (f != NULL) { f 699 source4/torture/nbench/nbio.c linfo = find_lock(f->locks, offset, size); f 701 source4/torture/nbench/nbio.c DLIST_REMOVE(f->locks, linfo); f 769 source4/torture/nbench/nbio.c struct ftable *f = find_ftable(handle); f 770 source4/torture/nbench/nbio.c DLIST_REMOVE(ftable, f); f 771 source4/torture/nbench/nbio.c talloc_free(f); f 973 source4/torture/nbench/nbio.c struct ftable *f = ftable; f 974 source4/torture/nbench/nbio.c DLIST_REMOVE(ftable, f); f 975 source4/torture/nbench/nbio.c talloc_free (f); f 1325 source4/torture/rpc/samlogon.c int i, v, l, f; f 1386 source4/torture/rpc/samlogon.c for (f=0;f<ARRAY_SIZE(function_levels);f++) { f 1396 source4/torture/rpc/samlogon.c samlogon_state.function_level = function_levels[f]; f 1409 source4/torture/rpc/samlogon.c logon_levels[l], function_levels[f]); f 2888 source4/torture/rpc/samr.c int s = 0, q = 0, f = 0, l = 0, z = 0; f 2932 source4/torture/rpc/samr.c for (f=0; f<ARRAY_SIZE(fields_present); f++) { f 2953 source4/torture/rpc/samr.c if (!((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 2954 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT))) { f 2968 source4/torture/rpc/samr.c fields_present[f], f 2994 source4/torture/rpc/samr.c !(fields_present[f] & SAMR_FIELD_EXPIRED_FLAG)) { f 3015 source4/torture/rpc/samr.c if (((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3016 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT)) && f 3041 source4/torture/rpc/samr.c fields_present[f], f 3066 source4/torture/rpc/samr.c if (!(fields_present[f] & SAMR_FIELD_EXPIRED_FLAG) && f 3067 source4/torture/rpc/samr.c !((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3068 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT))) f 3093 source4/torture/rpc/samr.c if (((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3094 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT)) && f 3121 source4/torture/rpc/samr.c fields_present[f], f 3145 source4/torture/rpc/samr.c if (!((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3146 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT))) f 3174 source4/torture/rpc/samr.c fields_present[f], f 3195 source4/torture/rpc/samr.c !(fields_present[f] & SAMR_FIELD_EXPIRED_FLAG)) { f 3207 source4/torture/rpc/samr.c if (!(fields_present[f] & SAMR_FIELD_EXPIRED_FLAG) && f 3208 source4/torture/rpc/samr.c !((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3209 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT))) f 3237 source4/torture/rpc/samr.c if (((fields_present[f] & SAMR_FIELD_NT_PASSWORD_PRESENT) || f 3238 source4/torture/rpc/samr.c (fields_present[f] & SAMR_FIELD_LM_PASSWORD_PRESENT)) && f 3261 source4/torture/rpc/samr.c f = ARRAY_SIZE(fields_present); f 71 source4/torture/smb2/connect.c struct smb2_flush f; f 108 source4/torture/smb2/connect.c ZERO_STRUCT(f); f 109 source4/torture/smb2/connect.c f.in.file.handle = handle; f 111 source4/torture/smb2/connect.c status = smb2_flush(tree, &f); f 37 source4/torture/smb2/dir.c struct smb2_find f; f 47 source4/torture/smb2/dir.c ZERO_STRUCT(f); f 48 source4/torture/smb2/dir.c f.in.file.handle = handle; f 49 source4/torture/smb2/dir.c f.in.pattern = "*"; f 50 source4/torture/smb2/dir.c f.in.continue_flags = SMB2_CONTINUE_FLAG_SINGLE; f 51 source4/torture/smb2/dir.c f.in.max_response_size = 0x100; f 52 source4/torture/smb2/dir.c f.in.level = SMB2_FIND_BOTH_DIRECTORY_INFO; f 55 source4/torture/smb2/dir.c status = smb2_find_level(tree, tree, &f, &count, &d); f 66 source4/torture/smb2/dir.c f.in.continue_flags = 0; f 67 source4/torture/smb2/dir.c f.in.max_response_size = 4096; f 83 source4/torture/smb2/find.c struct smb2_find f; f 113 source4/torture/smb2/find.c ZERO_STRUCT(f); f 114 source4/torture/smb2/find.c f.in.file.handle = handle; f 115 source4/torture/smb2/find.c f.in.pattern = FNAME; f 116 source4/torture/smb2/find.c f.in.continue_flags = SMB2_CONTINUE_FLAG_RESTART; f 117 source4/torture/smb2/find.c f.in.max_response_size = 0x10000; f 123 source4/torture/smb2/find.c f.in.level = levels[i].level - 0x100; f 125 source4/torture/smb2/find.c levels[i].status = smb2_find_level(tree, tree, &f, &count, &d);