This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.000 patch.0i: fix glaring mistakes in patches a-h
[perl5.git] / unixish.h
index dc593c6..207a9b6 100644 (file)
--- a/unixish.h
+++ b/unixish.h
@@ -5,18 +5,22 @@
  * are not checked by the configuration script, but are directly defined
  * here.
  */
  * 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              /**/
+
 #define HAS_KILL
 #define HAS_LINK
 #define HAS_KILL
 #define HAS_LINK
-#define HAS_PIPE
 #define HAS_WAIT
 #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.
 /*
  * The following symbols are defined if your operating system supports
  * password and group functions in general.  All Unix systems do.
 #define HAS_PASSWD
 #endif
 
 #define HAS_PASSWD
 #endif
 
+
+#if !defined(NSIG) || defined(M_UNIX) || defined(M_XENIX)
+# include <signal.h>
+#endif
+
 #ifndef SIGABRT
 #    define SIGABRT SIGILL
 #endif
 #ifndef SIGABRT
 #    define SIGABRT SIGILL
 #endif
 #endif
 #define ABORT() kill(getpid(),SIGABRT);
 
 #endif
 #define ABORT() kill(getpid(),SIGABRT);
 
+/*
+ * 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 my_getenv(var) getenv(var)