• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/makedevs/makedevs.c
Julian LunzJulian Lunz committed 8876b6751e008 Apr 2012
Raw file
Source viewDiff to previous
    fprintf(stderr, "<name>    <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n");
 
1
/* vi: set sw=4 ts=4: */
2
/*
3
 *  This program is free software; you can redistribute it and/or modify
4
 *  it under the terms of the GNU General Public License version 2 as
5
 *  published by the Free Software Foundation.
6
 *
7
 *  This program is distributed in the hope that it will be useful,
8
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 *  GNU Library General Public License for more details.
11
 *
12
 *  You should have received a copy of the GNU General Public License
13
 *  along with this program; if not, write to the Free Software
14
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15
 *
16
 */
17
​
18
#define _GNU_SOURCE
19
#include <stdio.h>
20
#include <stdlib.h>
21
#include <string.h>
22
#include <fcntl.h>
23
#include <getopt.h>
24
#include <time.h>
25
#include <pwd.h>
26
#include <grp.h>
27
#include <unistd.h>
28
#include <ctype.h>
29
#include <errno.h>
30
#include <libgen.h>
31
#include <stdarg.h>
32
#include <sys/stat.h>
33
#include <sys/types.h>
34
#ifndef __APPLE__
35
#include <sys/sysmacros.h>     /* major() and minor() */
36
#endif
37
​
38
const char *bb_applet_name;
39
​
40
void bb_verror_msg(const char *s, va_list p)
41
{
42
    fflush(stdout);
43
    fprintf(stderr, "%s: ", bb_applet_name);
44
    vfprintf(stderr, s, p);
45
}
46
​
47
void bb_error_msg(const char *s, ...)
48
{
49
    va_list p;
50
​
51
    va_start(p, s);
52
    bb_verror_msg(s, p);
53
    va_end(p);
54
    putc('\n', stderr);
55
}
56
​
57
void bb_error_msg_and_die(const char *s, ...)
58
{
59
    va_list p;
60
​
61
    va_start(p, s);
62
    bb_verror_msg(s, p);
63
    va_end(p);
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.