Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/libraries/Cabal/Distribution/Compat/TempFile.hc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "newmacros.h"
#include "runtime.h"

#define FN_Distribution_46Compat_46TempFile_46c_95getpid_35	((void*)startLabel+8)
#define CT_v424	((void*)startLabel+24)
#define F0_Distribution_46Compat_46TempFile_46c_95getpid_35	((void*)startLabel+32)
#define FN_Distribution_46Compat_46TempFile_46c_95getpid	((void*)startLabel+44)
#define CT_v425	((void*)startLabel+56)
#define CF_Distribution_46Compat_46TempFile_46c_95getpid	((void*)startLabel+64)
#define FN_Distribution_46Compat_46TempFile_46getProcessID	((void*)startLabel+84)
#define CT_v426	((void*)startLabel+108)
#define CF_Distribution_46Compat_46TempFile_46getProcessID	((void*)startLabel+116)
#define CT_v427	((void*)startLabel+180)
#define FN_LAMBDA419	((void*)startLabel+220)
#define CT_v428	((void*)startLabel+240)
#define F0_LAMBDA419	((void*)startLabel+248)
#define FN_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName	((void*)startLabel+276)
#define CT_v429	((void*)startLabel+348)
#define F0_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName	((void*)startLabel+356)
#define FN_LAMBDA418	((void*)startLabel+424)
#define v430	((void*)startLabel+463)
#define CT_v432	((void*)startLabel+496)
#define F0_LAMBDA418	((void*)startLabel+504)
#define FN_LAMBDA417	((void*)startLabel+548)
#define CT_v434	((void*)startLabel+568)
#define CF_LAMBDA417	((void*)startLabel+576)
#define CT_v435	((void*)startLabel+608)
#define FN_LAMBDA422	((void*)startLabel+644)
#define CT_v436	((void*)startLabel+660)
#define F0_LAMBDA422	((void*)startLabel+668)
#define FN_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName	((void*)startLabel+696)
#define CT_v437	((void*)startLabel+756)
#define F0_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName	((void*)startLabel+764)
#define FN_LAMBDA421	((void*)startLabel+824)
#define v438	((void*)startLabel+862)
#define CT_v440	((void*)startLabel+904)
#define F0_LAMBDA421	((void*)startLabel+912)
#define FN_LAMBDA420	((void*)startLabel+960)
#define CT_v441	((void*)startLabel+984)
#define F0_LAMBDA420	((void*)startLabel+992)
#define ST_v433	((void*)startLabel+1000)
void FR_Distribution_46Compat_46TempFile_46c_95getpid_35(void);
extern Node FN_NHC_46Internal_46_95mkIOok0[];
extern Node FN_Prelude_46fromIntegral[];
extern Node CF_Prelude_46Integral_46NHC_46PosixTypes_46CPid[];
extern Node CF_Prelude_46Num_46Prelude_46Int[];
extern Node FN_Prelude_46_46[];
extern Node F0_Prelude_46Monad_46NHC_46Internal_46IO_46return[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[];
extern Node FN_Prelude_46Num_46Prelude_46Show[];
extern Node FN_System_46FilePath_46Posix_46_60_46_62[];
extern Node FN_Prelude_46show[];
extern Node FN_NHC_46Internal_46_95apply1[];
extern Node FN_Prelude_46_43_43[];
extern Node FN_NHC_46Internal_46_95apply2[];
extern Node FN_System_46FilePath_46Posix_46_60_47_62[];
extern Node FN_Directory_46doesFileExist[];
extern Node FN_Prelude_46_43[];
extern Node FN_Prelude_46fromInteger[];
extern Node FN_Directory_46removeFile[];
extern Node FN_Control_46Exception_46try[];
extern Node FN_Control_46Exception_46finally[];
extern Node FN_IO_46openFile[];
extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46return[];

static Node startLabel[] = {
  bytes2word(1,0,0,1)
, useLabel(CT_v424)
,	/* FN_Distribution_46Compat_46TempFile_46c_95getpid_35: (byte 0) */
  bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE)
, useLabel(FR_Distribution_46Compat_46TempFile_46c_95getpid_35)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v424: (byte 0) */
  HW(0,1)
, 0
,	/* F0_Distribution_46Compat_46TempFile_46c_95getpid_35: (byte 0) */
  CAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46c_95getpid_35),1)
, bytes2word(0,0,0,0)
, useLabel(CT_v425)
,	/* FN_Distribution_46Compat_46TempFile_46c_95getpid: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v425: (byte 0) */
  HW(2,0)
, 0
,	/* CF_Distribution_46Compat_46TempFile_46c_95getpid: (byte 0) */
  VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46c_95getpid))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok0))
