Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove most unused LibC bindings #11955

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/lib_c/aarch64-darwin/c/netdb.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ lib LibC
fun freeaddrinfo(x0 : Addrinfo*) : Void
fun gai_strerror(x0 : Int) : Char*
fun getaddrinfo(x0 : Char*, x1 : Char*, x2 : Addrinfo*, x3 : Addrinfo**) : Int
fun getnameinfo(x0 : Sockaddr*, x1 : SocklenT, x2 : Char*, x3 : SocklenT, x4 : Char*, x5 : SocklenT, x6 : Int) : Int
end
8 changes: 0 additions & 8 deletions src/lib_c/aarch64-darwin/c/stdlib.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ require "./stddef"
require "./sys/wait"

lib LibC
struct DivT
quot : Int
rem : Int
end

fun atof(x0 : Char*) : Double
fun div(x0 : Int, x1 : Int) : DivT
fun exit(x0 : Int) : NoReturn
fun free(x0 : Void*) : Void
fun getenv(x0 : Char*) : Char*
fun malloc(x0 : SizeT) : Void*
fun mkstemp(x0 : Char*) : Int
fun mkstemps(x0 : Char*, x1 : Int) : Int
fun putenv(x0 : Char*) : Int
fun realloc(x0 : Void*, x1 : SizeT) : Void*
fun realpath = "realpath$DARWIN_EXTSN"(x0 : Char*, x1 : Char*) : Char*
fun setenv(x0 : Char*, x1 : Char*, x2 : Int) : Int
Expand Down
12 changes: 0 additions & 12 deletions src/lib_c/aarch64-darwin/c/sys/select.cr

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib_c/aarch64-darwin/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,5 @@ lib LibC
fun fstat = fstat64(x0 : Int, x1 : Stat*) : Int
fun lstat = lstat64(x0 : Char*, x1 : Stat*) : Int
fun mkdir(x0 : Char*, x1 : ModeT) : Int
fun mkfifo(x0 : Char*, x1 : ModeT) : Int
fun mknod(x0 : Char*, x1 : ModeT, x2 : DevT) : Int
fun stat = stat64(x0 : Char*, x1 : Stat*) : Int
fun umask(x0 : ModeT) : ModeT
end
24 changes: 0 additions & 24 deletions src/lib_c/aarch64-darwin/c/time.cr
Original file line number Diff line number Diff line change
@@ -1,32 +1,8 @@
require "./sys/types"

lib LibC
struct Tm
tm_sec : Int
tm_min : Int
tm_hour : Int
tm_mday : Int
tm_mon : Int
tm_year : Int
tm_wday : Int
tm_yday : Int
tm_isdst : Int
tm_gmtoff : Long
tm_zone : Char*
end

struct Timespec
tv_sec : TimeT
tv_nsec : Long
end

fun gmtime_r(x0 : TimeT*, x1 : Tm*) : Tm*
fun localtime_r(x0 : TimeT*, x1 : Tm*) : Tm*
fun mktime(x0 : Tm*) : TimeT
fun tzset : Void
fun timegm(x0 : Tm*) : TimeT

$daylight : Int
$timezone : Long
$tzname : Char**
end
1 change: 0 additions & 1 deletion src/lib_c/aarch64-linux-gnu/c/netdb.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ lib LibC
fun freeaddrinfo(ai : Addrinfo*) : Void
fun gai_strerror(ecode : Int) : Char*
fun getaddrinfo(name : Char*, service : Char*, req : Addrinfo*, pai : Addrinfo**) : Int
fun getnameinfo(sa : Sockaddr*, salen : SocklenT, host : Char*, hostlen : SocklenT, serv : Char*, servlen : SocklenT, flags : Int) : Int
end
8 changes: 0 additions & 8 deletions src/lib_c/aarch64-linux-gnu/c/stdlib.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ require "./stddef"
require "./sys/wait"

lib LibC
struct DivT
quot : Int
rem : Int
end

fun atof(nptr : Char*) : Double
fun div(numer : Int, denom : Int) : DivT
fun exit(status : Int) : NoReturn
fun free(ptr : Void*) : Void
fun getenv(name : Char*) : Char*
fun malloc(size : SizeT) : Void*
fun mkstemp(template : Char*) : Int
fun mkstemps(template : Char*, suffixlen : Int) : Int
fun putenv(string : Char*) : Int
fun realloc(ptr : Void*, size : SizeT) : Void*
fun realpath(name : Char*, resolved : Char*) : Char*
fun setenv(name : Char*, value : Char*, replace : Int) : Int
Expand Down
14 changes: 0 additions & 14 deletions src/lib_c/aarch64-linux-gnu/c/sys/select.cr

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib_c/aarch64-linux-gnu/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,5 @@ lib LibC
fun fstat(fd : Int, buf : Stat*) : Int
fun lstat(file : Char*, buf : Stat*) : Int
fun mkdir(path : Char*, mode : ModeT) : Int
fun mkfifo(path : Char*, mode : ModeT) : Int
fun mknod(path : Char*, mode : ModeT, dev : DevT) : Int
fun stat(file : Char*, buf : Stat*) : Int
fun umask(mask : ModeT) : ModeT
end
24 changes: 0 additions & 24 deletions src/lib_c/aarch64-linux-gnu/c/time.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,10 @@ lib LibC
CLOCK_MONOTONIC = 1
CLOCK_REALTIME = 0

