/[osn-commons]/trunk/uar/selfext.c
ViewVC logotype

Annotation of /trunk/uar/selfext.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (hide annotations)
Fri Aug 16 18:33:14 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-c
File size: 1265 byte(s)
feat(uar): add self-extraction tools (incomplete)

1 rakinar2 50 /*
2     * selfext.c -- self-extracting archive runtime
3     *
4     * This file is part of the UAR project.
5     * Copyright (C) 2024 OSN, Inc.
6     *
7     * This program is free software: you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation, either version 3 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program. If not, see <http://www.gnu.org/licenses/>.
19     */
20    
21     #ifdef HAVE_PLIBC
22     # include <plibc/errno.h>
23     # include <plibc/stdio.h>
24     # include <plibc/string.h>
25     # include <plibc/unistd.h>
26     #else
27     # include <errno.h>
28     # include <stdio.h>
29     # include <string.h>
30     # include <unistd.h>
31     #endif
32    
33     #include "uar.h"
34    
35     extern long long int __uar_data_size;
36     extern unsigned char *uar_get_data_start (void);
37    
38     void
39     uar_init ()
40     {
41     }
42    
43     void
44     uar_deinit ()
45     {
46     }
47    
48     int
49     uar_main ()
50     {
51     printf ("Starting self-extracting archive...\n");
52     return 0;
53     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26