Revision: 54904
http://brlcad.svn.sourceforge.net/brlcad/?rev=54904&view=rev
Author: brlcad
Date: 2013-03-27 04:01:54 +0000 (Wed, 27 Mar 2013)
Log Message:
-----------
deprecated to obsolete: remove bu_fopen_uniq()
Modified Paths:
--------------
brlcad/trunk/src/libbu/CMakeLists.txt
brlcad/trunk/src/libbu/Makefile.am
Removed Paths:
-------------
brlcad/trunk/src/libbu/fopen_uniq.c
Modified: brlcad/trunk/src/libbu/CMakeLists.txt
===================================================================
--- brlcad/trunk/src/libbu/CMakeLists.txt 2013-03-27 04:01:10 UTC (rev
54903)
+++ brlcad/trunk/src/libbu/CMakeLists.txt 2013-03-27 04:01:54 UTC (rev
54904)
@@ -36,7 +36,6 @@
fgets.c
file.c
fnmatch.c
- fopen_uniq.c
getcwd.c
gethostname.c
getopt.c
Modified: brlcad/trunk/src/libbu/Makefile.am
===================================================================
--- brlcad/trunk/src/libbu/Makefile.am 2013-03-27 04:01:10 UTC (rev 54903)
+++ brlcad/trunk/src/libbu/Makefile.am 2013-03-27 04:01:54 UTC (rev 54904)
@@ -28,7 +28,6 @@
fgets.c \
file.c \
fnmatch.c \
- fopen_uniq.c \
getcwd.c \
getopt.c \
globals.c \
Deleted: brlcad/trunk/src/libbu/fopen_uniq.c
===================================================================
--- brlcad/trunk/src/libbu/fopen_uniq.c 2013-03-27 04:01:10 UTC (rev 54903)
+++ brlcad/trunk/src/libbu/fopen_uniq.c 2013-03-27 04:01:54 UTC (rev 54904)
@@ -1,89 +0,0 @@
-/* F O P E N _ U N I Q . C
- * BRL-CAD
- *
- * Copyright (c) 2001-2013 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-
-#include "common.h"
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <string.h> /* for strerror() */
-#include <ctype.h>
-#include <math.h>
-#include <string.h>
-
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-
-#include "bio.h"
-#include "bu.h"
-
-
-/* c99 doesn't declare these */
-#if !defined(_WIN32) || defined(__CYGWIN__)
-extern FILE *fdopen(int, const char *);
-#endif
-
-
-FILE *
-bu_fopen_uniq(const char *outfmt, const char *namefmt, int n)
-{
- char filename[MAXPATHLEN];
- int fd;
- FILE *fp;
-
- if (UNLIKELY(!namefmt || !*namefmt))
- bu_bomb("bu_uniq_file called with null string\n");
-
- bu_semaphore_acquire(BU_SEM_SYSCALL);
-
- printf("DEVELOPER DEPRECATION NOTICE: bu_fopen_uniq is deprecated, use
fopen instead\n");
-
- /* NOTE: can't call bu_log because of the semaphore */
-
- snprintf(filename, MAXPATHLEN, namefmt, n);
- fd = open(filename, O_RDWR|O_CREAT|O_EXCL, 0600);
- if (UNLIKELY(fd < 0)) {
- fprintf(stderr, "Cannot open %s, %s\n", filename, strerror(errno));
- return NULL;
- }
- fp=fdopen(fd, "w");
- if (UNLIKELY(fp == (FILE *)NULL)) {
- fprintf(stderr, "%s", strerror(errno));
- }
-
- if (LIKELY(outfmt != NULL))
- fprintf(stderr, outfmt, filename);
-
- bu_semaphore_release(BU_SEM_SYSCALL);
-
- return fp;
-}
-
-/*
- * Local Variables:
- * mode: C
- * tab-width: 8
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits