Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
93c4400e
Commit
93c4400e
authored
20 years ago
by
emarsden
Browse files
Options
Downloads
Patches
Plain Diff
Implement UNIX-GETPWUID for Darwin, by sharing code with the NetBSD
support. This is necessary for FILE-AUTHOR.
parent
81cbf47a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code/unix.lisp
+8
-7
8 additions, 7 deletions
code/unix.lisp
lisp/linux-stubs.S
+7
-1
7 additions, 1 deletion
lisp/linux-stubs.S
lisp/undefineds.h
+2
-2
2 additions, 2 deletions
lisp/undefineds.h
with
17 additions
and
10 deletions
code/unix.lisp
+
8
−
7
View file @
93c4400e
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.9
8
2004/0
8/31 12:39:43 rtoy
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.9
9
2004/0
9/21 11:59:16 emarsden
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -202,8 +202,9 @@
#+
alpha
unsigned-long
)
(
def-alien-type
time-t
#-
(
or
linux
alpha
)
unsigned-long
#-
(
or
bsd
linux
alpha
)
unsigned-long
#+
linux
long
#+
bsd
long
#+
alpha
unsigned-int
)
(
def-alien-type
dev-t
...
...
@@ -1024,14 +1025,14 @@
(
pw-expire
int
)
; account expiration
(
pw-fields
int
)))
; internal
#+
netbsd
#+
(
or
netbsd
darwin
)
(
def-alien-type
nil
(
struct
passwd
(
pw-name
(
*
char
))
; user's login name
(
pw-passwd
(
*
char
))
; no longer used
(
pw-uid
uid-t
)
; user id
(
pw-gid
gid-t
)
; group id
(
pw-change
int
)
; password change time
(
pw-change
time-t
)
; password change time
(
pw-class
(
*
char
))
; user access class
(
pw-gecos
(
*
char
))
; typically user's full name
(
pw-dir
(
*
char
))
; user's home directory
...
...
@@ -3062,7 +3063,7 @@
:dir
(
string
(
cast
(
slot
result
'pw-dir
)
c-call:c-string
))
:shell
(
string
(
cast
(
slot
result
'pw-shell
)
c-call:c-string
)))))))
#+
(
or
FreeBSD
NetBSD
)
#+
(
or
FreeBSD
NetBSD
darwin
)
(
defun
unix-getpwnam
(
login
)
"Return a USER-INFO structure for the user identified by LOGIN, or NIL if not found."
(
declare
(
type
simple-string
login
))
...
...
@@ -3078,7 +3079,7 @@
:password
(
string
(
cast
(
slot
result
'pw-passwd
)
c-call:c-string
))
:uid
(
slot
result
'pw-uid
)
:gid
(
slot
result
'pw-gid
)
:change
(
slot
result
'pw-change
)
#-
darwin
:change
#-
darwin
(
slot
result
'pw-change
)
:gecos
(
string
(
cast
(
slot
result
'pw-gecos
)
c-call:c-string
))
:dir
(
string
(
cast
(
slot
result
'pw-dir
)
c-call:c-string
))
:shell
(
string
(
cast
(
slot
result
'pw-shell
)
c-call:c-string
))))))
...
...
@@ -3113,7 +3114,7 @@
:dir
(
string
(
cast
(
slot
result
'pw-dir
)
c-call:c-string
))
:shell
(
string
(
cast
(
slot
result
'pw-shell
)
c-call:c-string
)))))))
#+
(
or
FreeBSD
NetBSD
)
#+
(
or
FreeBSD
NetBSD
darwin
)
(
defun
unix-getpwuid
(
uid
)
"Return a USER-INFO structure for the user identified by UID, or NIL if not found."
(
declare
(
type
unix-uid
uid
))
...
...
This diff is collapsed.
Click to expand it.
lisp/linux-stubs.S
+
7
−
1
View file @
93c4400e
/*
linux
-
stubs.S
$Header
:
/
Volumes
/
share2
/
src
/
cmucl
/
cvs2git
/
cvsroot
/
src
/
lisp
/
linux
-
stubs
.
S
,
v
1
.1
7
2004
/
0
7
/
13
00
:
26
:
22
pmai
Exp
$
$Header
:
/
Volumes
/
share2
/
src
/
cmucl
/
cvs2git
/
cvsroot
/
src
/
lisp
/
linux
-
stubs
.
S
,
v
1
.1
8
2004
/
0
9
/
21
11
:
59
:
17
emarsden
Exp
$
These
are
needed
because
the
locations
of
the
libraries
are
filled
in
by
ld
.
so
at
runtime
.
...
...
@@ -197,6 +197,12 @@ PVE_stub_ ## fct: ;\
doe
(
getpwuid_r
)
doe
(
getgrnam_r
)
doe
(
getgrgid_r
)
#if defined(DARWIN)
doe
(
getpwuid
)
doe
(
getpwnam
)
#endif
#ifndef DARWIN
doe
(
open64
)
doe
(
creat64
)
...
...
This diff is collapsed.
Click to expand it.
lisp/undefineds.h
+
2
−
2
View file @
93c4400e
/* Routines that must be linked into the core for lisp to work. */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/undefineds.h,v 1.3
4
2004/0
7/13 00:26:22 pmai
Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/undefineds.h,v 1.3
5
2004/0
9/21 11:59:17 emarsden
Exp $ */
/* Pick up all the syscalls. */
F
(
accept
)
...
...
@@ -289,7 +289,7 @@ F(getpwuid_r)
F
(
getgrnam_r
)
F
(
getgrgid_r
)
#endif
#if defined(__NetBSD__)
#if defined(__NetBSD__)
|| defined(DARWIN)
F
(
getpwnam
)
F
(
getpwuid
)
F
(
getgrnam
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment