当前位置: 技术问答>linux和unix
undefined reference to `msktemp'
来源: 互联网 发布时间:2016-04-23
本文导语: /* * seek.c - Using lseek, fsync, and ftruncate */ #include #include #include #include #include #include int main(void) { char ftmp[] = "tmpXXXXXX"; char buf[10]; struct stat statbuf; int i, infd, outfd; /* open the input file */ if((infd = open("de...
/*
* seek.c - Using lseek, fsync, and ftruncate
*/
#include
#include
#include
#include
#include
#include
int main(void)
{
char ftmp[] = "tmpXXXXXX";
char buf[10];
struct stat statbuf;
int i, infd, outfd;
/* open the input file */
if((infd = open("devices.txt", O_RDONLY))