]> err.no Git - util-linux/log
util-linux
17 years agoonly include vt.h et al if we're using that code
LaMont Jones [Mon, 9 Jul 2007 20:46:40 +0000 (14:46 -0600)]
only include vt.h et al if we're using that code

17 years agoadd Depends: nfs-common until after lenny ships
LaMont Jones [Mon, 9 Jul 2007 18:14:33 +0000 (12:14 -0600)]
add Depends: nfs-common until after lenny ships

17 years agochangelog cleanup
LaMont Jones [Mon, 9 Jul 2007 17:39:01 +0000 (11:39 -0600)]
changelog cleanup

17 years agocorrect location of README.Debian.hwclock.gz (#393539)
LaMont Jones [Mon, 9 Jul 2007 17:38:50 +0000 (11:38 -0600)]
correct location of README.Debian.hwclock.gz (#393539)

17 years agogetopt example location (#352221)
LaMont Jones [Mon, 9 Jul 2007 17:35:27 +0000 (11:35 -0600)]
getopt example location (#352221)

17 years agoschedutils gobbled (#322883)
LaMont Jones [Mon, 9 Jul 2007 17:34:51 +0000 (11:34 -0600)]
schedutils gobbled (#322883)

17 years agoadd LSB dependency info (#330227)
LaMont Jones [Mon, 9 Jul 2007 17:34:11 +0000 (11:34 -0600)]
add LSB dependency info (#330227)

17 years agohave configure claim it's "util-linux", not "util-linux-ng"
LaMont Jones [Mon, 9 Jul 2007 17:16:54 +0000 (11:16 -0600)]
have configure claim it's "util-linux", not "util-linux-ng"

17 years agocleanup copyright; build succeeds now
LaMont Jones [Mon, 9 Jul 2007 17:16:09 +0000 (11:16 -0600)]
cleanup copyright; build succeeds now

17 years agodrop Makefile.in
LaMont Jones [Mon, 9 Jul 2007 17:13:10 +0000 (11:13 -0600)]
drop Makefile.in

17 years agoadd arch command
LaMont Jones [Mon, 9 Jul 2007 17:12:19 +0000 (11:12 -0600)]
add arch command

17 years agodon't run autogen.sh at build time...
LaMont Jones [Mon, 9 Jul 2007 01:36:27 +0000 (19:36 -0600)]
don't run autogen.sh at build time...

17 years agoautopoint Depends: cvs
LaMont Jones [Mon, 9 Jul 2007 00:43:41 +0000 (18:43 -0600)]
autopoint Depends: cvs

17 years agojust depend on the autoconf crap
LaMont Jones [Mon, 9 Jul 2007 00:32:27 +0000 (18:32 -0600)]
just depend on the autoconf crap

17 years agoMerge branch 'debian' into mount
LaMont Jones [Mon, 9 Jul 2007 00:21:21 +0000 (18:21 -0600)]
Merge branch 'debian' into mount

17 years agomore typos
LaMont Jones [Mon, 9 Jul 2007 00:21:12 +0000 (18:21 -0600)]
more typos

17 years agoadd rmd160.c
LaMont Jones [Mon, 9 Jul 2007 00:18:02 +0000 (18:18 -0600)]
add rmd160.c

17 years agomount.c typo
LaMont Jones [Mon, 9 Jul 2007 00:03:08 +0000 (18:03 -0600)]
mount.c typo

17 years agoclean target tidying for new upstream
LaMont Jones [Sun, 8 Jul 2007 23:44:14 +0000 (17:44 -0600)]
clean target tidying for new upstream

17 years agoman page tweaks, cleanup my_dev_t.h ancient stuff
LaMont Jones [Sun, 8 Jul 2007 23:25:30 +0000 (17:25 -0600)]
man page tweaks, cleanup my_dev_t.h ancient stuff

17 years agohash passphrases - debian compatibility
LaMont Jones [Sun, 8 Jul 2007 23:22:11 +0000 (17:22 -0600)]
hash passphrases - debian compatibility

17 years agodeliver rdev on amd64
LaMont Jones [Sun, 8 Jul 2007 23:20:51 +0000 (17:20 -0600)]
deliver rdev on amd64

17 years agogrammar nit
LaMont Jones [Sun, 8 Jul 2007 23:18:50 +0000 (17:18 -0600)]
grammar nit

17 years agohistorical code turned off from trying to not open wrong vt
LaMont Jones [Sun, 8 Jul 2007 23:18:24 +0000 (17:18 -0600)]
historical code turned off from trying to not open wrong vt

17 years agosort malloc call in agetty initstring
LaMont Jones [Sun, 8 Jul 2007 23:16:18 +0000 (17:16 -0600)]
sort malloc call in agetty initstring

17 years agodrop dpatch usage
LaMont Jones [Sun, 8 Jul 2007 23:14:10 +0000 (17:14 -0600)]
drop dpatch usage

17 years agoMerge branch 'master' into debian
LaMont Jones [Sun, 8 Jul 2007 23:10:03 +0000 (17:10 -0600)]
Merge branch 'master' into debian

17 years agov2.12r-20
LaMont Jones [Sun, 8 Jul 2007 23:09:38 +0000 (17:09 -0600)]
v2.12r-20

17 years agov2.12r-19
LaMont Jones [Sun, 8 Jul 2007 23:09:23 +0000 (17:09 -0600)]
v2.12r-19

17 years agov2.12r-18
LaMont Jones [Sun, 8 Jul 2007 23:09:11 +0000 (17:09 -0600)]
v2.12r-18

17 years agov2.12r-17
LaMont Jones [Sun, 8 Jul 2007 23:09:00 +0000 (17:09 -0600)]
v2.12r-17

17 years agov2.12r-16
LaMont Jones [Sun, 8 Jul 2007 23:08:52 +0000 (17:08 -0600)]
v2.12r-16

17 years agov2.12r-15
LaMont Jones [Sun, 8 Jul 2007 23:08:40 +0000 (17:08 -0600)]
v2.12r-15

17 years agov2.12r-14
LaMont Jones [Sun, 8 Jul 2007 23:08:32 +0000 (17:08 -0600)]
v2.12r-14

17 years agov2.12r-13
LaMont Jones [Sun, 8 Jul 2007 23:08:23 +0000 (17:08 -0600)]
v2.12r-13

17 years agov2.12r-12
LaMont Jones [Sun, 8 Jul 2007 23:08:13 +0000 (17:08 -0600)]
v2.12r-12

17 years agov2.12r-11
LaMont Jones [Sun, 8 Jul 2007 23:08:01 +0000 (17:08 -0600)]
v2.12r-11

17 years agov2.12r-10
LaMont Jones [Sun, 8 Jul 2007 23:07:52 +0000 (17:07 -0600)]
v2.12r-10

17 years agov2.12r-9
LaMont Jones [Sun, 8 Jul 2007 23:07:42 +0000 (17:07 -0600)]
v2.12r-9

17 years agov2.12r-8
LaMont Jones [Sun, 8 Jul 2007 23:07:30 +0000 (17:07 -0600)]
v2.12r-8

17 years agov2.12r-7
LaMont Jones [Sun, 8 Jul 2007 23:07:15 +0000 (17:07 -0600)]
v2.12r-7

17 years agov2.12r-6
LaMont Jones [Sun, 8 Jul 2007 23:06:55 +0000 (17:06 -0600)]
v2.12r-6

17 years agov2.12r-5
LaMont Jones [Sun, 8 Jul 2007 23:06:39 +0000 (17:06 -0600)]
v2.12r-5

17 years agov2.12r-4
LaMont Jones [Sun, 8 Jul 2007 23:06:17 +0000 (17:06 -0600)]
v2.12r-4

17 years agov2.12r-3
LaMont Jones [Sun, 8 Jul 2007 23:06:03 +0000 (17:06 -0600)]
v2.12r-3

17 years agov2.12r-2
LaMont Jones [Sun, 8 Jul 2007 23:05:47 +0000 (17:05 -0600)]
v2.12r-2

17 years agov2.12r-1
LaMont Jones [Sun, 8 Jul 2007 23:05:21 +0000 (17:05 -0600)]
v2.12r-1

17 years agoMerge commit 'v2.12r' into debian
LaMont Jones [Sun, 8 Jul 2007 22:59:54 +0000 (16:59 -0600)]
Merge commit 'v2.12r' into debian

17 years agov2.12p-6
LaMont Jones [Sun, 8 Jul 2007 22:59:22 +0000 (16:59 -0600)]
v2.12p-6

17 years ago2.12p-4
LaMont Jones [Sun, 8 Jul 2007 22:56:11 +0000 (16:56 -0600)]
2.12p-4

17 years agodocs: add release notes
Karel Zak [Tue, 3 Jul 2007 21:16:13 +0000 (23:16 +0200)]
docs: add release notes

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: cleanup before release
Karel Zak [Tue, 3 Jul 2007 11:14:36 +0000 (13:14 +0200)]
docs: cleanup before release

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update TODO file
Karel Zak [Mon, 2 Jul 2007 23:55:06 +0000 (01:55 +0200)]
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update po files
Karel Zak [Mon, 2 Jul 2007 23:48:28 +0000 (01:48 +0200)]
po: update po files

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosetarch: add NLS support
Karel Zak [Mon, 2 Jul 2007 23:36:03 +0000 (01:36 +0200)]
setarch: add NLS support

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoman pages: add "AVAILABILITY" section
Karel Zak [Mon, 2 Jul 2007 23:17:04 +0000 (01:17 +0200)]
man pages: add "AVAILABILITY" section

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: use loop= option when mounting by /sbin/mount.<type>
Karel Zak [Mon, 2 Jul 2007 21:35:08 +0000 (23:35 +0200)]
mount: use loop= option when mounting by /sbin/mount.<type>

The mount(8) calls external mount programs (/sbin/mount.<type>)
without the loop=/dev/loopN option. This patch fix this bug.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: fix linking when ncurses is built with --with-termlib=tinfo
Arkadiusz Miskiewicz [Tue, 19 Jun 2007 18:58:04 +0000 (20:58 +0200)]
build-sys: fix linking when ncurses is built with --with-termlib=tinfo

When system ncurses is built with --with-termlib=tinfo option
then there are two libraries - libtinfo (which contains terminal
related functions) and libncurses (rest).

Correctly link against libtinfo in such case.

Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
17 years agowall: fix O_NONBLOCK usage
Karel Zak [Mon, 2 Jul 2007 13:58:09 +0000 (15:58 +0200)]
wall: fix O_NONBLOCK usage

From: Alan Curry <pacman@TheWorld.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agocfdisk: fix stupid typo in GPT checker call
Karel Zak [Mon, 2 Jul 2007 13:41:48 +0000 (15:41 +0200)]
cfdisk: fix stupid typo in GPT checker call

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: fix "differ in signedness" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:39:58 +0000 (15:39 +0200)]
sfdisk: fix "differ in signedness" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: fix "may be used uninitialized" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:30:27 +0000 (15:30 +0200)]
sfdisk: fix "may be used uninitialized" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: fix "differ in signedness" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:06:13 +0000 (15:06 +0200)]
fdisk: fix "differ in signedness" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: many significant improvements and fixes to Sun label handling
David Miller [Fri, 29 Jun 2007 22:50:21 +0000 (15:50 -0700)]
fdisk: many significant improvements and fixes to Sun label handling

1) Properly describe the exact layout and fields of the sun disk
   label.  Several fields were incorrectly mentioned and others
   wrongly sized.

2) Properly set the version, sane, and num_partitions fields.

   Because we weren't doing this, programs such as Solaris's format
   and the Solaris kernel itself refused to recognize our disk labels
   as valid.

3) Move SSWAP*() macros into fdisksunlabel.c as there is no reason
   for them to be exposed to the rest of fdisk.

4) Kill the sun_predefined_drives array hack and assosciated code.

   Instead size the disk and figure out the geometry properly just
   like the SGI and MSDOS partition handling do, by means of the
   HD_GETGEO ioctl() and disksize().

5) If the disk label read is found to not have the proper values
   set in version, sane, or num_partitions, fix them, recompute the
   label checksum, dirty the disk label, and let the user know what
   we did and that the fixed values will be written out if they 'w'.

   This gives users an easy way to fix up disk labels created by
   disk labelling programs which had this bug.

