/[path-sandbox]/trunk/libsbutil/get_sandbox_lib.c
Gentoo

Contents of /trunk/libsbutil/get_sandbox_lib.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 356 - (hide annotations) (download) (as text)
Thu Apr 19 01:27:04 2007 UTC (11 years, 1 month ago) by vapier
File MIME type: text/x-csrc
File size: 1198 byte(s)
cleanup style a bit and drop multilib code
1 ferringb 2 /*
2 azarah 340 * get_sandbox_lib.c
3 ferringb 2 *
4 azarah 309 * Util functions.
5     *
6     * Copyright 1999-2006 Gentoo Foundation
7     *
8     *
9     * This program is free software; you can redistribute it and/or modify it
10     * under the terms of the GNU General Public License as published by the
11     * Free Software Foundation version 2 of the License.
12     *
13     * This program is distributed in the hope that it will be useful, but
14     * WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16     * General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License along
19     * with this program; if not, write to the Free Software Foundation, Inc.,
20     * 675 Mass Ave, Cambridge, MA 02139, USA.
21     *
22     * Some parts might have Copyright:
23     *
24     * Copyright (C) 2002 Brad House <brad@mainstreetsoftworks.com>
25     *
26 ferringb 2 * $Header$
27     */
28    
29 azarah 309
30 ferringb 2 #include <errno.h>
31     #include <stdio.h>
32    
33 azarah 309 #include "sbutil.h"
34 ferringb 2
35 azarah 189 void get_sandbox_lib(char *path)
36 ferringb 2 {
37 azarah 340 save_errno();
38 azarah 140 snprintf(path, SB_PATH_MAX, "%s/%s", LIBSANDBOX_PATH, LIB_NAME);
39 azarah 282 if (!rc_file_exists(path)) {
40 azarah 140 snprintf(path, SB_PATH_MAX, "%s", LIB_NAME);
41 ferringb 2 }
42 azarah 340 restore_errno();
43 ferringb 2 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20