Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
dirfd is not available on Solaris 10, it is available on latest
OpenSolaris releases though. Do some autoconf trickery to determine if
providing an alternative dirfd function is necessary and possible.
shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will
lose it's dd_fd member again. Rearrange defines and includes to make
sense per comments, and not conflict on Solaris.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
- replace mnt_ with libmnt_ prefix for types (the old prefix was too generic)
- remove typedef, use struct everywhere
- use shorter functions names (s/userspace/user/; s/mountflags/mflags/)
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The mount.h file name is too generic.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Solaris doesn't have u_int32_t, use standards uint32_t instead
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
paths.h doesn't exist on Solaris
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The _IO macro is defined in sys/ioccom.h on various platforms. However,
on Solaris it isn't included by ioctl.h, so include it explicitly if
available.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
Reported-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
To link an object which references socket functions, you need to link
with -lsocket -lnsl on Solaris.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
On some systems, loff_t does not exist. Define it as int64_t in that
case.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Note that the code is still not able to detect 64bit on sparcs and
ppc.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
For some reason original author had defined symbolic exit codes,
but had not use them. One could argue the symbolic exit codes for
mkfs should go to local exit header which would be included to
all commands that exit with non zero or one return code.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Use xalloc, remove unused headers, use EXIT_* constants.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
|
|
Check for crypt.h existence, and use it if available over using unistd.h
for which a certain feature level has to be set to export a definition
for crypt. On Solaris this set causes a standards conflict in the
headers, because at the time of this check C99 mode is already enabled,
which implies certain standards non-compatible with _XOPEN_SOURCE.
92 #define _XOPEN_SOURCE
93 #include <unistd.h>
configure:16259: gcc -std=gnu99 -c -g -O2 conftest.c >&5
In file included from /usr/include/unistd.h:18,
from conftest.c:93:
/prefix/gentoo/usr/lib/gcc/i386-pc-solaris2.10/4.4.5/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
configure.ac: improve crypt check
login-utils/my_crypt.h: replace old GNU_LIBRARY check with autoconf
define for crypt.h
[kzak@redhat.com: - remove my_crypt.h]
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Autoconf contains the right magic to determine the endianness on many
platforms next to Linux. This reverses previous commits to move away
from WORDS_BIGENDIAN:
"use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN"
This is necessary to compile on non Linux platforms like Darwin and
Solaris.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
|
|
Instead of using an ugly goto statement, we can add a proper usage function.
This also adds the undocumented '-n' option to the output string.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=651035
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
|
This code is going to be used as mount(8) replacement in the next
major release (2.20). For now this mount(8) implementation does not
support loopdevs initialization.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Suggested by Przemoc <noreply-comment@blogger.com> at my blog.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
$ unshare --hel
Segmentation fault
The last element of longopts has to be filled with zeros.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
|
|
after
Do you really want to quit? n
the read_chars() has to re-print the original prompt and ask again
for new input. For example:
Partition number (1-4, default 3): <-- CTRL-D
Do you really want to quit? n
Partition number (1-4, default 3): 3 <-- ask again
First sector (411648-1023999, default 411648):
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Simple replacement code with hardcoded y/n responses to allow
compilation on systems without rpmatch() such as Cygwin.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
|