| /src/external/bsd/less/dist/ |
| ifile.c | 1 /* $NetBSD: ifile.c,v 1.5 2023/10/06 05:49:49 simonb Exp $ */ 14 * An IFILE represents an input file. 16 * It is actually a pointer to an ifile structure, 18 * Ifile structures are kept in a linked list in the order they 26 extern IFILE curr_ifile; 28 struct ifile { struct 29 struct ifile *h_next; /* Links for command line list */ 30 struct ifile *h_prev; 36 char h_opened; /* Has this ifile been opened? */ 43 * Convert an IFILE (external representation [all...] |
| funcs.h | 120 public void close_altpipe(IFILE ifile); 123 public int edit_ifile(IFILE ifile); 130 public IFILE save_curr_ifile(void); 131 public void unsave_ifile(IFILE save_ifile); 132 public void reedit_ifile(IFILE save_ifile); 167 public void del_ifile(IFILE h); 168 public IFILE next_ifile(IFILE h) [all...] |
| edit.c | 38 extern IFILE curr_ifile; 39 extern IFILE old_ifile; 327 public void close_altpipe(IFILE ifile) 329 FILE *altpipe = get_altpipe(ifile); 333 set_altpipe(ifile, NULL); 406 static int edit_error(char *filename, char *alt_filename, void *altpipe, IFILE ifile, IFILE was_curr_ifile) 414 del_ifile(ifile); [all...] |
| mark.c | 16 extern IFILE curr_ifile; 22 * A mark is an ifile (input file) plus a position within the file. 29 * because we don't want to create an ifile until the 33 IFILE m_ifile; /* Input file being marked */ 54 static void cmark(struct mark *m, IFILE ifile, POSITION pos, int ln) 56 m->m_ifile = ifile; 88 static void mark_set_ifile(struct mark *m, IFILE ifile) 90 m->m_ifile = ifile; [all...] |
| lsystem.c | 38 extern IFILE curr_ifile; 54 IFILE save_ifile;
|
| main.c | 26 public IFILE curr_ifile = NULL_IFILE; 27 public IFILE old_ifile = NULL_IFILE; 76 IFILE ifile; local 188 * to "register" them with the ifile system. 190 ifile = NULL_IFILE; 192 ifile = get_ifile(FAKE_HELPFILE, ifile); 213 (void) get_ifile(qfilename, ifile); 215 ifile = prev_ifile(NULL_IFILE) [all...] |
| prompt.c | 35 extern IFILE curr_ifile; 241 IFILE h;
|
| filename.c | 53 extern IFILE curr_ifile; 54 extern IFILE old_ifile; 301 IFILE ifile; local 330 ifile = fchar_ifile(*fr); 331 if (ifile == NULL_IFILE) 334 n += (int) strlen(get_filename(ifile)); 364 ifile = fchar_ifile(*fr); 365 if (ifile == NULL_IFILE) 369 strcpy(to, get_filename(ifile)); [all...] |
| less.h | 312 * An IFILE represents an input file. 314 #define IFILE void* 315 #define NULL_IFILE ((IFILE)NULL)
|
| command.c | 51 extern IFILE curr_ifile; 1094 IFILE save_ifile; 1237 IFILE old_ifile; 1238 IFILE new_ifile;
|
| optfunc.c | 49 extern IFILE curr_ifile; 323 IFILE save_ifile;
|
| ch.c | 58 * A pointer to the filestate is kept in the ifile structure. 138 extern IFILE curr_ifile;
|
| /src/external/bsd/ntp/dist/scripts/build/ |
| updateBEDate | 32 open(my $IFILE, "<", $i) or die "Cannot open < $i: $!"; 34 while(<$IFILE>) { 46 close($IFILE);
|
| /src/usr.sbin/traceroute/ |
| trrt2netbsd | 56 open(IFILE, "<$f") || die "Cannot open $f"; 71 while (<IFILE>) { 100 close(IFILE) || die "closing input file";
|
| /src/sbin/dump_lfs/ |
| lfs_inode.c | 305 static IFILE * 330 return (IFILE *) &((IFILE64 *)ifileblock)[index]; 332 return (IFILE *) &((IFILE32 *)ifileblock)[index]; 334 return (IFILE *) &((IFILE_V1 *)ifileblock)[index]; 370 /* Load the ifile inode if not already */
|
| /src/sys/ufs/lfs/ |
| lfs_itimes.c | 79 IFILE *ifp;
|
| lfs_alloc.c | 95 * Add a new block to the Ifile, to accommodate future file creations. 117 * Get a block and extend the ifile inode. Leave the buffer for 165 * Initialize the ifile block. 203 (void) LFS_BWRITE_LOG(bp); /* Ifile */ 224 IFILE *ifp; 248 * Fetch the ifile entry and make sure the inode is really 262 * Retrieve the version number from the ifile entry. It was 267 /* Done with ifile entry */ 282 * No more inodes; extend the ifile so that the next 322 IFILE *ifp [all...] |
| lfs_accessors.h | 677 /* Read in the block with a specific segment usage entry from the ifile. */ 685 panic("lfs: ifile read: segentry %llu: error %d\n", \ 837 /* Read in the block with a specific inode from the ifile. */ 840 (IP) = (IFILE *)((IFILE64 *)(BP)->b_data + \ 843 (IP) = (IFILE *)((IFILE32 *)(BP)->b_data + \ 846 (IP) = (IFILE *)((IFILE_V1 *)(BP)->b_data + \ 857 panic("lfs: ifile ino %d read %d", (int)(IN), _e); \ 863 (IP) = (IFILE *)((IFILE64 *)(IP) + 1); \ 865 (IP) = (IFILE *)((IFILE32 *)(IP) + 1); \ 867 (IP) = (IFILE *)((IFILE_V1 *)(IP) + 1); [all...] |
| lfs_kclean.c | 87 IFILE *ifp; 107 /* Check each inode against ifile entry */ 116 /* Not ifile. Check address against ifile. */ 160 IFILE *ifp; 180 /* Check each inode against ifile entry */ 189 /* Not ifile. Check address against ifile. */ 596 IFILE *ifp; 614 /* Check each inode against ifile entry * [all...] |
| lfs_syscalls.c | 219 IFILE *ifp; 290 * any Ifile blocks that we might be asked to clean will never get 311 * Get the IFILE entry (only once) and see if the file still 443 /* Indirect block or ifile */ 472 * XXX should account indirect blocks and ifile pages as well 660 IFILE *ifp; 701 * Get the IFILE entry (only once) and see if the file still
|
| /src/sbin/fsck_lfs/ |
| pass0.c | 102 IFILE *ifp;
|
| pass1.c | 90 IFILE *ifp; 191 IFILE *ifp;
|
| inode.c | 102 IFILE *ifp; 469 IFILE *ifp; 496 LFS_WRITESEGENTRY(sup, fs, oldsn, bp); /* Ifile */
|
| pass6.c | 65 * as well as the Ifile; and so we can add the blocks to their new 209 IFILE *ifp; 420 IFILE *ifp; 431 /* Move ifile pointer to this location */ 471 IFILE *ifp; 585 * Pass 1: find inode blocks. We ignore the Ifile inode but accept
|
| /src/usr.sbin/dumplfs/ |
| dumplfs.c | 118 /* Ifile formats */ 123 print_ientry(int i, struct lfs *lfsp, IFILE *ip) 219 case 'i': /* Dump ifile entries */ 222 case 'I': /* Use this ifile inode */ 356 * We are reading all the blocks of an inode and dumping out the ifile table. 393 warnx("unable to locate ifile inode at disk address 0x%jx", 527 print_ientry(cnt, lfsp, (IFILE *)ip); 942 "ifile ", lfs_sb_getifile(lfsp));
|