search for: progressmeter

Displaying 20 results from an estimated 81 matches for "progressmeter".

2005 Nov 21
1
[PATCH] 64 bit clean compilation patches
...ges to the build system to supply the required format specifications if they are not provided by the OS. These patches remove the following warnings found during a 64-bit compile: hostfile.c: In function `extract_salt': hostfile.c:92: warning: unsigned int format, different type arg (arg 2) progressmeter.c: In function `format_rate': progressmeter.c:91: warning: long long int format, off_t arg (arg 4) progressmeter.c:91: warning: long long int format, off_t arg (arg 5) progressmeter.c:91: warning: long long int format, off_t arg (arg 4) progressmeter.c:91: warning: long long int format, off_t a...
2002 Jan 30
1
Quick sftp status indicator.
...ly tests, I submit this to the general population, but I will not submit this for review of rest of the OpenSSH team. Mainly because it is horrible at best. dealing with alarm() in a sane way is not fun. It does not compile clean, but works. IF anyone cares to clean it up.. fine. Issues: 1) progressmeter() args are off, sftp-client.c arguments are unsigned 64bit. 2) Had to globalize a few variables to use the current design of the indicator. 3) It is from OpenBSD cvs tree... Therefor scp.c fails to patch right. One has to manual patch it. With that being said.. have fun.. BTW.. Embeded in this...
2004 Feb 11
0
Makefile.in: progressmeter.o has moved to libssh
Since progressmeter.o has moved to libssh, we don't need to explicitly link it into scp and sftp any longer. Index: Makefile.in =================================================================== RCS file: /cvs/openssh/Makefile.in,v retrieving revision 1.255 diff -u -r1.255 Makefile.in --- Makefile.in 10 Feb 2004...
2007 Nov 09
1
Patch for progressmeter.c
This is a small patch to progressmeter.c that provides peak throughput information. It adds a new field on the progress bar line that displays the 1sec throughput for the connection. At the end of the transfer it spits out the peak throughput seen. I found it useful in some testing situations and maybe someone else might find it ha...
2004 Apr 15
1
[Bug 842] type fixes for progressmeter
http://bugzilla.mindrot.org/show_bug.cgi?id=842 Summary: type fixes for progressmeter Product: Portable OpenSSH Version: -current Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sftp AssignedTo: openssh-bugs at mindrot.org ReportedBy: dtucker at zip.com...
2009 Oct 25
0
alternate output for progressmeter
Hi, I used scp in some background process for transferring large files which took some hours. For this I needed a less fancy output, preferable parseble by a script, so I could regularly see how far the transfer was The adaptions I made to progressmeter.c and .h are underneath my mail as a patch Some sample output how it looks now: :~/src/openssh-5.3p1$ ./scp -l 60000 test.bin hans at localhost:. progress test.bin : ? 0% ? ?0 ? ? 0.0KB/s ? --:-- ETA progress test.bin : ? 7% 7488KB ? 7.3MB/s ? 00:12 ETA progress test.bin : ?15% ? 14MB ? 7.3MB/s ?...
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
http://bugzilla.mindrot.org/show_bug.cgi?id=477 Summary: progressmeter.c problem requires openbsd-compat/bsd- cray.h change Product: Portable OpenSSH Version: 3.5p1 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Build system...
2002 Feb 06
2
SFTP Status Bar..
...n ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +int +getttywidth(void) +{ + struct winsize winsize; + + if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1) + return (winsize.ws_col ? winsize.ws_col : 80); + else + return (80); +} + +void +progressmeter(off_t statbytes, off_t totalbytes, char *filename) +{ +#define STALLTIME 5 /* number of seconds before xfer assumed "stalled" */ + static const char prefixes[] = " KMGTP"; + static char *progressbar = NULL; + static struct timeval *start = NULL, lastupdate; + static off_t...
2002 Feb 02
0
Version two of progressbar for scp/sftp
Again, this has been lightly tested. I think there still are a few glitchs. 1. stole progressmeter() from scp.c - clean up and simplified a little to remove the 'flag' status. It now understands how to initialize itself and how to terminate itself. Along with a malloced status bar instead of the original fix width bar. 2. removed all initialization code from scp.c for progressmeter()...
2007 May 17
1
[Bug 842] type fixes for progressmeter
http://bugzilla.mindrot.org/show_bug.cgi?id=842 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #1287| |ok? Flag| | --- Comment #4 from Damien Miller <djm at mindrot.org>
2003 Feb 18
0
progressmeter.c fails to build on Cygwin
Hi, I didn't had the time to build portable OpenSSH from CVS for some weeks now. I was very surprised to see that it fails to build on Cygwin. It only fails in the new progressmeter.c file which has two flaws: First of all, libgen.h and basename() don't exist on Cygwin (and probably on other systems). I already implemented this function in the bsd-cygwin_util.c file but I'd think it could make sense to put it into some other file since it's probably needed for ot...
2003 Feb 19
0
[Bug 499] New: progressmeter.c doesn't build (at least) on Cygwin
http://bugzilla.mindrot.org/show_bug.cgi?id=499 Summary: progressmeter.c doesn't build (at least) on Cygwin Product: Portable OpenSSH Version: -current Platform: ix86 OS/Version: Cygwin on NT/2k Status: NEW Severity: critical Priority: P2 Component: Build system AssignedTo: op...
2003 Feb 19
3
[Bug 499] progressmeter.c doesn't build (at least) on Cygwin
http://bugzilla.mindrot.org/show_bug.cgi?id=499 ------- Additional Comments From vinschen at redhat.com 2003-02-19 19:13 ------- Created an attachment (id=233) --> (http://bugzilla.mindrot.org/attachment.cgi?id=233&action=view) Solves the progressmeter.c build problems ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2005 Nov 05
1
[Bug 842] type fixes for progressmeter
http://bugzilla.mindrot.org/show_bug.cgi?id=842 ------- Comment #2 from djm at mindrot.org 2005-11-06 03:51 ------- Is this still relevant? What compile warnings do you see? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Jan 27
0
[Bug 477] progressmeter.c problem requires openbsd-compat/bsd-cray.h change
http://bugzilla.mindrot.org/show_bug.cgi?id=477 mouring at eviladmin.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From mouring at eviladmin.org
2003 May 06
2
scp: missing progressbar, better behaviour on small windows
I miss the stars when doing scp. My suggestion for progressmeter.c makes scp to display different fields on different terminal widths. Maybe this is useful for you. Once in "start_progress_meter()" the outlook of the progressline is calculated. In "draw_progress_meter()" sprintf() instead of snprintf() together with some strlen()'s can b...
2023 Mar 22
1
Large file support, mkstemp, and off_t
...pport for everything built for > ARM on ChromeOS and openssh uses mkstemp which has a 64-bit version > for compatibility with open64. When looking into enabling the large > file support flags, I noticed: > > `void start_progress_meter(const char *, off_t, off_t *);` > > in progressmeter.h which would have different ABIs with and without > large file support. You all probably ought to avoid exposing off_t in > any external-facing APIs. OpenSSH doesn't have any external-facing APIs though, we don't ship a library for others to use. progressmeter.h is just for scp and...
2016 Jan 19
6
FWD: [patch] scp + UTF-8
.... It's quite a lot more memory, but I reckon it's better then the horrible indentation we have now. I primarily developed this with scp and only minimally tested it with sftp, but it should work with both. sftp already called setlocale, so no patch is needed for sftp.c. [...] Index: progressmeter.c =================================================================== RCS file: /cvs/src/usr.bin/ssh/progressmeter.c,v retrieving revision 1.41 diff -u -p -r1.41 progressmeter.c --- progressmeter.c 14 Jan 2015 13:54:13 -0000 1.41 +++ progressmeter.c 17 Jan 2016 09:07:51 -0000 @@ -30,9 +30,11 @@ #i...
2016 Jan 19
2
OpenSSH portability & buildsystem fixes
...sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) - $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) + $(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) $(GSSLIBS) $(K5LIBS) scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o - $(LD) -o $@ scp.o progressmeter.o bufaux.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) + $(CC) -o $@ scp.o progressmeter.o bufaux.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o - $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) + $(...
2023 Mar 22
1
Large file support, mkstemp, and off_t
...are trying to enable large file support for everything built for ARM on ChromeOS and openssh uses mkstemp which has a 64-bit version for compatibility with open64. When looking into enabling the large file support flags, I noticed: `void start_progress_meter(const char *, off_t, off_t *);` in progressmeter.h which would have different ABIs with and without large file support. You all probably ought to avoid exposing off_t in any external-facing APIs. Allen