Displaying 5 results from an estimated 5 matches for "oldcode".
Did you mean:
old_code
2001 Sep 10
1
on.exit processing
I have encountered a 'strange' behavior in the 'on.exit' processing. I had
a function where I setup an 'on.exit' condition and then later on added to
it with an 'on.exit({...}, add=T)'. What appeared to happen is that on
subsequent calls to the function, even if only the first 'on.exit' was
called, it was still executing the one with the 'add=T'.
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...+ bridge, name);
+ if (!access(path, F_OK))
+ return fopen(path, "w+");
+
+ return NULL;
+}
+
/*
* Convert device name to an index in the list of ports in bridge.
*
@@ -283,12 +303,9 @@ static int br_set(const char *bridge, const char *name,
unsigned long value, unsigned long oldcode)
{
int ret;
- char path[SYSFS_PATH_MAX];
FILE *f;
- snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", bridge, name);
-
- f = fopen(path, "w");
+ f = br_sysfs_open(bridge, name);
if (f) {
ret = fprintf(f, "%ld\n", value);
fclose(f);
diff --git a/lib...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...+ bridge, name);
+ if (!access(path, F_OK))
+ return fopen(path, "w+");
+
+ return NULL;
+}
+
/*
* Convert device name to an index in the list of ports in bridge.
*
@@ -283,12 +303,9 @@ static int br_set(const char *bridge, const char *name,
unsigned long value, unsigned long oldcode)
{
int ret;
- char path[SYSFS_PATH_MAX];
FILE *f;
- snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", bridge, name);
-
- f = fopen(path, "w");
+ f = br_sysfs_open(bridge, name);
if (f) {
ret = fprintf(f, "%ld\n", value);
fclose(f);
diff --git a/lib...
2009 Jun 15
0
[Bridge] [PATCH] bridge-utils: fix sysfs path for setting bridge configuration parameters
...+ bridge, name);
+ if (!access(path, F_OK))
+ return fopen(path, "w+");
+
+ return NULL;
+}
+
/*
* Convert device name to an index in the list of ports in bridge.
*
@@ -283,12 +303,9 @@ static int br_set(const char *bridge, const char *name,
unsigned long value, unsigned long oldcode)
{
int ret;
- char path[SYSFS_PATH_MAX];
FILE *f;
- snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/%s", bridge, name);
-
- f = fopen(path, "w");
+ f = br_sysfs_open(bridge, name);
if (f) {
ret = fprintf(f, "%ld\n", value);
fclose(f);
diff --git a/lib...
2009 Mar 06
0
modifying a built in function from the stats package (fixing arima) (CONCLUSIONS)
...f[ind] <- maInvert(coef[ind])
}
if (arma[4] > 0) {
ind <- sum(arma[1:3]) + 1:arma[4]
if (all(mask[ind]))
coef[ind] <- maInvert(coef[ind])
}
if (any(coef[mask] != res$par)) {
oldcode <- res$convergence
exitpoint<-1
res <- optim(coef[mask], armafn, method = "BFGS",
hessian = TRUE, control = list(maxit = 0, parscale =
optim.control$parscale),
trans = TRUE)
res$convergence <- oldcode...