search for: xbasename

Displaying 3 results from an estimated 3 matches for "xbasename".

Did you mean: basename
2010 Jul 21
1
[PATCH] nut crashes when port= is omitted
Hi, I've found that upsdrvctl crashes when there is not ports= specified ups.conf #0 __strrchr_sse2 () at ../sysdeps/x86_64/strrchr.S:33 #1 xbasename (file=0x0) at common.c:266 #2 stop_driver (ups=0x1e163e0) at upsdrvctl.c:135 #3 send_all_drivers (command=0x4020f0 <stop_driver>) at upsdrvctl.c:446 #4 main (argc=1, argv=0x7ffff30be9c0) at upsdrvctl.c:565 stop_driver (ups=0x1e163e0) at upsdrvctl.c:135: if (ret != 0) { snprintf(pidf...
2011 Jun 28
0
[nut-commits] svn commit r3081 - branches/apcsmart-dev/drivers
Citeren Michal Soltys <msoltyspl-guest at alioth.debian.org>: > @@ -251,14 +251,14 @@ > if (do_lock_port) { > errno = 0; > ret = 0; > -#ifdef HAVE_UU_LOCK > + #ifdef HAVE_UU_LOCK > ret = uu_lock(xbasename(device_path)); > -#elif defined(HAVE_FLOCK) > + #elif defined(HAVE_FLOCK) > ret = flock(fd, LOCK_EX | LOCK_NB); > -#elif defined(HAVE_LOCKF) > + #elif defined(HAVE_LOCKF) > lseek(fd, 0L, SEEK_SET); > ret = lockf(fd, F_TLOCK, 0L); > -#endif > + #endif > i...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...NOTICE, "%s: cmd=%s, arg1=%s, arg2=%s", __func__, cmd, arg1, arg2); + } + /* build the request */ snprintf(buf, sizeof(buf), "%s \"%s\"", cmd, pconf_encode(arg1, enc, sizeof(enc))); @@ -902,6 +906,8 @@ int main(int argc, char **argv) { const char *prog = xbasename(argv[0]); + /* Please keep this very useful trace of upssched activity. RP) + 0 = no trace, 1 = trace, 2 = detailed trace. */ verbose = 1; /* TODO: remove when done testing */ /* normally we don't have stderr, so get this going to syslog early */ diff -rup nut-2.7.4.orig/common/c...