summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-23 16:54:29 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-23 16:54:29 +0000
commit2396b30d9598bad07fe282e9626779967c4e14b8 (patch)
tree96b831428e4a285d66db9c2f82579ab9e86d6b52
parent16a86be01aa1f097c5ceaea9ea96253e55d9a016 (diff)
- (bal) #ifdef around S_IFSOCK if platform does not support it.
patch by Tim Rice <tim@multitalents.net> - (bal) fake-regex.h cleanup based on Tim Rice's patch.
-rw-r--r--ChangeLog5
-rw-r--r--bsd-strmode.c2
-rw-r--r--fake-regex.h12
3 files changed, 10 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c364e08f..a89d4464b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,10 @@
3 - markus@cvs.openbsd.org 2001/01/23 10:45:10 3 - markus@cvs.openbsd.org 2001/01/23 10:45:10
4 [ssh.h] 4 [ssh.h]
5 nuke comment 5 nuke comment
6 - (bal) no 64bit support patch from Tim Rice <tim@multitalents.net> 6 - (bal) no 64bit support patch from Tim Rice <tim@multitalents.net>
7 - (bal) #ifdef around S_IFSOCK if platform does not support it.
8 patch by Tim Rice <tim@multitalents.net>
9 - (bal) fake-regex.h cleanup based on Tim Rice's patch.
7 10
820010123 1120010123
9 - (bal) regexp.h typo in configure.in. Should have been regex.h 12 - (bal) regexp.h typo in configure.in. Should have been regex.h
diff --git a/bsd-strmode.c b/bsd-strmode.c
index 2e2d9054e..67e0e4d33 100644
--- a/bsd-strmode.c
+++ b/bsd-strmode.c
@@ -64,9 +64,11 @@ strmode(mode, p)
64 case S_IFLNK: /* symbolic link */ 64 case S_IFLNK: /* symbolic link */
65 *p++ = 'l'; 65 *p++ = 'l';
66 break; 66 break;
67#ifdef S_IFSOCK
67 case S_IFSOCK: /* socket */ 68 case S_IFSOCK: /* socket */
68 *p++ = 's'; 69 *p++ = 's';
69 break; 70 break;
71#endif
70#ifdef S_IFIFO 72#ifdef S_IFIFO
71 case S_IFIFO: /* fifo */ 73 case S_IFIFO: /* fifo */
72 *p++ = 'p'; 74 *p++ = 'p';
diff --git a/fake-regex.h b/fake-regex.h
index 8c4a8f1ca..8f7f6eddd 100644
--- a/fake-regex.h
+++ b/fake-regex.h
@@ -43,7 +43,6 @@
43#ifndef _REGEX_H_ 43#ifndef _REGEX_H_
44#define _REGEX_H_ 44#define _REGEX_H_
45 45
46#include <sys/cdefs.h>
47#include <sys/types.h> 46#include <sys/types.h>
48 47
49/* types */ 48/* types */
@@ -99,12 +98,9 @@ typedef struct {
99#define REG_LARGE 01000 /* force large representation */ 98#define REG_LARGE 01000 /* force large representation */
100#define REG_BACKR 02000 /* force use of backref code */ 99#define REG_BACKR 02000 /* force use of backref code */
101 100
102__BEGIN_DECLS 101int regcomp(regex_t*, const char*, int);
103int regcomp __P((regex_t *, const char *, int)); 102size_t regerror(int, const regex_t*, char*, size_t);
104size_t regerror __P((int, const regex_t *, char *, size_t)); 103int regexec(const regex_t*, const char*, size_t, regmatch_t[], int);
105int regexec __P((const regex_t *, 104void regfree(regex_t*);
106 const char *, size_t, regmatch_t [], int));
107void regfree __P((regex_t *));
108__END_DECLS
109 105
110#endif /* !_REGEX_H_ */ 106#endif /* !_REGEX_H_ */