Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
f3047c75
Commit
f3047c75
authored
Jul 06, 2012
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* sysdep.c (list_system_processes): Port to NetBSD-current.
Fixes: debbugs:11797
parent
31571fd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/sysdep.c
src/sysdep.c
+2
-2
No files found.
src/ChangeLog
View file @
f3047c75
2012-07-07 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (list_system_processes): Port to NetBSD-current (Bug#11797).
Do not require float-time's arg to fit in time_t (Bug#11825).
This works better on hosts where time_t is unsigned, and where
float-time is applied to the (negative) difference between two times.
...
...
src/sysdep.c
View file @
f3047c75
...
...
@@ -2520,7 +2520,7 @@ list_system_processes (void)
Lisp_Object
list_system_processes
(
void
)
{
#if defined DARWIN_OS || defined __OpenBSD__
#if defined DARWIN_OS || defined __
NetBSD__ || defined __
OpenBSD__
int
mib
[]
=
{
CTL_KERN
,
KERN_PROC
,
KERN_PROC_ALL
};
#else
int
mib
[]
=
{
CTL_KERN
,
KERN_PROC
,
KERN_PROC_PROC
};
...
...
@@ -2546,7 +2546,7 @@ list_system_processes (void)
len
/=
sizeof
(
struct
kinfo_proc
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
#if
def DARWIN_OS
#if
defined DARWIN_OS || defined __NetBSD__
proclist
=
Fcons
(
make_fixnum_or_float
(
procs
[
i
].
kp_proc
.
p_pid
),
proclist
);
#elif defined __OpenBSD__
proclist
=
Fcons
(
make_fixnum_or_float
(
procs
[
i
].
p_pid
),
proclist
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment