projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1c_2 release
[unix-history]
/
usr
/
src
/
usr.lib
/
undoc
/
libpriv
/
getloglim.c
/* @(#)getloglim.c 4.2 (Melbourne) 82/05/30 */
#include <sys/types.h>
#include <sys/mush.h>
#include <sys/mu_msg.h>
#include <sys/quota.h>
#include <mushmuck.h>
getloglim
(
uid
,
limit
)
long
*
limit
;
{
mmsgbuf mb
;
mb
.
msg_pid
=
MUSHPID
;
mb
.
msg_data
.
d_req
=
MM_LTIME
;
mb
.
msg_data
.
d_uid
=
uid
;
mb
.
msg_rply
=
1
;
sendw
(&
mb
, &
mb
,
MSG_W_POST
|
MSG_W_RCV
);
*
limit
=
mb
.
msg_data
.
d_ldat
;
return
(
mb
.
msg_data
.
d_info
);
}