~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/mkfifo.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* mkfifo -- make fifo's (named pipes)
2
 
   Copyright (C) 1990-1991, 1995-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1990-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
27
27
#include "modechange.h"
28
28
#include "quote.h"
29
29
 
30
 
/* The official name of this program (e.g., no `g' prefix).  */
 
30
/* The official name of this program (e.g., no 'g' prefix).  */
31
31
#define PROGRAM_NAME "mkfifo"
32
32
 
33
33
#define AUTHORS proper_name ("David MacKenzie")
45
45
usage (int status)
46
46
{
47
47
  if (status != EXIT_SUCCESS)
48
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
49
 
             program_name);
 
48
    emit_try_help ();
50
49
  else
51
50
    {
52
51
      printf (_("Usage: %s [OPTION]... NAME...\n"), program_name);
115
114
           _("failed to set default file creation context to %s"),
116
115
           quote (scontext));
117
116
 
118
 
  newmode = (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
 
117
  newmode = MODE_RW_UGO;
119
118
  if (specified_mode)
120
119
    {
121
120
      struct mode_change *change = mode_compile (specified_mode);