Searched refs:tempbuf (Results 1 - 3 of 3) sorted by relevance

/freebsd-13-stable/crypto/openssl/crypto/rand/
H A Drand_egd.c65 unsigned char tempbuf[255];
67 if (bytes > (int)sizeof(tempbuf))
112 tempbuf[0] = 1;
113 tempbuf[1] = bytes;
114 if (fwrite(tempbuf, sizeof(char), 2, fp) != 2 || fflush(fp) == EOF)
116 if (fread(tempbuf, sizeof(char), 1, fp) != 1 || tempbuf[0] == 0)
118 numbytes = tempbuf[0];
123 buf = tempbuf;
131 RAND_add(tempbuf,
[all...]
/freebsd-13-stable/contrib/libpcap/
H A Dsockutils.h140 int sock_bufferize(const char *buffer, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen);
H A Dsockutils.c856 * \brief It copies the amount of data contained into 'buffer' into 'tempbuf'.
860 * into 'tempbuf', starting at offset 'offset'. Before that, it checks that the
869 * In this case, both 'buffer' and 'tempbuf' can be NULL values.
881 * \param tempbuf: user-allocated buffer (of size 'totsize') in which data
884 * \param offset: an index into 'tempbuf' which keeps the location of its first
900 * is returned in the 'errbuf' variable. When the function returns, 'tempbuf' will
910 int sock_bufferize(const char *buffer, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen) argument
920 memcpy(tempbuf + (*offset), buffer, size);

Completed in 113 milliseconds