, useLabel(F0_Distribution_46Compat_46TempFile_46c_95getpid_35)
, bytes2word(0,0,0,0)
, useLabel(CT_v426)
,	/* FN_Distribution_46Compat_46TempFile_46getProcessID: (byte 0) */
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_CVAL_P1,7)
, bytes2word(HEAP_OFF_N1,5,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(8,HEAP_CVAL_P1,9,HEAP_OFF_N1)
, bytes2word(5,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
,	/* CT_v426: (byte 0) */
  HW(7,0)
, 0
,	/* CF_Distribution_46Compat_46TempFile_46getProcessID: (byte 0) */
  VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46getProcessID))
, VAPTAG(useLabel(FN_Prelude_46fromIntegral))
, useLabel(CF_Prelude_46Integral_46NHC_46PosixTypes_46CPid)
, useLabel(CF_Prelude_46Num_46Prelude_46Int)
, VAPTAG(useLabel(FN_Prelude_46_46))
, useLabel(F0_Prelude_46Monad_46NHC_46Internal_46IO_46return)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, useLabel(CF_Distribution_46Compat_46TempFile_46c_95getpid)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v427)
,};
Node FN_Distribution_46Compat_46TempFile_46withTempFile[] = {
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG_ARG,2)
, bytes2word(1,HEAP_ARG,3,PUSH_HEAP)
, bytes2word(HEAP_CVAL_I4,HEAP_CVAL_I5,HEAP_OFF_N1,6)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v427: (byte 0) */
  HW(3,3)
, 0
,};
Node F0_Distribution_46Compat_46TempFile_46withTempFile[] = {
  CAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46withTempFile),3)
, CAPTAG(useLabel(FN_LAMBDA419),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, useLabel(CF_Distribution_46Compat_46TempFile_46getProcessID)
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v428)
,	/* FN_LAMBDA419: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG_ARG)
, bytes2word(1,2,HEAP_ARG,3)
, bytes2word(HEAP_CVAL_I4,HEAP_ARG,4,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v428: (byte 0) */
  HW(2,4)
, 0
,	/* F0_LAMBDA419: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA419),4)
, VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName))
, useLabel(CF_Prelude_46Num_46Prelude_46Int)
, bytes2word(5,0,4,1)
, bytes2word(3,2,2,3)
, bytes2word(1,4,0,5)
, useLabel(CT_v429)
,	/* FN_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName: (byte 0) */
  bytes2word(NEEDHEAP_P1,37,PUSH_HEAP,HEAP_CVAL_I3)
, bytes2word(HEAP_ARG,4,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_CVAL_P1,6,HEAP_P1,0)
, bytes2word(HEAP_CVAL_P1,7,HEAP_OFF_N1,3)
, bytes2word(HEAP_ARG,5,HEAP_CVAL_P1,8)
, bytes2word(HEAP_OFF_N1,7,HEAP_OFF_N1,5)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,9,HEAP_OFF_N1)
, bytes2word(11,HEAP_OFF_N1,5,HEAP_ARG)
, bytes2word(1,HEAP_CVAL_P1,10,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,9,HEAP_OFF_N1,2)
, bytes2word(HEAP_ARG,2,HEAP_I1,HEAP_CVAL_P1)
, bytes2word(11,HEAP_P1,0,HEAP_CVAL_P1)
, bytes2word(12,HEAP_ARG_ARG,5,4)
, bytes2word(HEAP_ARG_ARG,1,2,HEAP_ARG)
, bytes2word(3,HEAP_P1,0,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,13,HEAP_OFF_N1,10)
, bytes2word(HEAP_OFF_N1,9,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
,	/* CT_v429: (byte 0) */
  HW(11,5)
, 0
,	/* F0_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName: (byte 0) */
  CAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName),5)
, VAPTAG(useLabel(FN_Prelude_46Num_46Prelude_46Show))
, VAPTAG(useLabel(FN_System_46FilePath_46Posix_46_60_46_62))
, VAPTAG(useLabel(FN_LAMBDA417))
, VAPTAG(useLabel(FN_Prelude_46show))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_Prelude_46_43_43))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_System_46FilePath_46Posix_46_60_47_62))
, VAPTAG(useLabel(FN_Directory_46doesFileExist))
, CAPTAG(useLabel(FN_LAMBDA418),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(7,0,6,1)
, bytes2word(5,2,4,3)
, bytes2word(3,4,2,5)
, bytes2word(1,6,0,7)
, useLabel(CT_v432)
,	/* FN_LAMBDA418: (byte 0) */
  bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG,7,EVAL)
