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 */
|
||||
#include <sys/types.h>
|
||||
#include <string.h> /* for memmove */
|
||||
#include <fcntl.h> /* for O_RDONLY, etc. */
|
||||
#include <unistd.h> /* for write */
|
||||
|
||||
#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 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 <fcall.h>
|
||||
#include <u9fs.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
static long
|
||||
getseed(void)
|
||||
|
|
Loading…
Reference in New Issue