6) Create a sun_sys_getid() function so that fdisk.c does not need
   to reference the sun disk label details directly, just like the
   SGI code does.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoionice: fix ionice build on sparc
David Miller [Fri, 29 Jun 2007 22:51:17 +0000 (15:51 -0700)]
ionice: fix ionice build on sparc

Provide the proper syscall numbers for this architecture.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosys-utils: added setarch command
Karel Zak [Mon, 2 Jul 2007 11:48:15 +0000 (13:48 +0200)]
sys-utils: added setarch command

This patch merges setarch command to util-linux-ng code.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: cleanup architecture conditionals
Karel Zak [Mon, 2 Jul 2007 11:21:06 +0000 (13:21 +0200)]
build-sys: cleanup architecture conditionals

This patch also add some new architectures for
AM_CONDITIONAL(ARCH_  ...)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: cleanup sys-utils/ rdev symlinks
Karel Zak [Fri, 29 Jun 2007 13:12:33 +0000 (15:12 +0200)]
build-sys: cleanup sys-utils/ rdev symlinks

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoblockdev: cleanup usage() and update man page
Karel Zak [Fri, 29 Jun 2007 10:06:58 +0000 (12:06 +0200)]
blockdev: cleanup usage() and update man page

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoblockdev: add BLKFRAGET/BLKFRASET ioctls
Karel Zak [Fri, 29 Jun 2007 09:38:54 +0000 (11:38 +0200)]
blockdev: add BLKFRAGET/BLKFRASET ioctls

