Lines Matching +full:512 +full:- +full:bytes
1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved.
39 LOW-LEVEL I/O
150 The third argument is the number of bytes to be transferred.
158 which is the number of bytes actually transferred.
160 the number of bytes returned may be less than
164 bytes remained to be read.
169 A return value of zero bytes implies end of file,
171 .UL -1
173 For writing, the returned value is the number of bytes
178 The number of bytes to be read or written is quite arbitrary.
184 512,
196 #define BUFSIZE 512 /* best size for PDP-11 UNIX */
212 will return a smaller number of bytes
258 .UC PDP -11
267 #define BUFSIZE 512
279 return((--n >= 0) ? *bufp++ & CMASK : EOF);
320 .UL -1
331 or to re-write old ones.
340 .UL -1
368 Thus a three-digit octal number
388 #define BUFSIZE 512
400 if ((f1 = open(argv[1], 0)) == -1)
402 if ((f2 = creat(argv[2], PMODE)) == -1)
422 there is a limit (typically 15-25)
426 many files must be prepared to re-use
510 For example, the following simple function reads any number of bytes
513 get(fd, pos, buf, n) /* read n bytes from position pos */
523 In pre-version 7
539 .UC PDP -11
551 to multiply the given offset by 512
552 (the number of bytes in one physical block)
568 Usually they indicate an error by returning a value of \-1.