/[emacs]/emacs/src/msdos.c
ViewVC logotype

Diff of /emacs/src/msdos.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.158 by pj, Tue Dec 11 06:22:23 2001 UTC revision 1.159 by eliz, Wed Dec 19 18:56:00 2001 UTC
# Line 38  Boston, MA 02111-1307, USA.  */ Line 38  Boston, MA 02111-1307, USA.  */
38  #include <string.h>      /* for bzero and string functions */  #include <string.h>      /* for bzero and string functions */
39  #include <sys/stat.h>    /* for _fixpath */  #include <sys/stat.h>    /* for _fixpath */
40  #include <unistd.h>      /* for chdir, dup, dup2, etc. */  #include <unistd.h>      /* for chdir, dup, dup2, etc. */
41    #include <dir.h>         /* for getdisk */
42  #if __DJGPP__ >= 2  #if __DJGPP__ >= 2
43  #include <fcntl.h>  #include <fcntl.h>
44  #include <io.h>          /* for setmode */  #include <io.h>          /* for setmode */
# Line 4118  getdefdir (drive, dst) Line 4119  getdefdir (drive, dst)
4119    return 1;    return 1;
4120  }  }
4121    
4122    char *
4123    emacs_root_dir (void)
4124    {
4125      static char root_dir[4];
4126    
4127      sprintf (root_dir, "%c:/", 'A' + getdisk ());
4128      root_dir[0] = tolower (root_dir[0]);
4129      return root_dir;
4130    }
4131    
4132  /* Remove all CR's that are followed by a LF.  */  /* Remove all CR's that are followed by a LF.  */
4133    
4134  int  int

Legend:
Removed from v.1.158  
changed lines
  Added in v.1.159

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26