In Linux 2.6 the BLKRASET ioctl has the desired effect for mounted
file-systems.  In Linux 2.4 it appears to set the number of blocks to
read-ahead on the *device* as opposed to within a *file*, and the
maximum value of this number is 255.  As a result the invocation of
blockdev will fail on Linux 2.4 for any usefully large value of
READAHEAD, and will not in any case have the desired affect for
fragmented files.

(Based on the blockdev-getfra-setfra.patch Debian patch.)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoagetty: check gethostname() return value
Karel Zak [Fri, 29 Jun 2007 00:27:27 +0000 (02:27 +0200)]
agetty: check gethostname() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoagetty: add 'O' escape code to display domain name
Karel Zak [Thu, 28 Jun 2007 23:50:50 +0000 (01:50 +0200)]
agetty: add 'O' escape code to display domain name

This patch add a new 'O' escape code to display domain name
by issue-file (/etc/issue) output.

(Based on an Gentoo patch.)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: needs to handle special mountprog even on guessed file systems.
Karel Zak [Wed, 27 Jun 2007 23:23:49 +0000 (01:23 +0200)]
mount: needs to handle special mountprog even on guessed file systems.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: add MAC label detection
Karel Zak [Wed, 27 Jun 2007 21:49:56 +0000 (23:49 +0200)]
fdisk: add MAC label detection

