search for: getprior

Displaying 20 results from an estimated 28 matches for "getprior".

Did you mean: getprio
2010 Dec 25
4
[ win32utils-Bugs-28801 ] unclosed handle in Process.setpriority/getpriority
...espond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=28801&group_id=85 Category: win32-process Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Rafa? Michalski (royaltm) Assigned to: Nobody (None) Summary: unclosed handle in Process.setpriority/getpriority Initial Comment: Using Process.setpriority/getpriority was crashing my ruby program. I think the problem was with unclosed handle from OpenProcess() function. my patch for lib/win32/process.rb (0.6.4) follows, however the bug exists also in previous releases. ------------------------------...
2012 Nov 21
1
Conntrackd - fail at startup.
...ice) close(3) = 0 munmap(0x7fa29ca4c000, 4096) = 0 open("/var/log/conntrackd.log", O_RDWR|O_CREAT|O_APPEND, 0666) = 3 open("/var/lock/conntrack.lock", O_RDONLY|O_CREAT|O_EXCL|O_TRUNC, 0600) = 4 close(4) = 0 getpriority(PRIO_PROCESS, 0) = 20 setpriority(PRIO_PROCESS, 0, 4294967276) = 0 getpriority(PRIO_PROCESS, 0) = 40 mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa29c9c1000 mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f...
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
...llows to compile mksh against klibc. Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h index 41cefb4..5d8bd52 100644 --- a/usr/include/sys/resource.h +++ b/usr/include/sys/resource.h @@ -12,4 +12,6 @@ __extern int getpriority(int, int); __extern int setpriority(int, int, int); +__extern int getrusage(int, struct rusage *); + #endif /* _SYS_RESOURCE_H */ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index f81452c..e395119 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -47,6 +...
2014 Jul 11
0
Wine release 1.7.22
...vbscript: Implemented VarType. vbscript: Implemented Sgn. Stefan D?singer (8): wined3d: Set palettes on the swapchain. wined3d: Do not write a FIXME about WINED3DUSAGE_WRITEONLY. ddraw: Refuse SetPalette and GetPalette on lost surfaces. d3d9: Ignore SetPriority and GetPriority calls on surfaces. wined3d: Ignore set_priority calls on non-managed resources. d3d9/tests: Add a test for SetPriority and GetPriority. d3d8/tests: Add a test for SetPriority and GetPriority. d3d9/tests: Fix some ok() call style issues. Vincent Povirk (7): ole32: S...
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
..._signal.o siglist.o sigabbrev.o \ siglongjmp.o \ @@ -53,7 +54,8 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ clearenv.o nullenv.o \ getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \ syslog.o closelog.o pty.o isatty.o reboot.o \ - time.o lseek.o nice.o getpriority.o \ + gettimeofday.o settimeofday.o time.o \ + lseek.o nice.o getpriority.o \ futimesat.o utime.o utimes.o \ qsort.o bsearch.o \ lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index ad8eefa4..d46bb548 1006...
2011 Jan 28
2
klibc 1.5.21-1 and mksh
...libc-1.5.21/usr/klibc/Kbuild +=================================================================== +--- klibc-1.5.21.orig/usr/klibc/Kbuild 2011-01-28 12:00:27.000000000 +0000 ++++ klibc-1.5.21/usr/klibc/Kbuild 2011-01-28 12:01:27.000000000 +0000 +@@ -47,6 +47,7 @@ + time.o utime.o llseek.o nice.o getpriority.o \ + qsort.o bsearch.o \ + lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ ++ arc4random.o \ + inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \ + inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \ + send.o recv.o \ +Index: klibc-1.5.21/usr/klibc/arc4random...
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
...\ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o remove.o \ + getopt.o getopt_long.o readdir.o scandir.o remove.o \ syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \ time.o utime.o llseek.o nice.o getpriority.o \ qsort.o bsearch.o \ diff --git a/usr/klibc/scandir.c b/usr/klibc/scandir.c new file mode 100644 index 0000000..1f58b15 --- /dev/null +++ b/usr/klibc/scandir.c @@ -0,0 +1,76 @@ +/* + * scandir.c: scandir/alphasort + */ + +#include <stdlib.h> +#include <string.h> +#include <...
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
...env.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \ - syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \ + syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \ time.o utime.o lseek.o nice.o getpriority.o \ qsort.o bsearch.o \ lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ diff --git a/usr/klibc/getpt.c b/usr/klibc/getpt.c deleted file mode 100644 index 8d2a536..0000000 --- a/usr/klibc/getpt.c +++ /dev/null @@ -1,16 +0,0 @@ -/* - * getpt.c - * - * GNU extension to the stan...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \ - syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \ + syslog.o closelog.o pty.o isatty.o reboot.o \ time.o utime.o lseek.o nice.o getpriority.o \ qsort.o bsearch.o \ lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ diff --git a/usr/klibc/posix_openpt.c b/usr/klibc/posix_openpt.c deleted file mode 100644 index 794ca46..0000000 --- a/usr/klibc/posix_openpt.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * posix_openpt.c - */...
2005 Jan 21
1
niceness
...to CRAN. The whole package can be found at http://www.stat.umn.edu/geyer/nice_0.1.tar.gz ----- begin C code file ----- #include <sys/resource.h> #include <errno.h> #include <string.h> #include <R.h> void get_my_priority(int *result) { errno = 0; result[0] = getpriority(PRIO_PROCESS, 0); if (errno != 0) warning(strerror(errno)); } void set_my_priority(int *priority) { if (setpriority(PRIO_PROCESS, 0, priority[0]) != 0) warning(strerror(errno)); } ------ end C code file ------ -- Charles Geyer Professor, School of Statistics Universit...
2014 Mar 11
0
[PATCH] add mips64 support
...ld be explained, and probably should be broken out as separate patches. > diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h > index 5d8bd52..35398a7 100644 > --- a/usr/include/sys/resource.h > +++ b/usr/include/sys/resource.h > @@ -12,6 +12,8 @@ > __extern int getpriority(int, int); > __extern int setpriority(int, int, int); > > -__extern int getrusage(int, struct rusage *); > +#if !defined(__mips64) > + __extern int getrusage(int, struct rusage *); > +#endif > Say what? > diff --git a/usr/klibc/arch/mips64/crt0.S b/usr/klibc/arch/m...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...allow compiling mksh against klibc. Signed-off-by: maximilian attems <max at stro.at> diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h index 41cefb4..5d8bd52 100644 --- a/usr/include/sys/resource.h +++ b/usr/include/sys/resource.h @@ -12,4 +12,6 @@ __extern int getpriority(int, int); __extern int setpriority(int, int, int); +__extern int getrusage(int, struct rusage *); + #endif /* _SYS_RESOURCE_H */ diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index f81452c..e395119 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -47,6 +...
2023 Jan 14
1
[klibc:time64] resource: Avoid using <linux/resource.h>
...kernel_long_t ru_nsignals; /* signals received */ + __kernel_long_t ru_nvcsw; /* voluntary context switches */ + __kernel_long_t ru_nivcsw; /* involuntary " */ +}; + +#define PRIO_MIN (-20) +#define PRIO_MAX 20 + +#define PRIO_PROCESS 0 +#define PRIO_PGRP 1 +#define PRIO_USER 2 __extern int getpriority(int, int); __extern int setpriority(int, int, int);
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...nv.o \ clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \ + getopt.o getopt_long.o \ + readdir.o scandir.o fdopendir.o alphasort.o remove.o \ syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \ time.o utime.o llseek.o nice.o getpriority.o \ qsort.o bsearch.o \ diff --git a/usr/klibc/fdopendir.c b/usr/klibc/fdopendir.c new file mode 100644 index 0000000..e22cba8 --- /dev/null +++ b/usr/klibc/fdopendir.c @@ -0,0 +1,40 @@ +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <stdlib....
2004 Aug 29
6
wxRuby Compile Problems on Gentoo eBuild
...argument 1 is invalid htmlprocessor.cpp:74: error: no matching function for call to `GetCpp(VALUE&)'' htmlprocessor.cpp:75: error: `WxHtmlProcessor::validateCppObject'' cannot be used as a function htmlprocessor.cpp: In static member function `static VALUE WxHtmlProcessor::GetPriority(int, VALUE*, long unsigned int)'': htmlprocessor.cpp:92: error: template argument 1 is invalid htmlprocessor.cpp:92: error: no matching function for call to `GetCpp(VALUE&)'' htmlprocessor.cpp:93: error: `WxHtmlProcessor::validateCppObject'' cannot be used as a fun...
2007 Aug 15
0
[git patch] fstype support + minor stuff
....o \ - gethostname.o getdomainname.o getcwd.o \ - seteuid.o setegid.o \ - getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ - clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o remove.o \ - syslog.o closelog.o pty.o getpt.o isatty.o reboot.o \ - time.o utime.o llseek.o nice.o getpriority.o \ - qsort.o bsearch.o \ - lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ - inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \ - inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \ - send.o recv.o \ - ctype/isalnum.o ctype/isalpha.o ctype/isascii.o \ - ctype/is...
2014 Mar 11
4
[PATCH] add mips64 support
...+#include <endian.h> #include <linux/raid/md_u.h> #include <linux/raid/md_p.h> diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h index 5d8bd52..35398a7 100644 --- a/usr/include/sys/resource.h +++ b/usr/include/sys/resource.h @@ -12,6 +12,8 @@ __extern int getpriority(int, int); __extern int setpriority(int, int, int); -__extern int getrusage(int, struct rusage *); +#if !defined(__mips64) + __extern int getrusage(int, struct rusage *); +#endif #endif /* _SYS_RESOURCE_H */ diff --git a/usr/klibc/arch/mips64/Kbuild b/usr/klibc/arch/mips64/Kbuild index...
2014 Jul 25
0
Wine release 1.7.23
...Lackner (1): wine.inf: Fix timezone information for Israel Standard Time. Shuai Meng (3): vbscript: Implemented Abs. vbscript/tests: Added tests for the subtype of TypeName. vbscript: Implemented IsNumeric. Stefan D?singer (6): ddraw: Add validation to SetPriority / GetPriority. ddraw/tests: Add a test for IDirectDrawSurface7::SetPriority. wined3d: Remove wined3d_surface_set/get_priority. wined3d: Remove wined3d_volume_set/get_priority. wined3d: Remove wined3d_buffer_set/get_priority. wined3d: Remove wined3d_texture_set/get_priority. Thom...
2015 Dec 25
0
Wine release 1.9.0
...s return empty string in _Read_dir on end of enumeration or error. msvcrt: Add tmpnam_s implementation. msvcrt: Add _wtmpnam_s implementation. Riccardo Bortolato (2): ddraw: Check if surface is a mipmap sublevel or a non-positive X top level surface through caps in ddraw_surface7_GetPriority(). ddraw7/tests: Test GetPriority() on cubemap surfaces. Sebastian Lackner (8): kernel32/tests: Remove unnecessary call to GetExitCodeProcess in process tests. ntdll: ProcessDebugFlags should return debug_children flag instead of !debugger_present. server: Fix assignment...