summaryrefslogtreecommitdiff
path: root/usr.bin/mg/fileio.c
AgeCommit message (Expand)Author
2007-11-27typos; ok jmc@Martynas Venckus
2006-12-24Fix a bug where inserting a file resulted in an incorrectKjell Wooding
2006-11-19spacingTheo de Raadt
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
2006-07-25Rename the header line of a buffer to b_headp, from the remarkablyKjell Wooding
2006-06-29- use <dirent.h> not <sys/dir.h> (this appeases FreeBSD's annoying #warning)Jason Wright
2006-06-01fix styleKjell Wooding
2006-06-01make // /~ path rewriting optional in adjustname() and use it everywhereJason Wright
2006-05-03correct one more commentKjell Wooding
2006-05-03Do some KNF, clean up some unused junk that has lying around for 40-oddKjell Wooding
2006-05-03len = strlen(foo); if foo[len - 1]... will do bad things if len == 0.Kjell Wooding
2006-04-03lint love; ok kjellTheo de Raadt
2006-04-02test char against '\0', not 0Kjell Wooding
2005-12-20Clean up the ugly casted frees. In one case, this meant eliminating a nastyKjell Wooding
2005-12-20Do some delinting of strl-type functions. Also, remove a superfluousKjell Wooding
2005-12-13do some silly de-lintingKjell Wooding
2005-11-20#ifdef NO_DIR can go too. From Han Boetes.Kjell Wooding
2005-11-20Kill the NO_BACKUP #ifdefKjell Wooding
2005-11-20toast NO_DIRED #ifdef; ok kjellTheo de Raadt
2005-11-18greedy use of typedef struct was making code harder to read; ok kjell cloderTheo de Raadt
2005-11-13Better error checking of snprintfs. From Han Boetes.Kjell Wooding
2005-11-11Now that we have an editable minibuffer, revert parsing ofKjell Wooding
2005-11-11spacingTheo de Raadt
2005-10-18When attempting to open a filename, walk backwards through minibuffer:Kjell Wooding
2005-10-17Fix string handling. LOGIN_NAME_MAX includes the NUL, so don't reserve extraKjell Wooding
2005-10-14more headers to please lintTheo de Raadt
2005-10-14move the dired routines into dired.c where they belong.Kjell Wooding
2005-10-13Make dired buffer read-only by default.Kjell Wooding
2005-10-13Use dired mode automatically if file specified for loading isKjell Wooding
2005-10-13check if current line is null. fixes a core in dired.Kjell Wooding
2005-10-13Fix dired mode. Make deletions work, and keystrokes match emacs.Kjell Wooding
2005-06-14Add explicit public domain notices to all public domain files.Kjell Wooding
2005-04-03This is a no binary change which does:David Berghoff
2005-03-10spacingTheo de Raadt
2005-03-10the realpath() was needed to do do relative to absolute pathHenning Brauer
2005-03-09fix mg's behaviour with regards to files on which we do not haveJean-Francois Brousseau
2005-02-01make fbackupfile() return FALSE when the rename(2) from theHenning Brauer
2005-01-31Safer backup file generation using mkstemp(); henning@ OKTodd C. Miller
2005-01-11no need to call realpath() in adjustname()Henning Brauer
2004-07-09when saving a file, check whether it is newline terminated and if it is not,Vincent Labrecque
2004-07-08simplify the file writing loopVincent Labrecque
2003-11-14read(2) returns ssize_t, not size_t. spotted by Andrey Matveev.Vincent Labrecque
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-08-15make dired work more like emacs. (well, make it _work_, and then add aVincent Labrecque
2003-08-15 actually extract the filename off the ls line. makes dired *slightly*Vincent Labrecque
2003-05-08use NULL to indicate failure in functions that return pointers, not FALSE.Vincent Labrecque
2003-05-06fix a small memleak on errors. noticed by pat latifi.Vincent Labrecque
2002-08-22knfTheo de Raadt
2002-07-25 replace the ugly and buggy adjustname function by a simple one usingVincent Labrecque
2002-07-01KNFVincent Labrecque