diff options
| author | Karoly Lorentey | 2007-01-06 15:25:16 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2007-01-06 15:25:16 +0000 |
| commit | 191ae1cf7cd2571277635b3b8e488e773ca5c9b9 (patch) | |
| tree | e0b26e3040767dae38fb39a03b757da05088c58f /src/mac.c | |
| parent | 382707ecfb50f8c7794a7ba3d8cd9db9b6cd29d0 (diff) | |
| parent | f85c5e3b72855951b071eacb7b6e2d002c5fc4be (diff) | |
| download | emacs-191ae1cf7cd2571277635b3b8e488e773ca5c9b9.tar.gz emacs-191ae1cf7cd2571277635b3b8e488e773ca5c9b9.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-585
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-586
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-587
Update from erc--emacs--22
* emacs@sv.gnu.org/emacs--devo--0--patch-588
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-589
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-590
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-591
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-592
Diffstat (limited to 'src/mac.c')
| -rw-r--r-- | src/mac.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -2261,7 +2261,7 @@ sys_open (const char *path, int oflag) | |||
| 2261 | int res = open (mac_pathname, oflag); | 2261 | int res = open (mac_pathname, oflag); |
| 2262 | /* if (oflag == O_WRONLY || oflag == O_RDWR) */ | 2262 | /* if (oflag == O_WRONLY || oflag == O_RDWR) */ |
| 2263 | if (oflag & O_CREAT) | 2263 | if (oflag & O_CREAT) |
| 2264 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2264 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2265 | return res; | 2265 | return res; |
| 2266 | #else /* not __MRC__ */ | 2266 | #else /* not __MRC__ */ |
| 2267 | return open (mac_pathname, oflag); | 2267 | return open (mac_pathname, oflag); |
| @@ -2287,7 +2287,7 @@ sys_creat (const char *path, mode_t mode) | |||
| 2287 | { | 2287 | { |
| 2288 | #ifdef __MRC__ | 2288 | #ifdef __MRC__ |
| 2289 | int result = creat (mac_pathname); | 2289 | int result = creat (mac_pathname); |
| 2290 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2290 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2291 | return result; | 2291 | return result; |
| 2292 | #else /* not __MRC__ */ | 2292 | #else /* not __MRC__ */ |
| 2293 | return creat (mac_pathname, mode); | 2293 | return creat (mac_pathname, mode); |
| @@ -2415,7 +2415,7 @@ sys_fopen (const char *name, const char *mode) | |||
| 2415 | { | 2415 | { |
| 2416 | #ifdef __MRC__ | 2416 | #ifdef __MRC__ |
| 2417 | if (mode[0] == 'w' || mode[0] == 'a') | 2417 | if (mode[0] == 'w' || mode[0] == 'a') |
| 2418 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2418 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2419 | #endif /* not __MRC__ */ | 2419 | #endif /* not __MRC__ */ |
| 2420 | return fopen (mac_pathname, mode); | 2420 | return fopen (mac_pathname, mode); |
| 2421 | } | 2421 | } |
| @@ -4316,7 +4316,7 @@ assumed. Return non-nil if successful. */) | |||
| 4316 | OSType cCode; | 4316 | OSType cCode; |
| 4317 | CHECK_STRING (filename); | 4317 | CHECK_STRING (filename); |
| 4318 | 4318 | ||
| 4319 | cCode = mac_get_code_from_arg(code, 'EMAx'); | 4319 | cCode = mac_get_code_from_arg(code, MAC_EMACS_CREATOR_CODE); |
| 4320 | 4320 | ||
| 4321 | if (NILP(Ffile_exists_p(filename)) || !NILP(Ffile_directory_p(filename))) { | 4321 | if (NILP(Ffile_exists_p(filename)) || !NILP(Ffile_directory_p(filename))) { |
| 4322 | return Qnil; | 4322 | return Qnil; |