Displaying 17 results from an estimated 17 matches for "_sc_pagesize".
Did you mean:
_sc_page_size
2008 Jul 29
2
syconf(_SC_PAGESIZE) versus getpagesize()
hello karel,
thanks a lot for the klibc portability merges.
current HEAD klibc failure:
mkswap.c: In function ?init_signature_page?:
mkswap.c:148: error: ?_SC_PAGESIZE? undeclared (first use in this function)
although POSIX encourages sysconf() could util-linux use getpagesize() ?
--
maks
2020 Jul 25
0
[klibc:master] tests: Add a trivial test for sysconf()
...a/usr/klibc/tests/sysconf.c b/usr/klibc/tests/sysconf.c
new file mode 100644
index 00000000..e32c1383
--- /dev/null
+++ b/usr/klibc/tests/sysconf.c
@@ -0,0 +1,14 @@
+#include <assert.h>
+#include <stdio.h>
+#include <sys/sysconf.h>
+
+int main(void)
+{
+ long rc;
+
+ rc = sysconf(_SC_PAGESIZE);
+ assert(rc > 0);
+ printf("sysconf(_SC_PAGESIZE) = %ld\n", rc);
+
+ return 0;
+}
2020 Jul 25
0
[klibc:master] tests: Add a trivial test for sysconf()
...a/usr/klibc/tests/sysconf.c b/usr/klibc/tests/sysconf.c
new file mode 100644
index 00000000..e32c1383
--- /dev/null
+++ b/usr/klibc/tests/sysconf.c
@@ -0,0 +1,14 @@
+#include <assert.h>
+#include <stdio.h>
+#include <sys/sysconf.h>
+
+int main(void)
+{
+ long rc;
+
+ rc = sysconf(_SC_PAGESIZE);
+ assert(rc > 0);
+ printf("sysconf(_SC_PAGESIZE) = %ld\n", rc);
+
+ return 0;
+}
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...hings wildly.
+ * For things that require a lot of code, create an out-of-line function
+ * and put it in a .c file in the sysconf directory.
+ */
+
+#ifndef _SYS_SYSCONF_H
+#define _SYS_SYSCONF_H
+
+#ifndef _UNISTD_H
+# include <unistd.h>
+#endif
+#include <errno.h>
+
+enum sysconf {
+ _SC_PAGESIZE = 1,
+};
+
+__extern long sysconf(int);
+
+__must_inline long __sysconf_inline(int __val)
+{
+ switch (__val) {
+ case _SC_PAGESIZE:
+ return getpagesize();
+ default:
+ errno = EINVAL;
+ return -1;
+ }
+}
+
+#define sysconf(x) \
+ (__builtin_constant_p(x) ? __sysconf_inline(x) : sysconf(x))
+
+...
2002 Sep 11
1
Suggest Rsync Performance Improvements
...slow, check it out with Solaris
truss. Use sockets with large I/O or shared memory on
the same system.
To see the difference try
timex dd if=xyz of=lll bs=5k
vs
timex dd if=xyz of=lll bs=1024k
3. When allocating memory which will be accessed all
the time use valloc() which is
memalign(sysconf(_SC_PAGESIZE),size)
It aligns memory to the page, so memory copies are
word/page align and therefore faster, ie. 4 bytes are
copied at once instead of a byte at once.
4. If you use GigaBit ethernet to get performance you
need to read/write 64Kbytes to the socket and let the
OS break it up into MTU sized packe...
2013 Jun 25
0
[LLVMdev] [PATCH] Windows implementation of enable_execute_stack
...s part:
>
> #if __APPLE__
> /* On Darwin, pagesize is always 4096 bytes */
> const uintptr_t pageSize = 4096;
> #elif !defined(HAVE_SYSCONF)
> #error "HAVE_SYSCONF not defined! See enable_execute_stack.c"
> #else
> const uintptr_t pageSize = sysconf(_SC_PAGESIZE);
> #endif /* __APPLE__ */
>
> followed by the generic Unix implementation. Neither applies to Win32, so
> I ifdef'ed the whole thing.
>
>
>> > + MEMORY_BASIC_INFORMATION b;
>> > +
>> > + if (!VirtualQuery(addr, &b, sizeof(b)))
>> >...
2000 Feb 21
1
OpenSSH doesn't compile under Solaris 2.3 Sparc
Hi,
We are trying to get OpenSSH-1.2.2 stable release to compile under Solaris
2.3 Sparc. It worked perfect for Solaris 2.5, Solaris 2.5.1, Solaris 7 (All
on Sparc) and Linux 2.2.13 Intel x86
OpenSSL installs fine without problem, zlib is installed fine without
problems and egd.pl installs fine without problems. These are all the
current releases, I can get the version numbers if you need
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...ate unique jit cache directory "<<DebugDir<<"\n";
> + return false;
> + }
> +
> + JitPath = UniqueDebugDir.str();
> +
> + return true;
> +}
> +
> +bool PerfJITEventListener::OpenMarker() {
> + long pgsz;
> +
> + pgsz = ::sysconf(_SC_PAGESIZE);
> + if (pgsz == -1)
> + return false;
> +
> + /*
> + * We mmap the jitdump to create an MMAP RECORD in perf.data file. The mmap
> + * is captured either live (perf record running when we mmap) or in deferred
> + * mode, via /proc/PID/maps the MMAP record is used a...
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be
useful. For simplicity, why don't we start with support for the second
style? This is the long term useful one and would be a good starting
point for getting the code in tree. Can you give a pointer to the patch
so that I can assess the rough complexity? If it's simple enough, I'd
be happy to help get it reviewed
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
Hi,
On 2016-12-29 13:17:50 -0800, Philip Reames wrote:
> Having something like this available in tree would definitely be
> useful.
Cool.
> For simplicity, why don't we start with support for the second style? This
> is the long term useful one and would be a good starting point for getting
> the code in tree.
Works for me.
> Can you give a pointer to the patch so that
2013 Feb 07
5
[PATCH v8] gcov: Coverage support
Updated set of patches for coverage.
Changes:
- change copyright lines
- use gcov: instead of cover: in commit comment
- use #ifdef in xen/common/sysctl.c instead of dummy inline function
- added base documentation in docs/misc
- added -h option to xencov
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
...H_ERROR define in rpc/rpc.h... no
checking for test routines... yes
checking for ftruncate extend... yes
checking for broken getgroups... no
checking for sysconf(_SC_NGROUPS_MAX)... yes
checking for sysconf(_SC_NPROC_ONLN)... no
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for sysconf(_SC_PAGESIZE)... yes
checking for getpagesize... yes
checking for setresuid... no
checking for setreuid... OK
yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
...H_ERROR define in rpc/rpc.h... no
checking for test routines... yes
checking for ftruncate extend... yes
checking for broken getgroups... no
checking for sysconf(_SC_NGROUPS_MAX)... yes
checking for sysconf(_SC_NPROC_ONLN)... no
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for sysconf(_SC_PAGESIZE)... yes
checking for getpagesize... yes
checking for setreuid... yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for st_blocks in struct stat......
2010 May 11
1
Samba 3.5.2 compile on AIX
...H_ERROR define in rpc/rpc.h... no
checking for test routines... yes
checking for ftruncate extend... yes
checking for broken getgroups... no
checking for sysconf(_SC_NGROUPS_MAX)... yes
checking for sysconf(_SC_NPROC_ONLN)... no
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for sysconf(_SC_PAGESIZE)... yes
checking for getpagesize... (cached) yes
checking for setreuid... OK
yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for broken posix_fa...
2018 Dec 06
3
Build error while upgrading samba 4.9.3
...: yes
Checking whether sysconf(_SC_NGROUPS_MAX) is available : yes
Checking whether sysconf(_SC_NPROC_ONLN) is available : no
Checking whether sysconf(_SC_NPROCESSORS_ONLN) is available : yes
Checking whether sysconf(_SC_PAGESIZE) is available : yes
Checking whether to use the Darwin-specific initgroups system call : no
Checking whether struct utimbuf is available : yes
Checking whether we have the struct sigevent...
2013 Jan 07
4
3.6.10 file handle leak under ancient 32-bit kernel
...H_ERROR define in rpc/rpc.h... no
checking for test routines... yes
checking for ftruncate extend... yes
checking for broken getgroups... no
checking for sysconf(_SC_NGROUPS_MAX)... yes
checking for sysconf(_SC_NPROC_ONLN)... no
checking for sysconf(_SC_NPROCESSORS_ONLN)... yes
checking for sysconf(_SC_PAGESIZE)... yes
checking for getpagesize... (cached) yes
checking for setreuid... yes
checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for broken posix_fallo...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am