diff options
author | Luke Leighton <lkcl@samba.org> | 2000-05-02 23:00:38 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-05-02 23:00:38 +0000 |
commit | 18571ea99fc3d00513f8a55c1c01a7b74a1b7fa7 (patch) | |
tree | 7507d46a9fc520598df4146380282fc5b3234aee | |
parent | 83a76b4cd302c6aa0fc0465cb5fc79d8ead813c9 (diff) | |
download | samba-18571ea99fc3d00513f8a55c1c01a7b74a1b7fa7.tar.gz |
oops.
-rw-r--r-- | source/tests/fcntl_lock.c | 6 | ||||
-rw-r--r-- | source/tests/fcntl_lock64.c | 6 | ||||
-rw-r--r-- | source/tests/shared_mmap.c | 2 | ||||
-rw-r--r-- | source/tests/sysv_ipc.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/source/tests/fcntl_lock.c b/source/tests/fcntl_lock.c index 0362fce8641..32aecb87439 100644 --- a/source/tests/fcntl_lock.c +++ b/source/tests/fcntl_lock.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) int fd, ret, status=1; pid_t pid; - if (!(pid=sys_fork())) { + if (!(pid=fork())) { sleep(2); fd = open(DATA, O_RDONLY); @@ -50,7 +50,7 @@ int main(int argc, char *argv[]) lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 4; - lock.l_pid = sys_getpid(); + lock.l_pid = getpid(); lock.l_type = F_WRLCK; @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 4; - lock.l_pid = sys_getpid(); + lock.l_pid = getpid(); /* set a 4 byte write lock */ fcntl(fd,F_SETLK,&lock); diff --git a/source/tests/fcntl_lock64.c b/source/tests/fcntl_lock64.c index 422c71b1ac2..e5ecd88fd04 100644 --- a/source/tests/fcntl_lock64.c +++ b/source/tests/fcntl_lock64.c @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) int fd, ret, status=1; pid_t pid; - if (!(pid=sys_fork())) { + if (!(pid=fork())) { sleep(2); fd = open64(DATA, O_RDONLY); @@ -46,7 +46,7 @@ int main(int argc, char *argv[]) lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 4; - lock.l_pid = sys_getpid(); + lock.l_pid = getpid(); lock.l_type = F_WRLCK; @@ -73,7 +73,7 @@ int main(int argc, char *argv[]) lock.l_start = 0x100000000; #endif lock.l_len = 4; - lock.l_pid = sys_getpid(); + lock.l_pid = getpid(); /* set a 4 byte write lock */ fcntl(fd,F_SETLK64,&lock); diff --git a/source/tests/shared_mmap.c b/source/tests/shared_mmap.c index aad5e2e3397..fcef75d0d61 100644 --- a/source/tests/shared_mmap.c +++ b/source/tests/shared_mmap.c @@ -30,7 +30,7 @@ main() close(fd); - if (sys_fork() == 0) { + if (fork() == 0) { fd = open(DATA,O_RDWR); if (fd == -1) exit(1); diff --git a/source/tests/sysv_ipc.c b/source/tests/sysv_ipc.c index 965a7b4e326..9f0e20957a2 100644 --- a/source/tests/sysv_ipc.c +++ b/source/tests/sysv_ipc.c @@ -50,7 +50,7 @@ main() if (shmctl(id, IPC_RMID, 0) != 0) exit(1); } - if (sys_fork() == 0) { + if (fork() == 0) { /* uggh - need locking */ sleep(2); |