1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 36#endif /* not lint */ 37 38#include <sys/types.h> 39#include <unistd.h> 40 41int 42csum2(fd, cval, clen) 43 register int fd; |
44 u_int32_t *cval, *clen; |
45{ |
46 register u_int32_t crc, total; |
47 register int nr; 48 register u_char *p; 49 u_char buf[8192]; 50 51 /* 52 * Draft 8 POSIX 1003.2: 53 * 54 * s = sum of all bytes --- 17 unchanged lines hidden --- |