Compiles and runs under Mac OS X
VS: ---------------------------------------------------------------------- SKIPPED: psi/arrobj.c psi/pardef.c psi/polterwrite.c psi/tecs/tecs_cli.c
This commit is contained in:
@ -60,6 +60,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <tcl.h>
|
#include <tcl.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <limits.h>
|
||||||
#include "fortify.h"
|
#include "fortify.h"
|
||||||
#include "sics.h"
|
#include "sics.h"
|
||||||
#include "splitter.h"
|
#include "splitter.h"
|
||||||
|
@ -103,7 +103,7 @@ void DevexecLog(char *operation, char *device) {
|
|||||||
if(devLog != NULL){
|
if(devLog != NULL){
|
||||||
gettimeofday(&tv,&tm);
|
gettimeofday(&tv,&tm);
|
||||||
fprintf(devLog, "DEVEXEC:%s:%s:%ld:%ld\n",operation,device,
|
fprintf(devLog, "DEVEXEC:%s:%s:%ld:%ld\n",operation,device,
|
||||||
tv.tv_sec, tv.tv_usec);
|
(long)tv.tv_sec, (long)tv.tv_usec);
|
||||||
fflush(devLog);
|
fflush(devLog);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
13
macosx_def
Normal file
13
macosx_def
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# general defines used within the PSI makefile hierarchy
|
||||||
|
#
|
||||||
|
# Mark Koennecke, July 2003
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#DFORTIFY= -DFORTIFY
|
||||||
|
#FORTIFYOBJ= fortify.o strdup.o
|
||||||
|
#DFORTIFY= -pg
|
||||||
|
|
||||||
|
MFLAGS=-f makefile_linux$(DUMMY)
|
||||||
|
|
||||||
|
HDFROOT=/Users/Shared
|
2
make_gen
2
make_gen
@ -11,7 +11,7 @@ SOBJ = network.o ifile.o conman.o SCinter.o splitter.o passwd.o \
|
|||||||
sicsexit.o costa.o task.o $(FORTIFYOBJ) access.o\
|
sicsexit.o costa.o task.o $(FORTIFYOBJ) access.o\
|
||||||
macro.o ofac.o obpar.o obdes.o drive.o status.o intserv.o \
|
macro.o ofac.o obpar.o obdes.o drive.o status.o intserv.o \
|
||||||
devexec.o mumo.o mumoconf.o selector.o selvar.o fupa.o lld.o \
|
devexec.o mumo.o mumoconf.o selector.o selvar.o fupa.o lld.o \
|
||||||
lld_blob.o strrepl.o lin2ang.o fomerge.o napi4.o napi5.o \
|
lld_blob.o strrepl.o lin2ang.o fomerge.o napi5.o napi4.o\
|
||||||
script.o o2t.o alias.o napi.o nxdata.o stringdict.o sdynar.o \
|
script.o o2t.o alias.o napi.o nxdata.o stringdict.o sdynar.o \
|
||||||
histmem.o histdriv.o histsim.o interface.o callback.o nxio.o \
|
histmem.o histdriv.o histsim.o interface.o callback.o nxio.o \
|
||||||
event.o emon.o evcontroller.o evdriver.o simev.o perfmon.o \
|
event.o emon.o evcontroller.o evdriver.o simev.o perfmon.o \
|
||||||
|
42
makefile_macosx
Normal file
42
makefile_macosx
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#---------------------------------------------------------------------------
|
||||||
|
# Makefile for SICS
|
||||||
|
# machine-dependent part for Mac OS X
|
||||||
|
#
|
||||||
|
# Mark Koennecke 1996-2001
|
||||||
|
# Markus Zolliker, March 2003
|
||||||
|
# Mark Koennecke, July 2008
|
||||||
|
#==========================================================================
|
||||||
|
# assign if the National Instrument GPIB driver is available
|
||||||
|
SINQDIR=/Users/Shared
|
||||||
|
#NI= -DHAVENI
|
||||||
|
#NIOBJ= nigpib.o
|
||||||
|
#NILIB=$(SINQDIR)/sl5/lib/cib.o
|
||||||
|
|
||||||
|
include macosx_def
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
CFLAGS = -I$(HDFROOT)/include -I/sw/include -DNXXML -DHDF5 -DHDF4 $(NI) -DMACOSX \
|
||||||
|
-Ipsi/hardsup -I. \
|
||||||
|
-Werror -DNONINTF -g $(DFORTIFY) \
|
||||||
|
-Wall -Wno-unused -Wno-comment -Wno-switch
|
||||||
|
|
||||||
|
BINTARGET = bin
|
||||||
|
EXTRA=nintf.o
|
||||||
|
SUBLIBS = psi/libpsi.a psi/hardsup/libhlib.a matrix/libmatrix.a \
|
||||||
|
psi/tecs/libtecsl.a
|
||||||
|
LIBS = -L$(HDFROOT)/lib -L/sw/lib $(SUBLIBS) $(NILIB)\
|
||||||
|
-ltcl $(HDFROOT)/lib/libhdf5.a -lmfhdf -ldf \
|
||||||
|
$(HDFROOT)/lib/libsz.a \
|
||||||
|
$(HDFROOT)/lib/libjson.a -ljpeg \
|
||||||
|
-ldl -lz -lmxml $(HDFROOT)/lib/libghttp.a -lm -lc
|
||||||
|
|
||||||
|
include make_gen
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
|||||||
#ifdef __TURBOC__
|
#ifdef __TURBOC__
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifdef __TURBOC__
|
#ifdef __TURBOC__
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifdef __TURBOC__
|
#ifdef __TURBOC__
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifdef __TURBOC__
|
#ifdef __TURBOC__
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#else
|
#else
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -511,7 +511,7 @@ CreateSocketAdress(
|
|||||||
self->iType = 0;
|
self->iType = 0;
|
||||||
if (!disconnected) { /* do not write an error message on disconnect */
|
if (!disconnected) { /* do not write an error message on disconnect */
|
||||||
snprintf(buf, sizeof buf, "NETWrite: timeout, only %ld of %ld bytes sent (socket %d) %ld.%6.6ld",
|
snprintf(buf, sizeof buf, "NETWrite: timeout, only %ld of %ld bytes sent (socket %d) %ld.%6.6ld",
|
||||||
lLen - l, lLen, self->sockid, tmo.tv_sec, tmo.tv_usec);
|
lLen - l, lLen, self->sockid, (long)tmo.tv_sec, (long)tmo.tv_usec);
|
||||||
NetError(buf);
|
NetError(buf);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1065,7 +1065,7 @@ static int handlePut(SConnection *pCon, SicsInterp *pSics, pNXScript self,
|
|||||||
}
|
}
|
||||||
if(strlen(defString) < 900){
|
if(strlen(defString) < 900){
|
||||||
strcat(defString," -dim {");
|
strcat(defString," -dim {");
|
||||||
sprintf(numBuf,"%d",strlen(buffer)+1);
|
sprintf(numBuf,"%ld",strlen(buffer)+1);
|
||||||
strcat(defString,numBuf);
|
strcat(defString,numBuf);
|
||||||
strcat(defString," }");
|
strcat(defString," }");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user