perl 5.003_01: pod/perltie.pod
[p5sagit/p5-mst-13.2.git] / unixish.h
index dc593c6..2f5f44b 100644 (file)
--- a/unixish.h
+++ b/unixish.h
@@ -1,31 +1,55 @@
-
 /*
  * The following symbols are defined if your operating system supports
  * functions by that name.  All Unixes I know of support them, thus they
  * are not checked by the configuration script, but are directly defined
  * here.
  */
-#define HAS_ALARM
-#define HAS_CHOWN
-#define HAS_CHROOT
-#define HAS_FORK
-#define HAS_GETLOGIN
-#define HAS_GETPPID
+
+/* HAS_IOCTL:
+ *     This symbol, if defined, indicates that the ioctl() routine is
+ *     available to set I/O characteristics
+ */
+#define        HAS_IOCTL               /**/
+/* HAS_UTIME:
+ *     This symbol, if defined, indicates that the routine utime() is
+ *     available to update the access and modification times of files.
+ */
+#define HAS_UTIME              /**/
+
+/* HAS_GROUP
+ *     This symbol, if defined, indicates that the getgrnam(),
+ *     getgrgid(), and getgrent() routines are available to 
+ *     get group entries.
+ */
+#define HAS_GROUP              /**/
+
+/* HAS_PASSWD
+ *     This symbol, if defined, indicates that the getpwnam(),
+ *     getpwuid(), and getpwent() routines are available to 
+ *     get password entries.
+ */
+#define HAS_PASSWD             /**/
+
 #define HAS_KILL
-#define HAS_LINK
-#define HAS_PIPE
 #define HAS_WAIT
-#define HAS_UMASK
-#define HAS_PAUSE
-/*
- * The following symbols are defined if your operating system supports
- * password and group functions in general.  All Unix systems do.
+  
+/* UNLINK_ALL_VERSIONS:
+ *     This symbol, if defined, indicates that the program should arrange
+ *     to remove all versions of a file if unlink() is called.  This is
+ *     probably only relevant for VMS.
  */
-#ifdef I_GRP
-#define HAS_GROUP
-#endif
-#ifdef I_PWD
-#define HAS_PASSWD
+/* #define UNLINK_ALL_VERSIONS         /**/
+
+/* VMS:
+ *     This symbol, if defined, indicates that the program is running under
+ *     VMS.  It is currently automatically set by cpps running under VMS,
+ *     and is included here for completeness only.
+ */
+/* #define VMS         /**/
+
+#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+# include <signal.h>
 #endif
 
 #ifndef SIGABRT
 #endif
 #define ABORT() kill(getpid(),SIGABRT);
 
+#define BIT_BUCKET "/dev/null"
+#define PERL_SYS_INIT(c,v)
+#define PERL_SYS_TERM()
+#define dXSUB_SYS int dummy
+
+/*
+ * fwrite1() should be a routine with the same calling sequence as fwrite(),
+ * but which outputs all of the bytes requested as a single stream (unlike
+ * fwrite() itself, which on some systems outputs several distinct records
+ * if the number_of_items parameter is >1).
+ */
+#define fwrite1 fwrite
+
+#define Stat(fname,bufptr) stat((fname),(bufptr))
+#define Fstat(fd,bufptr)   fstat((fd),(bufptr))
+#define Fflush(fp)         fflush(fp)
+
+#define my_getenv(var) getenv(var)
+