Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1171ee6a
Commit
1171ee6a
authored
Aug 22, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configuration tests for presence of alarm(), pause(), and getpwent()
parent
5de31fc0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
11 deletions
+24
-11
Modules/pwdmodule.c
Modules/pwdmodule.c
+4
-0
Modules/signalmodule.c
Modules/signalmodule.c
+4
-4
config.h.in
config.h.in
+9
-0
configure
configure
+4
-4
configure.in
configure.in
+3
-3
No files found.
Modules/pwdmodule.c
View file @
1171ee6a
...
...
@@ -90,6 +90,7 @@ pwd_getpwnam(self, args)
return
mkpwent
(
p
);
}
#ifdef HAVE_GETPWENT
static
PyObject
*
pwd_getpwall
(
self
,
args
)
PyObject
*
self
;
...
...
@@ -113,11 +114,14 @@ pwd_getpwall(self, args)
}
return
d
;
}
#endif
static
PyMethodDef
pwd_methods
[]
=
{
{
"getpwuid"
,
pwd_getpwuid
},
{
"getpwnam"
,
pwd_getpwnam
},
#ifdef HAVE_GETPWENT
{
"getpwall"
,
pwd_getpwall
},
#endif
{
NULL
,
NULL
}
/* sentinel */
};
...
...
Modules/signalmodule.c
View file @
1171ee6a
...
...
@@ -147,7 +147,7 @@ signal_handler(sig_num)
#if
ndef DONT_HAVE_SIG
_ALARM
#if
def HAVE
_ALARM
static
PyObject
*
signal_alarm
(
self
,
args
)
PyObject
*
self
;
/* Not used */
...
...
@@ -161,7 +161,7 @@ signal_alarm(self, args)
}
#endif
#if
ndef DONT_HAVE_SIG
_PAUSE
#if
def HAVE
_PAUSE
static
PyObject
*
signal_pause
(
self
,
args
)
PyObject
*
self
;
/* Not used */
...
...
@@ -254,12 +254,12 @@ signal_get_signal(self, args)
/* List of functions defined in the module */
static
PyMethodDef
signal_methods
[]
=
{
#if
ndef DONT_HAVE_SIG
_ALARM
#if
def HAVE
_ALARM
{
"alarm"
,
signal_alarm
},
#endif
{
"signal"
,
signal_signal
},
{
"getsignal"
,
signal_get_signal
},
#if
ndef DONT_HAVE_SIG
_PAUSE
#if
def HAVE
_PAUSE
{
"pause"
,
signal_pause
},
#endif
{
"default_int_handler"
,
signal_default_int_handler
},
...
...
config.h.in
View file @
1171ee6a
...
...
@@ -151,6 +151,9 @@
/* The number of bytes in a long. */
#undef SIZEOF_LONG
/* Define if you have the alarm function. */
#undef HAVE_ALARM
/* Define if you have the chown function. */
#undef HAVE_CHOWN
...
...
@@ -193,6 +196,9 @@
/* Define if you have the getpid function. */
#undef HAVE_GETPID
/* Define if you have the getpwent function. */
#undef HAVE_GETPWENT
/* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY
...
...
@@ -220,6 +226,9 @@
/* Define if you have the nice function. */
#undef HAVE_NICE
/* Define if you have the pause function. */
#undef HAVE_PAUSE
/* Define if you have the plock function. */
#undef HAVE_PLOCK
...
...
configure
View file @
1171ee6a
#! /bin/sh
# From configure.in Revision: 1.6
1
# From configure.in Revision: 1.6
3
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12
...
...
@@ -2480,9 +2480,9 @@ fi
# checks for library functions
for
ac_func
in
chown
clock dlopen execv flock fork ftime ftruncate
\
gethostname_r getpeername getpgrp getpid gettimeofday getwd
\
kill link
lstat
mkfifo nice
plock putenv
readlink
\
for
ac_func
in
alarm
chown
clock dlopen execv flock fork ftime ftruncate
\
gethostname_r getpeername getpgrp getpid get
pwent get
timeofday getwd
\
kill link
lstat
mkfifo nice
p
ause p
lock putenv
readlink
\
select
setgid setuid setsid setpgid setpgrp setvbuf
\
sigaction siginterrupt sigrelse strftime symlink
\
tcgetpgrp tcsetpgrp
times truncate uname
waitpid
...
...
configure.in
View file @
1171ee6a
...
...
@@ -379,9 +379,9 @@ DLINCLDIR=${dldir}
LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
# checks for library functions
AC_CHECK_FUNCS(chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid gettimeofday getwd \
kill link lstat mkfifo nice plock putenv readlink \
AC_CHECK_FUNCS(
alarm
chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid get
pwent get
timeofday getwd \
kill link lstat mkfifo nice p
ause p
lock putenv readlink \
select setgid setuid setsid setpgid setpgrp setvbuf \
sigaction siginterrupt sigrelse strftime symlink \
tcgetpgrp tcsetpgrp times truncate uname waitpid)
...
...
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