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 */ |
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 |