move fcntl.h to plan9.h for open(); move getremotehostname to u9fs.h as local lib
This commit is contained in:
parent
5478072781
commit
970b17b5bd
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>com.bell-labs.plan9.u9fs</string>
|
||||||
|
<key>Program</key>
|
||||||
|
<string>/bin/9/u9fs</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>u9fs</string>
|
||||||
|
<string>-l</string>
|
||||||
|
<string>/var/log/u9fs.log</string>
|
||||||
|
<string>-a</string>
|
||||||
|
<string>p9any</string>
|
||||||
|
</array>
|
||||||
|
<key>Sockets</key>
|
||||||
|
<dict>
|
||||||
|
<key>Listeners</key>
|
||||||
|
<dict>
|
||||||
|
<key>SockServiceName</key>
|
||||||
|
<string>9pfs</string>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
<key>inetdCompatibility</key>
|
||||||
|
<dict>
|
||||||
|
<key>Wait</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
2
plan9.h
2
plan9.h
|
@ -45,6 +45,7 @@ typedef unsigned long long int uint64_t;
|
||||||
#endif /* va_copy */
|
#endif /* va_copy */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h> /* for memmove */
|
#include <string.h> /* for memmove */
|
||||||
|
#include <fcntl.h> /* for O_RDONLY, etc. */
|
||||||
#include <unistd.h> /* for write */
|
#include <unistd.h> /* for write */
|
||||||
|
|
||||||
#define ulong p9ulong /* because sys/types.h has some of these sometimes */
|
#define ulong p9ulong /* because sys/types.h has some of these sometimes */
|
||||||
|
@ -205,4 +206,3 @@ enum {
|
||||||
void key_setup(char key[DESKEYLEN], char expandedkey[128]);
|
void key_setup(char key[DESKEYLEN], char expandedkey[128]);
|
||||||
void block_cipher(char expandedkey[128], char buf[8], int decrypting);
|
void block_cipher(char expandedkey[128], char buf[8], int decrypting);
|
||||||
|
|
||||||
void getremotehostname(char*, int);
|
|
||||||
|
|
2
random.c
2
random.c
|
@ -1,9 +1,7 @@
|
||||||
#include <plan9.h>
|
#include <plan9.h>
|
||||||
#include <fcall.h>
|
#include <fcall.h>
|
||||||
#include <u9fs.h>
|
#include <u9fs.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
static long
|
static long
|
||||||
getseed(void)
|
getseed(void)
|
||||||
|
|
1
u9fs.h
1
u9fs.h
|
@ -28,3 +28,4 @@ Fid *newauthfid(int fid, void *magic, char **ep);
|
||||||
Fid *oldauthfid(int fid, void **magic, char **ep);
|
Fid *oldauthfid(int fid, void **magic, char **ep);
|
||||||
|
|
||||||
void safecpy(char *to, char *from, int len);
|
void safecpy(char *to, char *from, int len);
|
||||||
|
void getremotehostname(char*, int);
|
||||||
|
|
Loading…
Reference in New Issue