search for: tcgetpgrp

Displaying 20 results from an estimated 48 matches for "tcgetpgrp".

Did you mean: getpgrp
2001 Jun 07
0
Patch for systems with no setreuid()
...ob 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 inet_ntop in...
2004 Dec 08
2
[Bug 2130] suppressing progress bar when not the foreground process
https://bugzilla.samba.org/show_bug.cgi?id=2130 ------- Additional Comments From lukem@NetBSD.org 2004-12-08 03:06 ------- Created an attachment (id=828) --> (https://bugzilla.samba.org/attachment.cgi?id=828&action=view) rsync-progress.patch -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA
2001 May 22
1
[PATCH]: configure.in: Missing check for setvbuf
...ob 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) +AC_CHECK_FUNCS(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 inet_ntop i...
2003 Feb 19
0
[Bug 499] New: progressmeter.c doesn't build (at least) on Cygwin
...eportedBy: vinschen at redhat.com Three bugs: - libgen.h doesn't exist on all platforms. - basename() doesn't exist on all platforms. - ioctl(TIOCGPGRP) doesn't exist on all platforms. This is a reintroduced problem since there was another method used on other platforms (calling tcgetpgrp()) when that code was still in scp.c The attached patch solves all three problems, the basename() problem only for Cygwin, the other problems generally by adding tests for libgen.h and tcgetpgrp() to configure.ac. ------- You are receiving this mail because: ------- You are the assignee for t...
2003 Mar 31
2
basename() in libgen
IRIX 6.5 has the basename() function in libgen. SYNOPSIS cc [flag ...] file ... -lgen [library ...] #include <libgen.h> char *basename (char *path); -- ayamura
2001 Sep 29
0
configure.in fixes for 2.9.9p2
...net_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty readpassphrase realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid setvbuf sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp utimes vsnprintf vhangup waitpid _getpty __b64_ntop) +AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getopt getnameinfo getrlimit getrusage getttyent glob inet_aton inet_ntoa inet_ntop innetgr log...
2018 Aug 01
2
trying to resurrect discussion about "Cannot signal a process over a channel (rfc 4254, section 6.9)"
...1556 sshd sshd: root at pts/2 > 4062 4060 4062 4062 bash -bash > 4075 4062 4075 4062 sh sh test_signal.sh > 4076 4075 4075 4062 sh sh test_signal.sh > > So in order to take this use case into account we could use the 'tcgetpgrp()? function from ?unistd.h?. > (code : https://github.com/JawaGL/openssh-portable/commit/3667c0d90688c43ac0729083f73afa65102226b4 ) > > Of course this would still work if there are no TTY present since we can still access the PGID of the forked child in the session attributes. > &gt...
2000 Sep 02
2
[PATCH]: Cygwin port of 2.2.0p1
...9; as `binary_pipe' when HAVE_CYGWIN is set. - loginrec.c: Disable check for uid 0 when HAVE_CYGWIN is set. - pty.c: Check for USE_VHANGUP instead of HAVE_VHANGUP. Don't call I_PUSH ioctl's under Cygwin. - readconf.c: Disable check for uid 0 when HAVE_CYGWIN is set. - scp.c: Call tcgetpgrp() instead of ioctl(..., TIOCGPGRP) to get the controlling terminal when HAVE_CYGWIN is set. - session.c: Close xauthfiles immediatly to avoid implicit file lockings on Windows NT systems. Changes in environment setting. Disable check for uid 0 when HAVE_CYGWIN is set. Don't call xauth...
2002 Jun 25
2
Linux 2.2 + borken mmap() round 1
...============================= RCS file: /var/cvs/openssh/configure.ac,v retrieving revision 1.69 diff -u -r1.69 configure.ac --- configure.ac 24 Jun 2002 16:26:49 -0000 1.69 +++ configure.ac 25 Jun 2002 00:16:06 -0000 @@ -574,6 +574,30 @@ socketpair strerror strlcat strlcpy strmode strsep sysconf tcgetpgrp \ truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) +if test $ac_cv_func_mmap = yes ; then +AC_MSG_CHECKING([for mmap anon shared]) +AC_TRY_RUN( + [ +#include <stdio.h> +#include <sys/mman.h> +#if !defined(MAP_ANON) && defined(MAP_ANONYMOUS) +#define MAP_ANON MAP_...
2018 Jul 13
2
trying to resurrect discussion about "Cannot signal a process over a channel (rfc 4254, section 6.9)"
Hi, >>> It would be nice to know what the precise technical issues are that have >>> prevented support for this from being added. From what I recall, it >>> seemed like the delay was largely due to details of the client >>> behaviour, and possibly some feature creep. It would indeed be really great to have some details on this point. Concerning the test of
2001 Feb 12
5
SCO OS3 build broken (CVS 01/12/01)
It looks like something got broken in openbsd-compat/bsd-snprintf.c ... gcc -g -O2 -Wall -Dftruncate=chsize -I/usr/local/include -I/usr/local/ssl/includ e -I. -I.. -I../src/openbsd-compat -I../src/openbsd-compat/.. -DHAVE_CONFIG_H -c ../src/openbsd-compat/bsd-snprintf.c In file included from ../src/openbsd-compat/bsd-snprintf.c:72:
2002 Oct 25
0
NeXT Community
...taddrinfo openpty ogetaddrinfo readpassphrase \ realpath recvmsg rresvport_af sendmsg setdtablesize setegid \ setenv seteuid setgroups setlogin setproctitle setresgid setreuid \ setrlimit setsid setpcred setvbuf sigaction sigvec snprintf \ socketpair strerror strlcat strlcpy strmode sysconf tcgetpgrp \ truncate utimes vhangup vsnprintf waitpid __b64_ntop _getpty) + +dnl Make sure that mmap prototype is defined before defining HAVE_MMAP +AC_CHECK_DECL(mmap, [AC_CHECK_FUNCS(mmap)]) dnl Make sure strsep prototype is defined before defining HAVE_STRSEP AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(str...
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
...er Status: NEW Severity: normal Priority: P2 Component: Build system AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: wendyp at cray.com when foregroundproc() got put into progressmeter.c, the return line got changed from #ifdef HAVE_TCGETPGRP return ((ctty_pgrp = tcgetpgrp(STDOUT_FILENO)) != -1 && ctty_pgrp == pgrp); #else return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && ctty_pgrp == pgrp)); #endif to return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &am...
2003 Jan 27
0
[Bug 477] progressmeter.c problem requires openbsd-compat/bsd-cray.h change
...---------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From mouring at eviladmin.org 2003-01-28 08:16 ------- Thanks, applied. Also removed check for tcgetpgrp() since that was the only place it was used. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Feb 18
0
progressmeter.c fails to build on Cygwin
...s probably needed for other systems, too. Does anybody know of other systems? Otherwise I'll send a patch which defines it only for Cygwin. But especially, I don't see a reason why the good old foregroundproc() function unconditionally uses ioctl(TIOCGPGRP) now instead of testing for HAVE_TCGETPGRP as before, when the function was in scp.c. Worse, the test for tcgetpgrp has been removed from configure.ac. This definitely is a showstopper for Cygwin. I reverted the patch in my local sandbox already and it builds again. I'd like to know if I should send the patch or if it's not need...
2004 Dec 08
0
[Bug 2130] New: suppressing progress bar when not the foreground process
...ways prints the dynamic progress information, even if the process is suspended and backgrounded or rsync is started in the background. This causes the display of the current foreground process on the tty (or shell) to be scrambled every second as the progress bar is updated. The solution is to use tcgetpgrp() (on stdout) to verify that rsync is the foreground process. I'll provide a patch. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
2006 Feb 13
4
[Bug 1156] Closes connection after C-c is pressed on QNX
...Component: sshd AssignedTo: bitbucket at mindrot.org ReportedBy: kraai at ftbfs.org When I press Control-C while running a command (e.g., sleep 1) on QNX 6, after the command finishes, the connection is closed: > $ qnx18 > Welcome to QNX Neutrino! > sh: j_init: tcgetpgrp() failed: Inappropriate I/O control operation > sh: warning: won't have full job control > Mon Feb 13 08:23:04 2006 on /dev/ttyp3 > Last login: Mon Feb 13 08:21:32 2006 on /dev/ttyp2 > $ sleep 1 # I pressed C-c here. > Connection to qnx18 closed by remote host. >...
2009 Oct 25
0
alternate output for progressmeter
...g_atomic_t win_resized; /* for window resizing */ +int ? ?progresstype = 0; ? ? ? /* use default tty progress reporting */ + ?/* units for format_size */ ?static const char unit[] = " KMGT"; ?static int ?can_output(void) ?{ + ? ? ? if (progresstype) return 1; ? ? ? ?return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); ?} @@ -158,9 +161,9 @@ ? ? ? ?/* filename */ ? ? ? ?buf[0] = '\0'; - ? ? ? file_len = win_size - 35; + ? ? ? file_len = (progresstype)?(strlen(file)+11):(win_size - 35); ? ? ? ?if (file_len > 0) { - ? ? ? ? ? ? ? len = snprintf(buf, file_len + 1, "\r%s", file...
2001 Feb 13
1
configure.in reorder patch
...getrlimit getrusage getttyent inet_aton inet_ntoa innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv seteuid setlogin setproctitle setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop) -dnl Checks for time functions -AC_CHECK_FUNCS(gettimeofday time) -dnl Checks for libutil functions -AC_CHECK_HEADERS(libutil.h) -AC_CHECK_FUNCS(login logout updwtmp logwtmp) -dnl Checks for utmp functions -AC_CHECK_FUNCS(endutent ge...
2000 Aug 08
1
[PATCH] Updated patch to Cygwin port of 2.1.1p4
...nary_pipe' when HAVE_CYGWIN is set. - loginrec.c: Disable check for uid 0 when HAVE_CYGWIN is set. - pty.c: Disable HAVE_VHANGUP explicitely if HAVE_CYGWIN is set. Don't call I_PUSH ioctl's under Cygwin. - readconf.c: Disable check for uid 0 when HAVE_CYGWIN is set. - scp.c: Call tcgetpgrp() instead of ioctl(..., TIOCGPGRP) to get the controlling terminal when HAVE_CYGWIN is set. - session.c: Close xauthfiles immediatly to avoid implicit file lockings on Windows NT systems. Changes in environment setting. Disable check for uid 0 when HAVE_CYGWIN is set. Don't call xauth...