summaryrefslogtreecommitdiff
path: root/libpsx/include/unistd.h
blob: 3ae6aa363a9187fa49c96a95555f6424865dcc69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * unistd.h
 *
 * PSXSDK
 */

#ifndef _UNISTD_H
#define _UNISTD_H

#include <types.h>

int lseek(int fd, int off, int whence);
int read(int fd, void *buf, int nbytes);
int write(int fd, void *buf, int nbytes);
int close(int fd);
int cd(char *dirname);

void swab(const void *src, void *dst, ssize_t len);

#define chdir(dirname)	cd(dirname)

#endif