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
4
Issues
4
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
d0381a7f
Commit
d0381a7f
authored
Jul 09, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main) [__NetBSD__]: Round up new stack limit to page bdry.
parent
a1c9b4d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/emacs.c
src/emacs.c
+7
-0
No files found.
src/emacs.c
View file @
d0381a7f
...
...
@@ -584,6 +584,13 @@ main (argc, argv, envp)
long
newlim
;
/* Approximate the amount regex.c needs, plus some more. */
newlim
=
800000
*
sizeof
(
char
*
);
#ifdef __NetBSD__
/* NetBSD (at least NetBSD 1.2G and former) has a bug in its
stack allocation routine for new process that the allocation
fails if stack limit is not on page boundary. So, round up the
new limit to page boundary. */
newlim
=
(
newlim
+
getpagesize
()
-
1
)
/
getpagesize
()
*
getpagesize
();
#endif
if
(
newlim
>
rlim
.
rlim_max
)
newlim
=
rlim
.
rlim_max
;
if
(
rlim
.
rlim_cur
<
newlim
)
...
...
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