Mercurial > libavcodec.hg
comparison utils.c @ 5285:6661692d34b4 libavcodec
Remove underscores before fcntl flags
author | ramiro |
---|---|
date | Wed, 11 Jul 2007 15:21:24 +0000 |
parents | b481b3e3f43d |
children | ed7d84e0164d |
comparison
equal
deleted
inserted
replaced
5284:b481b3e3f43d | 5285:6661692d34b4 |
---|---|
1343 if (*filename == NULL) { | 1343 if (*filename == NULL) { |
1344 av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); | 1344 av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); |
1345 return -1; | 1345 return -1; |
1346 } | 1346 } |
1347 #if !defined(HAVE_MKSTEMP) | 1347 #if !defined(HAVE_MKSTEMP) |
1348 fd = open(*filename, _O_RDWR | _O_BINARY | _O_CREAT, 0444); | 1348 fd = open(*filename, O_RDWR | O_BINARY | O_CREAT, 0444); |
1349 #else | 1349 #else |
1350 snprintf(*filename, len, "/tmp/%sXXXXXX", prefix); | 1350 snprintf(*filename, len, "/tmp/%sXXXXXX", prefix); |
1351 fd = mkstemp(*filename); | 1351 fd = mkstemp(*filename); |
1352 if (fd < 0) { | 1352 if (fd < 0) { |
1353 snprintf(*filename, len, "./%sXXXXXX", prefix); | 1353 snprintf(*filename, len, "./%sXXXXXX", prefix); |