aboutsummaryrefslogtreecommitdiff
path: root/src/lib/cfuns-c.c
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-03-15 11:19:32 +0000
committerdos-reis <gdr@axiomatics.org>2008-03-15 11:19:32 +0000
commitebd9e5076b7cdf3b7e5619db2dce499ede29e1fe (patch)
treeab2d157e86d37d5e65701295f47cecaf06032fac /src/lib/cfuns-c.c
parent128d66db542368fd7abe54cc10427b0225c91862 (diff)
downloadopen-axiom-ebd9e5076b7cdf3b7e5619db2dce499ede29e1fe.tar.gz
* configure.ac.pamphlet (axiom_c_runtime): Don't include core, as
it is always built into libopen-axiom-core. src/ * include/cfuns.h (findString): Rename from include/cfuns-c.H1. Make DLL-aware. * include/open-axiom.h: New. * include/sockio.h: Make DLL-aware. * include/bsdsignal.H1: Fold content into include/bsdsignal.h. Remove. * lib/bsdsignal.c: Don't include bsdsignal.H1 * lib/fnct_key.c: Likewise. * lib/sockio-c.c: Likewise. * lib/Makefile.in (other_SOURCES): Remove. (other_objects): Likewise. (pamphlets): Likewise. (clean-local): Don't remove source files. (libopen_axiom_core_la_SOURCES): New. (libopen_axiom_core_la_objects): Likewise. (stamp): Require $(axiom_target_libdir)/libopen-axiom-core.la too. * graph/view2D/main2d.c: Likewise. * clef/edible.c: Likewise. * graph/view3D/main3d.c: Likewise. * graph/view3D/testcol.c: Likewise. * graph/viewman/sselect.c: Likewise. * graph/viewman/viewman.c: Likewise. * hyper/htinp.c: Likewise. * hyper/hyper.c: Likewise. * hyper/spadbuf.c: Likewise. * hyper/spadint.c: Likewise. * sman/session.c: Likewise. * sman/sman.c: Likewise. * sman/spadclient.c: Likewise.
Diffstat (limited to 'src/lib/cfuns-c.c')
-rw-r--r--src/lib/cfuns-c.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/cfuns-c.c b/src/lib/cfuns-c.c
index 47485408..7ed80551 100644
--- a/src/lib/cfuns-c.c
+++ b/src/lib/cfuns-c.c
@@ -48,7 +48,7 @@
# include <windows.h>
#endif
-#include "cfuns-c.H1"
+#include "cfuns.h"
/* Most versions of Windows don't have the POSIX functions getuid(),
geteuid(), getgid(), and getegid(). The following definitions are
@@ -71,7 +71,7 @@
# define getegid() getgid()
#endif
-int
+OPENAXIOM_EXPORT int
addtopath(char *dir)
{
char *path, *newpath;
@@ -95,7 +95,7 @@ addtopath(char *dir)
*/
-int
+OPENAXIOM_EXPORT int
directoryp(char *path)
{
struct stat buf;
@@ -104,7 +104,7 @@ directoryp(char *path)
return code == -1 ? -1 : S_ISDIR(buf.st_mode);
}
-int
+OPENAXIOM_EXPORT int
make_path_from_file(char *s, char *t)
{
char *pos = "";
@@ -184,7 +184,7 @@ axiom_has_write_access(const struct stat* file_info)
2 if the file does not exists but process has write
has write access to the dirname of path. */
-int
+OPENAXIOM_EXPORT int
writeablep(char *path)
{
struct stat buf;
@@ -211,7 +211,7 @@ writeablep(char *path)
0 if the file exists but process has no read access.
1 if the file exists and read access is granted. */
-int
+OPENAXIOM_EXPORT int
readablep(char *path)
{
struct stat buf;
@@ -238,7 +238,7 @@ readablep(char *path)
-long
+OPENAXIOM_EXPORT long
findString(char *file, char *string)
{
int nstring, charpos;
@@ -258,7 +258,7 @@ findString(char *file, char *string)
}
-int
+OPENAXIOM_EXPORT int
copyEnvValue(char *varName, char *buffer)
{
char *s;
@@ -272,7 +272,7 @@ copyEnvValue(char *varName, char *buffer)
/* Return 1 if the file descriptor FD, as viewed by the Core Executable,
is attached to a terminal. */
-int
+OPENAXIOM_EXPORT int
std_stream_is_terminal(int fd)
{
assert(fd > -1 && fd < 3);