struct Tm
tm_sec : Int
tm_min : Int
tm_hour : Int
tm_mday : Int
tm_mon : Int
tm_year : Int
tm_wday : Int
tm_yday : Int
tm_isdst : Int
tm_gmtoff : Long
tm_zone : Char*
end

struct Timespec
tv_sec : TimeT
tv_nsec : Long
end

fun clock_gettime(clock_id : ClockidT, tp : Timespec*) : Int
fun clock_settime(clock_id : ClockidT, tp : Timespec*) : Int
fun gmtime_r(timer : TimeT*, tp : Tm*) : Tm*
fun localtime_r(timer : TimeT*, tp : Tm*) : Tm*
fun mktime(tp : Tm*) : TimeT
fun tzset : Void
fun timegm(tp : Tm*) : TimeT

$daylight : Int
$timezone : Long
$tzname : StaticArray(Char*, 2)
end
1 change: 0 additions & 1 deletion src/lib_c/aarch64-linux-musl/c/netdb.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ lib LibC
fun freeaddrinfo(x0 : Addrinfo*) : Void
fun gai_strerror(x0 : Int) : Char*
fun getaddrinfo(x0 : Char*, x1 : Char*, x2 : Addrinfo*, x3 : Addrinfo**) : Int
fun getnameinfo(x0 : Sockaddr*, x1 : SocklenT, x2 : Char*, x3 : SocklenT, x4 : Char*, x5 : SocklenT, x6 : Int) : Int
end
8 changes: 0 additions & 8 deletions src/lib_c/aarch64-linux-musl/c/stdlib.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ require "./stddef"
require "./sys/wait"

lib LibC
struct DivT
quot : Int
rem : Int
end

fun atof(x0 : Char*) : Double
fun div(x0 : Int, x1 : Int) : DivT
fun exit(x0 : Int) : NoReturn
fun free(x0 : Void*) : Void
fun getenv(x0 : Char*) : Char*
fun malloc(x0 : SizeT) : Void*
fun mkstemp(x0 : Char*) : Int
fun mkstemps(x0 : Char*, x1 : Int) : Int
fun putenv(x0 : Char*) : Int
fun realloc(x0 : Void*, x1 : SizeT) : Void*
fun realpath(x0 : Char*, x1 : Char*) : Char*
fun setenv(x0 : Char*, x1 : Char*, x2 : Int) : Int
Expand Down
14 changes: 0 additions & 14 deletions src/lib_c/aarch64-linux-musl/c/sys/select.cr

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib_c/aarch64-linux-musl/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,5 @@ lib LibC
fun fstat(x0 : Int, x1 : Stat*) : Int
fun lstat(x0 : Char*, x1 : Stat*) : Int
fun mkdir(x0 : Char*, x1 : ModeT) : Int
fun mkfifo(x0 : Char*, x1 : ModeT) : Int
fun mknod(x0 : Char*, x1 : ModeT, x2 : DevT) : Int
fun stat(x0 : Char*, x1 : Stat*) : Int
fun umask(x0 : ModeT) : ModeT
end
24 changes: 0 additions & 24 deletions src/lib_c/aarch64-linux-musl/c/time.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,10 @@ lib LibC
CLOCK_MONOTONIC = 1
CLOCK_REALTIME = 0

struct Tm
tm_sec : Int
tm_min : Int
tm_hour : Int
tm_mday : Int
tm_mon : Int
tm_year : Int
tm_wday : Int
tm_yday : Int
tm_isdst : Int
tm_gmtoff : Long
tm_zone : Char*
end

struct Timespec
tv_sec : TimeT
tv_nsec : Long
end

fun clock_gettime(x0 : ClockidT, x1 : Timespec*) : Int
fun clock_settime(x0 : ClockidT, x1 : Timespec*) : Int
fun gmtime_r(x0 : TimeT*, x1 : Tm*) : Tm*
fun localtime_r(x0 : TimeT*, x1 : Tm*) : Tm*
fun mktime(x0 : Tm*) : TimeT
fun tzset : Void
fun timegm(x0 : Tm*) : TimeT

$daylight : Int
$timezone : Long
$tzname : StaticArray(Char*, 2)
end
1 change: 0 additions & 1 deletion src/lib_c/arm-linux-gnueabihf/c/netdb.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ lib LibC
fun freeaddrinfo(ai : Addrinfo*) : Void
fun gai_strerror(ecode : Int) : Char*
fun getaddrinfo(name : Char*, service : Char*, req : Addrinfo*, pai : Addrinfo**) : Int
fun getnameinfo(sa : Sockaddr*, salen : SocklenT, host : Char*, hostlen : SocklenT, serv : Char*, servlen : SocklenT, flags : Int) : Int
end
8 changes: 0 additions & 8 deletions src/lib_c/arm-linux-gnueabihf/c/stdlib.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ require "./stddef"
require "./sys/wait"

