search for: atomicio

Displaying 20 results from an estimated 128 matches for "atomicio".

2000 Mar 09
0
Can not configure openssh-1.2.2p1
...llow my usual build procedure and do: cd /usr/local/src tar xfz ~/openssh-1.2.2p1.tar.gz cd /usr/local/build mkdir openssh-1.2.2p1 cd ./openssh-1.2.2p1 ../../src/openssh-1.2.2p1/configure make I get the following errors: In file included from ../../src/openssh-1.2.2p1/atomicio.c:26: ../../src/openssh-1.2.2p1/includes.h:22: config.h: No such file or directory In file included from ../../src/openssh-1.2.2p1/includes.h:96, from ../../src/openssh-1.2.2p1/atomicio.c:26: ../../src/openssh-1.2.2p1/bsd-bindresvport.h:4: config.h: No such file or directory In fil...
2007 Sep 18
2
poll.h vs sys/poll.h on QNX Neutrino
From the ChangeLog: - dtucker at cvs.openbsd.org 2007/06/25 12:02:27 [atomicio.c] Include <poll.h> like the man page says rather than <sys/poll.h>. ok djm@ This was probably ill-advised given the history of this header file. Some older systems, and some not-quite-XSI-compliant systems such as QNX Neutrino, still have <sys/poll.h> but not <poll....
2000 Jan 07
2
problems with compiling on SPARC solaris 2.7
ssh won't compile on this platform log: gcc -g -O2 -Wall -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c atomicio.c -o atomicio.o In file included from config.h:294, from bsd-misc.h:39, from includes.h:91, from atomicio.c:26: defines.h:74: redefinition of `u_int16_t' defines.h:74: `u_int16_t' previously declared here defines.h:75: redefinition of `u_in...
1999 Dec 30
1
more problems with solaris 7?
...r User <root at dragon.acadiau.ca> To: marc at acadiau.ca Subject: openssh gcc -g -O2 -Wall -I/usr/slocal/include -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/slocal/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/slocal/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c atomicio.c -o atomicio.o In file included from config.h:289, from includes.h:22, from atomicio.c:26: defines.h:102: conflicting types for `quad_t' /usr/include/sys/types.h:531: previous declaration of `quad_t' In file included from config.h:289, fro...
2000 Jul 06
2
2.1.1p2 HP-UX 11 timing error
FYI in order to get 2.1.1p2 to work on my HP-UX 11.0 systems I had to patch atomicio.c for EWOULDBLOCK (HP read() does not give the POSIX return code). The new atomicio() is a clean fix for this timing problem; all it needs now is this one little tweak. Also had the "General Commercial Security" error (PAM_TERM_ERROR from pam_acct_mgmt()) which I have very crudely addres...
2007 Sep 20
2
[Bug 1366] New: atomicio doesn't poll()
http://bugzilla.mindrot.org/show_bug.cgi?id=1366 Summary: atomicio doesn't poll() Product: Portable OpenSSH Version: 4.7p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: bitbucket at mindrot.org Reported...
2007 Oct 31
26
[Bug 1386] New: OpenSSH 4.7p1 compile error in atomicio.c under Tru64 4.0f
https://bugzilla.mindrot.org/show_bug.cgi?id=1386 Summary: OpenSSH 4.7p1 compile error in atomicio.c under Tru64 4.0f Classification: Unclassified Product: Portable OpenSSH Version: 4.7p1 Platform: Alpha OS/Version: Tru64 Status: NEW Severity: major Priority: P2 Component: Build system...
2007 Sep 15
0
PATCH: atomicio doesn't poll()
atomicio contains the following in the read/write loop: ----- case -1: #ifdef EWOULDBLOCK if (errno == EINTR || errno == EWOULDBLOCK) #else if (errno == EINTR) #endif continue; if (errno...
2000 Oct 17
1
ssh-add broken for latest snapshots
...ed down to a change recently made. I run "ssh-add < /dev/null" to launch (x11-)ssh-askpass from the CDE startup. Unfortunately, no keys are added to ssh-agent! Reason: Between 2.2.0p1 (ssh-add.c 1.20) and now (ssh-add 1.22) the input reading from ssh-askpass was changed from read() to atomicio(). 91c120 < len = read(p[0], buf, sizeof buf); --- > len = atomicio(read, p[0], buf, sizeof buf); After having entered the passphrase, atomicio will first read the correct number of characters (like read()), but then will try to read another hunk, which is not there anymore, becau...
2001 Aug 31
0
Is this a bug in atomicio.c
It looks to me like atomicio can return 0, EOF, after it has read some data. Shouldn't it just return the data already read? Bill Jones
2001 Mar 23
1
-I$(srcdir)/openbsd-compat removal can cause errors
...ed. gcc -O2 -Wall -I. -I. -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -DHAVE_CONFIG_H -c atomicio.c In file included from openbsd-compat/openbsd-compat.h:24, from includes.h:102, from atomicio.c:26: openbsd-compat/vis.h:31: conflicting types for `vis' /usr/local/include/vis.h:45: previous declaration of `vis' make: *** [atomicio.o] Error 1 It turns out...
2000 Jan 17
1
pre27 compilation fails on Sol7 box
Something strange happens when I compile the pre27 SSH: ocal/ssh//include -DETCDIR=\"/usr/local/ssh//etc\" \ -DSSH_PROGRAM=\"/usr/local/ssh//bin/ssh\" \ -DSSH_ASKPASS_DEFAULT=\"/usr/local/ssh//libexec/ssh/ssh-askpass\" \ -DHAVE_CONFIG_H -c atomicio.c In file included from includes.h:106, from atomicio.c:26: fake-socket.h:30: parse error before u_int8_t' fake-socket.h:30: warning: no semicolon at end of struct or union fake-socket.h:39: field sin6_addr' has incomplete type *** Error code 1 make: Fatal error: Comm...
2009 Oct 25
0
alternate output for progressmeter
...? ? ? ? ?if (bytes_left > 0) ? ? ? ? ? ? ? ? ? ? ? ?strlcat(buf, " ETA", win_size); ? ? ? ? ? ? ? ?else - ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, " ? ?", win_size); + ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, (progresstype)?" done":" ? ?", win_size); ? ? ? ?} - ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); + ? ? ? if (progresstype) { + ? ? ? ? ? ? ? strlcat(buf,"\n",win_size); + ? ? ? ? ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, strlen(buf)); + ? ? ? } else + ? ? ? ? ? ? ? atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); ? ? ? ?last_update = now...
2002 Jul 13
0
[PATCH]: scp program improved
...i; + } + } + bp->cnt = buf_size; + if (verbose_mode) + printf ("Buffer size: %u\n", buf_size); + } + + i = 0; + if (resume_mode) { + if (bp->cnt < 20) + goto next; + + /* Get the file size if resume mode used */ + (void) atomicio(read, remin, buf, 20); + buf[20] = '\0'; + statbytes = i = atoll(buf); + lseek(fd, i, SEEK_SET); + if (verbose_mode) + printf("Continuing at: %llu\n", i); + } + if (showprogress) { totalbytes = stb.st_size; progressmeter(-1); } + /* Keep wri...
2000 Jan 18
1
Error when compiling for Solaris7
...e... no creating ./config.status creating Makefile creating config.h config.h is unchanged % make gcc -g -O2 -Wall -I/common/include -DETCDIR=\"/etc/ssh\" -DSSH_PROGRAM=\"/common/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/common/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c atomicio.c -o atomicio.o In file included from includes.h:106, from atomicio.c:26: fake-socket.h:31: parse error before `u_int8_t' fake-socket.h:31: warning: no semicolon at end of struct or union fake-socket.h:40: field `sin6_addr' has incomplete type make: *** [atomicio.o] Error 1
1999 Dec 07
0
ANNOUNCE: openssh-1.2pre16
...ipt patch from Jim Knoble <jmknoble at pobox.com> fixes compatability with 4.x and 5.x - Fixed default SSH_ASKPASS - Fix PAM account and session being called multiple times. Problem reported by Adrian Baugh <adrian at merlin.keble.ox.ac.uk> - Merged more OpenBSD changes: - [atomicio.c authfd.c scp.c serverloop.c ssh.h sshconnect.c sshd.c] move atomicio into it's own file. wrap all socket write()s which were doing write(sock, buf, len) != len, with atomicio() calls. - [auth-skey.c] fd leak - [authfile.c] properly name fd variable - [channels.c...
2016 Jan 20
1
Bug#811936: blktap: FTBFS with GCC 6: defined but not used
...t; sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux ... > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE -I../../include -I../../lvm -I../../part -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT atomicio.lo -MD -MP -MF .deps/atomicio.Tpo -c atomicio.c -fPIC -DPIC -o .libs/atomicio.o > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -D_GNU_SOURCE -I../../include -I../../lvm -I../../part -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -g -O2 -fstack-protector-strong -Wformat -Werror=format-secur...
2009 Mar 16
2
openssh 5.2p1 fails to build on IRIX 5.3
.../usr/tgcware/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/tgcware/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty/sshd\" -DSSH_RAND_HELPER=\"/usr/tgcware/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c atomicio.c cfe: Warning 581: /usr/include/sys/param.h:223: Macro MAXPATHLEN redefined. cfe: Error: atomicio.c, line 102: Unacceptable operand of == or != pfd.events = f == readv ? 0x0001 : 0x0004 ; ---------------^ make: *** [atomicio.o] Error 1 The code is gibberish to me but since GCC...
2002 Feb 06
2
SFTP Status Bar..
...easy for anyone to test. - Ben diff -ur openssh-3.0.2p1/misc.c openssh/misc.c --- openssh-3.0.2p1/misc.c Tue Jul 3 23:46:58 2001 +++ openssh/misc.c Wed Feb 6 13:15:55 2002 @@ -30,6 +30,7 @@ #include "misc.h" #include "log.h" #include "xmalloc.h" +#include "atomicio.h" /* remove newline 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...
2005 Mar 16
1
openssh-3.8.1p1, with pthreads enabled, hung in pthread_join.
...b0 in fatal (fmt=0x547d0 "Timeout before authentication for %s") at /tmp/OpenSSH.roots/OpenSSH/openssh/fatal.c:40 #6 0x00002d40 in grace_alarm_handler (sig=14) at /tmp/OpenSSH.roots/OpenSSH/openssh/sshd.c:320 #7 <signal handler called> #8 0x90013bc8 in read () #9 0x0002b5ec in atomicio (f=0x90013bc0 <read>, fd=6, _s=0xbfffef60, n=4) at /tmp/OpenSSH.roots/OpenSSH/openssh/atomicio.c:45 #10 0x00020744 in mm_request_receive (socket=6, m=0xbfffefc0) at /tmp/OpenSSH.roots/OpenSSH/openssh/monitor_wrap.c:110 #11 0x0001c290 in monitor_read (pmonitor=0x403540, ent=0x633c4, pent=0x...