This patch is based on the old Suse util-linux-2.11q-fs_mac.diff patch.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: move duplicate stuff from fdisk*label.h to fdisk.h
Karel Zak [Wed, 27 Jun 2007 21:36:08 +0000 (23:36 +0200)]
fdisk: move duplicate stuff from fdisk*label.h to fdisk.h

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agolosetup: add long options and fix man page
Karel Zak [Wed, 27 Jun 2007 15:32:51 +0000 (17:32 +0200)]
losetup: add long options and fix man page

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: loop device race condition
Matthias Koenig [Wed, 20 Jun 2007 13:17:47 +0000 (15:17 +0200)]
mount: loop device race condition

Fix race in losetup

Retry acquiring a loop device if set_loop failed with EBUSY

Signed-Off-By: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: loop device race condition
Matthias Koenig [Wed, 20 Jun 2007 13:17:45 +0000 (15:17 +0200)]
mount: loop device race condition

Fix race in mount -o loop

Retry acquiring a loop device if the setup failed with EBUSY.

Signed-Off-By: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: setting default geometry values
Luciano Chavez [Fri, 9 Mar 2007 03:07:52 +0000 (21:07 -0600)]
sfdisk: setting default geometry values

The cfdisk and fdisk set defaults for heads and sectors in order to handle a
situation when the get_geometry() ends up with zeroes for the disk geometry for
device-mapper devices. This patch add same functionally to sfdisk.

You know that a dmsetup setgeometry of the the dm device can be used to
circumvent the issue but users may not immediately realize they need to do
that.

17 years agomount: use encoded labels for volume_id
Kay Sievers [Thu, 21 Jun 2007 11:31:52 +0000 (13:31 +0200)]
mount: use encoded labels for volume_id

The current version of libvolume_id exports the encoding function for the
symlinks names, so slashes in labels and other chars, that don't really fit
into symlink names, will work as expected with LABEL=.

17 years agoddate: fix compiler warnings
Karel Zak [Tue, 19 Jun 2007 14:42:07 +0000 (16:42 +0200)]
ddate: fix compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotaskset: independent of hardcoded NR_CPUS max.
Cliff Wickman [Mon, 11 Jun 2007 20:24:45 +0000 (15:24 -0500)]
taskset: independent of hardcoded NR_CPUS max.

This patch makes the taskset command independent of the system's maximum
number of cpus (CONFIG_NR_CPUS).  The maximum for CONFIG_NR_CPUS is a
moving target.

With this patch the size of the systems's cpumask_t is gotten from
sched_getaffinity(2).

This patch uses variable length bitmasks borrowed from Paul Jackson's
variable size bitmask routines (hence I kept his copyright notice).
This replaces the use of the glibc CPU_SETSIZE, CPU_SET, CPU_ZERO and
CPU_ISSET macros which depend on a hardcoded size for cpu_set_t.

(also fixes one little nit: the -V option is "-v" in the built-in help, so
 changed the built-in help)

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agolosetup: add a new option -s
Karel Zak [Mon, 18 Jun 2007 13:44:02 +0000 (15:44 +0200)]
losetup: add a new option -s

