Skip to content
Snippets Groups Projects
Commit a29b1034 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed OPT_-flags for a few functions.

Rev: src/modules/system/system.c:1.99
parent 76f47722
Branches
Tags
No related merge requests found
/* /*
* $Id: system.c,v 1.98 2000/12/06 14:50:06 mirar Exp $ * $Id: system.c,v 1.99 2001/01/17 13:44:37 grubba Exp $
* *
* System-call module for Pike * System-call module for Pike
* *
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "system_machine.h" #include "system_machine.h"
#include "system.h" #include "system.h"
RCSID("$Id: system.c,v 1.98 2000/12/06 14:50:06 mirar Exp $"); RCSID("$Id: system.c,v 1.99 2001/01/17 13:44:37 grubba Exp $");
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK_H
#include <winsock.h> #include <winsock.h>
#endif #endif
...@@ -1954,8 +1954,10 @@ void pike_module_init(void) ...@@ -1954,8 +1954,10 @@ void pike_module_init(void)
#endif /* HAVE_GETPGRP */ #endif /* HAVE_GETPGRP */
#ifdef HAVE_SETPGRP #ifdef HAVE_SETPGRP
ADD_EFUN("setpgrp", f_setpgrp, tFunc(tNone, tInt), OPT_EXTERNAL_DEPEND); ADD_EFUN("setpgrp", f_setpgrp, tFunc(tNone, tInt),
ADD_FUNCTION2("setpgrp", f_setpgrp, tFunc(tNone, tInt), 0, OPT_EXTERNAL_DEPEND); OPT_SIDE_EFFECT);
ADD_FUNCTION2("setpgrp", f_setpgrp, tFunc(tNone, tInt), 0,
OPT_SIDE_EFFECT);
#endif #endif
#ifdef HAVE_GETSID #ifdef HAVE_GETSID
...@@ -1966,8 +1968,10 @@ void pike_module_init(void) ...@@ -1966,8 +1968,10 @@ void pike_module_init(void)
#endif #endif
#ifdef HAVE_SETSID #ifdef HAVE_SETSID
ADD_EFUN("setsid", f_setsid, tFunc(tNone, tInt), OPT_EXTERNAL_DEPEND); ADD_EFUN("setsid", f_setsid, tFunc(tNone, tInt),
ADD_FUNCTION2("setsid", f_setsid, tFunc(tNone, tInt), 0, OPT_EXTERNAL_DEPEND); OPT_SIDE_EFFECT);
ADD_FUNCTION2("setsid", f_setsid, tFunc(tNone, tInt), 0,
OPT_SIDE_EFFECT);
#endif #endif
#ifdef HAVE_GETRLIMIT #ifdef HAVE_GETRLIMIT
...@@ -1979,16 +1983,16 @@ void pike_module_init(void) ...@@ -1979,16 +1983,16 @@ void pike_module_init(void)
#endif #endif
#ifdef HAVE_SETRLIMIT #ifdef HAVE_SETRLIMIT
ADD_FUNCTION2("setrlimit", f_setrlimit, tFunc(tString tInt tInt, tInt01), ADD_FUNCTION2("setrlimit", f_setrlimit, tFunc(tString tInt tInt, tInt01),
0, OPT_EXTERNAL_DEPEND); 0, OPT_SIDE_EFFECT);
#endif #endif
#ifdef HAVE_CHROOT #ifdef HAVE_CHROOT
/* function(string|object:int) */ /* function(string|object:int) */
ADD_EFUN("chroot", f_chroot,tFunc(tOr(tStr,tObj),tInt), ADD_EFUN("chroot", f_chroot,tFunc(tOr(tStr,tObj),tInt),
OPT_EXTERNAL_DEPEND); OPT_SIDE_EFFECT);
ADD_FUNCTION2("chroot", f_chroot,tFunc(tOr(tStr,tObj),tInt), 0, ADD_FUNCTION2("chroot", f_chroot,tFunc(tOr(tStr,tObj),tInt), 0,
OPT_EXTERNAL_DEPEND); OPT_SIDE_EFFECT);
#endif /* HAVE_CHROOT */ #endif /* HAVE_CHROOT */
#if defined(HAVE_UNAME) || defined(HAVE_SYSINFO) #if defined(HAVE_UNAME) || defined(HAVE_SYSINFO)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment