/macosx-10.9.5/lsof-52/lsof/scripts/ |
H A D | sort_res.perl5 | 103 $gsize=0; 107 $gsize+=$dgroup{$k}{size}; 110 printf("Total KB : %10d\n", $gsize/1024);
|
/macosx-10.9.5/WebCore-7537.78.1/platform/gtk/ |
H A D | SharedBufferGtk.cpp | 37 gsize size;
|
H A D | FileSystemGtk.cpp | 339 gsize bytesWritten;
|
/macosx-10.9.5/tcl-102/tcl84/tcl/compat/ |
H A D | strftime.c | 109 static size_t gsize; variable 144 if ((gsize = maxsize) < 1) 148 return(maxsize - gsize); 396 pt, gsize, NULL, &wrote, NULL); 398 gsize -= wrote; 411 if (!gsize--) 415 return(gsize); 460 for (;; ++pt, --gsize) { 461 if (!gsize)
|
/macosx-10.9.5/groff-38/groff/src/preproc/eqn/ |
H A D | box.cpp | 30 int gsize = 0; variable 168 if (!gsize) 169 gsize = 10; 171 if (gsize > INT_MAX - n) 173 gsize += int(n); 176 if (gsize - n <= 0) 178 gsize -= int(n); 182 gsize = int(n); 286 if (gsize > 0) { 288 sprintf(buf, "%d", gsize); [all...] |
/macosx-10.9.5/Heimdal-323.92.1/lib/hcrypto/ |
H A D | rand-timer.c | 49 static int gsize; variable 55 if (igdata < gsize) 121 gsize = size;
|
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/gtk/ |
H A D | ImageBufferGtk.cpp | 34 static bool encodeImage(cairo_surface_t* surface, const String& mimeType, const double* quality, GOwnPtr<gchar>& buffer, gsize& bufferSize) 73 gsize bufferSize;
|
H A D | ImageGtk.cpp | 69 gsize length;
|
/macosx-10.9.5/WebKit-7537.78.2/gtk/tests/ |
H A D | testmimehandling.c | 51 gsize length; 60 gsize length; 69 gsize length;
|
H A D | testfavicondatabase.c | 43 gsize length;
|
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/API/gtk/ |
H A D | WebKitWebResource.h | 78 gsize *length,
|
H A D | WebKitPrivate.h | 102 static volatile gsize g_define_type_id__volatile = 0; \
|
H A D | WebKitWebResource.cpp | 371 guchar* webkit_web_resource_get_data_finish(WebKitWebResource* resource, GAsyncResult* result, gsize* length, GError** error)
|
/macosx-10.9.5/CommonCrypto-60049/lib/ |
H A D | CommonDH.c | 170 cc_size gsize = ccn_nof_size(gLen); local 171 cc_size n = (psize > gsize) ? psize: gsize;
|
/macosx-10.9.5/WebKit2-7537.78.2/WebProcess/soup/ |
H A D | WebKitSoupRequestInputStream.cpp | 29 AsyncReadData(GSimpleAsyncResult* result, void* buffer, gsize count, GCancellable* cancellable) 54 static void webkitSoupRequestInputStreamReadAsyncResultComplete(WebKitSoupRequestInputStream* stream, GSimpleAsyncResult* result, void* buffer, gsize count, GCancellable* cancellable) 86 static void webkitSoupRequestInputStreamReadAsync(GInputStream* inputStream, void* buffer, gsize count, int /*priority*/, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer userData)
|
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/libdes/src/ |
H A D | rnd_keys.c | 173 /*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H�gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the Kungliga Tekniska
* H�gskolan and its contributors.
*
* 4. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
RCSID("$Id: rnd_keys.c,v 1.4 2005/01/10 19:09:07 snsimon Exp $");
#endif
#include <des.h>
#include <des_locl.h>
#ifdef KRB5
#include <krb5-types.h>
#elif defined(KRB4)
#include <ktypes.h>
#endif
#include <string.h>
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#elif defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#else
#include <time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_IO_H
#include <io.h>
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_WINSOCK_H
#include <winsock.h>
#endif
/*
* Generate "random" data by checksumming a file.
*
* Returns -1 if there were any problems with permissions or I/O
* errors.
*/
static
int
sumFile (const char *name, int len, void *res)
{
u_int32_t sum[2];
u_int32_t buf[1024*2];
int fd, i;
fd = open (name, 0);
if (fd < 0)
return -1;
while (len > 0)
{
int n = read(fd, buf, sizeof(buf));
if (n < 0)
{
close(fd);
return n;
}
for (i = 0; i < (n/sizeof(buf[0])); i++)
{
sum[0] += buf[i];
i++;
sum[1] += buf[i];
}
len -= n;
}
close (fd);
memcpy (res, &sum, sizeof(sum));
return 0;
}
#if 0
static
int
md5sumFile (const char *name, int len, int32_t sum[4])
{
int32_t buf[1024*2];
int fd, cnt;
struct md5 md5;
fd = open (name, 0);
if (fd < 0)
return -1;
md5_init(&md5);
while (len > 0)
{
int n = read(fd, buf, sizeof(buf));
if (n < 0)
{
close(fd);
return n;
}
md5_update(&md5, buf, n);
len -= n;
}
md5_finito(&md5, (unsigned char *)sum);
close (fd);
return 0;
}
#endif
/*
* Create a sequence of random 64 bit blocks.
* The sequence is indexed with a long long and
* based on an initial des key used as a seed.
*/
static des_key_schedule sequence_seed;
static u_int32_t sequence_index[2];
/*
* Random number generator based on ideas from truerand in cryptolib
* as described on page 424 in Applied Cryptography 2 ed. by Bruce
* Schneier.
*/
static volatile int counter;
static volatile unsigned char *gdata; /* Global data */
static volatile int igdata; /* Index into global data */
static int gsize;
#if !defined(WIN32) && !defined(__EMX__) && !defined(__OS2__) && !defined(__CYGWIN32__)
/* Visual C++ 4.0 (Windows95/NT) */
static
RETSIGTYPE
sigALRM(int sig)
{
if (igdata < gsize)
gdata[igdata++] ^= counter & 0xff;
#ifndef HAVE_SIGACTION
signal(SIGALRM, sigALRM); /* Reinstall SysV signal handler */
#endif
SIGRETURN(0);
}
#endif
#if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
#ifndef srandom
#define srandom srand
#endif
#ifndef random
#define random rand
#endif
#endif
static void
des_not_rand_data(unsigned char *data, int size)
{
int i;
srandom (time (NULL));
for(i = 0; i < size; ++i)
data[i] ^= random() % 0x100;
}
#if !defined(WIN32) && !defined(__EMX__) && !defined(__OS2__) && !defined(__CYGWIN32__)
#ifndef HAVE_SETITIMER
static void
pacemaker(struct timeval *tv)
{
fd_set fds;
pid_t pid;
pid = getppid();
while(1){
FD_ZERO(&fds);
FD_SET(0, &fds);
select(1, &fds, NULL, NULL, tv);
kill(pid, SIGALRM);
}
}
#endif
/*
* Generate size bytes of "random" data using timed interrupts.
* It takes about 40ms/byte random data.
* It's not neccessary to be root to run it.
*/
void
des_rand_data(unsigned char *data, int size)
{
struct itimerval tv, otv;
#ifdef HAVE_SIGACTION
struct sigaction sa, osa;
#else
RETSIGTYPE (*osa)(int);
#endif
int i, j;
#ifndef HAVE_SETITIMER
pid_t pid;
#endif
char *rnd_devices[] = {"/dev/random",
"/dev/srandom",
"/dev/urandom",
NULL};
char **p;
for(p = rnd_devices; *p; p++) {
int fd = open(*p, O_RDONLY | O_NDELAY);
if(fd >= 0 && read(fd, data, size) == size) {
close(fd);
return;
}
close(fd);
}
/* Paranoia? Initialize data from /dev/mem if we can read it. */
if (size >= 8)
sumFile("/dev/mem", (1024*1024*2), data);
gdata = data;
gsize = size;
igdata = 0;
#ifdef HAVE_SIGACTION
/* Setup signal handler */
sa.sa_handler = (…) 1 /* variable
|
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/gstreamer/ |
H A D | GStreamerVersioning.cpp | 124 gsize bufferSize = gst_buffer_get_size(buffer); 166 GST_BUFFER_SIZE(buffer) = static_cast<gsize>(newSize);
|
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/API/gtk/tests/ |
H A D | TestSSL.cpp | 165 gsize length; 174 gsize length;
|
H A D | TestWebKitFaviconDatabase.cpp | 119 gsize length;
|
/macosx-10.9.5/sudo-72/src/ |
H A D | pwutil.c | 163 size_t nsize, psize, csize, gsize, dsize, ssize, total; local 172 nsize = psize = csize = gsize = dsize = ssize = 0; 179 FIELD_SIZE(pw, pw_gecos, gsize); 202 FIELD_COPY(pw, newpw, pw_gecos, gsize);
|
/macosx-10.9.5/WebKit2-7537.78.2/Shared/Downloads/soup/ |
H A D | DownloadSoup.cpp | 120 gsize bytesWritten;
|
/macosx-10.9.5/WebKit2-7537.78.2/Shared/gtk/ |
H A D | ArgumentCodersGtk.cpp | 221 gsize dataSize;
|
/macosx-10.9.5/WebCore-7537.78.1/accessibility/atk/ |
H A D | WebKitAccessibleHyperlink.cpp | 371 static volatile gsize typeVolatile = 0;
|
/macosx-10.9.5/WebCore-7537.78.1/platform/audio/gstreamer/ |
H A D | AudioFileReaderGStreamer.cpp | 108 gsize bufferSize = gst_buffer_get_size(buffer);
|
/macosx-10.9.5/curl-78.94.1/curl/docs/examples/ |
H A D | ghiper.c | 345 gsize len, tp;
|