The losetup provides an -f option to discover an unused loop device.  As
implemented, it is racy. The problem is that -f prints the loop device
to stdout only when used standalone.  This means a script has to do:

 lodev=$(losetup -f)
 losetup $lodev $filename

which is racy if another script may be running.

This patch add a new option '-s'. The '-s' option prints device name
if the -f option and a file argument are present. For example:

 lodev=$(losetup -f -s $filename)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add mount /dev/symlink test
Karel Zak [Fri, 15 Jun 2007 19:32:45 +0000 (21:32 +0200)]
tests: add mount /dev/symlink test

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add support for suid programs
Karel Zak [Fri, 15 Jun 2007 13:55:10 +0000 (15:55 +0200)]
tests: add support for suid programs

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: rewrite getfs_by_specdir() without mem leaks
Karel Zak [Fri, 15 Jun 2007 13:47:22 +0000 (15:47 +0200)]
mount: rewrite getfs_by_specdir() without mem leaks

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: fix typo in error message
Karel Zak [Fri, 15 Jun 2007 13:24:45 +0000 (15:24 +0200)]
mount: fix typo in error message

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: fix ts_fstab_add function
Karel Zak [Fri, 15 Jun 2007 09:29:04 +0000 (11:29 +0200)]
tests: fix ts_fstab_add function

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans
Karel Zak [Fri, 15 Jun 2007 08:17:51 +0000 (10:17 +0200)]
tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agogetopt: remove old unused files
Karel Zak [Thu, 14 Jun 2007 12:50:14 +0000 (14:50 +0200)]
getopt: remove old unused files

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomcookie: remove non-linux code
Karel Zak [Thu, 14 Jun 2007 12:43:41 +0000 (14:43 +0200)]
mcookie: remove non-linux code

Something like #ifdef __linux__ is non-sense in util-linux where
everything depend on linux.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkfs.cramfs: cleanup HAVE_ macros usage
Karel Zak [Thu, 14 Jun 2007 11:55:37 +0000 (13:55 +0200)]
mkfs.cramfs: cleanup HAVE_ macros usage

It's bad to use any HAVE_* macros for anything other than
for build-system (autotools) stuff.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: fix HAVE_NCURSES
Karel Zak [Thu, 14 Jun 2007 11:32:32 +0000 (13:32 +0200)]
build-sys: fix HAVE_NCURSES

The HAVE_NCURSES in config.h is required by the misc-utils/cal.c.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoswapon: cleanup PATH_ macros and tailing white-spaces
Karel Zak [Thu, 14 Jun 2007 09:53:39 +0000 (11:53 +0200)]
swapon: cleanup PATH_ macros and tailing white-spaces

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomisc-utils: remove old cal test
Karel Zak [Wed, 13 Jun 2007 19:43:41 +0000 (21:43 +0200)]
misc-utils: remove old cal test

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoswapon: fix swapon headers and syscalls
Mike Frysinger [Wed, 13 Jun 2007 09:52:55 +0000 (05:52 -0400)]
swapon: fix swapon headers and syscalls

This patch scrubs anything related to SWAPON_NEEDS_TWO_ARGS as this is only
relevant for < linux-1.3.2 and i say it's about time we let it go.

I also cleaned up the system call fallback logic as the _syscall#() macros are
the deprecated interface in favor of the real syscall() function.

The asm/page.h gets the boot as nothing in swapon.c utilizes defines from it
while unistd.h gets always included as defines/functions are used from it other
than just swapon().

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
17 years agocal: widechar code cleanup
Karel Zak [Tue, 12 Jun 2007 15:46:16 +0000 (17:46 +0200)]
cal: widechar code cleanup

This patch make widechar code (cal headers initialization) more
robust. That's possible to format wide char strings by swprintf() and
non-widechar version by sprintf(). This is better than the old
solution with wcscat().

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update AUTHORS file
Karel Zak [Tue, 12 Jun 2007 14:59:03 +0000 (16:59 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agocal: ifdef cleanup, non-curses/tempcap code fixes
Karel Zak [Tue, 12 Jun 2007 14:45:32 +0000 (16:45 +0200)]
cal: ifdef cleanup, non-curses/tempcap code fixes

This patche:
  - removes extra #ifdef-s,
  - fixes \n usage when compiled without curses/termcap

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agocal: fix a segfault and -3m highlighting
Karel Zak [Tue, 12 Jun 2007 14:08:58 +0000 (16:08 +0200)]
cal: fix a segfault and -3m highlighting

Fixes a segfault for certain values of $TERM

Fixes alignment issues when the highlighted day (today)
is in the last week of the month.

Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>