]> pd.if.org Git - pdclib/commitdiff
Created to hold host-specific stdio code.
authorsolar <unknown>
Thu, 22 Jan 2004 07:10:24 +0000 (07:10 +0000)
committersolar <unknown>
Thu, 22 Jan 2004 07:10:24 +0000 (07:10 +0000)
personalities/__pdc_stdio.h [new file with mode: 0644]

diff --git a/personalities/__pdc_stdio.h b/personalities/__pdc_stdio.h
new file mode 100644 (file)
index 0000000..539d7b0
--- /dev/null
@@ -0,0 +1,22 @@
+// ----------------------------------------------------------------------------
+// $Id$
+// ----------------------------------------------------------------------------
+// Public Domain C Library - http://pdclib.sourceforge.net
+// This code is Public Domain. Use, modify, and redistribute at will.
+// ----------------------------------------------------------------------------
+// Input/output - personality
+// ----------------------------------------------------------------------------
+
+#define BUFSIZ       // buffer size (see setvbuf()), >= 256
+#define FOPEN_MAX    // supported number of simultaneously open files, >= 8
+#define FILENAME_MAX // supported length of filenames
+#define L_tmpnam     // length of filenames generated by tmpnam() including \0
+#define TMP_MAX      // number of unique filenames generateable by tmpnam(),
+                     // >= 25
+
+#define stderr // FILE *
+#define stdin  // FILE *
+#define stdout // FILE *
+
+// storing return code in fh->HostRC
+void __pdc_fclose( FILE * fh );