fread.c (e74101e4eff767325553039def89de70b70f36d3) | fread.c (54e4e385de33a961e801ceeea8146437e25edd88) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 35 unchanged lines hidden (view full) --- 44#include <stdio.h> 45#include <string.h> 46#include "un-namespace.h" 47#include "local.h" 48#include "libc_private.h" 49 50size_t 51fread(buf, size, count, fp) | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 35 unchanged lines hidden (view full) --- 44#include <stdio.h> 45#include <string.h> 46#include "un-namespace.h" 47#include "local.h" 48#include "libc_private.h" 49 50size_t 51fread(buf, size, count, fp) |
52 void *buf; | 52 void * __restrict buf; |
53 size_t size, count; | 53 size_t size, count; |
54 FILE *fp; | 54 FILE * __restrict fp; |
55{ 56 size_t resid; 57 char *p; 58 int r; 59 size_t total; 60 61 /* 62 * The ANSI standard requires a return value of 0 for a count --- 29 unchanged lines hidden --- | 55{ 56 size_t resid; 57 char *p; 58 int r; 59 size_t total; 60 61 /* 62 * The ANSI standard requires a return value of 0 for a count --- 29 unchanged lines hidden --- |