Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
693a2698
Commit
693a2698
authored
Apr 04, 2009
by
Eli Zaretskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(system_process_attributes) [SYSTEM_MALLOC]: Don't call ret_lim_data.
(Bug#2867)
parent
99c87dcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/dosfns.c
src/dosfns.c
+6
-0
No files found.
src/ChangeLog
View file @
693a2698
2009-04-04 Eli Zaretskii <eliz@gnu.org>
* dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
ret_lim_data. (Bug#2867)
2009-04-03 Chong Yidong <cyd@stupidchicken.com>
* term.c (produce_stretch_glyph): Reduce width of stretch glyphs
...
...
src/dosfns.c
View file @
693a2698
...
...
@@ -571,7 +571,9 @@ system_process_attributes (Lisp_Object pid)
int
i
;
Lisp_Object
cmd_str
,
decoded_cmd
,
tem
;
double
pmem
;
#ifndef SYSTEM_MALLOC
extern
unsigned
long
ret_lim_data
();
#endif
uid
=
getuid
();
attrs
=
Fcons
(
Fcons
(
Qeuid
,
make_fixnum_or_float
(
uid
)),
attrs
);
...
...
@@ -604,8 +606,12 @@ system_process_attributes (Lisp_Object pid)
make_fixnum_or_float
((
unsigned
long
)
sbrk
(
0
)
/
1024
)),
attrs
);
attrs
=
Fcons
(
Fcons
(
Qetime
,
tem
),
attrs
);
#ifndef SYSTEM_MALLOC
/* ret_lim_data is on vm-limit.c, which is not compiled in under
SYSTEM_MALLOC. */
pmem
=
(
double
)((
unsigned
long
)
sbrk
(
0
))
/
ret_lim_data
()
*
100
.
0
;
if
(
pmem
>
100
)
#endif
pmem
=
100
;
attrs
=
Fcons
(
Fcons
(
Qpmem
,
make_float
(
pmem
)),
attrs
);
/* Pass 1: Count how much storage we need. */
...
...
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