Select the types of activity you want to include in your feed.
[REACTOS] Use standard conforming names
- Use _alloca instead of non-standard alloca - Use _TCHAR instead of non-standard TCHAR - Use _off_t instead of deprecated off_t - Use _O_BINARY instead of O_BINARY
···55 * PURPOSE: Concatenates STDIN or an arbitrary number of files to STDOUT
66 * PROGRAMMERS: David Welch
77 * Semyon Novikov (tappak)
88- * Herm�s B�lusca - Ma�to
88+ * Hermès Bélusca - Maïto
99 */
10101111#include <stdio.h>
···5454 }
55555656 /* Set STDOUT to binary */
5757- _setmode(_fileno(stdout), O_BINARY);
5757+ _setmode(_fileno(stdout), _O_BINARY);
58585959 /* Special case where we run 'cat' without any argument: we use STDIN */
6060 if (argc <= 1)
···6262 unsigned int ch;
63636464 /* Set STDIN to binary */
6565- _setmode(_fileno(stdin), O_BINARY);
6565+ _setmode(_fileno(stdin), _O_BINARY);
66666767#if 0 // Version using feof()
6868 ch = fgetc(stdin);
+2-2
sdk/include/crt/unistd.h
···2626#define FTRUNCATE_DEFINED
2727/* This is defined as a real library function to allow autoconf
2828 to verify its existence. */
2929-int ftruncate(int, off_t);
3030-__CRT_INLINE int ftruncate(int __fd, off_t __length)
2929+int ftruncate(int, _off_t);
3030+__CRT_INLINE int ftruncate(int __fd, _off_t __length)
3131{
3232 return _chsize (__fd, __length);
3333}
···211211 /* We need to make sure that this function is build with frame-pointer
212212 and that we align the stack to 16 bytes for the sake of SSE ops in main
213213 or in functions inlined into main. */
214214- lpszCommandLine = (_TCHAR *) alloca (32);
214214+ lpszCommandLine = (_TCHAR *) _alloca (32);
215215 memset (lpszCommandLine, 0xcc, 32);
216216#ifdef __GNUC__
217217 asm __volatile__ ("andl $-16, %%esp" : : : "%esp");