tmp.c File Reference

#include "config.h"
#include "vi.h"
#include <sys/stat.h>

Include dependency graph for tmp.c:

Go to the source code of this file.

Defines

#define FAIL(why, arg)   mode = MODE_EX; msg(why, arg); endwin(); exit(9)

Functions

static void do_modelines (long l, long stop)
int tmpstart (char *filename)
int tmpsave (char *filename, int bang)
int tmpabort (int bang)
int tmpend (int bang)
 storename (char *name)
int deathtrap (int sig)

Variables

static char tmpname [80]


Define Documentation

#define FAIL why,
arg   )     mode = MODE_EX; msg(why, arg); endwin(); exit(9)
 

Definition at line 81 of file tmp.c.


Function Documentation

int deathtrap int  sig  ) 
 

Definition at line 697 of file tmp.c.

References BLK::c, close, cutend(), endwin(), exit(), PRESERVE, SIGBUS, SIGHUP, SIGILL, SIGPIPE, SIGSEGV, SIGSYS, SIGTERM, SIGUSR1, SIGUSR2, sprintf(), system(), tmpblk, tmpfd, tmpname, and tmpnum.

Referenced by main().

static void do_modelines long  l,
long  stop
[static]
 

Definition at line 34 of file tmp.c.

References exstring(), fetchline(), o_modelines, start, strlen(), and strncpy().

storename char *  name  ) 
 

Definition at line 643 of file tmp.c.

References BLKSIZE, getcwd, L, lseek, ptr, SLASH, strcpy(), strlen(), strncpy(), tmpfd, U_line, U_text, and write.

Referenced by cmd_file(), and cutswitch().

int tmpabort int  bang  ) 
 

Definition at line 569 of file tmp.c.

References blkinit(), cursor, cutswitch(), FALSE, initflags, L, markline, MODIFIED, nlines, o_autowrite, origname, origtime, prevline, prevorig, strcpy(), tmpend(), tmpfd, TRUE, and tstflag.

Referenced by cmd_edit(), cmd_next(), cmd_tag(), cmd_xit(), fillkeybuf(), and tmpend().

int tmpend int  bang  ) 
 

Definition at line 605 of file tmp.c.

References FALSE, MODIFIED, tmpabort(), tmpsave(), TRUE, and tstflag.

Referenced by cmd_xit(), and tmpabort().

int tmpsave char *  filename,
int  bang
 

Definition at line 447 of file tmp.c.

References access, blkget(), BLKSIZE, bytes, c, close, clrflag, creat, FALSE, FILEPERMS, i, L, lseek, MAXBLKS, MODIFIED, msg, nlines, O_APPEND, o_readonly, o_writeany, O_WRONLY, open, origname, ptr, READONLY, REG, setflag, significant, strcmp, strrchr(), TRUE, tstflag, and twrite.

Referenced by cmd_write(), and tmpend().

int tmpstart char *  filename  ) 
 

Definition at line 89 of file tmp.c.

References access, BLKSIZE, BLK::c, changes, close, creat, ENOENT, errno, FAIL, FALSE, FILEPERMS, garbage(), geteuid, getpid, getuid, hdr, i, inbuf, INFINITY, j, k, L, lnum, MARK_UNSET, MAXBLKS, msg, nbytes, next, NOFILE, O_BINARY, o_directory, O_RDONLY, O_RDWR, o_readonly, open, origname, origtime, READONLY, redraw(), REG, S_IFDIR, S_IFMT, S_IFREG, S_IWRITE, setflag, SLASH, sprintf(), stat::st_gid, stat::st_mode, stat::st_mtime, stat::st_uid, stat, strchr, strcpy(), strlen(), tmpblk, tmpfd, TMPNAME, tmpname, tmpnum, and write.

Referenced by cmd_edit(), cmd_next(), and cmd_tag().


Variable Documentation

char tmpname[80] [static]
 

Definition at line 84 of file tmp.c.

Referenced by apply(), deathtrap(), main(), process(), tmpstart(), and tty_rename().


Generated on Fri Apr 14 23:03:11 2006 for minix by  doxygen 1.4.6