/haiku-fatelf/src/add-ons/mail_daemon/inbound_filters/spam_filter/ |
H A D | SpamFilter.cpp | 188 AGMSBayesianSpamFilter::HeaderFetched(const entry_ref& ref, BFile* file) argument 190 _CheckForSpam(file); 195 AGMSBayesianSpamFilter::BodyFetched(const entry_ref& ref, BFile* file) argument 205 if (file->GetAttrInfo ("MAIL:classification", &attributeInfo) == B_OK) 208 _CheckForSpam(file); 213 AGMSBayesianSpamFilter::_CheckForSpam(BFile* file) argument 226 file->GetSize(&dataSize); 228 file->Read(stringBuffer, dataSize); 248 file->WriteAttr("MAIL:classification", B_STRING_TYPE, 0 /* offset */, 252 // attached to the eventual output file 402 _AddSpamToSubject(BNode* file, float spamRatio) argument [all...] |
/haiku-fatelf/src/add-ons/media/plugins/asf_reader/libasf/ |
H A D | asf.h | 1 /* libasf - An Advanced Systems Format media file parser 53 ASF_ERROR_EOF = -201, /* end of file reached */ 54 ASF_ERROR_IO = -202, /* error reading or writing to file */ 56 /* errors related to file being corrupted */ 63 ASF_ERROR_SEEKABLE = -400, /* file not seekable */ 64 ASF_ERROR_SEEK = -401 /* file is seekable but seeking failed */ 124 /* seek function, seeks to offset from beginning of the file, 227 /* initialize the library using file on a local filesystem */ 235 LIBASF_API void asf_close(asf_file_t *file); 238 /* initialize the library and read all header information of the ASF file */ [all...] |
/haiku-fatelf/src/libs/pdflib/libs/flate/ |
H A D | zlib.h | 53 enough (for example if an input file is mmap'ed), or can be done by 177 not compatible with the zlib.h header file used by the application. 619 This function can be used to compress a whole file at once if the 620 input file is mmap'ed. 651 This function can be used to decompress a whole file at once if the 652 input file is mmap'ed. 664 Opens a gzip (.gz) file for reading or writing. The mode parameter 670 gzopen can be used to read a file which is not in gzip format; in this 671 case gzread will directly read from the file without decompression. 673 gzopen returns NULL if the file coul [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/random_file_actions/ |
H A D | random_file_actions.cpp | 153 "Performs some random file actions for file system testing.\n" 158 " -f, --file-count=<count>\tThe maximal number of files to create.\n" 162 " -m, --max-file-size=<size>\tThe maximal file size of the files.\n" 170 " -n, --no-cache\t\tDisables the file cache when doing I/O on\n" 171 "\t\t\t\ta file.\n" 315 // in the append case, we need to check the file size 318 error("stat file failed: %s\n", strerror(errno)); 390 check_file(const struct entry& file) argument 455 const struct entry& file = *i; local 566 struct entry file; local 632 struct entry& file = files[choose_index(files)]; local 653 struct entry& file = files[choose_index(files)]; local 679 struct entry& file = files[choose_index(files)]; local [all...] |
/haiku-fatelf/src/tools/translation/tiffinfo/ |
H A D | tiffinfo.cpp | 9 // the TIFF file, for every image in the file. Also, for some fields, 52 // The actual value or the file offset 169 print_ifd_value(IFDEntry &entry, BFile &file, swap_action swp) argument 320 ssize_t nread = file.ReadAt(entry.longval, ascfield, entry.count); 332 ssize_t nread = file.ReadAt(entry.longval, &rational, 8); 345 ssize_t nread = file.ReadAt(entry.longval, &srational, 8); 451 report_ifd_entries(BFile &file, uint16 entrycount, swap_action swp) argument 460 off_t offset = file.Position(); 462 ssize_t nread = file 492 report_ifd(BFile &file, uint32 ifdoffset, swap_action swp) argument [all...] |
/haiku-fatelf/src/bin/diffutils/src/ |
H A D | analyze.c | 1 /* Analyze file differences for GNU DIFF. 6 This file is part of GNU DIFF. 19 along with this program; see the file COPYING. 183 of changes, the algorithm is linear in the file size. */ 326 The subsequence of file 0 is [XOFF, XLIM) and likewise for file 1. 389 /* Discard lines from one file that have no matches in the other file. 392 comparison algorithm; it will be as if that line were not in the file. 393 The file' [all...] |
H A D | ifdef.c | 6 This file is part of GNU DIFF. 20 file named COPYING. Among other things, the copyright notice 29 struct file_data const *file; member in struct:group 46 /* Print the edit-script SCRIPT as a merged #ifdef file. */ 71 /* Determine range of line numbers involved in each file. */ 89 Lines BEG0 up to END0 are from the first file; 90 lines BEG1 up to END1 are from the second file. */ 97 groups[0].file = &files[0]; 100 groups[1].file = &files[1]; 106 /* Print to file OU 234 struct file_data const *file = group->file; local 299 do_printf_spec(FILE *out, char const *spec, struct file_data const *file, lin n, struct group const *groups) argument [all...] |
/haiku-fatelf/src/kits/network/libbind/resolv/ |
H A D | res_debug.c | 137 fp_resstat(const res_state statp, FILE *file) { argument 140 fprintf(file, ";; res options:"); 143 fprintf(file, " %s", p_option(mask)); 144 putc('\n', file); 150 int pflag, FILE *file) 167 fprintf(file, ";; memory allocation failure\n"); 176 fprintf(file, ";; ns_parserr: %s\n", 180 putc('\n', file); 184 fprintf(file, ";; %s SECTION:\n", 187 fprintf(file, ";;\ 148 do_section(const res_state statp, ns_msg *handle, ns_sect section, int pflag, FILE *file) argument 277 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) argument 349 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument 363 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 395 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument [all...] |
/haiku-fatelf/src/libs/zlib/ |
H A D | gzread.c | 47 file is reached, even though there may be unused data in the buffer. Once 48 that data has been used, no more attempts will be made to read the file. 99 the output buffer. In that case, all further file reads will be directly to 183 if (flags & 8) /* file name */ 193 /* an unexpected end of file is not checked for here -- it will be 204 /* not a gzip file -- save first byte (31) and fall to raw i/o */ 248 gz_error(state, Z_DATA_ERROR, "unexpected end of file"); 278 gz_error(state, Z_DATA_ERROR, "unexpected end of file"); 298 Data is either copied from the input file or decompressed from the input 299 file dependin [all...] |
/haiku-fatelf/src/bin/gawk/intl/ |
H A D | Makefile | 307 for file in $$dists; do \ 308 $(INSTALL_DATA) $(srcdir)/$$file \ 309 $(DESTDIR)$(gettextsrcdir)/$$file; \ 313 for file in $$dists; do \ 314 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ 315 $(INSTALL_DATA) $$dir/$$file \ 316 $(DESTDIR)$(gettextsrcdir)/$$file; \ 319 for file in $$dists; do \ 320 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 376 if grep '^# Packages using this file [all...] |
/haiku-fatelf/src/bin/sharutils/src/ |
H A D | remsync | 31 $CONFIG = ".remsync"; # file containing synchronization information 32 $ARCHIVE = ".remsync.tar.gz"; # default file name of packed synchro. package 34 $ORDERS = "orders"; # file name containaing synchro. directives 60 quit get out of program, saving file \`$CONFIG\' if modified 317 "Init mode %-5s Send file signatures, but no file contents\n", 662 local ($site, $index, $ordinal, $file, @signature); 678 || &interrupt ("Cannot delete file \`$ARCHIVE\'"); 699 || &interrupt ("Cannot create file \`$WORKDIR/$ORDERS\'"); 721 # Transmit all file signature [all...] |
H A D | remsync.in | 31 $CONFIG = ".remsync"; # file containing synchronization information 32 $ARCHIVE = ".remsync.tar.gz"; # default file name of packed synchro. package 34 $ORDERS = "orders"; # file name containaing synchro. directives 60 quit get out of program, saving file \`$CONFIG\' if modified 317 "Init mode %-5s Send file signatures, but no file contents\n", 662 local ($site, $index, $ordinal, $file, @signature); 678 || &interrupt ("Cannot delete file \`$ARCHIVE\'"); 699 || &interrupt ("Cannot create file \`$WORKDIR/$ORDERS\'"); 721 # Transmit all file signature [all...] |
/haiku-fatelf/src/tests/kits/mail/ |
H A D | header_test.cpp | 60 format_filter(BFile& file) argument 66 if (file.GetSize(&size) == B_OK) { 70 file.Read(buffer, size); 144 BFile file(&entry, B_READ_ONLY); 145 if (file.InitCheck() != B_OK) { 146 fprintf(stderr, "could not open file: %s\n", 147 strerror(file.InitCheck())); 154 BBufferIO bufferIO(&file, 8192, false); 160 format_filter(file); 163 parse_fields(file, 819 [all...] |
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/MyNetwork/ |
H A D | InstallPrinter.cpp | 174 int file = open(path, O_RDONLY); local 175 if (file >= 0) 177 fs_write_attr(file, "BEOS:TYPE", B_STRING_TYPE, 0, PRT_ATTR_MIMETYPE, strlen(PRT_ATTR_MIMETYPE) + 1); 178 fs_write_attr(file, "Driver Name", B_STRING_TYPE, 0, printerTypes[type], strlen(printerTypes[type]) + 1); 179 fs_write_attr(file, "Printer Name", B_STRING_TYPE, 0, printer, strlen(printer) + 1); 180 fs_write_attr(file, "state", B_STRING_TYPE, 0, PRT_ATTR_STATE, strlen(PRT_ATTR_STATE) + 1); 181 fs_write_attr(file, "transport", B_STRING_TYPE, 0, PRT_ATTR_TRANSPORT, strlen(PRT_ATTR_TRANSPORT) + 1); 182 fs_write_attr(file, "transport_address", B_STRING_TYPE, 0, PRT_ATTR_TRANSPORTADDR, strlen(PRT_ATTR_TRANSPORTADDR) + 1); 183 fs_write_attr(file, "connection", B_STRING_TYPE, 0, PRT_ATTR_CONNECTION, strlen(PRT_ATTR_CONNECTION) + 1); 184 fs_write_attr(file, "Comment [all...] |
/haiku-fatelf/src/bin/bash/ |
H A D | mailcheck.c | 5 This file is part of GNU Bash, the Bourne Again SHell. 66 /* Non-zero means warn if a mail file has been read since last checked. */ 112 /* Locate a file in the list. Return index of 115 find_mail_file (file) 116 char *file; 121 if (STREQ (mailfiles[i]->name, file)) 159 char *file; local 162 file = mailfiles[i]->name; 163 if (mailstat (file, &finfo) == 0) 169 /* Add this file t 265 char *file; local 286 char *file; local 304 char *file; local [all...] |
/haiku-fatelf/src/bin/network/ftp/ |
H A D | complete.c | 42 * FTP user program - command and file completion routines 163 * Complete a local file 170 char *file; local 176 if ((file = strrchr(word, '/')) == NULL) { 179 file = word; 181 if (file == word) { 185 (void)strlcpy(dir, word, file - word + 1); 186 file++; 201 len = strlen(file); 214 if (strncmp(file, d 284 char *file, *cp; local [all...] |
/haiku-fatelf/src/preferences/filetypes/ |
H A D | FileTypes.cpp | 50 status_t _Open(BFile* file, int32 mode); 90 BFile file; local 91 if (_Open(&file, B_READ_ONLY) != B_OK) 95 if (settings.Unflatten(&file) == B_OK) { 110 BFile file; 111 if (_Open(&file, B_CREATE_FILE | B_ERASE_FILE | B_WRITE_ONLY) != B_OK) 114 fMessage.Flatten(&file); 159 Settings::_Open(BFile* file, int32 mode) argument 167 return file->SetTo(path.Path(), mode); 215 BFile file; local 439 is_application(BFile& file) argument 455 is_resource(BFile& file) argument [all...] |
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | mailstat.c | 1 /* mailstat.c -- stat a mailbox file, handling maildir-type mail directories */ 5 This file is part of GNU Bash, the Bourne Again SHell. 38 * Stat a file. If it's a maildir, check all messages 39 * in the maildir and present the grand total as a file. 47 * st_atime access time of newest file in maildir 48 * st_mtime modify time of newest file in maildir 63 char dir[PATH_MAX * 2], file[PATH_MAX * 2]; local 127 sprintf(file, "%s/", dir); 128 l = strlen(file); 133 if (fn->d_name[0] == '.' || strlen(fn->d_name) + l >= sizeof(file)) [all...] |
/haiku-fatelf/src/bin/network/tcpdump/libpcap/Win32/Include/ |
H A D | inetprivate.h | 57 extern void fp_query(char *msg, FILE *file); 58 extern char *p_cdname(char *cp, char *msg, FILE *file); 59 extern char *p_rr(char *cp, char *msg, FILE *file);
|
/haiku-fatelf/src/bin/network/tcpdump/win32/Include/ |
H A D | inetprivate.h | 30 extern void fp_query(char *msg, FILE *file); 31 extern char *p_cdname(char *cp, char *msg, FILE *file); 32 extern char *p_rr(char *cp, char *msg, FILE *file);
|
/haiku-fatelf/src/tests/system/benchmarks/libMicro/ |
H A D | cascade_fcntl.c | 4 * The contents of this file are subject to the terms 6 * (the "License"). You may not use this file except 16 * HEADER in each file and include the License file at 70 static int file; variable 83 " [-d directory for temp file (default %s)]\n" 114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600); 115 if (file == -1) { 123 if (ftruncate(file, nlocks * 3) == -1) { 139 return (fcntl(file, F_SETLK [all...] |
/haiku-fatelf/headers/private/storage/ |
H A D | ResourceFile.h | 10 \file ResourceFile.h 37 \brief Represents a file capable of containing resources. 39 This class provides access to the resources of a file. 40 Basically a ResourceFile object can be set to a file, load infos for the 43 resources to the file (WriteResources()). 51 of resources to the file. 62 status_t SetTo(BFile* file, bool clobber = false); 74 void _InitFile(BFile& file, bool clobber); 76 void _InitELFFile(BFile& file); 80 void _InitELFXFile(BFile& file, uint6 [all...] |
/haiku-fatelf/src/system/libroot/posix/glibc/libio/ |
H A D | genops.c | 2 This file is part of the GNU C Library. 19 As a special exception, if you link the code in this file with 23 however invalidate any other reasons why the executable file 61 if (fp->file._flags & _IO_LINKED) 71 f = (struct _IO_FILE_plus **) &(*f)->file._chain) 75 *f = (struct _IO_FILE_plus *) fp->file._chain; 80 fp->file._flags &= ~_IO_LINKED; 95 if ((fp->file._flags & _IO_LINKED) == 0) 97 fp->file._flags |= _IO_LINKED; 104 fp->file 326 __underflow(_IO_FILE *file) argument [all...] |
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | ln.c | 29 #include "file-set.h" 58 /* If true, list each file as it is moved. */ 69 command `ln --force --no-dereference file symlink-to-dir' deletes 107 target_directory_operand (char const *file) 109 char const *b = last_component (file); 114 (dereference_dest_dir_symlinks ? stat (file, &st) : lstat (file, &st)); 118 error (EXIT_FAILURE, err, _("accessing %s"), quote (file)); 120 error (EXIT_FAILURE, err, _("target %s is not a directory"), quote (file)); 124 /* Make a link DEST to the (usually) existing file SOURC 106 target_directory_operand(char const *file) argument 415 char **file; local [all...] |
/haiku-fatelf/src/apps/processcontroller/ |
H A D | Preferences.cpp | 58 BFile file(&entry, B_READ_ONLY); 59 if (file.InitCheck() == B_OK) 60 Unflatten(&file); 80 BFile file(fSettingsFile, B_READ_ONLY); 81 if (file.InitCheck() == B_OK) 82 Unflatten(&file); 91 BFile file; local 93 file.SetTo(fSettingsFile, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 98 prefdir.CreateFile(fName, &file, false); 102 if (file [all...] |