remove OSF1 support

This commit is contained in:
chase
2018-05-24 14:50:03 -05:00
committed by Jon Trulson
parent 3c1736f077
commit 164e695cd0
325 changed files with 290 additions and 9980 deletions

View File

@@ -675,14 +675,7 @@ AttachArea::addAttachment(
(page_size - (s.st_size % page_size)));
char * map;
#if defined(__osf__)
// This version of mmap does NOT allow requested length to be
// greater than the file size ... in contradiction to the
// documentation (don't round up).
map = (char *) mmap(0, s.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
#else
map = (char *) mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
#endif
if (map == (char *)-1) {
// We could not map it for some reason. Let's just read it into

View File

@@ -793,14 +793,7 @@ TemplateCmd::doit()
int free_buf = 0;
mbuf.size = buf.st_size;
#ifdef __osf__
// This version of mmap does NOT allow requested length to be
// greater than the file size ... in contradiction to the
// documentation (don't round up).
mbuf.buffer = mmap(0, buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
#else
mbuf.buffer = mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
#endif
if (mbuf.buffer == (char *)-1) {
free_buf = 1;
mbuf.buffer = new char[mbuf.size];

View File

@@ -3944,11 +3944,7 @@ VacationCmd::parseVacationMessage()
int free_buf = 0;
mbuf.size = buf.st_size;
#ifdef __osf__
mbuf.buffer = (char *)mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
#else
mbuf.buffer = mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
#endif
if (mbuf.buffer == (char *)-1) {
free_buf = 1;
mbuf.buffer = new char[mbuf.size];

View File

@@ -2372,18 +2372,6 @@ SendMsgDialog::construct_text_popup(void)
_textPopupMenuList->add( _edit_cut );
_textPopupMenuList->add( _edit_copy );
_textPopupMenuList->add( _edit_paste );
#ifdef __osf__
// Work in progress from Mike. This adds the Paste Special to the
// third mouse button in the compose area of a compose window.
// Begin Paste Special submenu
CmdList * subcmdList1 = new CmdList ( "Paste Special", GETMSG(DT_catd, 1, 135 , "Paste Special") );
subcmdList1->add(_edit_paste_special[0]);
subcmdList1->add(_edit_paste_special[1]);
// End Paste Special submenu
_textPopupMenuList->add( subcmdList1 ); // Add Paste Special submenu
// (Either way) _textPopupMenuList->add( separator );
_textPopupMenuList->add( _edit_clear );
#endif
_textPopupMenuList->add( _edit_delete );
_textPopupMenuList->add( _edit_select_all );

View File

@@ -647,15 +647,7 @@ XmTextEditor::loadFile(const char * path, const int pos)
(page_size - (info.st_size % page_size)));
char * map;
#if defined(__osf__)
// Need the (char *) for compile to work in ALL cases ... for the
// POSIX "mmap" is (void *). Also, this version of mmap does NOT
// allow requested length to be greater than the file size ...
// in contradiction to the documentation (don't round up).
map = (char *) mmap(0, info.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
#else
map = (char *) mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
#endif
if (map == (char *)-1) {
// We could not map it for some reason. Let's just read it into