Displaying 20 results from an estimated 200 matches for "sysconf".
Did you mean:
syscon
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...mit;h=0e725b1ec953aafa7cec75a22436319e945f93e1
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Mon, 13 May 2013 11:36:38 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 13 May 2013 11:36:38 -0700
[klibc] Framework and trivial implementation of sysconf(3)
Framework for sysconf(3) that hopefully doesn't pull in all possible
sysconf data providers every time it is referenced.
So far only the page size is provided.
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
usr/dash/config.h | 2 +-
usr/include/sys/sysconf.h...
2020 Jul 25
0
[klibc:master] tests: Add a trivial test for sysconf()
...bc.git;a=commit;h=3df6e74ab78fc63aa025d07fb849ec9508cbf1c2
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 25 Jul 2020 22:46:16 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 22:51:45 +0100
[klibc] tests: Add a trivial test for sysconf()
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/tests/Kbuild | 1 +
usr/klibc/tests/sysconf.c | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diff --git a/usr/klibc/tests/Kbuild b/usr/klibc/tests/Kbuild
index c7ca531f..00b701fc 100644
--- a/usr/klibc/tests...
2020 Jul 25
0
[klibc:master] tests: Add a trivial test for sysconf()
...bc.git;a=commit;h=eae5223098f32ba5cbb83631cec2579f764ee6ff
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 25 Jul 2020 22:48:23 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 22:48:23 +0100
[klibc] tests: Add a trivial test for sysconf()
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/tests/sysconf.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git 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/...
2020 Jul 08
1
Request to merge branch sysconf into master
The sysconf branch only contains a single commit:
[klibc] Framework and trivial implementation of sysconf(3)
The sysconf() function is required by libkcapi. I use libkcapi
in my klibc based initramfs in order to decrypt the file system
key for my rootfs.
Can somebody merge this commit into master? After tha...
2000 Feb 03
2
use sysconf instead of NGROUPS_MAX
...etlen > NGROUPS_MAX) {
./source/lib/replace.c: gid_t grouplst[NGROUPS_MAX];
./source/lib/replace.c: while (i < NGROUPS_MAX &&
./source/smbd/password.c:#ifdef NGROUPS_MAX
./source/smbd/password.c: if((groups = (gid_t *)malloc(sizeof(gid_t)*NGROUPS_MAX)) == NULL)
POSIX defined sysconf in order to avoid this.
By using sysconf(_SC_NGROUPS_MAX) this value is determined at
run-time.
OTOH NGROUPS_MAX seems to be used incorrectly anyway:
source/smbd/password.c
#ifdef NGROUPS_MAX
if((groups = (gid_t *)malloc(sizeof(gid_t)*NGROUPS_MAX)) == NULL)
#else /* NGROUPS_MAX */...
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 Sep 18
0
[PATCH common] mlutils: Simple wrapper around sysconf (_SC_NPROCESSORS_ONLN).
...,6 +77,7 @@ extern value guestfs_int_mllib_mkdtemp (value val_pattern);
extern value guestfs_int_mllib_realpath (value pathv);
extern value guestfs_int_mllib_statvfs_statvfs (value pathv);
extern value guestfs_int_mllib_statvfs_is_network_filesystem (value pathv);
+extern value guestfs_int_mllib_sysconf_nr_processors_online (value unitv);
/* NB: This is a "noalloc" call. */
value
@@ -368,3 +369,17 @@ guestfs_int_mllib_statvfs_is_network_filesystem (value pathv)
return Val_bool (0);
#endif
}
+
+/* NB: This is a "noalloc" call. */
+value
+guestfs_int_mllib_sysconf_nr_pro...
2020 Jul 25
0
[klibc:master] tests: Add a trivial test for sysconf()
...bc.git;a=commit;h=8db4a47db4c72203a9196a2c5d096664de29f8ce
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 25 Jul 2020 22:46:16 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 25 Jul 2020 22:46:16 +0100
[klibc] tests: Add a trivial test for sysconf()
---
usr/klibc/tests/Kbuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/usr/klibc/tests/Kbuild b/usr/klibc/tests/Kbuild
index c7ca531f..00b701fc 100644
--- a/usr/klibc/tests/Kbuild
+++ b/usr/klibc/tests/Kbuild
@@ -45,6 +45,7 @@ stdio.shared-y := stdio.o
strlcpycat.shared-y := strlcpyc...
2000 Jul 20
1
WITH_IRIX_AUDIT causes error (fwd)
--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm at mindrot.org (home) -or- djm at ibs.com.au (work)
---------- Forwarded message ----------
Date: Thu, 20 Jul 2000 15:46:23 -0500
From: Brian Hanna <bdhanna at cmrr.umn.edu>
To: openssh at openssh.com
Subject: WITH_IRIX_AUDIT causes error
Hi,
I
2017 Sep 17
0
sysconf and _SC_LEVEL1_DCACHE_LINESIZE returns 0?
...(https://gcc.gnu.org/wiki/CompileFarm):
$ cat /etc/centos-release
CentOS Linux release 7.3.1611 (AltArch)
I'm trying to determine L1 data cache size. When the following code
runs it returns 0. The man pages state -1 is an error, so I think its
claiming to succeed.
cacheLineSize = sysconf(_SC_LEVEL1_DCACHE_LINESIZE);
GCC119, which is also a S822 Power8 running AIX, returns 128.
Does anyone know what I might be doing wrong under Cent? Or maybe, how
can I retrieve the L1 data cache line size?
Thanks in advance.
2004 Jan 13
3
[Bug 787] Minor security problem due to use of deprecated NGROUPS_MAX in uidswap.c (sshd)
...is defined in limits.h and tells the maximum number
of groups which an account can be member of. As NGROUPS_MAX is determined at
compile-time, this limit gets hardcoded into the resulting binary. As
NGROUPS_MAX may be larger at runtime than at compile-time it should be
regarded as deprecated and sysconf(_SC_NGROUPS_MAX) should be used instead.
(see APUE 2.4.5 also)
In uidswap.c, line 41 NGROUPS_MAX is used to initialize static arrays in
global context. These 2 occurances of NGROUPS_MAX cannot be substituted
through sysconf(_SC_NGROUPS_MAX) easily as memory has to be allocated at runtime.
In t...
2002 Sep 25
1
NGROUPS_MAX
...c: gid_t groups_bygid[NGROUPS_MAX + 1];
./uidswap.c:static gid_t saved_egroups[NGROUPS_MAX], user_groups[NGROUPS_MAX];
./uidswap.c: saved_egroupslen = getgroups(NGROUPS_MAX, saved_egroups);
./uidswap.c: user_groupslen = getgroups(NGROUPS_MAX, user_groups);
POSIX defined sysconf in order to avoid this.
By using sysconf(_SC_NGROUPS_MAX) this value is determined at
run-time.
Sven
2009 Jun 03
1
[PATCH server] ovirt server installer autobuild integration
...server-test.ks
diff --git a/autobuild.sh b/autobuild.sh
index 2cc11d6..66a5167 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -25,10 +25,13 @@ set -v
test -f Makefile && make -k distclean || :
+############# build the server rpm
+
# put rails in development mode
cp conf/ovirt-rails.sysconf conf/ovirt-rails.sysconf.orig
echo "RAILS_ENV=development" >> conf/ovirt-rails.sysconf
+# build server & installer rpms
./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT
make dist
@@ -43,4 +46,66 @@ if [ -f /usr/bin/rpmbuild ]; then
rpmbuild --nodeps --define "extra_r...
2003 May 10
0
Small Makefile.in Patch
This is a fairly inconsequential patch, but it comes in handy in a few
instances. The patch simply splits install-files into "install-files"
and "install-sysconf" - taking all of the sysconfdir stuff and putting
in its own target which I then added to 'install' and 'install-nokeys'.
I then added an install-nosysconf to NOT do that stuff.
This helped us because we install in a directory that gets rdist'd out
to other hosts, but on...
2009 Jan 04
3
Default dirs in ./configure?
Hi!
I try to build a new 1.1.7 installation. Since I'm not a large sysadmin,
just my own private mail server admin, I just wonder why the sysconf and
state dirs defaults to $prefix? Maybe I'm old-school, but isn't /etc and
/var, respectively, a better default than /usr/local? Should require two
new variables in the configure script, though.
(and yes, I know I set them with
--sysconfdir=/etc --localstatedir=/var --sharedstatest...
2020 Aug 22
0
[ANNOUNCE] klibc 2.0.8
I have released version 2.0.8. This is available in the git
repository at:
https://git.kernel.org/pub/scm/libs/klibc/klibc.git
and as a tarball at:
https://mirrors.kernel.org/pub/linux/libs/klibc/2.0/
New features:
- Support for building with clang and lld, at least on x86
- Defined sysconf(), initially supporting only _SC_PAGE_SIZE
- Defined clearerr() as extern
- Defined stdio _unlocked functions and macros
- Support for building without bash
Bug fixes:
- Fix build regression with gcc 10
- Executable stacks are disabled on architectures where they are not
needed
- fstype no longe...
2001 Jun 07
0
Patch for systems with no setreuid()
...shell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop
+for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa in...
2023 Jun 20
8
[Bug 3581] New: ssh-keyscan fails with `fdlim_get: bad value` with large file descriptor limit due to type confusion
...Status: NEW
Severity: enhancement
Priority: P5
Component: ssh-keyscan
Assignee: unassigned-bugs at mindrot.org
Reporter: janerik at fnordig.de
ssh-keyscan fails with an obscure `fdlim_get: bad value` error when the
values returned from `sysconf(_SC_OPEN_MAX)` does not fit into the 32
bits of an `int`.
This happens on my M1 MacBook (with the system-provided `ssh-keyscan`)
where I somehow have an `unlimited` file descriptor limit (which really
is `INT64_MAX` or `9223372036854775807`, note that this seems
non-standard).
Changing the limit...
2014 Jul 25
3
[PATCH] launch: Close file descriptors after fork (RHBZ#1123007).
...+161,18 @@ extern GUESTFS_DLL_PUBLIC int guestfs___add_libvirt_dom (guestfs_h *g, virDomain
# define program_name "libguestfs"
#endif
+/* Close all file descriptors matching the condition. */
+#define close_file_descriptors(cond) do { \
+ int max_fd = sysconf (_SC_OPEN_MAX); \
+ int fd; \
+ if (max_fd == -1) \
+ max_fd = 1024; \
+ if (max_fd > 6553...
2004 Feb 20
24
[Bug 787] Minor security problem due to use of deprecated NGROUPS_MAX in uidswap.c (sshd)
http://bugzilla.mindrot.org/show_bug.cgi?id=787
------- Additional Comments From openssh_bugzilla at hockin.org 2004-02-20 13:01 -------
Created an attachment (id=548)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=548&action=view)
NGROUPS patch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.