* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
-#if defined(USL) || defined(__uxp__)
-#define S_ISSOCK(mode) ((mode & S_IFMT) == S_IFSOCK)
-#endif
#include <stdio.h>
#include <Dt/Editor.h>
#include <Xm/ColorObjP.h>
_editCmdList = NULL;
_size_selected_label = NULL;
_format_button = NULL;
+ _descriptionDialog = NULL;
+ _no_attachments_label = NULL;
+ _attachments_label = NULL;
+ _size_attachments_label = NULL;
}
(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
if (read(fd, buffer, (unsigned int) s.st_size) < 0) {
SafeClose(fd);
+ delete [] buf;
+ delete [] buffer;
+ delete [] errormsg;
return(NULL);
}
buffer[s.st_size] = 0;