remove ultrix support
This commit is contained in:
@@ -68,29 +68,12 @@
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
|
||||
/** The following ifdefs need to be straightened out
|
||||
** They are a mess.
|
||||
**/
|
||||
#ifdef sun
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#ifndef SVR4
|
||||
#if defined(sun) && !defined(SVR4)
|
||||
#include <ufs/fs.h>
|
||||
#endif
|
||||
#else
|
||||
#ifdef __ultrix
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#include <ufs/fs.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#ifdef __hpux
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#endif /* __ultrix */
|
||||
#endif /* sun */
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
@@ -134,15 +117,6 @@ CheckAccess(
|
||||
uid_t save_ruid;
|
||||
gid_t save_rgid;
|
||||
|
||||
#if defined(__ultrix)
|
||||
/*--------------------------------------------------------------------
|
||||
* access code for __ultrix
|
||||
*------------------------------------------------------------------*/
|
||||
|
||||
setreuid(geteuid(),-1);
|
||||
return access (fname, what);
|
||||
|
||||
#else
|
||||
#ifdef BLS
|
||||
/*--------------------------------------------------------------------
|
||||
* access code for BLS
|
||||
@@ -181,7 +155,6 @@ CheckAccess(
|
||||
|
||||
return access_priv;
|
||||
#endif /* BLS */
|
||||
#endif /* Apollo */
|
||||
}
|
||||
|
||||
|
||||
@@ -975,8 +948,7 @@ FileManip(
|
||||
if (lstat (to, &s2) >= 0) /* <to> exists */
|
||||
{
|
||||
if ((stat (to, &s3) >= 0) &&
|
||||
#if defined(__ultrix) || defined(__linux__) || \
|
||||
defined(CSRG_BASED)
|
||||
#if defined(__linux__) || defined(CSRG_BASED)
|
||||
(((s3.st_mode & S_IFMT) == S_IFDIR) /* if is a directory */
|
||||
|| ((s3.st_mode & S_IFMT) == S_IFSOCK)) ) /* or a net special */
|
||||
#else
|
||||
|
||||
@@ -1821,7 +1821,7 @@ ExecuteFind(
|
||||
if (access_priv == -1 && geteuid() != root_user)
|
||||
{
|
||||
#else
|
||||
# if defined(__ultrix) || defined(__linux__) || defined(CSRG_BASED)
|
||||
# if defined(__linux__) || defined(CSRG_BASED)
|
||||
rv = setreuid(geteuid(),-1);
|
||||
if (access ((char *) path, R_OK) == -1)
|
||||
{
|
||||
|
||||
@@ -1615,11 +1615,7 @@ extern Pixmap _DtGetPixmap(
|
||||
*/
|
||||
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
# ifdef __ultrix
|
||||
# define _CLIENT_CAT_NAME "dtfile.cat"
|
||||
# else /* __ultrix */
|
||||
# define _CLIENT_CAT_NAME "dtfile"
|
||||
# endif /* __ultrix */
|
||||
# define _CLIENT_CAT_NAME "dtfile"
|
||||
extern char *_DtGetMessage(char *filename, int set, int n, char *s);
|
||||
# define GETMESSAGE(set, number, string)\
|
||||
(_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
|
||||
|
||||
@@ -157,11 +157,7 @@ extern int touch(String path);
|
||||
*/
|
||||
|
||||
#ifndef NO_MESSAGE_CATALOG
|
||||
# ifdef __ultrix
|
||||
# define _CLIENT_CAT_NAME "dtcopy.cat"
|
||||
# else /* __ultrix */
|
||||
# define _CLIENT_CAT_NAME "dtcopy"
|
||||
# endif /* __ultrix */
|
||||
# define _CLIENT_CAT_NAME "dtcopy"
|
||||
extern char *_DtGetMessage(char *filename, int set, int n, char *s);
|
||||
# define GETMESSAGE(set, number, string)\
|
||||
(_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
|
||||
|
||||
Reference in New Issue
Block a user