aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-01-04 22:59:13 +0000
committerKarl Heuer1996-01-04 22:59:13 +0000
commitea5a0917ecbafbe5f5c0841629987d02af783f05 (patch)
tree9e52be481e75d2bccbb182e8d12b312c7b7c0f28 /src
parent2a1a4c9d30dc3b36dd3e81edde18cd97ff6bb15a (diff)
downloademacs-ea5a0917ecbafbe5f5c0841629987d02af783f05.tar.gz
emacs-ea5a0917ecbafbe5f5c0841629987d02af783f05.zip
(WRITABLE): Renamed from WRITEABLE.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 96fc515b76c..dab274774d6 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1314,7 +1314,7 @@ init_sys_modes ()
1314#endif /* VSTOP */ 1314#endif /* VSTOP */
1315#endif /* mips or HAVE_TCATTR */ 1315#endif /* mips or HAVE_TCATTR */
1316#ifdef SET_LINE_DISCIPLINE 1316#ifdef SET_LINE_DISCIPLINE
1317 /* Need to explicitely request TERMIODISC line discipline or 1317 /* Need to explicitly request TERMIODISC line discipline or
1318 Ultrix's termios does not work correctly. */ 1318 Ultrix's termios does not work correctly. */
1319 tty.main.c_line = SET_LINE_DISCIPLINE; 1319 tty.main.c_line = SET_LINE_DISCIPLINE;
1320#endif 1320#endif
@@ -2029,7 +2029,7 @@ start_of_text ()
2029 * at least on UniPlus, is temacs will have to be made unshared so 2029 * at least on UniPlus, is temacs will have to be made unshared so
2030 * that text and data are contiguous. Then once loadup is complete, 2030 * that text and data are contiguous. Then once loadup is complete,
2031 * unexec will produce a shared executable where the data can be 2031 * unexec will produce a shared executable where the data can be
2032 * at the normal shared text boundry and the startofdata variable 2032 * at the normal shared text boundary and the startofdata variable
2033 * will be patched by unexec to the correct value. 2033 * will be patched by unexec to the correct value.
2034 * 2034 *
2035 */ 2035 */
@@ -2795,7 +2795,7 @@ sys_abort ()
2795 2795
2796#ifdef VMS 2796#ifdef VMS
2797#ifdef LINK_CRTL_SHARE 2797#ifdef LINK_CRTL_SHARE
2798#ifdef SHAREABLE_LIB_BUG 2798#ifdef SHARABLE_LIB_BUG
2799/* Variables declared noshare and initialized in sharable libraries 2799/* Variables declared noshare and initialized in sharable libraries
2800 cannot be shared. The VMS linker incorrectly forces you to use a private 2800 cannot be shared. The VMS linker incorrectly forces you to use a private
2801 version which is uninitialized... If not for this "feature", we 2801 version which is uninitialized... If not for this "feature", we
@@ -2841,7 +2841,7 @@ char *sys_errlist[] =
2841 "I/O stream empty", 2841 "I/O stream empty",
2842 "vax/vms specific error code nontranslatable error" 2842 "vax/vms specific error code nontranslatable error"
2843 }; 2843 };
2844#endif /* SHAREABLE_LIB_BUG */ 2844#endif /* SHARABLE_LIB_BUG */
2845#endif /* LINK_CRTL_SHARE */ 2845#endif /* LINK_CRTL_SHARE */
2846#endif /* VMS */ 2846#endif /* VMS */
2847 2847
@@ -3040,7 +3040,7 @@ char *sys_siglist[NSIG + 1] =
3040#ifdef sun 3040#ifdef sun
3041 "window size change", /* 20 SIGWINCH */ 3041 "window size change", /* 20 SIGWINCH */
3042 "urgent socket condition", /* 21 SIGURG */ 3042 "urgent socket condition", /* 21 SIGURG */
3043 "pollable event occured", /* 22 SIGPOLL */ 3043 "pollable event occurred", /* 22 SIGPOLL */
3044 "stop (cannot be caught or ignored)", /* 23 SIGSTOP */ 3044 "stop (cannot be caught or ignored)", /* 23 SIGSTOP */
3045 "user stop requested from tty", /* 24 SIGTSTP */ 3045 "user stop requested from tty", /* 24 SIGTSTP */
3046 "stopped process has been continued", /* 25 SIGCONT */ 3046 "stopped process has been continued", /* 25 SIGCONT */
@@ -3760,7 +3760,7 @@ sys_access (filename, type)
3760 /* Check write protection. */ 3760 /* Check write protection. */
3761 3761
3762#define CHECKPRIV(bit) (prvmask.bit) 3762#define CHECKPRIV(bit) (prvmask.bit)
3763#define WRITEABLE(field) (! ((xab.xab$w_pro >> field) & XAB$M_NOWRITE)) 3763#define WRITABLE(field) (! ((xab.xab$w_pro >> field) & XAB$M_NOWRITE))
3764 3764
3765 /* Find privilege bits */ 3765 /* Find privilege bits */
3766 status = SYS$SETPRV (0, 0, 0, prvmask); 3766 status = SYS$SETPRV (0, 0, 0, prvmask);
@@ -3781,7 +3781,7 @@ sys_access (filename, type)
3781 return -1; 3781 return -1;
3782 SYS$CLOSE (&fab, 0, 0); 3782 SYS$CLOSE (&fab, 0, 0);
3783 /* Check system access */ 3783 /* Check system access */
3784 if (CHECKPRIV (PRV$V_SYSPRV) && WRITEABLE (XAB$V_SYS)) 3784 if (CHECKPRIV (PRV$V_SYSPRV) && WRITABLE (XAB$V_SYS))
3785 return 0; 3785 return 0;
3786 /* Check ACL entries, if any */ 3786 /* Check ACL entries, if any */
3787 acl_controlled = 0; 3787 acl_controlled = 0;
@@ -3807,16 +3807,16 @@ sys_access (filename, type)
3807 return -1; 3807 return -1;
3808 } 3808 }
3809 /* No ACL entries specified, check normal protection */ 3809 /* No ACL entries specified, check normal protection */
3810 if (WRITEABLE (XAB$V_WLD)) /* World writeable */ 3810 if (WRITABLE (XAB$V_WLD)) /* World writable */
3811 return 0; 3811 return 0;
3812 if (WRITEABLE (XAB$V_GRP) && 3812 if (WRITABLE (XAB$V_GRP) &&
3813 (unsigned short) (xab.xab$l_uic >> 16) == grpid) 3813 (unsigned short) (xab.xab$l_uic >> 16) == grpid)
3814 return 0; /* Group writeable */ 3814 return 0; /* Group writable */
3815 if (WRITEABLE (XAB$V_OWN) && 3815 if (WRITABLE (XAB$V_OWN) &&
3816 (xab.xab$l_uic & 0xFFFF) == memid) 3816 (xab.xab$l_uic & 0xFFFF) == memid)
3817 return 0; /* Owner writeable */ 3817 return 0; /* Owner writable */
3818 3818
3819 return -1; /* Not writeable */ 3819 return -1; /* Not writable */
3820} 3820}
3821#endif /* not VMS4_4 */ 3821#endif /* not VMS4_4 */
3822#endif /* access */ 3822#endif /* access */
@@ -4499,7 +4499,7 @@ cnv_uaf_pw (up)
4499 retpw.pw_uid = up->uaf$w_mem; 4499 retpw.pw_uid = up->uaf$w_mem;
4500 retpw.pw_gid = up->uaf$w_grp; 4500 retpw.pw_gid = up->uaf$w_grp;
4501 4501
4502 /* I suppose this is not the best sytle, to possibly overwrite one 4502 /* I suppose this is not the best style, to possibly overwrite one
4503 byte beyond the end of the field, but what the heck... */ 4503 byte beyond the end of the field, but what the heck... */
4504 ptr = &up->uaf$t_username[UAF$S_USERNAME]; 4504 ptr = &up->uaf$t_username[UAF$S_USERNAME];
4505 while (ptr[-1] == ' ') 4505 while (ptr[-1] == ' ')