, bytes2word(NEEDHEAP_I32,JUMPFALSE,33,0)
, bytes2word(HEAP_CVAL_I3,HEAP_ARG,2,HEAP_CVAL_I4)
, bytes2word(HEAP_ARG,2,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(3,HEAP_CADR_N1,2,HEAP_CVAL_P1)
, bytes2word(6,HEAP_OFF_N1,8,HEAP_ARG)
, bytes2word(1,HEAP_OFF_N1,6,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,7,HEAP_ARG_ARG,3)
, bytes2word(4,HEAP_ARG_ARG,5,2)
,	/* v430: (byte 3) */
  bytes2word(HEAP_OFF_N1,9,RETURN_EVAL,HEAP_CVAL_I5)
, bytes2word(HEAP_ARG_ARG,5,6,HEAP_CVAL_P1)
, bytes2word(8,HEAP_ARG,6,HEAP_CVAL_P1)
, bytes2word(9,HEAP_OFF_N1,3,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,10,HEAP_OFF_N1,8)
, bytes2word(HEAP_OFF_N1,4,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, 1
,	/* CT_v432: (byte 0) */
  HW(8,7)
, 0
,	/* F0_LAMBDA418: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA418),7)
, VAPTAG(useLabel(FN_Prelude_46_43))
, VAPTAG(useLabel(FN_Prelude_46fromInteger))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46301_46findTempName))
, VAPTAG(useLabel(FN_Directory_46removeFile))
, VAPTAG(useLabel(FN_Control_46Exception_46try))
, VAPTAG(useLabel(FN_Control_46Exception_46finally))
, bytes2word(0,0,0,0)
, useLabel(CT_v434)
,	/* FN_LAMBDA417: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,2,STRING)
, bytes2word(RETURN,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, CONSTRW(1,0)
, useLabel(ST_v433)
,	/* CT_v434: (byte 0) */
  HW(0,0)
, 0
,	/* CF_LAMBDA417: (byte 0) */
  VAPTAG(useLabel(FN_LAMBDA417))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v435)
,};
Node FN_Distribution_46Compat_46TempFile_46openTempFile[] = {
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_ARG_ARG,2)
, bytes2word(1,PUSH_HEAP,HEAP_CVAL_I4,HEAP_CVAL_I5)
, bytes2word(HEAP_OFF_N1,5,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
,	/* CT_v435: (byte 0) */
  HW(3,2)
, 0
,};
Node F0_Distribution_46Compat_46TempFile_46openTempFile[] = {
  CAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46openTempFile),2)
, CAPTAG(useLabel(FN_LAMBDA422),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, useLabel(CF_Distribution_46Compat_46TempFile_46getProcessID)
, bytes2word(3,0,2,1)
, bytes2word(1,2,0,3)
, useLabel(CT_v436)
,	/* FN_LAMBDA422: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG_ARG)
, bytes2word(1,2,HEAP_CVAL_I4,HEAP_ARG)
, bytes2word(3,RETURN_EVAL,ENDCODE,0)
, bytes2word(0,0,0,0)
,	/* CT_v436: (byte 0) */
  HW(2,3)
, 0
,	/* F0_LAMBDA422: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA422),3)
, VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName))
, useLabel(CF_Prelude_46Num_46Prelude_46Int)
, bytes2word(0,0,4,0)
, bytes2word(3,1,2,2)
, bytes2word(1,3,0,4)
, useLabel(CT_v437)
,	/* FN_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName: (byte 0) */
  bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG)
, bytes2word(3,HEAP_CVAL_I4,HEAP_P1,0)
, bytes2word(HEAP_CVAL_I5,HEAP_OFF_N1,3,HEAP_ARG)
, bytes2word(4,PUSH_HEAP,HEAP_CVAL_P1,6)
, bytes2word(HEAP_ARG,1,HEAP_OFF_N1,5)
, bytes2word(HEAP_CVAL_P1,7,PUSH_HEAP,HEAP_CVAL_P1)
, bytes2word(8,HEAP_OFF_N1,2,HEAP_ARG)
, bytes2word(2,HEAP_I1,HEAP_CVAL_P1,9)
, bytes2word(HEAP_P1,0,HEAP_CVAL_P1,10)
, bytes2word(HEAP_ARG_ARG,4,3,HEAP_ARG_ARG)
, bytes2word(1,2,HEAP_P1,0)
, bytes2word(PUSH_HEAP,HEAP_CVAL_P1,11,HEAP_OFF_N1)
, bytes2word(9,HEAP_OFF_N1,8,RETURN_EVAL)
, bytes2word(ENDCODE,0,0,0)
, bytes2word(0,0,0,0)
,	/* CT_v437: (byte 0) */
  HW(9,4)
