search for: posix_openpt

Displaying 20 results from an estimated 41 matches for "posix_openpt".

2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b4babe7a3618705a283fc9458de19aba1d12401d Author: H. Peter Anvin <hpa at zytor.com> AuthorDate: Tue, 26 Jan 2016 15:58:49 -0800 Committer: H. Peter Anvin <hpa at zytor.com> CommitDate: Tue, 26 Jan 2016 15:58:49 -0800 [klibc] Make posix_openpt() an inline This function is so trivial that there is no reason to not make it an inline. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/include/stdlib.h | 9 ++++++++- usr/klibc/Kbuild | 2 +- usr/klibc/posix_openpt.c | 14 -------------- 3 files changed, 9 insert...
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
...14ff Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 5 Jan 2016 18:01:55 -0800 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 18:01:55 -0800 [klibc] Remove obsolete getpt() function getpt() has long since been obsolete; instead use posix_openpt(O_RDWR|O_NOCTTY). Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/include/stdlib.h | 1 - usr/klibc/Kbuild | 2 +- usr/klibc/getpt.c | 16 ---------------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/usr/include/stdlib.h b/usr/include/stdlib.h ind...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/dmesg.c | 1 - usr/utils/losetup.c | 4 +--- usr/utils/mkfifo.c | 1 - usr/utils/nuke.c | 1 - usr/utils/umount.c | 1
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
...vsnprintf.o snprintf.o vsprintf.o sprintf.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 \ + 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 + */ + +#...
2008 Jul 28
0
PTY allocation without being root
...PTY's on demand gave me an idea: what if we could perform resource limiting on PTY's? PTY's aren't infinitely available on FreeBSD (right now we can only allocate 1000, because of UT_LINESIZE). This means a single user could block other users from logging in, by running: for (;;) posix_openpt(O_RDWR|O_NOCTTY); A couple of weeks ago, I created an experimental patch to add a new rlimit. Unfortunately, it seemed OpenSSH just ignored the limit, which only meant one thing: OpenSSH allocates PTY's as root. Only a few months ago, I visited a talk by Otto Moerbeek about privilege separati...
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()
2013 Mar 18
0
[Announce] Samba 3.6.13 Available for Download
...Kobras <d.kobras at science-computing.de> * BUG 9039: 'map untrusted to domain' treats WORKSTATION as bogus domain. o Guenter Kukkukk <kukks at samba.org> * BUG 9701: Fix vfs_catia module. o Volker Lendecke <vl at samba.org> * BUG 9541: Add support for posix_openpt. o Stefan Metzmacher <metze at samba.org> * Bug 9625: wbcAuthenticateEx gives unix times. o Andreas Schneider <asn at samba.org> * BUG 9574: Fix a possible null pointer dereference in spoolss. * BUG 9684: Fix two resource leaks in winbindd. * BUG 9686: Fix a poss...
2013 Mar 18
0
[Announce] Samba 3.6.13 Available for Download
...Kobras <d.kobras at science-computing.de> * BUG 9039: 'map untrusted to domain' treats WORKSTATION as bogus domain. o Guenter Kukkukk <kukks at samba.org> * BUG 9701: Fix vfs_catia module. o Volker Lendecke <vl at samba.org> * BUG 9541: Add support for posix_openpt. o Stefan Metzmacher <metze at samba.org> * Bug 9625: wbcAuthenticateEx gives unix times. o Andreas Schneider <asn at samba.org> * BUG 9574: Fix a possible null pointer dereference in spoolss. * BUG 9684: Fix two resource leaks in winbindd. * BUG 9686: Fix a poss...
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...eteuid.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 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...
2013 Feb 05
1
[Announce] Samba 4.0.3 Available for Download
...<ddiss at samba.org> * BUG 9378: Add extra attributes for AD printer publishing. o Stephen Gallagher <sgallagh at redhat.com> * BUG 9609: ldb: Move doxygen comments for ldb_connect to the right place. o Volker Lendecke <vl at samba.org> * BUG 9541: Make use of posix_openpt. * BUG 9544: Fix build of vfs_commit and plug in async pwrite support. * BUG 9546: Fix aio_suspend detection on FreeBSD. * BUG 9548: Correctly detect O_DIRECT. * BUG 9549: smbd: Fix memleak in the async echo handler. o Stefan Metzmacher <metze at samba.org> * BUG 8909:...
2013 Feb 05
1
[Announce] Samba 4.0.3 Available for Download
...<ddiss at samba.org> * BUG 9378: Add extra attributes for AD printer publishing. o Stephen Gallagher <sgallagh at redhat.com> * BUG 9609: ldb: Move doxygen comments for ldb_connect to the right place. o Volker Lendecke <vl at samba.org> * BUG 9541: Make use of posix_openpt. * BUG 9544: Fix build of vfs_commit and plug in async pwrite support. * BUG 9546: Fix aio_suspend detection on FreeBSD. * BUG 9548: Correctly detect O_DIRECT. * BUG 9549: smbd: Fix memleak in the async echo handler. o Stefan Metzmacher <metze at samba.org> * BUG 8909:...
2019 Jan 19
1
[ANNOUNCE] klibc 2.0.5
...f socketcall [klibc] Update README.klibc [klibc] Remove obsolete getpt() function [klibc] Remove sys/socketcalls.h [klibc] Add accept4(), handle fallback from accept() to accept4() [klibc] Remove open_cloexec() [klibc] accept.c: fix file header [klibc] Make posix_openpt() an inline [klibc] stdlib.h: include <fcntl.h> for inline of posix_grantpt() [klibc] Make asprintf() a simple wrapper around vasprintf() [klibc] fwrite: flush before a large write to allow better bypass [klibc] fwrite: fix typo in comment Helge Deller (1): [kli...
2017 Jan 23
2
undefined symbols during linking LLDB 4.0 RC1
...0000003b GLIBC_2.2.5 isprint 0000000000000000 DF *UND* 000000000000039b GLIBC_2.2.5 calloc 0000000000000000 DF *UND* 0000000000000025 GLIBC_2.2.5 alarm 0000000000000000 DF *UND* 0000000000000015 GLIBC_2.2.5 posix_spawnp 0000000000000000 DF *UND* 0000000000000107 GLIBC_2.2.5 posix_openpt 0000000000000000 DF *UND* 00000000000000fa GLIBC_2.12 pthread_setname_np 0000000000000000 DF *UND* 000000000000007a Base _ZNSt11logic_errorC2EPKc 0000000000000000 DF *UND* 0000000000000044 GLIBC_2.2.5 __lxstat64 0000000000000000 DF *UND* 000000000000004c GLIBC_2.2.5...
2015 Sep 25
2
Build of supermin 5 on Ubuntu 14.04 LTS
...emp is declared without a macro... yes checking whether mkostemp is declared without a macro... yes checking whether mkostemps is declared without a macro... yes checking whether mkstemp is declared without a macro... yes checking whether mkstemps is declared without a macro... yes checking whether posix_openpt is declared without a macro... yes checking whether ptsname is declared without a macro... yes checking whether ptsname_r is declared without a macro... yes checking whether random is declared without a macro... yes checking whether random_r is declared without a macro... yes checking whether realp...
2013 May 12
3
FreeBSD Quarterly Status Report, January-March 2013
...lag atomically with allocating a file descriptor. Some existing software will use the new features if present or will even refuse to compile without them. Various parts have been present for some time. In first quarter of 2013, extensions to recvmsg(), socket(), socketpair() and posix_openpt() have been added. __________________________________________________________________ BXR.SU -- Super User's BSD Cross Reference URL: http://bxr.su/ URL: http://lists.freebsd.org/pipermail/freebsd-hackers/2013-April/042334.html Contact: Constantine A. Murenin <cnst++ at Free...
2017 Jan 19
2
undefined symbols during linking LLDB 4.0 RC1
Hello, I update my building scripts to build LLVM 4.0 RC1 (with clang, lldb, libc++, libc++abi, lld) on CentOS 6 and I got a lot of undefined symbols during linking LLDB. I'm using clang-3.9 and this configuration: -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
2013 Aug 08
1
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...ic_info *mic = (struct mic_info *)arg; > + int err; > + struct pollfd console_poll[MAX_CONSOLE_FD]; > + int pty_fd; > + char *pts_name; > + ssize_t len; > + struct mic_vring tx_vr, rx_vr; > + struct mic_copy_desc copy; > + struct mic_device_desc *desc; > + > + pty_fd = posix_openpt(O_RDWR); > + if (pty_fd < 0) { > + mpsslog("can't open a pseudoterminal master device: %s\n", > + strerror(errno)); > + goto _return; > + } > + pts_name = ptsname(pty_fd); > + if (pts_name == NULL) { > + mpsslog("can't get pts name\n"); &g...
2013 Aug 08
1
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...ic_info *mic = (struct mic_info *)arg; > + int err; > + struct pollfd console_poll[MAX_CONSOLE_FD]; > + int pty_fd; > + char *pts_name; > + ssize_t len; > + struct mic_vring tx_vr, rx_vr; > + struct mic_copy_desc copy; > + struct mic_device_desc *desc; > + > + pty_fd = posix_openpt(O_RDWR); > + if (pty_fd < 0) { > + mpsslog("can't open a pseudoterminal master device: %s\n", > + strerror(errno)); > + goto _return; > + } > + pts_name = ptsname(pty_fd); > + if (pts_name == NULL) { > + mpsslog("can't get pts name\n"); &g...
2013 Aug 08
0
[PATCH v2 7/7] Sample Implementation of Intel MIC User Space Daemon.
...cons_iov[0], *iov1 = &vcons_iov[1]; + struct mic_info *mic = (struct mic_info *)arg; + int err; + struct pollfd console_poll[MAX_CONSOLE_FD]; + int pty_fd; + char *pts_name; + ssize_t len; + struct mic_vring tx_vr, rx_vr; + struct mic_copy_desc copy; + struct mic_device_desc *desc; + + pty_fd = posix_openpt(O_RDWR); + if (pty_fd < 0) { + mpsslog("can't open a pseudoterminal master device: %s\n", + strerror(errno)); + goto _return; + } + pts_name = ptsname(pty_fd); + if (pts_name == NULL) { + mpsslog("can't get pts name\n"); + goto _close_pty; + } + printf("%s...
2014 May 29
3
Re: libguestfs error
...emp is declared without a macro... yes checking whether mkostemp is declared without a macro... yes checking whether mkostemps is declared without a macro... yes checking whether mkstemp is declared without a macro... yes checking whether mkstemps is declared without a macro... yes checking whether posix_openpt is declared without a macro... yes checking whether ptsname is declared without a macro... yes checking whether ptsname_r is declared without a macro... yes checking whether random is declared without a macro... yes checking whether random_r is declared without a macro... yes checking whether realp...