FreeBSD Bugzilla – Attachment 11070 Details for
Bug 21947
shmget(2) takes 'size' in pages as opposed to bytes.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 601 bytes, created by
smcho
on 2000-10-13 05:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
smcho
Created:
2000-10-13 05:10:01 UTC
Size:
601 bytes
patch
obsolete
>*** /usr/src/lib/libc/gen/shmget.c.orig Thu Oct 12 20:43:52 2000 >--- /usr/src/lib/libc/gen/shmget.c Thu Oct 12 20:47:36 2000 >*************** >*** 5,10 **** >--- 5,11 ---- > #include <sys/types.h> > #include <sys/ipc.h> > #include <sys/shm.h> >+ #include <sys/param.h> > > #if __STDC__ > int shmget(key_t key, int size, int shmflg) >*************** >*** 15,19 **** > int shmflg; > #endif > { >! return (shmsys(3, key, size, shmflg)); > } >--- 16,25 ---- > int shmflg; > #endif > { >! int page = size / PAGE_SIZE; >! >! if (size % PAGE_SIZE > 0) >! page++; >! >! return (shmsys(3, key, page, shmflg)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21947
: 11070