, 0
,	/* F0_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName: (byte 0) */
  CAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName),4)
, VAPTAG(useLabel(FN_Prelude_46Num_46Prelude_46Show))
, VAPTAG(useLabel(FN_Prelude_46show))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_Prelude_46_43_43))
, VAPTAG(useLabel(FN_System_46FilePath_46Posix_46_60_47_62))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_Directory_46doesFileExist))
, CAPTAG(useLabel(FN_LAMBDA421),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(0,0,6,0)
, bytes2word(5,1,4,2)
, bytes2word(3,3,2,4)
, bytes2word(1,5,0,6)
, useLabel(CT_v440)
,	/* FN_LAMBDA421: (byte 0) */
  bytes2word(NEEDSTACK_I16,PUSH_ZAP_ARG,6,EVAL)
, bytes2word(NEEDHEAP_I32,JUMPFALSE,32,0)
, bytes2word(HEAP_CVAL_I3,HEAP_ARG,2,HEAP_CVAL_I4)
, bytes2word(HEAP_ARG,2,HEAP_CVAL_I5,HEAP_OFF_N1)
, bytes2word(3,HEAP_CADR_N1,2,HEAP_CVAL_P1)
, bytes2word(6,HEAP_OFF_N1,8,HEAP_ARG)
, bytes2word(1,HEAP_OFF_N1,6,PUSH_HEAP)
, bytes2word(HEAP_CVAL_P1,7,HEAP_ARG_ARG,3)
, bytes2word(4,HEAP_ARG,2,HEAP_OFF_N1)
,	/* v438: (byte 2) */
  bytes2word(8,RETURN_EVAL,HEAP_CVAL_IN3,HEAP_CVAL_P1)
, bytes2word(8,HEAP_ARG,5,HEAP_OFF_N1)
, bytes2word(3,HEAP_CVAL_P1,9,HEAP_ARG)
, bytes2word(5,PUSH_HEAP,HEAP_CVAL_P1,10)
, bytes2word(HEAP_OFF_N1,6,HEAP_OFF_N1,4)
, bytes2word(RETURN_EVAL,ENDCODE,0,0)
, bytes2word(0,0,0,0)
, 0
, CONSTR(3,0,0)
, CONSTRW(1,0)
, 1
,	/* CT_v440: (byte 0) */
  HW(8,6)
, 0
,	/* F0_LAMBDA421: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA421),6)
, VAPTAG(useLabel(FN_Prelude_46_43))
, VAPTAG(useLabel(FN_Prelude_46fromInteger))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1))
, VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2))
, VAPTAG(useLabel(FN_Distribution_46Compat_46TempFile_46Prelude_46291_46findTempName))
, VAPTAG(useLabel(FN_IO_46openFile))
, CAPTAG(useLabel(FN_LAMBDA420),1)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61))
, bytes2word(0,0,2,0)
, bytes2word(1,1,0,2)
, useLabel(CT_v441)
,	/* FN_LAMBDA420: (byte 0) */
  bytes2word(NEEDHEAP_I32,HEAP_CVAL_N1,1,HEAP_ARG_ARG)
, bytes2word(1,2,PUSH_HEAP,HEAP_CVAL_I3)
, bytes2word(HEAP_OFF_N1,4,RETURN_EVAL,ENDCODE)
, bytes2word(0,0,0,0)
, 0
, CONSTR(0,2,0)
,	/* CT_v441: (byte 0) */
  HW(1,2)
, 0
,	/* F0_LAMBDA420: (byte 0) */
  CAPTAG(useLabel(FN_LAMBDA420),2)
, VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return))
,	/* ST_v433: (byte 0) */
  bytes2word(116,109,112,0)
,};

#include <haskell2c.h>
#include <HsFFI.h>

/* foreign import ccall "getpid" Distribution.Compat.TempFile.c_getpid# 1 :: Prelude.() -> FFI.Int32 */
extern HsInt32 getpid(void);
#ifdef PROFILE
static SInfo pf_Distribution_46Compat_46TempFile_46c_95getpid_35 = {"Distribution.Compat.TempFile","Distribution.Compat.TempFile.c_getpid#","FFI.Int32"};
#endif
C_HEADER(FR_Distribution_46Compat_46TempFile_46c_95getpid_35) {
  NodePtr nodeptr;
  HsInt32 result;
  /* void arg1 */;

  result = getpid();

  nodeptr = nhc_mkInt32(result);
  INIT_PROFINFO(nodeptr,&pf_Distribution_46Compat_46TempFile_46c_95getpid_35);
  C_RETURN(nodeptr);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.