lib LibC
struct DivT
quot : Int
rem : Int
end

fun atof(nptr : Char*) : Double
fun div(numer : Int, denom : Int) : DivT
fun exit(status : Int) : NoReturn
fun free(ptr : Void*) : Void
fun getenv(name : Char*) : Char*
fun malloc(size : SizeT) : Void*
fun mkstemp(template : Char*) : Int
fun mkstemps(template : Char*, suffixlen : Int) : Int
fun putenv(string : Char*) : Int
fun realloc(ptr : Void*, size : SizeT) : Void*
fun realpath(name : Char*, resolved : Char*) : Char*
fun setenv(name : Char*, value : Char*, replace : Int) : Int
Expand Down
14 changes: 0 additions & 14 deletions src/lib_c/arm-linux-gnueabihf/c/sys/select.cr

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib_c/arm-linux-gnueabihf/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,5 @@ lib LibC
fun fstat(fd : Int, buf : Stat*) : Int
fun lstat(file : Char*, buf : Stat*) : Int
fun mkdir(path : Char*, mode : ModeT) : Int
fun mkfifo(path : Char*, mode : ModeT) : Int
fun mknod(path : Char*, mode : ModeT, dev : DevT) : Int
fun stat(file : Char*, buf : Stat*) : Int
fun umask(mask : ModeT) : ModeT
end
24 changes: 0 additions & 24 deletions src/lib_c/arm-linux-gnueabihf/c/time.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,10 @@ lib LibC
CLOCK_MONOTONIC = 1
CLOCK_REALTIME = 0

struct Tm
tm_sec : Int
tm_min : Int
tm_hour : Int
tm_mday : Int
tm_mon : Int
tm_year : Int
tm_wday : Int
tm_yday : Int
tm_isdst : Int
tm_gmtoff : Long
tm_zone : Char*
end

struct Timespec
tv_sec : TimeT
tv_nsec : Long
end

fun clock_gettime(clock_id : ClockidT, tp : Timespec*) : Int
fun clock_settime(clock_id : ClockidT, tp : Timespec*) : Int
fun gmtime_r(timer : TimeT*, tp : Tm*) : Tm*
fun localtime_r(timer : TimeT*, tp : Tm*) : Tm*
fun mktime(tp : Tm*) : TimeT
fun tzset : Void
fun timegm(tp : Tm*) : TimeT

$daylight : Int
$timezone : Long
$tzname : StaticArray(Char*, 2)
end
1 change: 0 additions & 1 deletion src/lib_c/i386-linux-gnu/c/netdb.cr
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ lib LibC
fun freeaddrinfo(ai : Addrinfo*) : Void
fun gai_strerror(ecode : Int) : Char*
fun getaddrinfo(name : Char*, service : Char*, req : Addrinfo*, pai : Addrinfo**) : Int
fun getnameinfo(sa : Sockaddr*, salen : SocklenT, host : Char*, hostlen : SocklenT, serv : Char*, servlen : SocklenT, flags : Int) : Int
end
8 changes: 0 additions & 8 deletions src/lib_c/i386-linux-gnu/c/stdlib.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ require "./stddef"
require "./sys/wait"

lib LibC
struct DivT
quot : Int
rem : Int
end

fun atof(nptr : Char*) : Double
fun div(numer : Int, denom : Int) : DivT
fun exit(status : Int) : NoReturn
fun free(ptr : Void*) : Void
fun getenv(name : Char*) : Char*
fun malloc(size : SizeT) : Void*
fun mkstemp = mkstemp64(template : Char*) : Int
fun mkstemps = mkstemps64(template : Char*, suffixlen : Int) : Int
fun putenv(string : Char*) : Int
fun realloc(ptr : Void*, size : SizeT) : Void*
fun realpath(name : Char*, resolved : Char*) : Char*
fun setenv(name : Char*, value : Char*, replace : Int) : Int
Expand Down
14 changes: 0 additions & 14 deletions src/lib_c/i386-linux-gnu/c/sys/select.cr

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib_c/i386-linux-gnu/c/sys/stat.cr
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,5 @@ lib LibC
fun fstat = fstat64(fd : Int, buf : Stat*) : Int
fun lstat = lstat64(file : Char*, buf : Stat*) : Int
fun mkdir(path : Char*, mode : ModeT) : Int
fun mkfifo(path : Char*, mode : ModeT) : Int
fun mknod(path : Char*, mode : ModeT, dev : DevT) : Int
fun stat = stat64(file : Char*, buf : Stat*) : Int
fun umask(mask : ModeT) : ModeT
end
Loading