From: qrczak Date: Fri, 18 May 2001 21:19:11 +0000 (+0000) Subject: [project @ 2001-05-18 21:19:11 by qrczak] X-Git-Tag: Approximately_9120_patches~1932 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=684aa58c719cb165dd49d18855ea660658979031;p=ghc-hetmet.git [project @ 2001-05-18 21:19:11 by qrczak] Remove and don't install: stgio.h, stgerror.h, fileObject.h. --- diff --git a/ghc/lib/std/cbits/Makefile b/ghc/lib/std/cbits/Makefile index 7f36209..77e2e31 100644 --- a/ghc/lib/std/cbits/Makefile +++ b/ghc/lib/std/cbits/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.26 2001/03/26 16:56:27 simonmar Exp $ +# $Id: Makefile,v 1.27 2001/05/18 21:19:11 qrczak Exp $ TOP = ../../.. include $(TOP)/mk/boilerplate.mk @@ -15,6 +15,4 @@ endif # ----------------------------------------------------------------------------- # Installation -INSTALL_DATAS += stgio.h stgerror.h fileObject.h - include $(TOP)/mk/target.mk diff --git a/ghc/lib/std/cbits/stgerror.h b/ghc/lib/std/cbits/stgerror.h deleted file mode 100644 index 225194b..0000000 --- a/ghc/lib/std/cbits/stgerror.h +++ /dev/null @@ -1,147 +0,0 @@ -/* ----------------------------------------------------------------------------- - * $Id: stgerror.h,v 1.1 1999/11/26 16:25:56 simonmar Exp $ - * - * (c) The GRASP/AQUA Project, Glasgow University, 1994-1999 - * - * Error codes used by the IO subsystem. - * - * ---------------------------------------------------------------------------*/ - -#ifndef STGERROR_H -#define STGERROR_H - -#define ERR_ALREADYEXISTS 1 -#define ERR_HARDWAREFAULT 2 -#define ERR_ILLEGALOPERATION 3 -#define ERR_INAPPROPRIATETYPE 4 -#define ERR_INTERRUPTED 5 -#define ERR_INVALIDARGUMENT 6 -#define ERR_NOSUCHTHING 7 -#define ERR_OTHERERROR 8 -#define ERR_PERMISSIONDENIED 9 -#define ERR_PROTOCOLERROR 10 -#define ERR_RESOURCEBUSY 11 -#define ERR_RESOURCEEXHAUSTED 12 -#define ERR_RESOURCEVANISHED 13 -#define ERR_SYSTEMERROR 14 -#define ERR_TIMEEXPIRED 15 -#define ERR_UNSATISFIEDCONSTRAINTS 16 -#define ERR_UNSUPPORTEDOPERATION 17 -#define ERR_USERERROR 18 -#define ERR_EOF 19 - -#define GHC_E2BIG -1 -#define GHC_EACCES -2 -#define GHC_EADDRINUSE -3 -#define GHC_EADDRNOTAVAIL -4 -#define GHC_EADV -5 -#define GHC_EAFNOSUPPORT -6 -#define GHC_EAGAIN -7 -#define GHC_EAIO -8 -#define GHC_EALREADY -9 -#define GHC_EBADF -10 -#define GHC_EBADMSG -11 -#define GHC_EBADRPC -12 -#define GHC_EBUSY -13 -#define GHC_ECANCELED -14 -#define GHC_ECHILD -15 -#define GHC_ECLONEME -16 -#define GHC_ECOMM -17 -#define GHC_ECONNABORTED -18 -#define GHC_ECONNREFUSED -19 -#define GHC_ECONNRESET -20 -#define GHC_EDEADLK -21 -#define GHC_EDESTADDRREQ -22 -#define GHC_EDIRTY -23 -#define GHC_EDOM -24 -#define GHC_EDOTDOT -25 -#define GHC_EDQUOT -26 -#define GHC_EDUPPKG -27 -#define GHC_EEXIST -28 -#define GHC_EFAIL -29 -#define GHC_EFAULT -30 -#define GHC_EFBIG -31 -#define GHC_EFTYPE -32 -#define GHC_EHOSTDOWN -33 -#define GHC_EHOSTUNREACH -34 -#define GHC_EIDRM -35 -#define GHC_EILSEQ -36 -#define GHC_EINPROG -37 -#define GHC_EINPROGRESS -38 -#define GHC_EINTR -39 -#define GHC_EINVAL -40 -#define GHC_EIO -41 -#define GHC_EISCONN -42 -#define GHC_EISDIR -43 -#define GHC_ELOOP -44 -#define GHC_EMEDIA -45 -#define GHC_EMFILE -46 -#define GHC_EMLINK -47 -#define GHC_EMSGSIZE -48 -#define GHC_EMTIMERS -49 -#define GHC_EMULTIHOP -50 -#define GHC_ENAMETOOLONG -51 -#define GHC_ENETDOWN -52 -#define GHC_ENETRESET -53 -#define GHC_ENETUNREACH -54 -#define GHC_ENFILE -55 -#define GHC_ENOBUFS -56 -#define GHC_ENODATA -57 -#define GHC_ENODEV -58 -#define GHC_ENOENT -59 -#define GHC_ENOEXEC -60 -#define GHC_ENOLCK -61 -#define GHC_ENOLINK -62 -#define GHC_ENOMEM -63 -#define GHC_ENOMSG -64 -#define GHC_ENONET -65 -#define GHC_ENOPKG -66 -#define GHC_ENOPROTOOPT -67 -#define GHC_ENOSPC -68 -#define GHC_ENOSR -69 -#define GHC_ENOSTR -70 -#define GHC_ENOSYM -71 -#define GHC_ENOSYS -72 -#define GHC_ENOTBLK -73 -#define GHC_ENOTCONN -74 -#define GHC_ENOTDIR -75 -#define GHC_ENOTEMPTY -76 -#define GHC_ENOTSOCK -77 -#define GHC_ENOTSUP -78 -#define GHC_ENOTTY -79 -#define GHC_ENXIO -80 -#define GHC_EOPNOTSUPP -81 -#define GHC_EPERM -82 -#define GHC_EPFNOSUPPORT -83 -#define GHC_EPIPE -84 -#define GHC_EPROCLIM -85 -#define GHC_EPROCUNAVAIL -86 -#define GHC_EPROGMISMATCH -87 -#define GHC_EPROGUNAVAIL -88 -#define GHC_EPROTO -89 -#define GHC_EPROTONOSUPPORT -90 -#define GHC_EPROTOTYPE -91 -#define GHC_ERANGE -92 -#define GHC_ERELOCATED -93 -#define GHC_EREMCHG -94 -#define GHC_EREMOTE -95 -#define GHC_EROFS -96 -#define GHC_ERPCMISMATCH -97 -#define GHC_ERREMOTE -98 -#define GHC_ESHUTDOWN -99 -#define GHC_ESOCKTNOSUPPORT -100 -#define GHC_ESOFT -101 -#define GHC_ESPIPE -102 -#define GHC_ESRCH -103 -#define GHC_ESRMNT -104 -#define GHC_ESTALE -105 -#define GHC_ETIME -106 -#define GHC_ETIMEDOUT -107 -#define GHC_ETOOMANYREFS -108 -#define GHC_ETXTBSY -109 -#define GHC_EUSERS -110 -#define GHC_EVERSION -111 -#define GHC_EWOULDBLOCK -112 -#define GHC_EXDEV -113 - -#endif /* STGERROR_H */ diff --git a/ghc/lib/std/cbits/stgio.h b/ghc/lib/std/cbits/stgio.h deleted file mode 100644 index 87fb04f..0000000 --- a/ghc/lib/std/cbits/stgio.h +++ /dev/null @@ -1,175 +0,0 @@ -/* ----------------------------------------------------------------------------- - * $Id: stgio.h,v 1.29 2001/05/08 08:55:18 simonmar Exp $ - * - * (c) The GRASP/AQUA Project, Glasgow University, 1994-1999 - * - * Helper code for GHC's IO subsystem. - * - * ---------------------------------------------------------------------------*/ - -#ifndef STGIO_H -#define STGIO_H - -#include "StgDLL.h" /* for DLL_IMPORT_STDLIB */ - -#include "stgerror.h" -#include "fileObject.h" - -/* Function prototypes for the I/O subsytem... */ - -/* closeFile.c */ -StgAddr allocMemory__ (StgInt); - -/* closeFile.c */ -StgInt closeFile (StgForeignPtr,StgInt); - -/* echoAux.c */ -StgInt setTerminalEcho (StgForeignPtr, StgInt); -StgInt getTerminalEcho (StgForeignPtr); -StgInt isTerminalDevice (StgForeignPtr); - -/* env.c */ -char * strDup (const char *); -int setenviron (char **); -int copyenv (void); -int _setenv (char *); -int delenv (char *); - -/* errno.c */ -DLL_IMPORT_STDLIB extern int ghc_errno; -DLL_IMPORT_STDLIB extern int ghc_errtype; -DLL_IMPORT_STDLIB extern char* ghc_errstr; - -void cvtErrno(void); -void stdErrno(void); -void convertErrno(void); -StgAddr getErrStr__(void); -StgInt getErrNo__(void); -StgInt getErrType__(void); - -/* execvpe.c */ -int execvpe (char *, char **, char **); - -/* fileEOF.c */ -StgInt fileEOF (StgForeignPtr); -/* fileGetc.c */ -StgInt fileGetc (StgForeignPtr); - -/* fileLookAhead.c */ -StgInt fileLookAhead (StgForeignPtr); -StgInt ungetChar (StgForeignPtr,StgChar); - -/* fileObject.c */ -void setBufFlags (StgForeignPtr, StgInt); -void setBufWPtr (StgForeignPtr, StgInt); -StgInt getBufWPtr (StgForeignPtr); -void setBuf (StgForeignPtr, StgAddr, StgInt); -StgAddr getBuf (StgForeignPtr); -StgAddr getWriteableBuf (StgForeignPtr); -StgAddr getBufStart (StgForeignPtr,StgInt); -StgInt getBufSize (StgForeignPtr); -void setFilePtr (StgForeignPtr, StgAddr); -StgAddr getFilePtr (StgForeignPtr); -void setConnectedTo (StgForeignPtr, StgForeignPtr, StgInt); -void setPushbackBufSize (StgInt); -StgInt getPushbackBufSize (void); -void setNonBlockingIOFlag__ (StgForeignPtr); -void clearNonBlockingIOFlag__ (StgForeignPtr); -void setConnNonBlockingIOFlag__ (StgForeignPtr); -void clearConnNonBlockingIOFlag__ (StgForeignPtr); -StgInt getFileFd (StgForeignPtr); -StgInt getConnFileFd (StgForeignPtr); -StgInt fill_up_line_buffer(IOFileObject*); - -/* filePosn.c */ -StgInt getFilePosn (StgForeignPtr); -StgInt setFilePosn (StgForeignPtr, StgInt, StgByteArray); - -/* filePutc.c */ -StgInt filePutc (StgForeignPtr, StgChar); - -/* fileSize.c */ -StgInt fileSize (StgForeignPtr, StgByteArray); -StgInt fileSize_int64 (StgForeignPtr, StgByteArray); - -/* flushFile.c */ -StgInt flushFile (StgForeignPtr); -StgInt flushBuffer (StgForeignPtr); -StgInt flushReadBuffer (StgForeignPtr); -void flushConnectedBuf (StgForeignPtr); - -/* freeFile.c */ -void freeStdFile (StgAddr); -void freeStdFileObject (StgAddr); -void freeFileObject (StgAddr); - -StgAddr ref_freeStdFileObject (void); -StgAddr ref_freeFileObject (void); - -/* getBufferMode.c */ -StgInt getBufferMode (StgForeignPtr); - -/* getLock.c */ -int lockFile (int, int, int); -int unlockFile (int); -StgInt getLock (StgInt, StgInt); - -/* inputReady.c */ -StgInt inputReady (StgForeignPtr, StgInt); - -/* openFile.c */ -IOFileObject* openFile (StgByteArray, StgInt, StgInt); -IOFileObject* openFd (StgInt, StgInt, StgInt); -IOFileObject* openStdFile (StgInt, StgInt); - -/* progargs.c */ -StgAddr get_prog_argv(void); -StgInt get_prog_argc(void); - -/* readFile.c */ -StgInt readBlock (StgForeignPtr); -StgInt readChunk (StgForeignPtr,StgAddr,StgInt,StgInt); -StgInt readLine (StgForeignPtr); -StgInt readChar (StgForeignPtr); - -/* seekFile.c */ -StgInt seekFile (StgForeignPtr, StgInt, StgInt, StgByteArray); -StgInt seekFile_int64 (StgForeignPtr, StgInt, StgInt64); -StgInt seekFileP (StgForeignPtr); - -/* setBinaryMode.c */ -StgInt setBinaryMode__ (StgForeignPtr, StgInt); - -/* setBuffering.c */ -StgInt setBuffering (StgForeignPtr, StgInt); -StgInt const_BUFSIZ (void); - -/* setCurrentDirectory.c */ -StgInt setCurrentDirectory (StgByteArray); - -/* showTime.c */ -StgInt showTime (StgInt, StgByteArray, StgInt, StgByteArray); - -/* system.c */ -StgInt systemCmd (StgByteArray); - -/* writeError.c */ -StgAddr addrOf_ErrorHdrHook(void); -void writeErrString__ (StgAddr, StgByteArray, StgInt); - -/* writeFile.c */ -StgInt writeBuf (StgForeignPtr, StgAddr, StgInt, StgInt); -StgInt writeBufBA (StgForeignPtr, StgByteArray, StgInt, StgInt); -StgInt writeFileObject (StgForeignPtr, StgInt); -StgInt writeBuffer (StgForeignPtr, StgInt); -StgInt write_ (StgForeignPtr ptr, StgAddr buf, StgInt len); - -/* tcSetAttr.c */ -#ifdef HAVE_TERMIOS_H -#include -int tcSetAttr (int fd, int options, const struct termios *tp); -#endif - -#endif /* ! STGIO_H */ - -