File:
[DVB] /
dietlibc /
lib /
creat64.c
Revision
1.2:
download - view:
text,
annotated -
select for diffs
Fri Feb 2 21:42:24 2001 UTC (23 years, 4 months ago) by
fefe
Branches:
MAIN
CVS tags:
finnland_test_200301,
branch_rc14_fieldtest_finnland,
branch_rc13_fieldtest_finnland,
branch_rc12_fieldtest_finnland,
branch_rc10_fieldtest_finnland,
RELEASE_finnland_200301_1,
RC12_FIELDTEST_FINNLAND,
RC10_FIELDTEST_FINNLAND,
HEAD
added a ton of new prototypes and the _FILE_OFFSET_BITS==64 #define
trick seems to work now, too.
#include <fcntl.h>
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
#endif
int creat64(const char *file,mode_t mode) {
return open(file,O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,mode);
}
LinuxTV legacy CVS <linuxtv.org/cvs>