Lint fixes (and include <unistd.h>)
#endif /* !SYSV */
+#ifndef NO_UNISTD
+#include <unistd.h> /* Take this out if it doesn't exist */
+#endif
+
#include "allobjects.h"
#include "modsupport.h"
extern int uname PROTO((struct utsname *));
struct utsname u;
object *v;
+ if (!getnoarg(args))
+ return NULL;
if (uname(&u) < 0)
return posix_error();
v = newtupleobject(5);
object *args;
{
int pid;
+ if (!getnoarg(args))
+ return NULL;
pid = fork();
if (pid == -1)
return posix_error();
{
if (!getnoarg(args))
return NULL;
+#ifdef SYSV
+ return newintobject((long)getpgrp());
+#else
return newintobject((long)getpgrp(0));
+#endif
}
static object *
int n;
if (!getstrarg(args, &path))
return NULL;
- n = readlink(path, buf, sizeof buf);
+ n = readlink(path, buf, (int) sizeof buf);
if (n < 0)
return posix_error();
return newsizedstringobject(buf, n);