forked from pool/prctl
This commit is contained in:
commit
2c8969f891
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
90
prctl-1.3.dif
Normal file
90
prctl-1.3.dif
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
--- Makefile.in
|
||||||
|
+++ Makefile.in 2001/12/29 21:42:27
|
||||||
|
@@ -30,26 +30,27 @@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
# If you want debug on by default, use: CFLAGS="-g" ./configure
|
||||||
|
-LDFLAGS = $(CFLAGS)
|
||||||
|
+LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
-exec_prefix = $(prefix)
|
||||||
|
+exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
|
-bindir = $(exec_prefix)/bin
|
||||||
|
+bindir = @bindir@
|
||||||
|
scriptdir = $(bindir)
|
||||||
|
# scriptdir is the directory in which shell scripts should be installed
|
||||||
|
-datadir = $(prefix)/lib
|
||||||
|
-libdir = $(prefix)/lib
|
||||||
|
-infodir = $(prefix)/info
|
||||||
|
+datadir = @datadir@
|
||||||
|
+libdir = @libdir@
|
||||||
|
+infodir = @infodir@
|
||||||
|
|
||||||
|
# Extension (not including `.') for the installed manual page filenames.
|
||||||
|
manext = 1
|
||||||
|
# Where to install the manual pages.
|
||||||
|
-mandir = $(prefix)/man/man$(manext)
|
||||||
|
+mandir = @mandir@
|
||||||
|
+man1dir = $(mandir)/man$(manext)
|
||||||
|
# Use manlinks=so to use the .so method instead of hard links
|
||||||
|
manlinks = ln
|
||||||
|
|
||||||
|
-alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(mandir)
|
||||||
|
+alldirs = $(bindir) $(scriptdir) $(datadir) $(libdir) $(infodir) $(man1dir)
|
||||||
|
|
||||||
|
#### End of system configuration section. ####
|
||||||
|
|
||||||
|
@@ -74,23 +75,23 @@
|
||||||
|
install: installdirs installbin installman
|
||||||
|
|
||||||
|
installdirs:
|
||||||
|
- -if test ! -d $(prefix)/man; then \
|
||||||
|
- mkdir $(prefix)/man; fi
|
||||||
|
+ -if test ! -d $(mandir); then \
|
||||||
|
+ mkdir -p $(mandir); fi
|
||||||
|
-for dir in $(alldirs) ; do \
|
||||||
|
if test ! -d $${dir}; then \
|
||||||
|
- mkdir $${dir}; fi; \
|
||||||
|
+ mkdir -p $${dir}; fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
installbin: all
|
||||||
|
$(INSTALL_PROGRAM) prctl $(bindir)/prctl
|
||||||
|
-
|
||||||
|
+
|
||||||
|
installman: prctl.1
|
||||||
|
- rm -f $(mandir)/prctl.$(manext)
|
||||||
|
- $(INSTALL_DATA) prctl.1 $(mandir)/prctl.$(manext)
|
||||||
|
+ rm -f $(man1dir)/prctl.$(manext)
|
||||||
|
+ $(INSTALL_DATA) prctl.1 $(man1dir)/prctl.$(manext)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(bindir)/prctl
|
||||||
|
- rm -f $(mandir)/prctl.$(manext)
|
||||||
|
+ rm -f $(man1dir)/prctl.$(manext)
|
||||||
|
|
||||||
|
Makefile: Makefile.in ./config.status
|
||||||
|
./config.status
|
||||||
|
--- prctl.c
|
||||||
|
+++ prctl.c 2001/12/29 21:32:38
|
||||||
|
@@ -25,9 +25,17 @@
|
||||||
|
#include <getopt.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <pwd.h>
|
||||||
|
-#include <linux/prctl.h>
|
||||||
|
+#include <sys/prctl.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
+#ifndef PR_GET_FPEMU
|
||||||
|
+/* Get/set floating-point emulation control bits (if meaningful) */
|
||||||
|
+#define PR_GET_FPEMU 9
|
||||||
|
+#define PR_SET_FPEMU 10
|
||||||
|
+# define PR_FPEMU_NOPRINT 1 /* silently emulate fp operations accesses */
|
||||||
|
+# define PR_FPEMU_SIGFPE 2 /* don't emulate fp operations, send SIGFPE instead */
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* Version */
|
||||||
|
#define VERSION "1.3"
|
||||||
|
|
3
prctl-1.3.tar.gz
Normal file
3
prctl-1.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b0a9a8f3fbe60da64ac1b0d4beaf3e74872a6c137e15c09625d176f8889aff63
|
||||||
|
size 17607
|
20
prctl.changes
Normal file
20
prctl.changes
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 25 21:40:37 CET 2006 - mls@suse.de
|
||||||
|
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 18 20:15:43 CEST 2004 - schwab@suse.de
|
||||||
|
|
||||||
|
- Pacify autobuild.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 11 13:25:57 CET 2004 - adrian@suse.de
|
||||||
|
|
||||||
|
- build as user
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 29 22:49:34 CET 2001 - schwab@suse.de
|
||||||
|
|
||||||
|
- Initial version 1.3.
|
||||||
|
|
64
prctl.spec
Normal file
64
prctl.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
#
|
||||||
|
# spec file for package prctl (Version 1.3)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany.
|
||||||
|
# This file and all modifications and additions to the pristine
|
||||||
|
# package are under the same license as the package itself.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://www.suse.de/feedback/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: prctl
|
||||||
|
Summary: A utility to perform process operations
|
||||||
|
Version: 1.3
|
||||||
|
Release: 354
|
||||||
|
Group: System/Monitoring
|
||||||
|
License: GPL
|
||||||
|
Source: ftp://ftp.hp.com/pub/linux/prctl/prctl-%{version}.tar.gz
|
||||||
|
Patch: prctl-%{version}.dif
|
||||||
|
Patch1: warn.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
The prctl utility allows a user to control certain process behaviors in
|
||||||
|
the runtime environment.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Khalid Aziz <khalid_aziz@hp.com>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup
|
||||||
|
%patch
|
||||||
|
%patch1
|
||||||
|
|
||||||
|
%build
|
||||||
|
CFLAGS=$RPM_OPT_FLAGS \
|
||||||
|
./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir}
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install prefix=$RPM_BUILD_ROOT/usr infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||||
|
mandir=$RPM_BUILD_ROOT%{_mandir}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -fr $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root)
|
||||||
|
/usr/bin/prctl
|
||||||
|
%doc %{_mandir}/man1/prctl.1.gz
|
||||||
|
|
||||||
|
%changelog -n prctl
|
||||||
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
|
- converted neededforbuild to BuildRequires
|
||||||
|
* Sun Apr 18 2004 - schwab@suse.de
|
||||||
|
- Pacify autobuild.
|
||||||
|
* Sun Jan 11 2004 - adrian@suse.de
|
||||||
|
- build as user
|
||||||
|
* Sat Dec 29 2001 - schwab@suse.de
|
||||||
|
- Initial version 1.3.
|
23
warn.patch
Normal file
23
warn.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
--- prctl.c
|
||||||
|
+++ prctl.c
|
||||||
|
@@ -55,12 +55,12 @@
|
||||||
|
/* Verbose mode */
|
||||||
|
int verbose=0;
|
||||||
|
|
||||||
|
-print_version(char *progname)
|
||||||
|
+void print_version(char *progname)
|
||||||
|
{
|
||||||
|
printf("%s version %s\n", progname, VERSION);
|
||||||
|
}
|
||||||
|
|
||||||
|
-usage(char *progname)
|
||||||
|
+void usage(char *progname)
|
||||||
|
{
|
||||||
|
print_version(progname);
|
||||||
|
printf("Usage: %s [-v] [-h|--help] [--version]\n", progname);
|
||||||
|
@@ -355,4 +355,5 @@
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+ abort();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user