More Mac tweaks.
This commit is contained in:
parent
53dbac9485
commit
8f314994db
12 changed files with 101 additions and 49 deletions
|
|
@ -226,6 +226,7 @@ main(int argc, char **argv)
|
|||
if(uflag)
|
||||
prusage();
|
||||
exits(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -1,38 +1,4 @@
|
|||
#include <utf.h>
|
||||
#include <fmt.h>
|
||||
#include <setjmp.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <bio.h>
|
||||
#include <regexp9.h>
|
||||
#include <time.h>
|
||||
|
||||
#define uchar _mkuchar
|
||||
#define ushort _mkushort
|
||||
#define uint _mkuint
|
||||
#define ulong _mkulong
|
||||
#define vlong _mkvlong
|
||||
#define uvlong _mkuvlong
|
||||
|
||||
#define nil ((void*)0)
|
||||
|
||||
typedef unsigned char uchar;
|
||||
typedef unsigned short ushort;
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned long ulong;
|
||||
|
||||
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
#define OREAD O_RDONLY
|
||||
#define OWRITE O_WRONLY
|
||||
#define ORDWR O_RDWR
|
||||
#define USED(x) if(x);else
|
||||
#define remove unlink
|
||||
#define seek lseek
|
||||
#define exits(s) exit((s) && ((char*)s)[0] ? 1 : 0)
|
||||
#define create(name, mode, perm) creat(name, perm)
|
||||
#define ERRMAX 256
|
||||
#include "sys.h"
|
||||
|
||||
#undef assert
|
||||
#define assert mkassert
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
static char *vexpand(char*, Envy*, Bufblock*);
|
||||
|
||||
#define getfields mkgetfields
|
||||
|
||||
static int
|
||||
getfields(char *str, char **args, int max, int mflag, char *set)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#define NOPLAN9DEFINES
|
||||
#include "mk.h"
|
||||
#include <sys/wait.h>
|
||||
#include <signal.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue