Displaying 9 results from an estimated 9 matches for "foregroundproc".
2001 Mar 02
2
make 2.5.1p1 on Solaris8 (fwd)
...openbsd-compat -I.
-DETCDIR=\"/etc/opt/ssh\" -
D_PATH_SSH_PROGRAM=\"/opt/openssh/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/o
penssh/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/openssh/libexec/sftp-ser
ver\" -DHAVE_CONFIG_H -c scp.c
scp.c: In function `foregroundproc':
scp.c:1124: too many arguments to function `getpgrp'
make: *** [scp.o] Error 1
Do you know what is wrong?
Thanks in advance,
Peter
2002 Feb 06
2
SFTP Status Bar..
...line at end of string */
char *
@@ -304,6 +305,139 @@
args->list = xrealloc(args->list, args->nalloc * sizeof(char *));
args->list[args->num++] = xstrdup(buf);
args->list[args->num] = NULL;
+}
+
+/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */
+static int
+foregroundproc(void)
+{
+ static pid_t pgrp = -1;
+ int ctty_pgrp;
+
+ if (pgrp == -1)
+ pgrp = getpgrp();
+
+ return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
+ ctty_pgrp == pgrp));
+}
+
+int
+getttywidth(void)
+{
+ struct winsize winsize;
+
+ if (ioctl(fileno(stdout), TIOCGWINSZ, &am...
2002 Jan 30
1
Quick sftp status indicator.
...ieving revision 1.15
diff -u -r1.15 misc.c
--- misc.c 2002/01/24 21:09:25 1.15
+++ misc.c 2002/01/29 23:16:28
@@ -310,3 +310,133 @@
args->list[args->num++] = xstrdup(buf);
args->list[args->num] = NULL;
}
+
+/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */
+static int
+foregroundproc(void)
+{
+ static pid_t pgrp = -1;
+ int ctty_pgrp;
+
+ if (pgrp == -1)
+ pgrp = getpgrp();
+
+ return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
+ ctty_pgrp == pgrp));
+}
+
+void
+progressmeter(int flag, off_t statbytes, off_t totalbytes, char *curfile)
+{
+#define STALL...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...ieving revision 1.15
diff -u -r1.15 misc.c
--- misc.c 2002/01/24 21:09:25 1.15
+++ misc.c 2002/02/02 21:47:40
@@ -310,3 +310,135 @@
args->list[args->num++] = xstrdup(buf);
args->list[args->num] = NULL;
}
+
+/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */
+static int
+foregroundproc(void)
+{
+ static pid_t pgrp = -1;
+ int ctty_pgrp;
+
+ if (pgrp == -1)
+ pgrp = getpgrp();
+
+ return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
+ ctty_pgrp == pgrp));
+}
+
+void
+progressmeter(off_t statbytes, off_t totalbytes, char *filename)
+{
+#define STALLTIME...
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
...Portable OpenSSH
Version: 3.5p1
Platform: Other
OS/Version: other
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 &&...
2003 Feb 18
0
progressmeter.c fails to build on Cygwin
...n_util.c file but I'd think it could make sense to put it
into some other file since it'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 an...
2002 Jul 13
0
[PATCH]: scp program improved
...stupdate;
- static off_t lastsize;
- struct timeval now, td, wait;
- off_t cursize, abbrevsize;
- double elapsed;
- int ratio, barlength, i, remaining;
- char buf[512];
-
- if (flag == -1) {
- (void) gettimeofday(&start, (struct timezone *) 0);
- lastupdate = start;
- lastsize = 0;
- }
- if (foregroundproc() == 0)
- return;
+/* Functions for progress meter */
+#define MAX_PREFIXLEN 30
+#define MAX_GAUGELEN 200
- (void) gettimeofday(&now, (struct timezone *) 0);
- cursize = statbytes;
- if (totalbytes != 0) {
- ratio = 100.0 * cursize / totalbytes;
- ratio = MAX(ratio, 0);
- ratio = MIN(rati...
1999 Nov 19
4
ANNOUNCE: openssh-1.2pre13
...rt (compiles OK)
- Renamed BSD helper function files to bsd-*
- Added tests for login and daemon and enable OpenBSD replacements for
when they are absent.
- Added non-PAM MD5 password support patch from Tudor Bosman <tudorb at jm.nu>
19991118
- Merged OpenBSD CVS changes
- [scp.c] foregroundproc() in scp
- [sshconnect.h] include fingerprint.h
- [sshd.c] bugfix: the log() for passwd-auth escaped during logging
changes.
- [ssh.1] Spell my name right.
- Added openssh.com info to README
19991117
- Merged OpenBSD CVS changes
- [ChangeLog.Ylonen] noone needs this anymore...
2001 Feb 01
0
warnings on aix325
...#39;
ssh-agent.c:822: warning: implicit declaration of function `bzero'
scp.c: In function `sink':
scp.c:808: warning: implicit declaration of function `utimes'
scp.c: In function `alarmtimer':
scp.c:1103: warning: implicit declaration of function `setitimer'
scp.c: In function `foregroundproc':
scp.c:1132: warning: implicit declaration of function `ioctl'
scp.c: In function `progressmeter':
scp.c:1150: warning: implicit declaration of function `gettimeofday'
sftp-server.c: In function `process_setstat':
sftp-server.c:706: warning: implicit declaration of function `ut...